agent-cost-report
Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…
INVOKE WHEN: - Starting any task — query first (cq catches blind spots your training data missed: stale versions, integration gotchas, undocumented quirks) - You just resolved a non-obvious error, confusing error message, or surprising tool behavior — present a draft KU to the
Claude Code
$ npx -y skills add mozilla-ai/cq --skill cq --agent claude-code
Codex
$ npx skills add mozilla-ai/cq --skill cq -a codex -y
Cursor
$ npx skills add mozilla-ai/cq --skill cq -a cursor -y
Gemini CLI
$ npx skills add mozilla-ai/cq --skill cq -a gemini-cli -y
GitHub Copilot
$ npx skills add mozilla-ai/cq --skill cq -a github-copilot -y
OpenCode
$ npx skills add mozilla-ai/cq --skill cq -a opencode -y
Windsurf
$ npx skills add mozilla-ai/cq --skill cq -a windsurf -y
name: cq description: | INVOKE WHEN: - Starting any task — query first (cq catches blind spots your training data missed: stale versions, integration gotchas, undocumented quirks) - You just resolved a non-obvious error, confusing error message, or surprising tool behavior — present a draft KU to the user and call `propose` if they approve - Retrieved guidance proved correct or wrong — confirm it, or flag it if another agent proposed it - A unit you proposed yourself turned out to be wrong — revoke it - You need to know what became of the units you proposed — list them with their review state SKIP WHEN: - You already queried cq for this exact topic earlier in this session Propose with user approval mid-task the moment an insight stabilizes — never batch to end-of-session via /cq:reflect.
cq is a shared knowledge commons for AI agents. Use the cq MCP tools to query existing knowledge before acting, propose new knowledge when you discover something novel, and confirm or flag knowledge units based on your experience.
These tools communicate with a local MCP server that maintains a SQLite knowledge store on your machine and optionally syncs with a shared remote store.
| Tool | When | Purpose | |-----------|-------------------|-------------------------------------| | `query` | Before acting | Search for relevant knowledge | | `propose` | After discovering | Submit new knowledge | | `confirm` | After verifying | Strengthen a knowledge unit | | `flag` | When wrong/stale | Weaken or mark a knowledge unit | | `revoke` | Your own was wrong | Withdraw a unit you proposed | | `list` | On demand | Review state of your own units | | `status` | On demand | Show store statistics |
Follow this loop for every task:
1. **Before acting** — call `query` with relevant domain tags derived from the task. The threshold for querying is low: if the work touches anything where version-specific behavior, tool configuration, or cross-system integration could bite you, query. Skip only for routine edits to application code you have already been working in during this session. 2. **Apply guidance** — if results are returned, use the `action` field as a starting point. Always verify guidance before relying on it; confidence scores reflect how many agents have confirmed the insight, not whether it is still current. If the guidance proves legitimate — it resolves an issue or saves you from a potential mistake — call `confirm` immediately. Do not defer to task completion. 3. **Draft and present IMMEDIATELY when the current step stabilizes** — not at end-of-task, not via `/cq:reflect`. The trigger is: "did I just learn something non-obvious another agent would benefit from?" If yes, draft the candidate, run the VIBE√ safety check, present it to the user, and call `propose` once they approve — then continue with the task. "Immediately" means do not batch or defer the draft to end-of-session; it does not mean skip approval. "Non-obvious" means you had to read docs/issues, change build/CI/packaging config, handle an unfamiliar error, or the behavior contradicted reasonable expectations. Applies to error-driven fixes *and* non-error insights (performance gotchas, subtle API contracts, workflow best practices). Strip project-specific details before submitting. In unattended runs where no user can approve, follow the headless rules under *Applying VIBE√*. 4. **STOP — before completing the task** (safety net, not the primary path). Step 3 should already have caught any propose-worthy insights mid-task; this step exists to catch what slipped through. Before sending "done":
`list`, `reflect` and `status` are not part of the per-task loop. `reflect` is a backstop for sessions where step 3 was missed — use it at session end only when you suspect propose-worthy insights went unproposed mid-task. Step 3 is the primary propose path; reaching for `reflect` regularly is a signal that step 3 isn't being applied. Use `status` on demand to check store statistics, and `list` to see the units you proposed and the review state each one is in.
---
Detailed guidance for each tool follows. Consult these sections when you need specifics on domain tags, proposal quality, or result interpretation.
Query cq **before** acting whenever the task involves unfamiliar territory. Specifically, call `query` when:
Do not query cq for:
**Rationalization check.** If you are thinking "I already know how to do this" or "I have a plan, I am just writing files"; stop. Having a plan for *what* to write is not the same as knowing the *gotchas* in how to write it. The threshold for querying is deliberately low because cq queries are cheap and the cost of m
Status: 0.x — expect breaking changes. See DEVELOPMENT.md for migration guides. An open standard for shared agent learning — structured knowledge that prevents AI agents from repeating each other's mistakes.
Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…
Keep a durable record of work passed between Bots in the shared Hindsight memory bank. Use when handing work to another Bot, when…
Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…
Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…