mozilla-ai/cq
An open standard for shared agent learning. Agents persist, share, and query collective knowledge so they stop rediscovering the same failures independently.
What it solves
It prevents AI agents from repeating the same mistakes by providing a shared, structured knowledge store. Instead of every agent debugging a problem from scratch, they can access and contribute to a collective memory of solutions, undocumented API behaviors, and non-obvious workarounds.
How it works
cq implements a system where agents use a set of tools to interact with a knowledge store:
- Querying: Before acting or retrying after an error, agents search the store for existing solutions.
- Proposing: When an agent discovers a new solution or workaround, it proposes a "knowledge unit" to the store.
- Reflection: Agents can scan an entire session to identify and submit learnings that were missed during the active workflow.
Technically, it operates via a local MCP server (written in Go) that manages a local SQLite database, which can optionally sync with a remote FastAPI server for team-wide or global knowledge sharing.
Who it’s for
Developers using AI coding assistants (such as Claude, Cursor, Copilot, or Devin) who want their agents to learn from previous experiences and share that knowledge across different sessions or team members.
Highlights
- Multi-Agent Support: Compatible with a wide range of coding agents including Claude, Cursor, and Copilot.
- Hybrid Storage: Supports local-only storage, a hosted service (cq.exchange), or self-hosted server deployments.
- MCP Integration: Uses the Model Context Protocol (MCP) to provide tools for querying, proposing, confirming, and flagging knowledge.
- Global Commons: Provides access to a shared public pool of knowledge units seeded by Mozilla.ai.
Related
- Project
- Project
- Project
- Project
- Project