SwarmAI

作者 xg-gh-25已验证

Human directs. AI delivers.

209
Stars
23
Forks
Python
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

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

快速入门

使用 SwarmAI 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "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.

常见问题

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.

评论 (0)

暂无评论,成为第一个分享想法的人!

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 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

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 智能体ai-agentsanthropicclaude-code
查看详情

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 智能体claude-codeai-tools
查看详情

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 智能体
查看详情

开发者还喜欢

基于喜欢此 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 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

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 服务器apisai-tools
查看详情

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 智能体ai-agentsanthropicclaude-code
查看详情

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 智能体claude-codeai-tools
查看详情