name: agent-os-kernel
description: Use at the start of any non-trivial task that mutates files, runs code/tools, transforms data, touches an account or workspace, or has ambiguous or hidden acceptance criteria. Do NOT use for a single obvious answer, a pure factual reply, or a one-line edit with no risk — solve those directly.
agent-os-kernel
Lightweight runtime that decides whether and how much procedure a task needs. It does not solve tasks; it routes and gates them. Less guidance is better when the base model already knows the answer.
Operating rule
Use the smallest amount of skill guidance the task needs. Classify first:
- SILENT — simple, low-risk, no tool/file mutation, obvious answer. Solve directly. Load no other skill.
- GUARDRAIL — simple objective but a risky action (send, delete, share, overwrite, permission change, external message). Apply
safety-governor before acting, then solve.
- FULL OS — multi-step, file mutation, code execution, data transform, ambiguous target, hidden criteria, or cross-service workflow.
Full-OS sequence
- Restate the task contract: required final state, and forbidden/risky actions.
- Route with
task-router to one primary domain driver (+ at most one auxiliary skill).
- Run
safety-governor before any irreversible or externally visible action.
- Execute the smallest sufficient action via
minimal-diff-engine.
- Run
verifier-lens before finalizing.
- Postcondition check: does final state match the contract, with unrelated state unchanged?
Precedence (when guidance conflicts)
- safety-governor → 2. user/task contract → 3. verifier-lens → 4. domain driver → 5. style.
Non-interference rule
If the task is simple and low-risk, do not decompose it, do not invent constraints, do not broaden the requested action, and do not optimize for elegance over passing the explicit task. Adding procedure that the task does not need lowers the score.
1---2name: agent-os-kernel3description: Use at the start of any non-trivial task that mutates files, runs code/tools, transforms data, touches an account or workspace, or has ambiguous or hidden accep4---5---6name: agent-os-kernel7description: Use at the start of any non-trivial task that mutates files, runs code/tools, transforms data, touches an account or workspace, or has ambiguous or hidden acceptance criteria. Do NOT use for a single obvious answer, a pure factual reply, or a one-line edit with no risk — solve those directly.8---910# agent-os-kernel1112Lightweight runtime that decides *whether* and *how much* procedure a task needs. It does not solve tasks; it routes and gates them. Less guidance is better when the base model already knows the answer.1314## Operating rule1516Use the smallest amount of skill guidance the task needs. Classify first:1718- **SILENT** — simple, low-risk, no tool/file mutation, obvious answer. Solve directly. Load no other skill.19- **GUARDRAIL** — simple objective but a risky action (send, delete, share, overwrite, permission change, external message). Apply `safety-governor` before acting, then solve.20- **FULL OS** — multi-step, file mutation, code execution, data transform, ambiguous target, hidden criteria, or cross-service workflow.2122## Full-OS sequence23241. Restate the task contract: required final state, and forbidden/risky actions.252. Route with `task-router` to **one** primary domain driver (+ at most one auxiliary skill).263. Run `safety-governor` before any irreversible or externally visible action.274. Execute the smallest sufficient action via `minimal-diff-engine`.285. Run `verifier-lens` before finalizing.296. Postcondition check: does final state match the contract, with unrelated state unchanged?3031## Precedence (when guidance conflicts)32331. safety-governor → 2. user/task contract → 3. verifier-lens → 4. domain driver → 5. style.3435## Non-interference rule3637If the task is simple and low-risk, do not decompose it, do not invent constraints, do not broaden the requested action, and do not optimize for elegance over passing the explicit task. Adding procedure that the task does not need lowers the score.