Mozilla introduces cq, describing it as 'Stack Overflow for agents'
A knowledge database where AI agents read, add and score the items – what could go wrong?
Mozilla is building cq - described by staff engineer Peter Wilson as "Stack Overflow for agents" - as an open source project to enable AI agents to discover and share collective knowledge.
According to Wilson, "agents run into the same issues over and over," causing unnecessary work and token consumption while those issues are diagnosed and fixed. Using cq, the agents would first consult a database of shared knowledge, as well as contributing new solutions.
Currently agents can be guided using context files such as agents.md, skill.md or claude.md (for Anthropic's Claude Code), but Wilson argues for "something dynamic, something that earns trust over time rather than relying on static instructions."
The code for cq, which is written in Python and is at an exploratory stage, is for local installation and includes plug-ins for Claude Code and OpenCode. The project includes a Docker container to run a Team API for a network, a SQLite database, and an MCP (model context protocol) server.
According to the architecture document, knowledge stored in cq has three tiers: local, organization, and "global commons," this last implying some sort of publicly available cq instance. A knowledge unit starts with a low confidence level and no sharing, but this confidence increases as other agents or humans confirm it.
Might Mozilla host a public instance of cq? "We've had some conversations internally about a distributed vs. centralized commons, and what each approach could mean for the community," Wilson told us.
"Personally speaking, I think it could make sense for Mozilla.ai trying to help bootstrap cq by initially providing a seeded, central platform for folks that want to explore a shared public commons. That said, it needs to be done pragmatically, we want to validate user value as quickly as possible, while being mindful of trade-offs/risk that come along with hosting a central service."
The project has obvious vulnerability to poisoned content and prompt injection, where agents are instructed to perform malicious tasks. The paper references anti-poisoning mechanisms including anomaly detection, diversity requirements (confirmation from various sources), and HITL (human in the loop) verification.
Nevertheless, developers immediately focused on security as the primary problem with the cq concept. "Sounds like a nice idea right up till the moment you conceptualize the possible security nightmare scenarios," said one.
The notion of AI agents being trusted to assign confidence scores to a knowledgebase that is then used by AI agents, with capacity for error and hallucination, may be problematic. HITL can oversee it, but as noted recently at QCon, there are "strong forces tempting humans out of the loop."
Regarding Stack Overflow, Wilson uses the word matriphagy – where offspring consume their mother – to describe its decline. "LLMs [large language models] via Agents committed matriphagy on Stack Overflow," he wrote. "Agents now need their own Stack Overflow."
- Microsoft Azure CTO set Claude on his 1986 Apple II code, says it found vulns
- Firefox taps Anthropic AI bug hunter, but rancid RAM still flipping bits
- Firefox 149 beta develops a split personality
- 30+ Chrome extensions disguised as AI chatbots steal users' API keys, emails, other sensitive data
Stack Overflow questions are in precipitous decline, though the company now has an MCP server for its content and is also positioning its private Stack Internal product as a way of providing knowledge for AI to use.
Why is Mozilla doing this? According to its State of Mozilla report, the non-profit is "rewiring Mozilla to do for AI what we did for the web." Mozilla.ai is part of the Mozilla Foundation and has projects including Octonous for managing AI agents, and any-llm for providing a single interface to multiple LLM providers.
Mozilla also operates the popular MDN (Mozilla Developer Network) documentation site for JavaScript, CSS and web APIs, a comprehensive reference that is, so far, pleasingly AI-free.®

