2.2 KiB
2.2 KiB
AGENTS
This repository allows sub-agent delegation for parallel implementation work.
Default Sub-Agent Configuration
When spawning sub-agents for this repo:
- model:
gpt-5.4 - reasoning effort:
xhigh
Context Strategy
Sub-agents should use this context policy:
- First attempt with
fork_context: true - If the sub-agent fails due to context-window pressure, retry with
fork_context: false - When retrying with
fork_context: false, provide a compact task brief and explicitly list the local files the sub-agent must read first
Practical Guidance
- Prefer fewer, higher-quality sub-agents over many shallow ones
- Give each sub-agent a clearly isolated write scope
- Keep shared integration files owned by the main thread whenever possible
- If a sub-agent needs a shared dependency or a shared export change, have it report that back rather than editing unrelated files
Harness Workflow
Agents should treat the following files as the default system of record before making non-trivial changes:
DESIGN.mdREADME.mdCONTRIBUTING.mdroadmap.mdpackages/ui/src/lib/contracts.tsapps/docs/src/component-authoring.stories.tsxdocs/harness-engineering.mddocs/orchestration.md
When work spans multiple surfaces or changes public behavior, start by creating or updating an
execution plan in docs/exec-plans/.
Prefer the narrowest useful harness suite while working:
pnpm harness:selectpnpm harness:validate:changedpnpm harness:validate:staticpnpm harness:validate:componentpnpm harness:validate:docspnpm harness:validate:docs-smokepnpm harness:validate:consumerspnpm harness:validate:prpnpm harness:validate:release
Every suite writes a JSON report under .artifacts/harness/.
Worktree-backed orchestration runs use pnpm harness:orch -- <orch command> and store state under
.artifacts/orch/.
Priority
If there is any conflict between older default delegation habits and this file:
- follow
DESIGN.mdfor the active visual language and motion direction - follow this file for sub-agent model selection
- follow this file for sub-agent reasoning effort
- follow this file for context fallback behavior