octocode-awareness
Octocode Awareness
AGENTS routes; skill decides; CLI/SQLite acts; hooks automate deterministic edges. Memory and .octocode/ are leads. Never hand-edit .octocode/.
Run live-state actions through the CLI.
When the host supports delegation, ALWAYS batch routine deterministic Awareness CLI reads, writes, and maintenance into one phase.
Use the smallest capable low-cost agent (for example Haiku or Composer 2.5); supply decided scope, require --compact, and cap its receipt at 512 bytes.
The lead retains destructive approval, conflict handling, memory-truth judgment, and verification.
Run directly only when the host cannot delegate.
Lifecycle
<cli>: local node packages/octocode-awareness/out/octocode-awareness.js; installed npx @octocodeai/octocode-awareness. Set OCTOCODE_AGENT_ID per agent/session.
BEFORE/READ+REASON -> DURING/DO -> AFTER/VERIFY -> LEARN? -> CLEAN? -> PROJECT?
- BEFORE:
attend; follownext; state goal, acceptance, affected scope, and evidence. Usememory recall --smartonly if it may change the plan; choose task or WORK. - DURING: declare paths via hooks or
work start; read peers. Ordinary overlap is allowed; never bypass conflict. Hooks never choose plans, locks, success, learning, cleanup, or projection. - AFTER: check while present;
task submit/work end;verify mark;verify audit. Expiry never means success. - OPTIONAL:
reflect record --lessononly for verified reusable outcomes; clean only under pressure; project only for file readers. Loop:attend -> work start -> edit/check -> work end -> verify mark -> verify audit; add--exclusivewhen required.lock wait/pruneare recovery.
Feature map — all features; load owners only for depth
- Orient/state:
attend,workspace status, query,session capture, agent registry. When inspecting storage/session, loadreferences/architecture.mdfor storage boundaries. - Plan/task: dependencies/readiness/claim/heartbeat/submit/release. When choosing plan, task, or WORK, load
references/plan-task-workflow.mdfor task routing. - Work/files:
start/touch/end/list/show. When overlap matters, loadreferences/files-awareness.mdfor peer semantics. - Exclusive work/verify:
work start --exclusive, lock recovery, mark/audit. When exclusivity or debt matters, loadreferences/lock-protocol.mdfor conflict gates.