whereismyai
Ghostmode
Ghostmode: Ghost Mode is a Rust library that brings Code Mode to AI agents by letting them execute scripts.
Ghost Mode is a Rust library that brings Code Mode to agents. Instead of normal tool calls where every result goes back to the model, Ghost Mode lets the model write a short Python script that chains calls itself. Intermediate results never go back to the model, saving tokens and lowering API bills. You give a Sandbox your tools or point it at an MCP server, and hand the model execute and poll function definitions. The Monty backend runs the script inside your process, and you can also use a MontyPool backend for worker processes.
Ghostmode at a glance
Key features
- Execute scripts via sandbox
- Support MCP servers
- Export OpenAI and MCP schemas
- Run scripts inside your process
- Isolate sessions with worker processes
- Save and restore idle sessions
- Sign session dumps with keys
Use it for
- Reduce token usage for AI agents
- Lower API bills for model calls
- Run agentic REPL loops in Rust
Alternatives to Ghostmode
- Zed — Very fast native editor with parallel agents and multiplayer
- jevgrep — Reduces coding agent costs by providing targeted, relevant repository context.
- Coop — Runs AI coding agents in isolated virtual machines to protect host systems.
- pmtui — Manages long-running agent sessions with an automated heartbeat and dashboard.
- BeautifulRust — It improves agent output using guidelines from five major Rust sources.
- OpenSandbox — Provides isolated environments with multi-language SDKs and lifecycle management.
- Agent Purge — Manage system prompts for multiple coding agents from one place.
- Orca — Runs multiple AI coding agents simultaneously in isolated workspaces.
- Claktor — Finds repeated logic using fuzzy AST matching to reduce codebase size.
- zerostack — Minimal memory footprint and high CPU efficiency compared to JS-based agents.
- IronSurf — It uses a fully Rust rendering stack to reduce memory vulnerabilities.
- Co Sh — Run multiple AI coding agents simultaneously in a single terminal interface.
All Ghostmode alternatives