Approach and Rationale
This page explains why Livon uses a small control plane for agents instead of full-load prompt files.
Goals
- Lower token usage without dropping critical rules.
- Improve consistency by routing only relevant context.
- Keep one documentation truth for humans and agents.
- Support both Codex and Copilot with the same governance model.
Design decisions
- Keep canonical engineering and product rules in docs and package prompts.
- Keep
AGENTS.mdsmall and operational (routing, scope lock, gates). - Use scoped loading over hard full-load links.
- Use active rules plus gate review as enforcement.
- Use skills for deep, task-specific behavior.
- Keep routing machine-readable for regression checks and metrics.
Why this model
Full-load context increases token cost and reduces instruction clarity in large monorepos. Scoped routing and progressive disclosure keep high-signal context active while preserving full rule coverage through conditional loading.
Operational checks
pnpm check:policiesvalidates:- required AI control files,
- routing fixtures from
configs/ai/context-routing.json, - root load-budget limits,
- naming consistency for AI markdown.
pnpm metrics:ai-controlreports routing/load metrics for trend tracking.
Multi-agent policy
Use multi-agent mode for parallelizable tasks (exploration, review shards, migration decomposition). Keep single-agent mode for small or linear tasks. Use the role council contract from Multi-Agent Council when product intent, architecture, and performance decisions must be coordinated.
Official references
Codex and AGENTS:
- OpenAI Codex AGENTS.md guide
- OpenAI Codex Skills
- OpenAI Codex Multi-agents
- OpenAI harness engineering article
Copilot custom instructions and skills:
- GitHub repository/path custom instructions
- GitHub response customization and precedence
- GitHub Agent Skills
Open standards used by this approach: