Live site: https://mcamner.github.io/mqobsidian/ — 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.md, but only when itstaskandrepomatch the current work; otherwise skip it or regenerate itmemory/learn/agent/mqobsidian.mdsystems/mqobsidian/hot.mdsystems/mqobsidian/index.md- relevant context cards or docs only when the smaller surfaces are 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: more than 6,000 lines
reduction: more than 96%
See examples/sanitized-context-pack.md for a public-safe generated pack with explicit inclusions and exclusions.
Run the context-effect measurement:
python3 scripts/measure-context-effect.pyRepresentative output (the broad baseline grows with the public docs):
context_lines=222
broad_baseline_lines=6200+
reduction_percent=96.x
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 and docs/ROUTING_OUTCOMES.md — truth-boundary and verified routing storage
- 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/check-context-links.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.
See docs/roadmap-token-reduction.md for the implemented phases, current contracts, and remaining context-quality work.
Changes should preserve the durable-memory/runtime boundary and remain public-safe. Before opening a pull request, run the commands in Validation. For schema or template changes, include a sanitized example and update the matching contract documentation.
Apache-2.0

