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

✍️ OpenClawRadar📅 Published: March 29, 2026🔗 Source
cq: A Local-First Knowledge Sharing System for AI Coding Agents
Ad

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
Ad

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

Ad

👀 See Also

Claude Code user builds nvm plugin to capture problem-solving context
Tools

Claude Code user builds nvm plugin to capture problem-solving context

A developer created a Claude plugin called nvm (non-volatile memory) that converts Claude session history into markdown cards documenting problem-solving decisions and reusable insights. The tool addresses the issue of losing track of how problems were solved when using AI coding assistants.

OpenClawRadar
23 Agent Skills for iOS 26 Development with SwiftUI and Swift 6.2
Tools

23 Agent Skills for iOS 26 Development with SwiftUI and Swift 6.2

A developer created 23 agent skills targeting iOS 26+ and Swift 6.2 to address hallucination issues with deprecated APIs and outdated patterns. The skills cover SwiftUI, SwiftData, StoreKit 2, push notifications, networking, concurrency, accessibility, localization, WidgetKit, MapKit, and more.

OpenClawRadar
LiteParse: Fast Open-Source Document Parser for AI Agents
Tools

LiteParse: Fast Open-Source Document Parser for AI Agents

LiteParse is an open-source document parser that provides spatial text parsing with bounding boxes, runs locally without GPUs, and supports PDFs, Office documents, and images. It can be installed as a skill for 40+ AI agents including Claude Code, Cursor, and OpenClaw.

OpenClawRadar
Clarc v1.0: Workflow OS for Claude Code with 63 Agents and 249 Skills
Tools

Clarc v1.0: Workflow OS for Claude Code with 63 Agents and 249 Skills

Clarc is a plugin layer for Claude Code that provides 63 specialized subagents, 249 domain skills, and 178 slash commands for development workflows. Installation is via npx with support for multiple editors including Cursor and OpenCode.

OpenClawRadar