ai-memory vs cq

Shared coding-agent knowledge compared

ai-memory and cq help coding agents carry useful context across sessions, machines, and teams. ai-memory captures activity as a git-backed Markdown wiki with handoffs, while cq manages structured, reusable lessons that agents can query and submit for review.

ai-memorycq
LanguageRustGo
LicenseMITApache-2.0
Stars9.1k1.3k
Forks63269
Last analyzedOct 10, 2026Oct 3, 2026

Key differences

  • ai-memory records prompts, tool calls, and session boundaries; cq focuses on reusable lessons that agents query, propose, confirm, or flag.
  • ai-memory stores its source of truth in Markdown files; cq supports a local SQLite store and remote services.
  • ai-memory is written in Rust under the MIT license; cq is written in Go under the Apache-2.0 license.
  • ai-memory's basic capture, search, and handoffs work without LLM API calls; cq guides agents to search before acting and can optionally reflect on sessions to identify lessons.
  • ai-memory is self-hosted; cq offers local storage, Mozilla.ai's hosted service, and self-hosting.
  • cq is a 0.x project and warns that breaking changes are expected; ai-memory's listed project facts do not include a comparable maturity warning.

Choose ai-memory if you…

  • want project context stored as inspectable, editable, git-backed Markdown.
  • need activity capture and handoffs between agents without requiring LLM API calls for the basic workflow.
  • need shared project memory across machines or teammates, with personal handoffs and user attribution.
Read the ai-memory analysis →

Choose cq if you…

  • want agents to query and contribute structured, reusable lessons.
  • need a choice of local SQLite storage, a hosted service, or a self-hosted server.
  • want integrations and published tools including a CLI, Go and Python SDKs, and a schema.
Read the cq analysis →

Compare the numbers side by side, or add more projects

This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.