Recovered from crashed session (Node OOM). Repo contains full P0-P6 scaffold: plugin.json/marketplace.json, AGENTS.md, ADRs 0001-0006, lh CLI (init/index/graph/lane/run/memory/host/report/doctor), 10 .github/agents, 12 CLI skills, instructions, context7 mcp.json, and unit/e2e test suite. Fixed: run.mjs read --in-tokens/--out-tokens but tests and CLI docs use --input-tokens/--output-tokens, so telemetry totals were always 0. Now accepts both forms. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1.6 KiB
1.6 KiB
applyTo, description
| applyTo | description |
|---|---|
| ** | Always-on lean harness behavior, token discipline, style, self-documenting rules, and scope guardrails. |
Lean Harness Rules
Token discipline
- Prefer
lh index --budget <N>over raw tree reads. - Prefer
lh graph --briefover verbose diagnostics. - Load only
.agents/memory/INDEX.mdby default. - Pull memory shards only on demand with
lh memory get. - Return summaries, tables, and paths instead of file dumps.
- Keep skill bodies short. Use agents and
lhcommands for detail.
Imperative style
- Write commands as actions.
- Use short lines.
- Avoid motivational prose.
- Avoid generic LLM advice.
- State inputs, outputs, gates, and stop conditions.
Self-documenting work
- Write decisions to
.agents/specs/<slug>/decisions.md. - Write specs to
.agents/specs/<slug>/spec.md. - Write DAGs to
.agents/specs/<slug>/plan.dag.json. - Write run events to
.agents/runs/<id>/events.ndjsonthroughlh run event. - Write journals to
.agents/runs/<id>/journal.md. - Keep ADRs inside
.agents/architecture.md. - Keep durable conventions in
.agents/conventions.md.
Scope rule
- Respect lane scope globs exactly.
- Create write lanes with
lh lane createbefore editing. - Work inside the assigned worktree for write lanes.
- Never create files outside the lane scope.
- Stop and escalate when required scope is missing.
- Run
lh graphbefore claiming done.
Pipeline rule
- Design before plan.
- Require user gate after design.
- Plan before build unless fast track applies.
- Run Ralph loop for every write lane.
- Merge lanes sequentially.
- Run one full verify after integration.