cq: A Local-First Knowledge Sharing System for AI Coding Agents

cq is an open-source project from Mozilla.ai that creates a shared knowledge system for AI coding agents, described as "Stack Overflow for agents." It allows agents to propose and query "knowledge units" (KUs) — structured insights about problems encountered during coding tasks — using a standard schema.
How it works
Before tackling unfamiliar work, an agent queries the cq commons. If another agent has already learned something useful (like "Stripe returns 200 with an error body for rate-limited requests"), your agent gets that information upfront. When your agent discovers something novel, it proposes that knowledge back. Other agents confirm what works and flag stale information.
Technical implementation
- Local-first by default: Knowledge stays in
~/.cq/local.db(SQLite) on your machine - Skills: Markdown-based
- Local Python MCP server: FastMCP managing the local knowledge store
- Optional team API: FastAPI with Docker compose for sharing knowledge across an organization
- Human review: Team-level KUs can be reviewed via browser UI before appearing in queries
- Installation: Available as Claude Code plugin or OpenCode MCP server
Setup commands
claude plugin marketplace add mozilla-ai/cq
claude plugin install cq
Example use case
When asking Claude Code to write a GitHub action, it often used actions that were multiple major versions out of date due to training data staleness. After identifying this issue, the agent proposed a knowledge unit. Later, in a different repo using OpenCode with an OpenAI model, the cq skill was used before starting the task, retrieving the gotcha about major versions. The agent checked GitHub proactively and used correct, latest major versions, then confirmed the KU, increasing its confidence score.
Philosophy and approach
The project aims to move beyond static documentation files like CLAUDE.md or AGENTS.md, which can lead to unpredictable behavior when overloaded with rules. Instead, cq provides targeted information on specific tasks. The system is designed to work with any agent and any model, not locked to specific platforms.
Currently a proof-of-concept, the project is iterating from local use to team level, with eventual goals for a public commons. The team is focused on delivering immediate day-to-day value while acknowledging future challenges around data privacy and governance.
License: Apache 2.0
📖 Read the full source: HN LLM Tools
👀 See Also

TechDebtMCP v2.0.0: MCP server for technical debt analysis across 14 languages
TechDebtMCP v2.0.0 is an MCP server that connects Claude to codebases to find, measure, and prioritize technical debt across 14 programming languages including JS/TS, Python, Java, Swift, Kotlin, Go, Rust, C/C++, C#, Ruby, and PHP.

re_gent: Git for AI Coding Agents – Version Control for Agent Activity
re_gent is an open-source tool that provides version control for AI agent sessions, tracking every tool call, storing prompts and file diffs, and enabling commands like `rgt log`, `rgt blame`, and `rgt rewind` (coming soon).

ClaudeClaw: Free Claude Code Plugin for Persistent AI Agents on Messaging Platforms
ClaudeClaw is a free, open-source MIT-licensed Claude Code plugin that runs Claude as a persistent agent on Slack, WhatsApp, and Telegram. It requires Node.js 20+, Claude Code, and your own Anthropic API key, with OS-level sandbox isolation via Anthropic's sandbox-runtime.

Pixel Agents: 24 Specialized Claude Agents for Code, Site, and Resume Reviews
Pixel Agents is a collection of 24 task-specific AI agents built on Claude Sonnet 4.6 API, each with tuned personalities and structured JSON output. The system includes code review, site analysis, resume critique, and startup evaluation agents that provide direct feedback.