Cersei — AI skill for Claude Code
The Rust SDK for building coding agents.
How to install Cersei
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open pacifio/cersei and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cersei does
The Rust SDK for building coding agents. Tool execution, LLM streaming, graph memory, sub-agent orchestration, MCP — as composable library functions.
Alternatives in AI
- Open Multi Agent — TypeScript multi-agent orchestration engine — one runTeam() call from goal to result 5.8k ★
- Osaurus — Own your AI. The native macOS harness for AI agents -- any model, persistent memory, autonomous execution, cry 5.1k ★
- Golutra — Multi-agent AI orchestration platform for automation, workflows, and developer tools 3.8k ★
README
Cersei
The complete Rust SDK for building coding agents.
Cersei gives you every building block of a production coding agent — tool execution, LLM streaming, sub-agent orchestration, persistent memory, skills, MCP integration — as composable library functions. Build a Claude Code replacement, embed an agent in your app, or create something entirely new.
use cersei::prelude::*;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let output = Agent::builder()
.provider(Anthropic::from_env()?)
.tools(cersei::tools::coding())
.permission_policy(AllowAll)
.run_with("Fix the failing tests in src/")
.await?;
println!("{}", output.text());
Ok(())
}
**MIT License** | Built by [Adib Mohsin](https://github.com/pacifio) | [Docs](https://cersei.pacifio.dev/docs) | [GitHub](https://github.com/pacifio/cersei)
Why Cersei
| Claude Code | OpenCode | Cersei SDK | Abstract CLI | |
|---|---|---|---|---|
| Form factor | CLI app | CLI app | Library | CLI app |
| Embeddable | No | No | Yes | No (uses SDK) |
| Provider | Anthropic only | Multi-provider | Multi-provider | Multi-provider |
| Language | TypeScript | TypeScript | Rust | Rust |
| Custom tools | Plugins | Plugins | impl Tool / #[derive(Tool)] |
Via SDK |
| Startup | ~269ms | ~300ms | N/A (library) | ~34ms |
| Binary / RSS | 174MB / 330MB | — | N/A | 5.8MB / 4.9MB |
| Memory | File-based | SQLite | File + Graph | File + Graph |
| Skills | .claude/commands/ |
.claude/skills/ |
Both formats | Both formats |
Cersei is built from the architecture of Claude Code (reverse-engineered Rust port) and designed so that anyone can build a complete, drop-in replacement for Claude Code, OpenCode, or any coding agent — as a library call.
Abstract — The CLI
**Abstract** is a complete CLI coding agent built on Cersei. One binary, zero runtime dependencies, graph memory by default.
`
Related Skills
Mdscript
A template language for composable LLM prompt engineering. Write prompts with variables, loops, conditionals,
LLM Kernel
Rust foundation library for AI-native apps — 16-provider catalog, async LLM client, MCP server, knowledge grap
Kerux
A high-performance Rust implementation orchestration loop for LLM-driven tool execution.
Longe
A self-improving harness for any LLM, in one Rust binary. Persistent Lua REPL as the single tool, three-level
Tinyagent TS
TinyAgent brings the core ideas of the original Python library into a lean, zero-dependency TypeScript package
Vibeharness
Hackable, interactive LLM agent harness for the terminal — streaming REPL, tool-using agent loop, persistent P
Related Agents
Python LLM Expert
Senior LLM/bot engineer. Use proactively for LangGraph assistants, prompt orchestration, FastAPI routes, Redis
AI Platform Architect
Use this agent when working on AI/ML agent platform architecture, designing agent systems, implementing multi-
Unit Test
Write Vitest unit tests targeting 80% branch coverage for pure functions, server utilities, and composable log