roboot: Instructions file for Claude Code

CLAUDE.md

roboot CLAUDE.md is an instructions file for Claude Code from tyxben/roboot. It costs 8,216 tokens per session, scanned A, original, MIT.

Repository instructions for Roboot, a macOS AI agent hub that manages Claude Code sessions and provides a web and voice interface.

In plain words
What is it for?
Use them when developing or maintaining Roboot, including its web server, session controls, remote access, and voice features.
Why use it?
They explain the project's architecture, commands, and main console so an agent can change the code with the system's structure in mind.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; positional $N argument; mentions Claude Code.

This is tyxben/roboot's own configuration. It tells Claude Code how to work on roboot itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything roboot configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tyxben/roboot. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tyxben/roboot/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/tyxben/roboot

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for roboot CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/tyxben/roboot/claude-md/github.svg)](https://agentmods.dev/instructions/tyxben/roboot/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/tyxben/roboot/claude-md"><img src="https://agentmods.dev/badge/instructions/tyxben/roboot/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for roboot CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tyxben/roboot/claude-md"><img src="https://agentmods.dev/badge/instructions/tyxben/roboot/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,216 This file is loaded in full into every session.
When invoked 8,216 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 7 Sept 2026 📄 Read the review
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.08216 $0.08216
Opus 5.5 $0.03286 $0.03286
Sonnet 5.5 $0.01643 $0.01643
Haiku 4.5 $0.00822 $0.00822

Measured 2mo ago against content hash 9b365e6827c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

roboot CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 301 lines

How it starts

The opening of the file, as written. The whole thing — 301 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What is Roboot

A personal AI agent hub that runs on macOS. It manages multiple Claude Code sessions in iTerm2, executes shell commands, and provides a JARVIS-like voice interface -- all powered by the Arcana agent framework. Supports remote access via LAN, Telegram, and a Cloudflare Worker relay.

Architecture

server.py (FastAPI)              <- Main entry point
+-- WebSocket /ws                <- Streaming chat (LLM_CHUNK events)
+-- REST /api/sessions/*         <- Direct iTerm2 session control
+-- REST /api/tts                <- Edge TTS (text -> mp3)
+-- REST /api/relay-info         <- Relay pairing URL + expiry
+-- REST /api/relay-refresh      <- Rotate relay token (POST)
+-- REST /api/relay-revoke       <- Kick all clients + rotate (POST)
+-- REST /api/relay-qr           <- QR code PNG for relay pairing URL
+-- REST /api/network-info       <- Local IP addresses
+-- REST /api/qr-code            <- QR code PNG for LAN URL
+-- REST /api/filevault-status   <- macOS FileVault probe (fdesetup)
+-- REST /api/chat-history-wipe  <- Drop all chat rows + VACUUM (POST)
+-- Static /static/console.html  <- Unified web console

relay_client.py                  <- Relay WebSocket client (connects to CF Worker)
iterm_bridge.py                  <- Persistent iTerm2 Python API connection
network_utils.py                 <- IP detection, QR code generation
soul.md                          <- Assistant's self-modifiable identity
config.yaml                      <- API keys + provider config (gitignored)

text_utils.py                    <- Shared helpers (extract_spoken_text, ...)
tts_synth.py                     <- Edge TTS helper shared by /api/tts + mobile relay
soul_review.py                   <- Review gate for soul.md overwrites (off/log/confirm)
tool_guard.py                    <- Approval gate for agent tool calls (off/log/confirm) — gates run_command via Arcana confirmation_callback
mcp_bootstrap.py                 <- Connect external MCP servers at startup; register their tools (gated as external writes)
proactive.py                     <- Proactive daily briefing (read-only autonomous agent turn on a daily clock)
filevault_status.py              <- macOS fdesetup probe for the console warning banner

tools/                           <- Arcana tools (agent's capabilities)
+-- shell.py                     <- Terminal command execution
+-- claude_code.py               <- iTerm2 session list/read/send/create
+-- vision.py                    <- Camera capture + screenshot + face recognition
+-- face_db.py                   <- Face encoding storage and matching (.faces/)
+-- soul.py                      <- Self-modification + user memory
+-- voice_switch.py              <- Agent tool: change Telegram TTS voice
+-- scheduler.py                 <- Delayed/recurring reminders (.reminders.db, per-origin dispatcher)
+-- files.py                     <- read_file/write_file/edit_file (own path deny-policy; writes gated)
+-- web.py                       <- web_fetch/web_search (SSRF-guarded, keyless DuckDuckGo)

adapters/                        <- I/O adapters
+-- telegram_bot.py              <- Remote control via Telegram (voice I/O)
+-- voice.py                     <- Local mic STT + macOS TTS (CLI --voice)
+-- voice_prefs.py               <- Per-Telegram-user TTS voice store
+-- tts_streamer.py              <- Edge TTS -> parallel OGG/Opus synthesis
+-- keyboard.py                  <- Terminal text input
+-- stt/                         <- Pluggable speech-to-text backends
    +-- mlx.py                   <- mlx-whisper (Apple Silicon, default)
    +-- google.py                <- speech_recognition -> Google Web Speech
    +-- noop.py                  <- backend: none

scripts/
+-- setup.sh                     <- One-command installer (auto-uses uv)

relay/                           <- Cloudflare Worker relay server
+-- src/index.ts                 <- Worker entry point, routing, rate limiting
+-- src/relay-session.ts         <- Durable Object: daemon<->client session mgmt
+-- src/pair-page.ts             <- HTML pairing page served to mobile clients
+-- wrangler.toml                <- Cloudflare deployment config

Read the full file on GitHub · 301 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 301 lines · 8,216 tokens per session scan F 9b365e6827c0

Subscribe to this mod's changes

roboot CLAUDE.md is an instructions file published in the GitHub repository tyxben/roboot (55 stars, last pushed 4mo ago), licensed MIT. It adds 8,216 tokens to every session, about $0.0329 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

roboot CLAUDE.md compared with instructions from other repositories

roboot CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
roboot CLAUDE.mdtyxben/robootInstructions file554mo agoMITA8,216Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode