RustAgentAbstraction — AI skill for Claude Code
Drive the Claude Code, Codex and GitHub Copilot CLIs headlessly from Rust.
How to install RustAgentAbstraction
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open pathscale/RustAgentAbstraction and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What RustAgentAbstraction does
Drive the Claude Code, Codex and GitHub Copilot CLIs headlessly from Rust. One request type, one event stream, one session model.
Alternatives in AI
- Botmux — Bridge Feishu/Lark to AI coding CLIs — Claude Code, Codex, Gemini, OpenCode… every DM, group or topic spawns i 1.2k ★
- CliRelay — Self-hosted AI gateway for coding CLIs — one OpenAI/Claude/Gemini/Codex-compatible endpoint, with a multi-tena 1k ★
- Memory Forge Rs — Stop resetting satisfying AI chats — edit the memory instead 474 ★
README
agent-abstraction
[](https://crates.io/crates/agent-abstraction) [](https://docs.rs/agent-abstraction) [](LICENSE)
Drive **Claude Code**, **Codex** and **GitHub Copilot** headlessly from Rust: one request type, one event vocabulary, one session model across three CLIs that agree on none of those things.
[dependencies]
agent-abstraction = "0.6"
Every flag mapping and output shape here was verified against the installed CLIs rather than taken from documentation, which is the part that keeps being wrong.
It is a **library, not a CLI**. Your program links it and spawns the agent directly, so nothing marshals a request through a command line and back out of stdout twice.
use agent_abstraction::nagoya::reactor::Reactor;
use agent_abstraction::{Agent, Permission, Request, run};
// The I/O driver for the child's pipes. Yours to start and keep alive while
// runs are in flight; the crate never starts one of its own.
let reactor = Reactor::start()?;
let outcome = run(
&Request::new(Agent::Claude, "Reply with the single word: pong")
.model("haiku")
.permission(Permission::ReadOnly),
&reactor.handle(),
)
.await?;
println!("{}", outcome.text); // "pong"
println!("{:?}", outcome.usage.cost_usd);
Every entry point that spawns a CLI (`run`, `stream`, `interrupt`, `Probe::run`, `AuthStatus::check`, `Agent::account_usage`, `Agent::discover_models`) takes that `&reactor.handle()`. The examples below assume a `reactor` like this one is in scope.
What each agent can actually do
Verified live, against `claude 2.1.280`, `codex-cli 0.156.1`, `GitHub Copilot CLI 1.0.88` and `grok 1.0.40`, and not inferred from documentation.
| session id | fork | events | system prompt | resume flag | |
|---|---|---|---|---|---|
| Claude Code |
Related Skills
Opensider VSCode
OpenSider for VS Code: drive the ACP agent CLIs you already have (Claude Code, Codex, Cursor, OpenCode, GitHub
Kintsugi Usb
AI-assisted rescue boot USB — a Ventoy multi-boot drive on Ubuntu 24.04 with offline LLM inference (Ollama + l
Mabiao
Local-first desktop app for AI coding CLI usage: tokens, work timeline, event stream, and official quotas. Rea
Melee
Self-hosted broadcast studio for AI matches. One append-only event stream drives live view, replay, directing,
Localready
Is your local model server ready to drive Claude Code, Codex or OpenCode? Probes the exact request shape the a
Tunnelcode
Run an AI coding agent on your own machine and drive it from a browser. Pair your phone with a QR code, watch
Related Agents
Event Iq
Validate event schema, confirm cohort definitions, surface compliance flags, and confirm business_model_type.
Review Cross
Cross-model correctness review of a diff, on a different model from the main session (roles.toml review-cross;
Greenharbor Backend Reviewer Rust
Use this read-only agent to review Rust libraries, CLIs, services, async systems, and integrations for product