CLI reference#
The CLI is the primary ContextLattice interface. It keeps scope, evidence, corrections, and completion explicit while hiding lower-level adapter plumbing during ordinary work.
Normal task lifecycle#
contextlattice context "<task>" --project <project> --pretty
contextlattice resume --project <project> --pretty
contextlattice remember "<checkpoint>" --project <project> --pretty
contextlattice correct "<note>" --category useful
contextlattice finish "<verified result>" --project <project> --success --prettyUse one stable project name throughout a task. The CLI automatically associates the latest pending retrieval outcome when finish is called.
Context#
contextlattice context "prepare the next release" --project contextlattice --prettyThis is the default pre-planning read. It returns a bounded agent_packet.v1 with the objective, ranked evidence, uncertainty, risks, and next action. Use raw or file output only when a programmatic consumer needs it.
Resume#
contextlattice resume --project contextlattice --prettyResume reconstructs the latest bounded objective state. It is preferable to replaying an entire transcript into a new session.
Remember#
contextlattice remember "local gates passed at commit abc123" --project contextlattice --prettyPersist decisions, verified results, blockers, and exact next actions. Do not use checkpoints as a dumping ground for logs or speculative narration.
Correct#
contextlattice correct "the referenced branch was superseded" --category supersededAvailable correction categories include useful, wrong, stale, and superseded. A correction should explain the evidence mismatch clearly enough that a later retrieval can avoid repeating it.
Finish#
contextlattice finish "release built and smoke-tested" --project contextlattice --success --prettyChoose --success, --repair, or --failure to match the verified outcome. Completion is an evidence record, not a confidence score.
Readiness and adoption#
contextlattice doctor --pretty
contextlattice_adopt status --pretty
contextlattice_adopt profiles
contextlattice_adopt proof --agents codex --skip-provider-smoke --prettyUse doctor when runtime readiness is unclear. Use adoption commands when a new machine, account, or repository needs profile-aware integration.
Agent integration#
contextlattice_adopt integrate \
--repo . \
--agents codex,claude-code,opencode,hermes-agent,hermes-ultra,omp,mercury-agent,pi,droid \
--check \
--prettyRemove --check to write or update managed instruction blocks. Existing user-authored content outside those blocks is preserved.
Capability discovery#
contextlattice_skills_index search "browser automation" --pretty
contextlattice_agent_adapter profilesSkills Index searches configured capability roots without loading every skill body into startup context.
Advanced packets and traces#
contextlattice_synthesis_pack "release risk" --project contextlattice --pretty
contextlattice_agent_trace --session-id <session-id> --tree
contextlattice_agent_trace --session-id <session-id> --markdown --proofUse synthesis packs when a complex decision needs findings, topic gravity, graph bridges, constraints, next actions, and open questions over the same bounded evidence. Use traces to inspect the run-shaping trail; missing links remain visible rather than inferred.
Exit discipline#
Commands that report JSON or --pretty output should still be judged by their exit status and concrete fields. Keep secrets out of pasted examples and logs.