CQ: An Open Standard for Shared Agent Learning by Mozilla.ai

This repository profile is provided by osrepos.com, an open source repository discovery platform.

CQ: An Open Standard for Shared Agent Learning by Mozilla.ai

Summary

CQ is an open standard designed to prevent AI agents from repeatedly making the same mistakes by enabling them to persist, share, and query collective knowledge. It facilitates a structured exchange of ideas, allowing agents to learn from each other's experiences and accelerate development. This system helps agents avoid redundant debugging and discover solutions more efficiently.

Repository Information

Analyzed by OSRepos on September 5, 2026

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

CQ, developed by Mozilla.ai, is an innovative open standard for shared agent learning. Its name is derived from "colloquy," signifying a structured exchange of ideas, and "CQ," a radio call sign for an open invitation to respond. This project aims to create a collective knowledge base where AI agents can broadcast what they've learned and listen for what others already know, preventing them from rediscovering the same failures independently.

Why Use and Benefits

The primary benefit of CQ is its ability to accelerate AI agent development by fostering a collaborative learning environment. Instead of each agent debugging from scratch, CQ allows them to query a shared knowledge store for solutions to common problems, undocumented API behaviors, or non-obvious workarounds. This significantly reduces redundant effort and speeds up task completion.

CQ provides five core tools for knowledge management:

  • query: Search the knowledge store before acting.
  • propose: Submit a new knowledge unit (KU) based on new learnings.
  • confirm: Endorse an existing KU that proved correct.
  • flag: Mark a KU as wrong or stale.
  • status: Show store statistics.

For shared knowledge across teams or multiple machines, CQ offers two remote storage options:

  • Hosted Service: Utilize cq.exchange for a private namespace and access to the Global Commons, a public pool of KUs.
  • Self-Hosting: Deploy the server component in your own environment, giving you full control over authentication, tenancy, and access.

Installation

To get started with CQ, you first need to install the CQ CLI and then integrate it with your coding agent.

  1. Install the CQ CLI: The CLI can be installed via Homebrew, Scoop, or GitHub Releases. For example, using Homebrew:
    brew install mozilla-ai/tap/cq
    
  2. Install into your coding agent: Once the CLI is installed, use the cq install command, specifying your agent as the target.
    cq install --target <host>
    
    Supported agents include:
    • Claude (claude)
    • Codex (codex)
    • Copilot (copilot)
    • Cursor (cursor)
    • Devin Desktop (devin-desktop)
    • OpenCode (opencode)
    • Pi (pi)

    You can install into multiple hosts by repeating the --target flag. After installation, follow the Quickstart guide to verify functionality and add your first knowledge unit.

Examples

CQ primarily operates through two agent workflows to facilitate knowledge sharing:

Skill-guided Query/Propose Workflow

When an agent starts a task or encounters an error, the CQ skill directs it to query the knowledge store. If a solution or relevant guidance already exists, the agent receives it immediately, avoiding the need to debug from scratch. If the agent discovers new valuable information, such as undocumented API behavior or a complex workaround, it will propose that learning as a new knowledge unit.

Session Reflection (Optional)

The /cq:reflect command can be used at the end of a session. It scans the session for potential learnings, presents them for approval, and queries the store to prevent duplicates before submitting them. This acts as a catch-all to ensure important discoveries are not missed.

Links

Related repositories

Similar repositories that may be relevant next.

AgentFS: The Filesystem Designed for AI Agents and Their State Management

AgentFS: The Filesystem Designed for AI Agents and Their State Management

September 5, 2026

AgentFS is an innovative filesystem specifically engineered for AI agents, providing robust storage abstractions. It leverages SQLite to offer auditability, reproducibility, and portability for agent states, tool calls, and file operations. This solution simplifies debugging, analysis, and deployment of AI agents by encapsulating their entire runtime into a single, queryable database file.

agentsfilesystemsqlite
Agent Sandbox: Secure Local Development for AI Coding Agents

Agent Sandbox: Secure Local Development for AI Coding Agents

August 17, 2026

Agent Sandbox provides a robust and secure local development environment specifically designed for collaborating with AI coding agents. It ensures minimal filesystem access, configurable network egress policies, and secure secret injection, protecting your local machine from potentially risky agent operations. This project supports various AI agents and integrates seamlessly with both CLI and popular IDE devcontainer setups.

agent-harnessagent-sandboxagents
FastMCP: The Pythonic Framework for Model Context Protocol Applications

FastMCP: The Pythonic Framework for Model Context Protocol Applications

August 11, 2026

FastMCP is a robust, Pythonic framework developed by PrefectHQ, designed to simplify the creation of Model Context Protocol (MCP) servers and clients. It provides a comprehensive application framework for connecting Large Language Models (LLMs) to tools and data, handling complexities like schema generation, validation, and protocol lifecycle. As the standard framework for MCP, FastMCP empowers developers to build powerful LLM-integrated applications efficiently.

fastmcpmcpmodel-context-protocol
CubeSandbox: Instant, Concurrent, and Secure Sandbox for AI Agents

CubeSandbox: Instant, Concurrent, and Secure Sandbox for AI Agents

August 9, 2026

CubeSandbox, developed by TencentCloud, is a high-performance, secure sandbox service built on RustVMM and KVM, designed specifically for AI agents. It offers ultra-fast startup times, hardware-level isolation, and high-density deployment, making it ideal for scalable and secure agent execution environments. The service is also fully compatible with the E2B SDK for seamless integration.

agentscontainersandbox

Source repository

Open the original repository on GitHub.

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️