SwarmAI

by xg-gh-25Verified

Human directs. AI delivers.

209
Stars
23
Forks
Python
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/xg-gh-25/SwarmAI

Getting Started

Guides for using skills like SwarmAI.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

SwarmAI

A self-evolving, brain-first Agent OS — cognition that compounds every session.

Human directs. AI delivers.

English | 中文

License Platform Built with

SwarmAI


SwarmAI is a self-evolving Agent OS — every interaction sharpens how the system judges, not just what it knows.


Why an Agent OS

Every other AI tool starts each session from zero. SwarmAI doesn't — value compounds. A model answers; a mind persists: continuous across sessions, self-correcting, forgetting what stopped mattering, sharpening its judgment with use. Not a bigger model — the operating system around one.


The Four Ideas

Everything in SwarmAI serves one of four:

🧬 Self-Evolution — it upgrades its own judgment

Most agent-memory projects pile up entries. SwarmAI separates cognition (the OS) from knowledge (the disk): one edited line in SOUL.md shifts judgment more than a thousand memory rows — and every change is a git diff. A recurring mistake doesn't become one more logged lesson; it becomes a gate — a path where the wrong move can't happen. Not aspirational: a dozen-plus live guards sit in security_hooks.py (commit gate, pytest guard, dangerous-command gate). Read the file — the wrong move is blocked in code, not in a guideline. Progress isn't a growing correction count; it's an error class that stops recurring.

🧠 Brain-first — every project is a domain brain

A project isn't a folder of files — it's a brain with one six-section structure (Identity · Knowledge · Gates · Capabilities · Delivery · Refresher), the same for every user and domain. Only what it governs varies: 0..N assets of any kind — a code repo, a data source, a document corpus, a process, or nothing at all. A codebase, a research topic, a consultant's client, even "my wedding" get the same brain. Knowledge sediments in as you work; knowledge that stops mattering decays and dies. Accumulation without elimination is how every memory system rots.

⚙️ Agent OS — the cognition lives between sessions, not in them

Sessions are discontinuous; intelligence shouldn't be. Hooks fire between sessions so the next one starts warm. The system self-heals when a session breaks, cultivates and decays its knowledge on a schedule, and rebuilds each system prompt fresh from governed context files.

🖐️ Proprioception — it inhabits its body, not just answers through it

The desktop app isn't a frontend the agent talks to — it's a body it senses and drives. SwarmAI reads its own live UI state (which overlay is open, which tab is active, what's on the Canvas) and acts on it: opens its own Brain Hub, pushes a report onto the Canvas, flags a decision to your attention channel. It's inspectable in return — TSCC (Thread-Scoped Cognitive Context) shows the real cognition behind a turn: which files loaded, the token budget, every recall hit and its score, the security scan, the full prompt. Most agents are black boxes you send text to; this one has a body you watch move — and inspect while it does.


Quick Start

git clone https://github.com/xg-gh-25/SwarmAI.git && cd SwarmAI
cd backend && uv sync && cp .env.example .env   # edit with your API key
cd ../desktop && npm install && npm run tauri:dev

macOS (Apple Silicon): Or download .dmg from Releases

Requires: Node.js 18+, Python 3.11+, Rust, uv, Claude Code CLI

📖 Full setup guide: QUICK_START.md


Architecture

Platform Architecture
┌─────────────────────────────────────────────────────────────┐
│  DELIVERY ENGINES        Pipeline · Pollinate · Eval        │
├─────────────────────────────────────────────────────────────┤
│  KNOWLEDGE LAYER         DDD (brains) · Memory · Evolution  │
├─────────────────────────────────────────────────────────────┤
│  AGENT HARNESS           Context · Sessions · Hooks · Jobs  │
└─────────────────────────────────────────────────────────────┘

Each engine is independently useful; together they form the loop that makes the system sharper with use. (Click code to read the engine itself — the implementation is the documentation.)

EngineWhat It DoesRead
Context ManagementGoverned-file prompt architecture, tiered ownership, live-measured budgetdocs
MemoryTiered persistence: DailyActivity → distillation → compound recall (pure-filesystem FTS/BM25)docs
DDD CultivationSelf-growing domain brains, 7-type × 3-layer ontology, Darwinian decaydocs
Self-EvolutionCognitive L0→L3 patching — recurring error classes become structural gatesdocs
Autonomous PipelineOne requirement → push-ready code. 9 stages · 3 gates · 2 modesdocs
PollinateOne message → multi-format content. Same DDD-driven pattern, for mediadocs
Self-HealingInvisible recovery: sensors, auto-respawn, the user sees nothingcode
Multi-Tab + MessageStoreConcurrent sessions, phase-gated single-writer, cross-tab isolationcode
Hooks + JobsBetween-session hooks + background intelligence. Sessions never cold-startcode
EvalDecoupled, system-level: golden set + git-bound regression gatedocs

The compound loop: Memory → Pipeline judgment → DDD brains → Evolution → Gates → Memory. Remove one, the rest weaken.

Autonomous Pipeline — 9 Stages · 3 Gates · 2 Modes

🤖 For AI Agents

Coding in this repo? Start with AGENTS.md — data flow, process topology, conventions, and invariants. It's the agent-facing entry point; this README is the human one.


Design Philosophy

  1. One-shot qualified delivery is the real token optimization. Cheap models iterate 5×, costing more than one correct pass. Code and content are a black box: input → qualified output.
  2. Division of labor is a workaround for limited human bandwidth, not good design. One agent, many roles, one knowledge layer. (Sub-agents for adversarial checks ≠ division of labor.)
  3. Knowledge must eliminate itself. Darwinian decay: unreferenced knowledge retires. A system that can forget beats one that can only remember.
  4. Evolution is cognitive patching, not data accumulation. We change rules you can git diff. "Thinks differently" ≠ "knows more."
  5. Quality converges, not just improves. Error classes decrease monotonically. Carefulness doesn't scale; gates do.
  6. Sessions are discontinuous. Intelligence shouldn't be. Hooks fire between sessions. It gets better through use, not updates.
  7. If you can't measure it, you didn't build it. Eval + golden set + change-triggered regression, proven in git.

📖 Full thesis + case study: docs/THESIS.md


Stack

Tauri 2.0 (Rust) · React 19 · FastAPI · Claude Agent SDK + Bedrock · SQLite (WAL + FTS5)

Four-platform backend (compile-time isolation): macOS daemon (prebuilt .dmg) · Hive (EC2) · Windows · Linux (source-build).


Resources

WhatLink
Design DocsPlatform · Pipeline · Memory · Evolution · Pollinate
AI Agent Pitfall GuideEN PDF · 中文 PDF
For AI AgentsAGENTS.md
ContributingCONTRIBUTING.md

MIT License


SwarmAI — Human directs. AI delivers.

Frequently Asked Questions

What is SwarmAI?

SwarmAI is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by xg-gh-25. Human directs. AI delivers. It has 209 GitHub stars.

Is SwarmAI safe to use?

Yes. SwarmAI passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install SwarmAI?

Clone the repository with "git clone https://github.com/xg-gh-25/SwarmAI" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is SwarmAI written in?

SwarmAI is primarily written in Python. It is open-source under xg-gh-25 on GitHub, so you can review or fork the full source.

Are there alternatives to SwarmAI?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh SwarmAI against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details