Security & Capabilities
Talon uses a default-deny capability model. Every host-tool call is rejected unless the executing persona has an explicit grant. No capability, no execution — the tool isn’t even listed to the agent.
Capabilities limit what Talon exposes through its host-tools bridge. They do not sandbox a provider runtime, and they do not make an external model or MCP server safe by themselves.
Capability engine
Section titled “Capability engine”Capabilities are declared in the persona config under capabilities.allow. Labels use the syntax domain.action:scope.
personas: - name: assistant capabilities: allow: - memory.access:thread - net.http:egress - channel.send:my-telegram - schedule.manage:own - subagent.invoke - subagent.background - db.query:ownThe engine enforces this at two points:
- Listing — only tools with a matching capability label are exposed to the agent in the first place
- Execution — the host-tools bridge re-checks the grant immediately before running the tool
Built-in capability labels
Section titled “Built-in capability labels”| Label | Controls |
|---|---|
channel.send:<channel> | Send messages to a specific channel |
channel.send:* | Send to any channel. Also grants channel_list and channel_broadcast |
channel.react:* | React with an emoji in the current conversation (channel_react). Not implied by channel.send |
schedule.manage:own | Create/modify/delete schedules owned by this persona |
memory.access:thread | Read/write per-thread structured memory |
net.http:egress | Fetch external URLs |
db.query:own | Execute read-only database queries |
subagent.invoke | Invoke sub-agents |
subagent.background | Launch background agent workers |
execution.env | Manage isolated Sprite execution environments |
image.read:thread | List the current thread’s Images and read their saved Findings as text (image_lookup) |
persona.send:* | Delegate tasks to any persona, list personas, and fetch or cancel delegated tasks |
persona.send:<persona> | Delegate only to that persona. Repeat the label to allow several |
Wildcard scopes (channel.send:*) match any suffix. Specific scopes (channel.send:my-telegram) match that name only.
Run npx talonctl list-capabilities to print the current labels.
Scoped delegation targets
Section titled “Scoped delegation targets”persona.send:<persona> restricts a persona to named delegation targets. Talon enforces the scope on the host side in persona_send. persona_list and the persona roster in the system prompt show only the allowed targets. Talon logs a warning at config load when a scoped label names an unknown persona.
Only the persona that delegated a task can cancel it with persona_task_cancel, and only for tasks in its own thread. See the A2A guide.
Outbound messages and bindings
Section titled “Outbound messages and bindings”channel_send accepts an explicit externalChatId. The capability decides whether the send is allowed. Talon stores the outbound message in a thread’s history only when the persona has a binding for that thread or a default binding for the channel. A send to an unbound chat is delivered but does not write to that thread’s history. If the binding lookup fails, Talon skips the write and logs a warning.
Approval gates
Section titled “Approval gates”The config schema accepts a capabilities.requireApproval list. It is not an approval control today. Talon exposes tools listed in requireApproval in the same way as tools listed in allow. It does not prompt a user and does not block execution. Approval enforcement at the bridge is future work.
Browser voice is the exception. A capability in requireApproval is unavailable to voice sessions, because voice has no approval channel.
Audit logging
Section titled “Audit logging”Every side-effecting operation — tool calls, channel sends, approval grants and rejections — is written to the audit_log table. Entries are append-only: there are no UPDATE or DELETE paths.
Each record contains:
| Field | Description |
|---|---|
run_id | The agent run that triggered the action |
thread_id | The conversation thread |
persona_id | The executing persona |
action | e.g., tool.execute, channel.send, approval.grant |
tool | Tool name (if applicable) |
request_id | MCP request ID for correlation |
details | JSON blob with action-specific fields |
created_at | Unix timestamp |
Query it with any SQLite client:
sqlite3 data/talond.sqlite "SELECT action, tool, created_at FROM audit_log ORDER BY created_at DESC LIMIT 20"Database query isolation
Section titled “Database query isolation”When an agent uses db_query, the query passes through five independent layers before execution:
- Regex pre-check — only
SELECTis accepted; write keywords are rejected immediately - Table whitelist — only
memory_items,schedules,messages, andthreadsare queryable - Thread/persona scoping — Talon auto-injects
WHERE thread_id = ?andWHERE persona_id = ?clauses - Row limit — results are capped at 1,000 rows regardless of the query
- Read-only connection — the query runs on a
{ readonly: true }SQLite connection
UNION, EXCEPT, INTERSECT, CTEs, and subqueries are rejected. User-supplied WHERE conditions are wrapped in parentheses so an OR cannot escape the scoping.
Provider prompt isolation
Section titled “Provider prompt isolation”Codex CLI searches upward from its working directory for an AGENTS.md file and injects the first one it finds into the prompt. Talon runs Codex in the thread workspace under the data directory, so Codex could pick up an AGENTS.md from a parent directory, such as the repository that Talon runs from. Codex has no flag to turn this off.
Talon writes an empty AGENTS.md into the Codex working directory before each run. Codex stops at that file, so instructions from a parent directory do not reach persona runs.
MCP credentials
Section titled “MCP credentials”Talon manages OAuth tokens for HTTP and SSE MCP servers itself. Token bundles are stored with mode 0600, and providers never receive the OAuth cache or client credentials. When a persona uses an OAuth-authenticated MCP server, Talon disables the provider’s native shell and filesystem tools for that run. Codex CLI cannot disable its native tools, so those runs fail closed.
Talon expands ${ENV_VAR} references in MCP headers and stdio environment values once. If the result still contains expandable $VAR syntax, Talon stops before the provider starts.
See MCP integration.
Browser voice authentication
Section titled “Browser voice authentication”Browser voice is disabled by default. When enabled, the listener binds 127.0.0.1 unless you change voice.host.
- Login. The browser sends the operator-configured access token once to
POST /voice/login. Talon exchanges it for an expiring, opaqueHttpOnlysession cookie and a CSRF cookie. - Lifetime. The login lasts 15 minutes by default, or 365 days when the user selects the remember option. There is no sliding refresh.
- No bearer in the browser. The access token and the raw session value are not returned to browser APIs, not written to Web Storage, and not written to logs.
- Hashed at rest. The server stores only hashed session and CSRF verification values.
- CSRF and origin checks. Mutating requests need the CSRF cookie and the
X-CSRF-Tokenheader. Origin checks usevoice.allowedOrigins. These checks apply on every listener address. - Revocation. Logout, rotation of the access token, and a configuration reload revoke the affected logins.
- No unauthenticated work. An unauthenticated request cannot create a session or reach the queue or the provider.
- Persona policy. Voice uses the capabilities, skills and MCP servers of the persona in
voice.persona. Capabilities inrequireApprovalare unavailable to voice. - No raw audio. Talon stores bounded text, usage and lifecycle state in SQLite. It does not store raw audio.
The reverse proxy must preserve the public Host and Origin headers and send X-Forwarded-Proto: https. See the Browser voice guide.
Image handling
Section titled “Image handling”Talon accepts images on Telegram, WhatsApp and email. The main agent never receives pixels. Only the vision sub-agent does. The main agent gets text descriptors and saved Findings. See the Vision guide.
- Bounded input. Talon checks actual bytes against
images.maxInputBytesduring download and again before conversion. It does not trust declared sizes. - Decompression-bomb guard. Talon reads the pixel dimensions from the header and rejects a source over
images.maxInputPixelsbefore decoding. Config cannot raise this limit above the image library’s own default. - Bounded output. Talon converts accepted input to a JPEG without metadata. If the result exceeds
images.maxNormalizedBytes, Talon re-encodes at lower quality, then at a smaller size. An image that never fits is rejected. - No animation. Animated images are rejected, including APNG.
- Email after authorization. Email attachments are parsed before the sender and DMARC checks, but Talon normalizes only parts from an authorized message.
- EXIF text. Sender-controlled EXIF text is neutralized and capped at 64 characters before it enters a descriptor.
- Durable recovery. Attempts and deadlines survive a restart. An image that cannot be recovered is marked rejected. It is not retried without limit.
- No billing without a record. Talon refuses a vision Inspection that it could not save, before it calls any model. A background agent cannot run an Inspection for this reason.
- Vision model chain. Config loading rejects a text-only provider in the
visionmodel chain, and startup validates the whole chain again. An Inspection is never rerouted to the foreground model.
Retention removes only the normalized file. Image records, EXIF data including GPS, and Findings stay until you delete them.
Container image
Section titled “Container image”The Docker image runs as a non-root user with all Linux capabilities dropped. See Docker deployment. The image includes GitHub CLI. If you set GH_TOKEN, every process that talond starts can read it. Use a fine-grained token limited to the repositories and permissions your agents need.
The November 2026 dependency update moved the runtime, mail, telemetry and AI SDK packages to newer versions within their declared ranges, and moved the WhatsApp Baileys library to 7.0.0-rc14.
Secrets management
Section titled “Secrets management”Credentials never go in config files as plaintext. Use environment variable substitution instead.
In talond.yaml:
channels: - name: my-telegram type: telegram config: botToken: ${TELEGRAM_BOT_TOKEN}At startup Talon loads .env from the working directory and substitutes all ${ENV_VAR} references. Two CLI commands help:
# show resolved config with secrets maskednpx talonctl config-show
# report missing variables before the daemon startsnpx talonctl env-checkconfig-show masks the values of known secret keys such as apiKey, token and password with ***MASKED***. It is not a complete redaction boundary, so do not paste its output in public. env-check prints variable names and status only, never values.