Overview
The `lib/` directory serves as the frontend client library layer for AgentStack, providing shared utilities, type definitions, and React hooks for interacting with the Mastra API.
## Where to Look
447mo agoReviewMountCreate a free account to mount
helpers (`utils`), and type contracts (`types.ts`).
## Purpose
Contain all backend runtime composition apart from frontend App Router code, acting as the integration layer for Mastra AI components and supporting infrastructure
447mo agoReviewMountCreate a free account to mount
copy `database-dev.md` and `database-reviewer.md`
Add each implementation agent to ` /.opencode/agents/orchestrator.md`
under `permission.task` (e.g., `"frontend-dev": allow`). Add its read-only
reviewer to ` /.opencode/agents/review-lead.md`. Never allow an
edit-capable implementation agent
424mo agoReviewMountCreate a free account to mount
documentation only. Do not place design documents, plans, or ad-hoc internal docs here.
- `frontend/` - React/TypeScript web UI for network topology visualization (built with Vite).
- `hack/` - where development tools
413mo agoReviewMountCreate a free account to mount
site key and secret, enable/disable, list and inspect configs via `captcha list/get/save/enable/disable/delete`. Not the frontend widget itself. | CLI |
### Localization
| Skill | Use when | Surface |
|---|---|---|
| `blocks-localization-configuration` | **Authoring** translations: local i18n
414mo agoReviewMountCreate a free account to mount
driven Vtuber/desktop pet platform with a **Python FastAPI backend** (port 13900) and **Electron frontend**. The backend runs a **LangGraph-based agent** with tool calling, multi-modal memory (vector + knowledge graph
404mo agoReviewMountCreate a free account to mount
bash SDK can be injected
(see **HTML Apps Runtime**)
- `/public/html-lib/` - Same-origin hosted frontend libs for HTML apps
(React, ReactDOM, Babel, `theme.css`, and the standalone
markdown / json / pdf widget bundles
408mo agoReviewMountCreate a free account to mount
repository-standard logging rather than production `print()` calls.
- Respect strict TypeScript and existing frontend credential/XSS boundaries for
frontend changes.
- DCO sign-off remains required for commits where repository policy requires
407mo agoReviewMountCreate a free account to mount
agent logic to `src/`, you are in the wrong half of the
repo: the frontend renders state and forwards intent.
## Read before you change
| Changing | Read |
|---|---|
| Messaging, replies, cascades
392mo agoReviewMountCreate a free account to mount
Refactoring / simplification → `code-simplification`
- API or interface design → `api-and-interface-design`
- UI work → `frontend-ui-engineering`
### Lifecycle Mapping (Implicit Commands)
OpenCode does not support slash commands like `/spec
389mo agoReviewMountCreate a free account to mount