# Ray Template AI Harness Start with [AGENTS.md](../AGENTS.md). Use the [task index](../llms.txt) to locate implementations and the [architecture map](../docs/architecture.md) for relationships across modules. Reading the indexes does not require installing dependencies. ## Starting a task 1. Check `git status`. Choose a task area from the static index or `pnpm harness context`; `pnpm harness context ` shows its index and verification commands. For changes across areas, consult each affected scope. 2. When verification is needed, select the runtime from `.nvmrc` and `package.json#packageManager`. On initial setup, run `pnpm install --frozen-lockfile` and `pnpm env:check`. 3. Define observable acceptance criteria, decide whether subagents would help, and trace callers and data flow before implementation. For multi-step migrations or work continued across sessions, record scope, staged acceptance criteria, key decisions, and remaining work. See the [development plan](plan.md) as a reference. 4. Choose checks using the [verification scope](#choosing-the-verification-scope). Run relevant tests during development and confirm coverage at task completion. Run full checks only when a full-check condition applies. After checks pass, rerun only those affected by subsequent changes. ```sh pnpm harness context table-pro pnpm harness verify table-pro ``` ## Using subagents when useful - **Decide whether to delegate.** Use subagents when tasks have clear boundaries, results can be verified independently, and parallel investigation, implementation, or review is worth the coordination and integration cost. Handle simple tasks, dependent steps, or frequent edits to shared files directly. If the host does not provide subagents or the current task prohibits delegation, the lead agent continues the work. - **Define ownership.** Specify the objective, relevant scopes, acceptance criteria, and read-only or writable boundaries. Assign each file to one writer during parallel implementation. Start with read-only investigation if boundaries are unclear. Delegation inherits user authorization and repository rules. - **Review and integrate.** Subagents report findings, changes, actual verification, and unverified areas. The lead agent reviews the combined impact and completes integration checks. Delegation itself does not trigger full verification; select scope using the rules below. ## Engineering conventions - Before adding a capability or component, inspect existing project components, hooks, and installed component-library APIs and examples. Determine whether existing props, slots, or layout CSS can meet the requirement. Reuse sufficient existing capabilities. Add a component only for an established capability gap, and record the gap and choice in an existing task record or delivery note. Do not create a component solely for full-height sizing, a scroll container, or a styling wrapper. - Follow existing Vue 3 Composition API patterns: `defineComponent` with TSX and `