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

Open Source Claude Code Tools for Automated Bug Bounty Hunting
Three open source repositories automate the bug bounty pipeline using Claude Code. The tools handle recon, scanning for web2/web3 vulnerabilities, and generate submission-ready reports.

Aired: A Claude Code Skill for Instant HTML Publishing to Live URLs
Aired is an open-source tool that publishes HTML to a live URL in 2 seconds via Claude Code skills or MCP servers. It requires no signup, deployment configuration, or installation for web-based AI tools, and works with Claude Code, Cursor, VS Code, Codex, and Windsurf.

Claude Desktop + Blender via MCP: Real-Time 3D Workflow Closes the Feedback Loop
An open-source Blender add-on runs an MCP server inside Blender, letting Claude Desktop inspect scenes, create objects, render images, and read results—closing the script-paste feedback loop.

Knowledge Raven: A Searchable Knowledge Base Plugin for Claude
Knowledge Raven is a tool that lets Claude search your documents from sources like Confluence, Notion, Google Drive, Dropbox, and GitHub via a Claude Desktop plugin or MCP server, providing semantic search, keyword search, and full document retrieval.