Skip to main content

Shared knowledge base for the Swarm suite (ReviewSwarm, FixSwarm, DocSwarm, ArchSwarm)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swarm_kb-0.2.2.tar.gz (31.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swarm_kb-0.2.2-py3-none-any.whl (39.2 kB view details)

Uploaded Python 3

File details

Details for the file swarm_kb-0.2.2.tar.gz.

File metadata

  • Download URL: swarm_kb-0.2.2.tar.gz
  • Upload date:
  • Size: 31.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for swarm_kb-0.2.2.tar.gz
Algorithm Hash digest
SHA256 3b906460e53d22f542487301f69aae5ca66ad235fa7132d8b44508ef16dfd204
MD5 77ab610f598caa72dd18a6b94b137e6b
BLAKE2b-256 e5a61911323f73b72e681904b0e4bea56130a6facf84525c3afc7dcdc35e75c8

See more details on using hashes here.

File details

Details for the file swarm_kb-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: swarm_kb-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 39.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for swarm_kb-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 08e64c1d5a3007263722abe9bb7f83ab73fceea09ab0366aba0ef6079ea95b86
MD5 7a3514a12cb5d983b7055c6188f22b8c
BLAKE2b-256 2acefd6948832ad85f0231a53bdc1aed3704b2a39d872e2d5a44f46e06723017

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page