craic
by mozilla-aiv0.1.0
Collective Reciprocal Agent Intelligence Commons — shared agent learning
1 skill GitHub
Commands
craic-reflectMine the current session for knowledge worth sharing — identify learnings, present them for approval, and propose each approved candidate to the CRAIC knowledge store.
craic-statusDisplay local CRAIC knowledge store statistics — unit count, domains, recent additions, and confidence distribution.
Documentation
# CRAIC
**Collective Reciprocal Agent Intelligence Commons**
An open standard for shared agent learning. Agents persist, share, and query collective knowledge so they stop rediscovering the same failures independently.
## Architecture
CRAIC runs across three runtime boundaries: the agent process (plugin configuration), a local MCP server (knowledge logic and private store), and a Docker container (team-shared API).
```mermaid
flowchart TB
subgraph cc["Claude Code Process"]
direction TB
skill["SKILL.md\nBehavioural instructions"]
hook["hooks.json\nPost-error auto-query"]
cmd_status["/craic:status\nStore statistics"]
cmd_reflect["/craic:reflect\nSession mining"]
end
subgraph mcp["Local MCP Server Process"]
direction TB
server["CRAIC MCP Server\nPython / FastMCP"]
local_db[("Local Store\n~/.craic/local.db\nSQLite")]
server --> local_db
end
subgraph docker["Docker Container"]
direction TB
api["Team API\nPython / FastAPI\nlocalhost:8742"]
team_db[("Team Store\n/data/team.db\nSQLite")]
api --> team_db
end
cc <-->|"stdio / MCP protocol"| mcp
mcp <-->|"HTTP / REST"| docker
classDef ccStyle fill:#e8f0fe,stroke:#4285f4,color:#1a1a1a
classDef mcpStyle fill:#fef7e0,stroke:#f9ab00,color:#1a1a1a
classDef dockerStyle fill:#e6f4ea,stroke:#34a853,color:#1a1a1a
classDef dbStyle fill:#fce8e6,stroke:#ea4335,color:#1a1a1a
class skill,hook,cmd_status,cmd_reflect ccStyle
class server mcpStyle
class api dockerStyle
class local_db,team_db dbStyle
```
See [`docs/architecture.md`](docs/architecture.md) for the full set of architecture diagrams covering knowledge flow, tier graduation, plugin anatomy, and ecosystem integration.
## Status
Exploratory. See [`docs/`](docs/) for the proposal and PoC design.
## License
Apache 2.0 — see [LICENSE](LICENSE).