How ultimatixarup/jervis works
Jervis is a personal macOS agent: typed requests enter an in-process CLI or the HTTP API, then Claude’s agent loop consults memory, applies permission and confirmation policy, and invokes MCP tools. Telegram and voice are alternate clients of the HTTP service. The README documents additional MCP capabilities whose implementation was not sampled; their nodes show the documented subsystems, not verified internal behavior. Unsampled modules and dynamic configuration mean some relationships are omitted.
Main entry points: loop.py Voice loop · agent.py Claude agent · mcp_client.py MCP client pool · server.py HTTP API
Components 28
Agent brain
- HTTP API
brain/jervis_brain/server.py - Claude agent
brain/jervis_brain/agent.py - Configuration
brain/jervis_brain/config.py - Prompt assembly
brain/jervis_brain/prompts.py - Conversation memory
brain/jervis_brain/memory.py - Permission guard
brain/jervis_brain/permissions.py - Turn tracing
brain/jervis_brain/tracing.py - MCP client pool
brain/jervis_brain/mcp_client.py
User interfaces
- Typed CLI
brain/jervis_brain/cli.py - Telegram bot
telegram/jervis_telegram/bot.py - Telegram API client
telegram/jervis_telegram/api.py
MCP capabilities
- Mac tools
mcp/macos/jervis_mcp_macos/server.py - Claude Code delegation
mcp/claudecode/jervis_mcp_claudecode/server.py - Uber Eats tools
mcp/ubereats/jervis_mcp_ubereats/server.py - iMessage tools
mcp/imessage - Mail tools
mcp/mail - Bank tools
mcp/bank
Voice interaction
- Voice loop
voice/jervis_voice/loop.py - Audio capture
voice/jervis_voice/audio.py - Voice state machine
voice/jervis_voice/states.py - Speech recognition
voice/jervis_voice/stt.py - Speech detection
voice/jervis_voice/vad.py - Wake detection
voice/jervis_voice/wake.py - Speech synthesis
voice/jervis_voice/tts.py - Brain HTTP client
voice/jervis_voice/brain.py
Other components
- User
- Telegram service
- Anthropic Claude
Connections 30
- User → Typed CLI: asks
README.md - User → Telegram bot: messages
README.md - User → Voice loop: speaks
README.md - Typed CLI → Claude agent: runs in-process
README.md - Telegram bot → Telegram API client: polls and replies
telegram/jervis_telegram/bot.py - Telegram API client → Telegram service: calls API
telegram/jervis_telegram/api.py - Telegram bot → HTTP API: requests turns
telegram/jervis_telegram/bot.py - Voice loop → Audio capture: reads frames
voice/jervis_voice/loop.py - Voice loop → Voice state machine: dispatches events
voice/jervis_voice/loop.py - Voice loop → Speech recognition: transcribes
voice/jervis_voice/loop.py - Voice loop → Speech detection: detects speech
voice/jervis_voice/loop.py - Voice loop → Wake detection: checks wake word
voice/jervis_voice/loop.py - Voice loop → Speech synthesis: speaks response
voice/jervis_voice/loop.py - Voice loop → Brain HTTP client: sends turns
voice/jervis_voice/loop.py - Brain HTTP client → HTTP API: HTTP requests
README.md - HTTP API → Claude agent: handles ask and confirm
brain/jervis_brain/server.py - HTTP API → MCP client pool: builds runtime
brain/jervis_brain/server.py - HTTP API → Configuration: loads settings
brain/jervis_brain/server.py - Claude agent → Anthropic Claude: requests completions
README.md - Claude agent → Prompt assembly: uses prompts
brain/jervis_brain/agent.py - Claude agent → Conversation memory: reads and updates
brain/jervis_brain/agent.py - Claude agent → Permission guard: authorizes tools
brain/jervis_brain/agent.py - Claude agent → MCP client pool: dispatches tool calls
brain/jervis_brain/agent.py - Claude agent → Turn tracing: records spans
brain/jervis_brain/agent.py - MCP client pool → Mac tools: starts and routes tools
brain/jervis_brain/mcp_client.py - MCP client pool → Claude Code delegation: starts and routes tools
brain/jervis_brain/mcp_client.py - MCP client pool → Uber Eats tools: starts and routes tools
README.md - MCP client pool → iMessage tools: starts configured server
README.md - MCP client pool → Mail tools: starts configured server
README.md - MCP client pool → Bank tools: starts configured server
README.md