Skip to content

Latest commit

 

History

History
106 lines (97 loc) · 6.15 KB

File metadata and controls

106 lines (97 loc) · 6.15 KB

ABSOLUTE ZERO — Flow Definitions

/wake (session start, budget ~800 tokens)

  1. Read CLAUDE.md, 00_CORE/ACTIVE_GOALS.md, 90_META/INDEX_SUMMARY.md. Nothing else. 1b. Session inside a git repo that is not the vault and has no 10_PROJECTS// yet: python scripts/bootstrap.py open — automatic language/framework/architecture/deps/risks/conventions/ docs/summary/skills/context-package onboarding (BOOTSTRAP.md).
  2. Ask: "What are we working on?" (or accept task given in same message).
  3. Output briefing: what vault knows about this task (from INDEX_SUMMARY only), what it does not know, 2-4 clarifying questions if goals are ambiguous.
  4. Do NOT speculatively load lessons or project files yet.

/recall (budget ~1-3k tokens per round)

  1. Run: python scripts/query.py --tags [--type lesson|fault|knowledge|decision]
  2. Script returns titles + summaries + paths only.
  3. Shortlist max 3 relevant hits. Read only matching sections via grep/sed.
  4. Report findings with file-path citations. If zero hits: say "not in vault."
  5. Structural questions (what calls X, what depends on Y, path between two things): python scripts/graph.py search|neighbors|path (GRAPH.md).

/task (workflow orchestrator — the default work entry)

Every user request that produces a work product routes through this; bare questions/greetings are exempt. Contract: ORCHESTRATOR.md.

  1. Run: python scripts/orchestrator.py plan "" — creates a trace in 90_META/traces/ with intent, complexity, strategy, engines, pipeline, verify checklist, token budget, and llm gate (TOKEN.md). AMBIGUOUS output -> ask the user first. llm none -> follow the tool-direct pipeline: no model call, run the printed route chain. cache-first -> read the cited note before spending tokens. STALE lines -> run the printed rebuild command first. 1b. Load skills: python scripts/skills.py discover "" — invoke the manifest list in order (SKILLS.md). Below threshold: proceed bare.
  2. Execute the pipeline in order, logging each state: python scripts/orchestrator.py log --trace --state Illegal jumps are rejected loudly — that is the point.
  3. RECALL + PLAN run themselves. orchestrator.py plan executes the context pack (CONTEXT.md), skill discovery (SKILLS.md) and — for standard/complex — the planner (PLANNER.md), logs those states, and prints one line per engine. Read the plan file it names: fix any "fail" validation gate before EXECUTE, then walk execution_order.
  4. EXECUTE starts with python scripts/plugins.py route "" — follow the chain (deterministic local tools before model calls, PLUGINS.md); report non-script outcomes via plugins.py report. 4b. Complex or multi-subtask: python scripts/agents.py run "" — multi-agent runtime (AGENTS.md): coordinator composes an agent DAG, parallel dependency-scheduled execution over a shared blackboard, record in 90_META/runs/. Its WORK ORDER lines are the EXECUTE checklist; verifier stays the gate.
  5. VERIFY runs itself. Logging the state executes the 11 gated checks (VERIFIER.md), records the verdict on the trace and prints the checklist. A FAIL is now enforced, not advice: SUMMARIZE and close --result pass are both refused until VERIFY passes again — fix the findings, log EXECUTE (retry, max 2) then VERIFY, or close --result fail and escalate. The checklist is the half a machine cannot settle; confirm each item yourself before SUMMARIZE.
  6. Pass -> log SUMMARIZE, close --result pass. Traces are committed history. close runs the learning loop itself — experience harvest, reindex, project case refresh, graph rebuild — printing one line per engine. Nothing to run by hand. Profile the spend separately if you care: python scripts/profiler.py report (TOKEN.md).
  7. Dispatching work to a fresh agent/session? Compile its briefing: python scripts/promptc.py compile "" --project X (PROMPTC.md).

Work phase (main session body)

  1. Before technical work on any tagged topic: scan FAULT_LEDGER.md for matches.
  2. If a past fault matches current work, state it explicitly before proceeding.
  3. New project: create 10_PROJECTS// from 90_META/templates/, then /recall on the project's core tags to surface transferable lessons.
  4. During work, keep a running scratch list of: decisions made, faults hit, lessons learned. This list feeds /sleep.

/sleep (session end, mandatory)

  1. Close any open orchestrator trace (an open trace at sleep = failed verify).
  2. Write dated log to 10_PROJECTS//SESSIONS/YYYY-MM-DD.md.
  3. Overwrite 10_PROJECTS//RECENT.md (max 10 lines: status, next steps).
  4. Append new faults to FAULTS.md (with root cause, fix, topic wikilinks).
  5. If a fault/insight is transferable: create note in 30_LESSONS/.
  6. Update ACTIVE_GOALS.md if goals changed.
  7. Harvest, reindex, case refresh and graph rebuild already ran when the trace closed. Run them by hand only if you worked without a trace: scripts/experience.py harvest, then scripts/indexer.py, then scripts/graph.py build (that order — each feeds the next).
  8. git add -A && git commit -m "sleep: "

/research

  1. Web search, read sources, summarize into 40_RESEARCH/.md with source URLs and frontmatter. Link to related topic notes.
  2. Summary in note, not in context. Report 5-line digest to user.

/review (weekly, high-budget session, 20-30k tokens allowed)

  1. Read all FAULT_LEDGER lines + lesson summaries. Hunt cross-project patterns.
  2. Promote repeated patterns to 00_CORE/PRINCIPLES.md.
  3. Flag stale ACTIVE_GOALS and orphan notes (no inbound links).
  4. Compress: any RECENT.md or ledger bloat gets trimmed.
  5. Findings written as one-line ledger/principle entries so daily sessions get them nearly free.

/predict

  1. Read last N session logs' summary lines + RECENT.md for the project.
  2. Estimate: likely next blockers, risk areas, velocity trend.
  3. Every claim labeled ESTIMATE with the evidence file paths.

Escalation rule

If any single retrieval need exceeds ~8k tokens, stop, tell the user the cost, and ask whether to proceed or narrow scope.