Personas
A persona is an AI agent’s complete identity — its system prompt, model, skills, sub-agents, and capability policy. You can run multiple personas simultaneously, each bound to different channels with different permissions.
How personas work
Section titled “How personas work”When a message arrives on a channel, Talon routes it to the bound persona. The persona’s system prompt becomes the agent’s identity. Its capability list determines which tools it can call. All turns in the same thread use the same persona.
Defining a persona
Section titled “Defining a persona”personas: - name: assistant model: claude-sonnet-4-6 systemPromptFile: personas/assistant/system.md skills: - web-search subagents: - session-summarizer - memory-groomer - memory-retriever capabilities: allow: - channel.send:my-telegram - memory.access:* - net.http - schedule.manage:own - subagent.invoke:* - subagent.background requireApproval: - db.query queryTimeoutMinutes: 10 # max minutes per agent query (default: 10) maxConcurrent: 2Scaffolding a persona
Section titled “Scaffolding a persona”npx talonctl add-persona --name assistantThis creates personas/assistant/system.md from a template (if templates/assistant/system.md exists) or generates a generic starter. Existing files are never overwritten.
The personas/ directory is gitignored by default — your custom system prompts stay local.
System prompt
Section titled “System prompt”The system prompt is a plain Markdown file. Write it as if you’re describing the agent’s role, constraints, and available tools to the model.
Talon injects additional context before the prompt reaches the model:
- Available skills — name and one-line description of each loaded skill
- Tool instructions — behavioral guidance for each host tool the persona is allowed to use (see Tool instructions)
- Previous context — session summary + last N messages (after context rotation)
- Memory items — relevant facts/notes retrieved for the current thread
A minimal system prompt:
# Assistant
You are a helpful AI assistant for personal use.
## Behaviour- Be concise and accurate.- Reply in clear, plain language.- Ask for clarification when the request is ambiguous.
## Constraints- Do not reveal system configuration details.- If you do not know something, say so.Personality folder
Section titled “Personality folder”Each persona can have a personality/ folder adjacent to its system prompt file. All .md files in this folder are loaded alphabetically and appended to the system prompt before skill fragments.
personas/assistant/ system.md # main system prompt personality/ 01-tone.md # communication style 02-background.md # domain knowledge 03-boundaries.md # guardrailsUse personality files to separate concerns: keep the system prompt focused on role and capabilities, and put tone, style, and domain knowledge in personality files. talonctl add-persona scaffolds an example personality/01-tone.md automatically.
Model configuration
Section titled “Model configuration”The model field is passed directly to the provider. For Claude Code (the default provider), this is a Claude model ID:
personas: - name: assistant model: claude-sonnet-4-6 # or claude-opus-4-6, claude-haiku-4-5, etc.To use a different provider for a specific persona:
personas: - name: lightweight model: claude-haiku-4-5 provider: claude-codeReasoning effort
Section titled “Reasoning effort”reasoningEffort is an optional persona field. It only works with the codex-cli provider and with openai-compatible in Responses mode (options.apiMode: responses).
personas: - name: coder provider: codex-cli model: gpt-5.4 reasoningEffort: high| Provider type | Allowed values |
|---|---|
codex-cli | minimal, low, medium, high, xhigh, max, ultra |
openai-compatible (Responses mode) | none, minimal, low, medium, high, xhigh, max, ultra |
Talon checks the value at config load. It rejects the field for claude-code and gemini-cli, for a value that the persona’s provider type does not allow, and for openai-compatible in chat-completions mode. Codex CLI does not support none, so leave the field out to use the provider default. Put the base model name in model. Talon does not support model-name suffixes for effort levels.
Capability labels
Section titled “Capability labels”Capabilities are scoped labels. Anything not listed in allow or requireApproval is denied by default.
| Capability | Description |
|---|---|
channel.send:<channel> | Send messages to a named channel |
channel.send:* | Send to any channel |
channel.react:* | Emoji reactions on messages in the current conversation with channel_react (Telegram, WhatsApp). Not implied by channel.send |
memory.access:* | Read and write per-thread memory |
net.http | Fetch external URLs |
db.query | Read-only queries against 4 allowed tables |
schedule.manage:own | Create, update, and delete the persona’s own scheduled tasks |
subagent.invoke:* | Invoke sub-agents by name |
subagent.background | Spawn and manage background agent workers |
fs.read:* | Read files (used by file-searcher sub-agent) |
fs.write:workspace | Write files (example: for approval-gated file ops) |
persona.send:* | Delegate to any persona, list personas, and fetch or cancel delegated tasks |
persona.send:<persona> | Delegate only to that persona. Repeat the label for several targets. See A2A Protocol |
requireApproval
Section titled “requireApproval”The schema accepts a requireApproval list next to allow:
capabilities: allow: - channel.send:my-telegram - memory.access:* requireApproval: - db.query - net.httpTool instructions
Section titled “Tool instructions”Talon automatically injects behavioral guidance for each host tool into the system prompt — but only for the tools the persona is actually allowed to use. This keeps prompts lean: a persona without net.http never receives HTTP instructions.
Instructions live in templates/tool-instructions/ as Markdown files named after the capability prefix:
templates/tool-instructions/ persona.send.md # persona delegation subagent.background.md # background agents subagent.invoke.md # sub-agents channel.send.md # cross-channel messaging memory.access.md # thread memory schedule.manage.md # schedule management net.http.md # HTTP proxy db.query.md # database queries execution.env.md # execution environments image.read.md # image lookupThe filename must match the capability prefix exactly (e.g. persona.send, schedule.manage). Each file must start with its own ## heading. Empty or missing files are silently ignored.
Files are loaded once at startup and cached. Both foreground and background agent runs receive the injected instructions.
To customise the guidance for a tool, edit the corresponding file — or add a new one for any capability prefix you define. The shipped files are sensible defaults, not hard-wired behaviour.
Sub-agents
Section titled “Sub-agents”Sub-agents are cheap-model workers that handle mechanical tasks. Declare which sub-agents a persona can invoke:
personas: - name: assistant subagents: - session-summarizer - memory-groomer - memory-retriever - file-searcher capabilities: allow: - subagent.invoke:*The agent also needs instructions in the system prompt explaining when and how to call sub-agents.
Built-in sub-agents:
| Name | Model | Purpose |
|---|---|---|
session-summarizer | Sonnet 4.6 | Compress conversation history (called automatically) |
session-observer | Sonnet 4.6 | Write dated observations for observational memory |
session-reflector | Sonnet 4.6 | Consolidate the observation log when it grows too large |
memory-retriever | Haiku 4.5 | Find relevant memory items for a query |
memory-groomer | Haiku 4.5 | Prune/consolidate stale memory |
file-searcher | Haiku 4.5 | Full-text search across files |
spark-coder | gpt-5.3-codex-spark | Single-shot code generation (needs OPENAI_API_KEY) |
vision | Haiku 4.5 | Answer one question about images in the thread |
The Model column shows the default from each manifest. You can override it per sub-agent in talond.yaml. See Sub-agents.
Where prompt content belongs
Section titled “Where prompt content belongs”system.md and each file in personality/ go into the system prompt on each run. A skill adds only its name and description until the agent calls skill_load. Read this table from top to bottom and stop at the first row that fits.
| Content | Place |
|---|---|
| Identity, tone, user preferences, privacy and safety rules | system.md or a personality file |
| Knowledge or a procedure that only some tasks need | Skill of the same persona |
| Work that needs a different model, different capabilities or mounts, or that runs in parallel or in the background | Separate persona |
| One step with fixed input and fixed output | Sub-agent |
A separate persona costs a handoff and a model call, and it sees only the message of the persona_send call. A background agent without a profile gets the full prompt of the persona that owns the thread. A lean persona used as profile keeps background agents small.
The optimize-personas skill in .claude/skills/ and .agents/skills/ of the Talon repo audits a setup that has real usage. It measures the always-loaded files, reads run counts from the database, and proposes moves. You approve each move. See Skills.
Persona description
Section titled “Persona description”Add a description: key to the frontmatter of system.md. Other personas see it in persona_list and in the “Available personas” roster when they delegate work. The background_agent tool shows it when the agent lists profiles.
---description: "Code reviewer: security and performance review of diffs and PRs; returns findings ranked by severity"---Without a description:, Talon falls back to the first line of the prompt body. See A2A Protocol.
Bindings
Section titled “Bindings”Personas connect to channels via bindings. Manage them with talonctl:
# Bind a persona to a channelnpx talonctl bind --persona assistant --channel my-telegram
# List all bindingsnpx talonctl list-personas
# Remove a bindingnpx talonctl unbind --persona assistant --channel my-telegramOr declare them directly in config:
bindings: - persona: assistant channel: my-telegram isDefault: trueThe first binding created for a channel becomes the default. isDefault: true explicitly marks a binding as default.
Binding one conversation
Section titled “Binding one conversation”A binding with thread routes a single conversation to a persona instead of the whole channel. It wins over the channel’s default binding. The typical use is one persona per topic of a Telegram forum group:
bindings: - persona: assistant channel: my-telegram isDefault: true - persona: groceries channel: my-telegram thread: '-1004452318413:42'npx talonctl bind --persona groceries --channel my-telegram --thread '-1004452318413:42'npx talonctl unbind --persona groceries --channel my-telegram --thread '-1004452318413:42'threadis the channel’s own thread ID. For Telegram, send/chatidin the chat or topic and use theTalon threadvalue. Always quote it in YAML.- Thread bindings are applied when talond starts. The thread is created if the conversation has not sent a message yet.
- Removing the entry returns the conversation to the default persona at the next start.
- A thread binding is never a channel default, and a conversation can have one persona.
See the Telegram topic workspaces guide for the full setup.
Browser voice
Section titled “Browser voice”Browser voice does not use a binding. The voice.persona key selects the persona for voice sessions. See Browser voice.
Multiple personas
Section titled “Multiple personas”Different channels can have different personas with completely different system prompts and capability sets:
personas: - name: alfred model: claude-sonnet-4-6 systemPromptFile: personas/alfred/system.md capabilities: allow: - channel.send:my-telegram - memory.access:* - schedule.manage:own
- name: researcher model: claude-opus-4-6 systemPromptFile: personas/researcher/system.md skills: - web-search capabilities: allow: - channel.send:my-slack - net.http - subagent.background
bindings: - persona: alfred channel: my-telegram isDefault: true - persona: researcher channel: my-slack isDefault: true