Durable memory layer for the MQ stack.
mqobsidian stores reviewed, reusable, agent-readable knowledge. It is optimized
to reduce token usage through better read order, smaller context surfaces, and
clearer truth boundaries.
It is not:
- the execution runtime
- the orchestration engine
- the source of live code truth
- the place to dump raw logs by default
Use mqobsidian to:
- store durable memory from verified work
- keep compact context surfaces for agents
- reduce repeated broad scans of repo docs
- separate memory from live runtime truth
- define schemas, templates, and context rules for the stack
Use source repos and tools for current code behavior, current tests, current CLI behavior, live review execution, and contracts in motion.
When the task touches MQ memory, context, or prior stack work, read the smallest useful surface first and stop once the task is grounded:
.mq/context/task-pack.mdmemory/learn/agent/mqobsidian.mdsystems/mqobsidian/hot.mdsystems/mqobsidian/index.md- relevant context cards or docs only when the pack is insufficient
The full reading and truth-boundary rules live in docs/CONTEXT_CONTRACT.md.
mqobsidian stores durable memory. It does not replace live truth from
mq-agent, mq-mcp, mq-hal, repo-signal, mq-ums, or mq-image-analyze.
If the task depends on current runtime state, file behavior, tests, or review
execution, verify in the source repo or tool.
python3 scripts/generate-context-pack.py \
--task "fix mq-mcp brain writer paths" \
--repo mq-mcp \
--target codex \
--out .mq/context/task-pack.md
python3 scripts/check-token-budget.py
python3 scripts/measure-context-effect.py
python3 scripts/generate-agents-md.py --all --output-dir examples/generated-agent-entrypoints
python3 scripts/generate-claude-md.py --all --output-dir examples/generated-agent-entrypoints
python3 scripts/generate-repo-context-export.py --all --cleanThe token-reduction path is:
task -> memory query -> context-pack.v1 -> Codex / Claude Code
Current measured effect:
context pack + cards: 222 lines
broad first-read baseline: 4797 lines
reduction: 95.4%
Safe to publish: architecture notes, ADRs and decisions, schemas and templates, sanitized reviews, examples, and truth exports.
Do not publish: secrets, tokens, or API keys; customer names or internal hostnames; IP addresses or raw enterprise logs; machine-specific private paths; unsanitized review output.
- docs/CONTEXT_CONTRACT.md — how agents should read and use mqobsidian
- docs/TOKEN_BUDGET.md — size limits for agent-readable context surfaces
- docs/CONTEXT_CARDS.md — small reusable context-card model
- docs/context-export-contract.md —
.mq/contextexport ownership and budget source - docs/memory-model.md — durable memory layers and ownership
- docs/truth-export.md — export and truth-boundary rules
- docs/roadmap-token-reduction.md — longer roadmap
- schemas/context-pack.v1.json — task-pack schema
- templates/context-pack.md — task-pack template
python3 scripts/validate-export.py
python3 scripts/check-sensitive-content.py
python3 scripts/check-token-budget.py
python3 scripts/measure-context-effect.pyThe value of mqobsidian is not more memory. The value is better selection.
Agents should read the smallest useful surface first.
Apache-2.0