Agent Layer
Talon’s agent layer sits between your messaging channels and AI providers, managing conversation flow, tool execution, and multi-step reasoning.
How It Works
Section titled “How It Works”Channel (Telegram/Slack/...) → Agent Layer → AI Provider (OpenAI/Claude/...) ↕ Tools & Memory- Message arrives from any channel
- Agent loads conversation history from SQLite
- System prompt is built with channel context and available tools
- AI provider generates a response, optionally calling tools
- Tool execution — agent runs requested tools (file ops, shell, web search, etc.)
- Multi-turn — if the AI needs more tool results, steps 4-5 repeat
- Response sent back to the channel
- History persisted to SQLite for continuity
Sub-Agents
Section titled “Sub-Agents”The agent can spawn sub-agents for parallel work. Each sub-agent gets its own conversation context and can use the same tools. This enables complex multi-step tasks like:
- Research one topic while editing files for another
- Run multiple shell commands in parallel
- Divide a large task into independent subtasks
Claude Code Integration
Section titled “Claude Code Integration”Talon can import and browse Claude Code sessions — the conversation transcripts from Anthropic’s CLI tool. This lets you:
- View past Claude Code sessions in the mobile UI
- Search across all your coding sessions
- Continue conversations started in Claude Code
- Bridge desktop CLI workflows with mobile access
OpenAI Codex Integration
Section titled “OpenAI Codex Integration”Similarly, Talon supports Codex session import for OpenAI’s coding agent:
- Import Codex conversation logs
- Browse coding sessions from mobile
- Reference past Codex work in new conversations
Agent Configuration
Section titled “Agent Configuration”The agent behavior is controlled by:
- System prompt — customizable per channel via the prompt store
- Permission mode — controls which tools require approval (
plan,ask,allow,bypass) - Temperature — controls response creativity (0.0-2.0)
- Model — can be overridden per channel for different use cases
{ "default_model": "anthropic/claude-sonnet-4-20250514", "default_temperature": 0.7, "permission_mode": "allow"}Tool Pipeline
Section titled “Tool Pipeline”When the AI requests a tool call, the agent:
- Checks the tool against the current permission mode
- If allowed, executes the tool in a sandboxed environment
- Returns the result to the AI for further processing
- Logs the tool call for audit and debugging
Available tools include file operations, shell commands, web search, memory storage, scheduling, task management, and configuration — see Agent Tools for the full list.