Daimonos MCP server
2026년 11월 12일 커밋AI 코딩 에이전트의 토큰 소비와 API 비용을 절감하기 위해 구조화된 JSON 도구 출력을 제공하는 에이전트 최적화 OS 레이어입니다.
다른 이름 beardfaceguy/daimonos
- 스타
- 3
- Tools
- 11
- 다운로드, 30일
- —
- 최신 버전
- 0.1.5
- 마지막 커밋
- 2026년 11월 12일
- 라이선스
- MIT
Daimonos MCP란?
Daimonos은(는) MCP server입니다. AI 코딩 에이전트의 토큰 소비와 API 비용을 절감하기 위해 구조화된 JSON 도구 출력을 제공하는 에이전트 최적화 OS 레이어입니다. 11개 도구를 제공합니다. 예: read_file, write_file, edit_file.
프로젝트 README에서 생성된 요약
Daimonos MCP server 정보
Daimonos는 AI 코딩 에이전트를 위해 특별히 설계된 최적화된 운영체제 레이어 역할을 합니다. Cursor, Zed, Claude Code와 같은 IDE 및 CLI 도구와 통합되는 MCP server로 작동합니다. 방대한 컨텍스트를 소비하는 장황하고 구조화되지 않은 터미널 텍스트를 반환하는 대신, 일반적인 작업에 대해 압축되고 구조화된 JSON 출력을 제공합니다. 이러한 방식은 작업 완료 속도를 높이면서 토큰 소비와 API 비용을 크게 줄여줍니다.
이 server는 표준 파일, 검색 및 실행 도구를 특화된 버전으로 대체합니다. 시스템 경로에서 감지되면 자동으로 나타나는 git, cargo, gh, docker용 네이티브 플러그인을 포함합니다. other 명령의 경우, 시맨틱 압축을 적용하여 필수적인 요약이나 에러만 반환합니다. 또한 서브프로세스의 라이프사이클을 관리하여 백그라운드 작업이 정리되도록 하고, 메모리 문제를 방지하기 위해 명령 출력을 제한합니다.
활용 사례
- 1테스트 중 API 비용 절감에이전트가 테스트 스위트를 실행할 때 수백 줄의 터미널 출력 대신 통과 및 실패한 테스트에 대한 압축된 JSON 요약만 받을 수 있습니다.
- 2파일 읽기 효율성 최적화개발자가 에이전트에게 파일 읽기를 지시하면, server는 콘텐츠 해시 중복 제거를 사용하여 변경되지 않은 데이터가 다시 전송되는 것을 방지합니다.
- 3복잡한 git 작업 관리AI 에이전트가 상태, 로그, diff를 위한 구조화된 도구를 사용하여 저장소 관리 작업을 수행할 수 있습니다.
- 4컨테이너화된 워크플로 실행에이전트가 이미지 검사 또는 컨테이너 관리를 위해 구조화된 JSON 응답을 사용하여 Docker 환경과 상호작용할 수 있습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
Daimonos MCP 도구 11
README에서 감지됨read_filewrite_fileedit_filesearchexecbatchworkspace_infogitgit_readcargodocker
| read_file | — | |
| write_file | — | |
| edit_file | — | |
| search | — | |
| exec | — | |
| batch | — | |
| workspace_info | — | |
| git | — | |
| git_read | — | |
| cargo | — | |
| docker | — |
자동 검사
2026년 11월 13일에 실행됨전체 보고서 →아직 인증되지 않았습니다. 서버는 80점 이상의 점수, 심각한 결함 없음, 그리고 검사에 충분한 데이터를 갖추어야 합니다. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능통과
- 오픈 소스 라이선스 (OSI)통과
- 최근 1년 내 커밋 또는 릴리스통과
- 패키지 이름이 인기 패키지와 유사하지 않음검사되지 않음
- 원격 엔드포인트가 HTTPS 사용검사되지 않음
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 모델에 대한 숨겨진 지침 없음통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음검사되지 않음
README
GitHub에서 보기Daimonos
An agent-optimized OS layer that makes AI coding agents faster and cheaper.
Daimonos replaces the built-in file, search, exec, and git tools in your AI coding agent with structured equivalents that return compact JSON instead of raw terminal output. The result: fewer tokens consumed, fewer round-trips, and lower API costs — with zero changes to your workflow.
Platforms: Linux (x86_64, aarch64) and macOS (Apple Silicon, Intel). Windows support is planned.
For repository agent/operator conventions, see AGENTS.md (especially
Daimonos tool usage policy).
The name comes from Greek daimon (agent/spirit), the etymological root of "daemon."
The problem
When an AI agent runs cargo test, it gets back hundreds of lines of terminal
output — progress bars, compile messages, passing test names — when all it
needs is "47 passed, 0 failed." The agent pays for every token of that noise:
reading it, reasoning about it, and carrying it in context for the rest of the
session.
The same waste happens with git status, docker ps, ls -la, and every
other shell command. Agents spend 30-50% of their token budget on verbose,
unstructured tool output.
How it works
Daimonos runs as an MCP server that your IDE or CLI spawns automatically. It provides the same operations agents already use — read files, write files, search, execute commands, git operations — but returns compact, structured JSON instead of raw text.
The single binary also provides ACP, one-shot agent, interactive chat, and socket-daemon runtimes — a full coding-agent harness in its own right; see Agent harness features below and Runtime modes for the explicit subcommands and compatibility aliases.
Agent: exec("cargo test")
Without Daimonos (raw terminal output):
Compiling inventory v0.1.0 (/workspace)
Finished `test` profile [unoptimized + debuginfo] target(s) in 2.31s
Running unittests src/main.rs (target/debug/deps/inventory-abc123)
running 47 tests
test config::tests::test_default ... ok
test config::tests::test_load ... ok
... (200+ more lines)
test result: ok. 47 passed; 0 failed; 0 ignored
With Daimonos (structured JSON):
{"ok":true,"tests":47,"passed":47,"failed":0,"failures":[]}
Four layers of optimization
-
Native tool plugins —
git,cargo,gh, anddockerare exposed as first-class MCP tools with structured JSON output. When agents callexec("cargo test"), Daimonos intercepts it and routes through the native plugin instead. -
Semantic output filters — For commands without native plugins (pytest, make, pip install, eslint, etc.), Daimonos applies semantic compression: test runners return summary + failures only, build commands return "ok" or just the errors, install commands return success/failure.
-
Protocol-level efficiency — Read deduplication (re-reading an unchanged file returns
{"unchanged":true}instead of the full content), compact field names, lazy tool exposure, batch operations, and a terse output directive that cuts LLM prose by ~30%. -
Managed subprocess execution — Command output is bounded while it is read instead of after full buffering. Daimonos owns Unix process groups, retires descendants on cancellation or session shutdown, isolates child environments through an explicit allowlist, and stores background output in private bounded artifacts.
Benchmark results
Tested with Claude Opus 4.6 on identical coding tasks (read files, search code, edit, run tests, git operations):
| Metric | Baseline | Daimonos | Savings |
|---|---|---|---|
| Output tokens | 5,842 | 3,198 | -45.3% |
| Total tokens | 41,239 | 33,847 | -17.9% |
| Tool calls | 17 avg | 14 avg | -17.6% |
| Wall time | 42.1s avg | 35.2s avg | -16.4% |
Remote benchmarks on AWS (same hardware, same model, same tasks) showed 20.3% cost reduction and 14.0% faster task completion.
SWE-bench Verified (mini) — three-way harness comparison
Five instances from swe-bench-verified-mini,
same model (Claude Opus 4.8) across all three harnesses, each agent running
inside the official SWE-bench Docker image for its instance (real test
environment), scored with the official swebench evaluation harness:
| Instance | daimonos tokens (LLM calls) | mini-swe-agent tokens (LLM calls) | cursor-agent tokens |
|---|---|---|---|
| django__django-11815 | 54,755 (4) | 38,305 (9) | 113,242 |
| django__django-12155 | 53,773 (4) | 33,095 (9) | 348,425 |
| django__django-12708 | 88,765 (6) | 196,492 (22) | 451,349 |
| sphinx-doc__sphinx-8035 | 172,729 (10) | 342,108 (30) | 930,495 |
| sphinx-doc__sphinx-9367 | 66,812 (5) | 18,611 (6) | 230,223 |
| Total tokens | 436,834 | 628,611 | 2,073,734 |
| Total wall time | 84 s | 247 s | 279 s |
| Resolved | 5/5 | 5/5 | 5/5 |
Conclusions:
- Correctness parity: all three harnesses resolved 5/5 at this sample size, so daimonos's token savings did not cost any resolutions.
- daimonos was cheapest and fastest: ~30% fewer tokens than mini-swe-agent (the minimal open-source baseline) and ~4.8x fewer than cursor-agent, with ~3x less wall time than either.
- Caveats: n=5, and run-to-run variance is real (daimonos spent 503k tokens on sphinx-8035 in an earlier identical-config run vs 173k here). cursor-agent's total is mostly cache-read tokens billed at a fraction of input price, so its raw token count overstates its relative cost. Measured API spend for the batch (OpenRouter): daimonos $1.53, mini-swe-agent $1.66; cursor-agent bills via Cursor's backend.
See benchmarks/swebench/ for the runners and methodology.
60-second demo
Use this script for README readers, release notes, and social posts:
# 1) Install daimonos
cargo build --release
sudo cp target/release/daimonos /usr/local/bin/
# 2) Configure your MCP client (example: Cursor)
# .cursor/mcp.json -> command: daimonos, args: ["--mcp", "-w", "/path/to/project"]
# 3) Ask your agent to run:
# "Run cargo test and summarize failures only."
# "Show git status as structured output."
What to highlight in the demo:
- same workflows, less tool-output noise
- structured responses instead of raw terminal spam
- fewer tokens and fewer round-trips for common coding tasks
Quick start
Install
Pre-built binaries (Linux and macOS):
# Linux x86_64
curl -L https://github.com/beardfaceguy/daimonos/releases/latest/download/daimonos-x86_64-linux.tar.gz | tar xz
sudo mv daimonos /usr/local/bin/
# macOS Apple Silicon
curl -L https://github.com/beardfaceguy/daimonos/releases/latest/download/daimonos-aarch64-macos.tar.gz | tar xz
sudo mv daimonos /usr/local/bin/
From source:
git clone https://github.com/beardfaceguy/daimonos.git
cd daimonos
cargo build --release
sudo cp target/release/daimonos /usr/local/bin/
See docs/install.md for all platforms (ARM Linux, Intel Mac, musl static builds).
Configure your IDE
For most users, start with one of these:
- Cursor: Cursor IDE setup
- Zed: Zed setup
- Claude Code: Claude Code setup
Add Daimonos as an MCP server. For Cursor, add to your project's
.cursor/mcp.json:
{
"mcpServers": {
"daimonos": {
"command": "daimonos",
"args": ["--mcp", "-w", "/path/to/your/project"]
}
}
}
That's it. Daimonos starts when your IDE opens the project and exits when you close it. No daemon to manage, no background service.
Setup guides for other tools
- Cursor IDE
- GitHub Copilot (VS Code, Visual Studio, JetBrains, Xcode, Eclipse)
- Claude Code (CLI + macOS Desktop app)
- Windsurf
- Cline (VS Code extension)
- Gemini CLI
- Zed Editor
- Discord integration (bot token, allowlists, read-only tools)
- Other tools (Claude Desktop, ChatGPT, Continue.dev, BoltAI, etc.)
What's included
Core tools (always available)
| Tool | What it does |
|---|---|
read_file |
Read with optional offset/limit, content-hash deduplication |
write_file |
Write with auto-mkdir |
edit_file |
String replacement with diff confirmation |
search |
Regex search (content mode) or file discovery (file mode) |
exec |
Run commands with semantic filtering, bounded capture, and owned teardown |
batch |
Multiple operations in a single round-trip |
workspace_info |
Project type, git status, directory listing, analytics |
Native tool plugins (auto-detected)
These appear automatically when the corresponding CLI tool is found on PATH:
| Plugin | Commands | Detected by |
|---|---|---|
git |
status, log, diff, branch, add, commit, push, pull, checkout | .git directory |
git_read |
resolve, show_file, list_tree, grep, log, show_commit, diff, blame, refs, ancestry, worktree_status | git with --no-lazy-fetch support |
cargo |
test, build, check, clippy, fmt, add | Cargo.toml |
gh |
pr_view, pr_list, pr_create, pr_diff, pr_checks, api | gh on PATH |
docker |
ps, logs, exec, images, inspect, stop, compose_up/down/ps | docker on PATH |
Additional capabilities
- Workspace snapshots — Checkpoint before risky edits, rollback on failure
- Starlark scripting — Bundle multiple tool calls into a single script
- Token analytics — Per-tool-call tracking with cross-session history (
daimonos --stats) - Background processes — Start, poll, and stop long-running commands with admission limits, private bounded logs, and descendant cleanup
- Configurable — All tunables in a single TOML config file
Managed process lifecycle
Raw exec, background jobs, and CLI plugins (cargo, git, gh, docker,
npm, pytest, curl, and shellcheck) share one managed execution layer:
- Streaming-time bounds — stdout and stderr retain UTF-8-safe head/tail previews without first allocating the complete output
- Process-group ownership on Unix — cancellation and shutdown send TERM, wait a configurable grace period, then escalate to KILL and reap descendants
- Secure background artifacts — random exclusive
0600files under a private0700directory, with configurable byte and job-count limits - Environment isolation — children inherit only configured parent variables plus explicit session, tool, and per-call overrides; provider and MCP credentials are not ambiently leaked
- Structured-output integrity — plugins reject truncated JSON rather than reporting an incomplete result as valid
Agent harness features
Beyond the MCP server, the same binary is a complete coding-agent harness:
an interactive terminal UI (daimonos agent), an ACP backend for Zed, a
one-shot CLI, and a session daemon with attach/detach and remote control.
Many of its recent features come from a systematic study of 60+ open-source agent harnesses (Aider, OpenHands, SWE-agent, Goose, OpenCode, Forge, Pi, the Cline family, and others) — mining the ecosystem for proven techniques and adapting the best ones.
Provider resilience — a hiccup never kills the turn
- Bounded provider retries with backoff for transient failures (429/5xx/ network), classified at the provider boundary — fatal auth/validation errors surface immediately
- Automatic model failover — on a sustained overload the turn continues on the next model in the chain, then returns to your preferred model on the next turn
- Turn-level error resume — when retries and failover are spent, the agent pauses, repairs the conversation (keeping partial streamed output), and continues where it left off; recovery actions surface in the UI
- Retry-storm detection — fingerprints repeated identical tool calls and steers the model out of loops
- Orphan tool-call repair — max-token truncation mid-tool-call is repaired instead of poisoning the session
Multi-provider sessions
- Several providers, one session — configure Anthropic, OpenAI, and
OpenRouter side by side (
DAIMONOS_AGENT_<NAME>_API_KEY); every call is routed to the right provider by model, with an explicitprovider:slugoverride - Live model discovery — at startup the configured provider(s) are queried for their full model catalogs; the model picker and failover chain always reflect what is actually served, newest first
- Cross-provider failover — with more than one provider configured, an outage at one can fail over to models at another, mid-turn
- Provider-reported context windows — compaction thresholds derive from the live model metadata instead of hardcoded numbers
Context economy at the harness level
- Conversation compaction — summarize-and-continue with high/low water-mark thresholds and provider-honest token accounting
- Bounded tool results — oversized tool output is capped at the dispatch boundary and offloaded to files the agent can re-read selectively
- Reverse-budget pruning — old tool results shrink before new ones, so a long turn keeps its recent working set sharp
- Distilled working memory — durable facts/snippets/notes that survive compaction, separate from the transcript
- Resilient edit matching (mined from Aider) — whitespace-tolerant search/replace cuts failed-edit retry costs
- Batched scripting — the agent is steered to bundle multi-step tool work into single Starlark scripts (~2.2x cost lever, benchmarked)
Session durability and control
- Per-turn workspace checkpoints — automatic snapshots with diff/compare and code-only restore
- Daemon-owned sessions — detach from a running agent, reattach later (or from another terminal), with a reconnect event ring and canonical snapshot recovery
- Persistent terminal UI — streaming output, tool-lifecycle cards, approval modal, model/usage status bar, and vim-style scrollback
- Remote control — paired Android controller over an authenticated WSS gateway
- Subagent delegation — drive external ACP agents (cursor-agent, codex-acp, …) as delegated workers
- Thought capture — opt-in local persistence of streamed model reasoning for later inspection
Agent-mode configuration lives in a dotenv-style agent.env
(~/.config/daimonos/agent.env); see Runtime modes.
Portable Agent Skills are discovered from ~/.agents/skills and
<workspace>/.agents/skills; set DAIMONOS_SKILL_DIR in agent.env to
override the global directory. See Configuration.
Architecture
Daimonos is a single Rust binary with two planes that share one tool implementation, one opcode protocol, one config, and one analytics store:
- Tool server — speaks MCP over stdio (or a Unix socket) to an external agent. Your IDE spawns it as a subprocess — no network, no containers, no setup beyond a JSON config entry.
- Agent harness — runs the agent loop itself, dispatching those same tools in-process (no MCP hop) and talking to LLM providers directly.
Tool-server plane
┌──────────────┐ MCP (JSON-RPC over stdio) ┌─────────────────┐
│ AI Agent │ ◄──────────────────────────────► │ Daimonos │
│ (Cursor, │ │ │
│ Copilot, │ Structured JSON responses │ ┌───────────┐ │
│ Claude, │ ◄──────────────────────────────── │ │ File ops │ │
│ etc.) │ │ │ Search │ │
│ │ │ │ Exec │ │
│ │ │ │ Git │ │
│ │ │ │ Cargo │ │
│ │ │ │ Docker │ │
│ │ │ │ GitHub │ │
│ │ │ │ Snapshots │ │
│ │ │ │ Analytics │ │
└──────────────┘ │ └───────────┘ │
└─────────────────┘
Under the hood, Daimonos uses an opcode-based protocol where each operation
has a numeric identifier and compact field names (c, p, s, n) to
minimize token overhead. The MCP layer translates between standard JSON-RPC
and the internal opcode format.
Agent-harness plane
┌────────────────────────────────────────────────────────┐
│ Frontends: TUI · ACP (Zed) · one-shot CLI · chat REPL │
│ session daemon (attach/detach, Android) │
├────────────────────────────────────────────────────────┤
│ Shared session core: agent loop · canonical events │
│ compaction · tool-result bounding · working memory │
│ checkpoints · approvals/safety policy │
├────────────────────────────────────────────────────────┤
│ Provider layer: retries · model failover · resume │
│ multi-provider router (routes each call by model) │
│ ├─ Anthropic adapter │
│ ├─ OpenAI adapter │
│ └─ OpenRouter adapter │
└────────────────────────────────────────────────────────┘
Every frontend drives the same transport-independent session core, so a
conversation started in the TUI can detach to the daemon and be reattached
from another terminal or a paired phone. Provider adapters own all
provider-specific wire format and error classification; everything above
them sees one LlmProvider interface and plain model strings — which is
what makes failover, live model discovery, and multi-provider routing
composable rather than special-cased.
Project vision
Daimonos is being built in three phases:
Phase 1: User-space MCP server + agent harness (current)
A Rust binary that runs on any Linux or macOS machine, in two roles that prove out the same protocol design and structured I/O patterns:
- Tool server for third-party agents (Cursor, Copilot, Claude Code, Zed, …) via MCP — the original phase-1 deliverable.
- Agent harness in its own right: interactive TUI, ACP backend for Zed, one-shot CLI, and daemon-owned sessions with remote attach — with multi-provider routing, model failover, compaction, and per-turn checkpoints built in (see Agent harness features).
Status: Production-ready. Both roles are used daily for real development work — including developing Daimonos itself. Pre-built binaries available for Linux (x86_64, aarch64, musl) and macOS (Apple Silicon, Intel).
Phase 2: Minimal Linux distro
A purpose-built Buildroot Linux image with Daimonos as the primary user-space application. Designed for cloud deployment where AI agents need a clean, minimal environment. The distro boots in seconds, has no shell or human-facing UI, and runs the Daimonos daemon as PID 1's direct child. The session daemon and remote-control gateway from phase 1 are the intended tenants: headless agent sessions in the cloud, attached to from a terminal or phone.
Status: Working prototype. Boots in QEMU, deployable to AWS EC2. Used for remote benchmarking.
Phase 3: Custom microkernel
The long-term vision: a microkernel where Daimonos opcodes become native syscalls. StructFS (a filesystem that stores and returns structured data natively), capability-based security, and a process model designed for agent workloads from the ground up.
Status: Design phase.
Development
Prerequisites
| Dependency | Required | Install |
|---|---|---|
| Rust (stable 1.75+) | Build | rustup.rs |
| Python 3 + pytest | Tests | pip install -r tests/requirements.txt |
Running tests
# Rust unit tests (350+ tests, parallel-safe)
cargo test
# End-to-end MCP protocol tests (150+ pytest cases)
python3 -m pytest tests/ -v
Running benchmarks
cd benchmarks
./setup-mcp.sh
./run-benchmark.sh baseline # IDE built-in tools
./run-benchmark.sh daimonos # routed through daimonos MCP
python3 analyze-results.py results/
See benchmarks/README.md for details.
Configuration
All behavior is tunable via a TOML config file. See docs/configuration.md for the full reference, or daimonos.default.toml for annotated defaults.
Key sections:
[index]— Trigram indexer tuning (max depth, file size limits)[search]— Search result limits[process]— Process timeouts, in-memory/artifact bounds, background admission, termination grace, inherited environment, semantic filters, and max concurrent Starlark script threads[pipeline_cache]— Subprocess result cache size, inotify watch cap, extra ignored directories[analytics]— Token tracking (SQLite storage, retention)[tools.*]— Per-tool plugin configuration
Contributing
Daimonos is in active development. If you're interested in contributing, start with the AGENTS.md file for coding conventions, architecture decisions, and the review checklist.
See also:
License
MIT
Daimonos MCP 질문
Daimonos MCP는 어떤 도구를 제공하나요?
11개 도구를 제공합니다. 예: read_file, write_file, edit_file, search, exec.
Daimonos는 어떻게 토큰을 절약하나요?
가공되지 않은 터미널 출력을 압축된 구조화된 JSON으로 대체하고, 시맨틱 출력 필터를 사용하여 요약이나 실패 사례와 같은 필수 정보만 반환합니다.
지원되는 플랫폼은 무엇인가요?
현재 Linux (x86_64, aarch64) 및 macOS (Apple Silicon, Intel)를 지원하며, Windows 지원이 계획되어 있습니다.