Run this repository
Read AGENTS.md first. It links actual context, decisions and commands. Run the local runtime CLI to keep Herdr and OpenCode available without an open terminal. The optional workbench keeps ignored local state in workspace/.
Set up and verify
uv sync --locked --group validation
python3 tools/ai_toolkit.py check
uv run --locked --group validation python -m unittest discover -s tests -v
python3 tools/workspace_smoke.py
npm --prefix website ci
npm --prefix website run build
The smoke command exercises the optional local record store, stale writes, export and
migration in generated fixtures. It does not prove live tracker access or installed-host
behavior. workspace/generated/ and exports are ignored and excluded from publication.
Prefer the available Herdr session
The checked-in opencode.json already selects Delivery and loads the curated team's
canonical profiles and shared startup rules. Start installed OpenCode normally from the
checkout in the intended Herdr pane; no export or extra delegation prompt is required here.
Keep provider/model routes in private host settings. Canonical skills remain available
for explicit reading; this native entry is not a skill installation.
Follow Herdr execution: check readiness, reuse the matching project session, select verified model/effort routes and organize labelled tabs. Use independent worktrees for writers and scale dispatch to actual resource/provider/budget/review capacity. If Herdr is absent or unusable, report the exact gap and use the authorized host.
Export and start OpenCode 1
For another project, export the chosen profiles. A normal export keeps the full catalog and selects task-orchestrator; smaller presets keep their focused entry.
python3 tools/ai_toolkit.py export --runtime opencode \
--output "$HOME/.config/ai-agents/opencode"
cd /path/to/project
OPENCODE_CONFIG_DIR="$HOME/.config/ai-agents/opencode" \
OPENCODE_CONFIG="$HOME/.config/ai-agents/opencode/opencode.json" opencode web
Re-export after canonical source changes. The manifest protects human edits. Configure models/providers locally. For private plans, follow personal planning; for an optional review gate, follow plan review. Perform the installed-host check.
Export native Herd leads
Use the orchestration guide for the selected export, schema-v2 import and live host check. Export tests verify file contracts and update recovery, not a running Herd server or provider performance.
Deliver
Use the current request or assigned issue for scope. Keep personal working steps in the configured Second Brain; if unavailable, report unsaved planning and continue in-session. Prepare a focused branch and PR with actual checks. Update affected knowledge and relevant ADRs after implementation. Do not require the team to access personal plans. Merge and deployment remain separately authorized.
Docusaurus demo
Follow the demo README to install, build and open
the interactive decision graph at /knowledge-graph/. It reads only the demo's allowlisted
shared content and is part of the existing Docusaurus site.
Canonical source: toolkit/REPOSITORY-WORKFLOW.md.