Shared knowledge base for the Swarm suite (ReviewSwarm, FixSwarm, DocSwarm, ArchSwarm, SpecSwarm)
Project description
swarm-kb
Shared knowledge base for the Swarm AI suite: ReviewSwarm, FixSwarm, DocSwarm, ArchSwarm.
Provides centralized session storage, cross-tool references, and code mapping so all swarm tools share a single knowledge layer at ~/.swarm-kb/.
Installation
pip install swarm-kb
MCP Server Setup
Claude Code
claude mcp add swarm-kb -- swarm-kb serve --transport stdio
Cursor / Windsurf / Cline (SSE)
swarm-kb serve --port 8788
Then add to your MCP config:
{
"mcpServers": {
"swarm-kb": {
"url": "http://localhost:8788/sse"
}
}
}
Manual .mcp.json (per-project)
{
"mcpServers": {
"swarm-kb": {
"type": "stdio",
"command": "swarm-kb",
"args": ["serve", "--transport", "stdio"]
}
}
}
CLI
swarm-kb status # Show KB health: session counts, storage root
swarm-kb serve # Start MCP server (SSE on port 8788)
swarm-kb serve --transport stdio # Start MCP server (stdio for Claude Code)
Storage Layout
~/.swarm-kb/
├── sessions/
│ ├── review/ # ReviewSwarm sessions
│ ├── doc/ # DocSwarm sessions
│ ├── arch/ # ArchSwarm sessions
│ └── fix/ # FixSwarm sessions
├── code-maps/ # AST-based code analysis per project
└── xrefs.jsonl # Cross-tool references
Migration
On first startup, swarm-kb automatically migrates data from legacy tool-specific directories:
~/.review-swarm/->~/.swarm-kb/sessions/review/~/.doc-swarm/->~/.swarm-kb/sessions/doc/.archswarm_sessions/->~/.swarm-kb/sessions/arch/
Suite Overview
| Tool | Package | Purpose |
|---|---|---|
| swarm-kb | swarm-kb |
Shared knowledge base & code maps |
| ReviewSwarm | review-swarm |
Collaborative AI code review |
| DocSwarm | doc-swarm-ai |
Documentation generation |
| FixSwarm | fix-swarm-ai |
Automated fix planning & application |
| ArchSwarm | arch-swarm-ai |
Architecture analysis & debate |
Install the full suite:
pip install swarm-kb review-swarm doc-swarm-ai fix-swarm-ai arch-swarm-ai
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swarm_kb-0.4.0.tar.gz.
File metadata
- Download URL: swarm_kb-0.4.0.tar.gz
- Upload date:
- Size: 141.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
649660d05df6d04435a5d57dd03f84f0d8a1750f82116ef22da231e18ae2c707
|
|
| MD5 |
13c4b22ed4758712712db623e1349058
|
|
| BLAKE2b-256 |
42702a9e5b9fa25692e939498055a1ad3e2b7b74b4d2d15b46ee4b8d820e6a9a
|
File details
Details for the file swarm_kb-0.4.0-py3-none-any.whl.
File metadata
- Download URL: swarm_kb-0.4.0-py3-none-any.whl
- Upload date:
- Size: 125.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fc19105b05389e033045adb2d991ce4c1f35625832da98ea956b7d3f0b64020
|
|
| MD5 |
9e7f93a3cbcacf9cd61096b8dff28abc
|
|
| BLAKE2b-256 |
057722e9dec153dd3a506bdbe6bb722a8b43ffa96bf35b5beb4102be0457df54
|