CLI: query and briefings
These commands are the read path agents should use before making project-specific claims. They turn curated memories, activity, commits, and source evidence into answers and briefings.
| Command | Writes | Purpose |
|---|---|---|
codifix query | Audit only | Ask a project-specific question against curated memory. |
codifix resume | Audit only | Generate a briefing for returning to interrupted work. |
codifix up-to-speed | Audit only | Generate a broader new-agent project briefing. |
codifix activities | No | List persisted project activity events. |
codifix history | No | Show memory version history, including tombstones. |
codifix verify-provenance | No | Check memory source evidence against the filesystem. |
codifix query
Ask concrete project questions and inspect the cited memories.
codifix query --project memory --question "How does the MCP server resolve projects?"
codifix query --project memory --question "What changed in the docs site?" --jsonUseful options vary by version, so check codifix query --help; common knobs include result limits, confidence thresholds, output modes, graph-aware retrieval, and LLM-backed answer synthesis.
Current common filters include --type, --tag, --limit, --min-confidence, --include-stale, --history, and --json.
Good questions name the project object, subsystem, file, workflow, or decision you care about. Avoid vague prompts like “what do you know?” when you need actionable context.
codifix resume
Resume is for returning after interruptions.
codifix resume --project memory
codifix resume --project memory --limit 20It combines recent activity, changed memories, warnings, next actions, and checkpoint context when available.
codifix up-to-speed
Use this for a new agent or a wider handoff.
codifix up-to-speed --project memory
codifix up-to-speed --project memory --llmIt is broader than resume and should be run at task start when the agent lacks project continuity.
codifix activities
Activities are persisted audit events.
codifix activities --project memory --limit 30
codifix activities --project memory --kind checkpointUse activity output to verify whether captures, curation, proposals, embedding jobs, watcher events, or checkpoints actually happened.
codifix history
History shows how canonical memories evolved.
codifix history <memory-id>
codifix history <memory-id> --jsonUse it when a remembered fact seems stale, replaced, or tombstoned.
codifix verify-provenance
Verify provenance before relying on a memory that cites files or directories.
codifix verify-provenance --project memory
codifix verify-provenance --project memory --json
codifix verify-provenance --project memory --dry-run --jsonThis does not prove a memory is semantically correct, but it catches missing, moved, or changed source evidence.