input-branching

input-branching is a skill for Claude Code, Codex from autonomous-ai/autonomous-os. It costs 19 tokens per session (864 once invoked), scanned A, original, Apache-2.0.

A routing rule for voice input in a real-time voice-agent system. It tells the agent how to use clean voice instructions, treat speech-to-text transcripts as supplementary, and recognize messages that were already answered.

In plain words
What is it for?
Use it to process delegated voice commands, distinguish handled conversation history from new requests, and route commands such as playing music or controlling devices.
Why use it?
It prevents noisy transcripts from overriding clearer instructions and avoids answering a voice message twice. It also gives untagged voice requests a fallback path.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to process delegated voice commands, distinguish handled conversation history from new requests, and route commands such as playing music or controlling devices.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/autonomous-ai/autonomous-os/input-branching
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add autonomous-ai/autonomous-os --skill input-branching
Clone the repo
git clone --depth 1 https://github.com/autonomous-ai/autonomous-os

Made for: Claude Code, Codex.

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 input-branching

README.md
[![agentmods](https://agentmods.dev/badge/skills/autonomous-ai/autonomous-os/input-branching.svg)](https://agentmods.dev/skills/autonomous-ai/autonomous-os/input-branching)
Your own site
<a href="https://agentmods.dev/skills/autonomous-ai/autonomous-os/input-branching"><img src="https://agentmods.dev/badge/skills/autonomous-ai/autonomous-os/input-branching.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 864 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00019 $0.00864
Opus 5 $0.00010 $0.00432
Sonnet 5 $0.00004 $0.00173
Haiku 4.5 $0.00002 $0.00086

Measured 8d ago against content hash ff52f10b380d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

input-branching 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 8d 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.

skills/input-branching/SKILL.md · 93 lines

How it starts

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

Input Branching

Voice input passes through a realtime voice agent before reaching you. The agent handles chit-chat directly and delegates everything else. Message tags tell you which path was taken.

Message Formats

Delegated with instruction

[voice-instruction] Play jazz music on Spotify
[transcript] play some jazz please on spotify
  • [voice-instruction] — the realtime agent's clean summary of what the user wants. Use this as the primary input.
  • [transcript] — raw STT transcript. Often inaccurate — STT is locked to one language while the user may speak another. Treat as noisy supplementary context only, never as the source of truth.

Delegated without instruction (fallback)

turn on the lights

No tags. Process as a normal voice event.

Handled (history entry)

[HANDLED] Hey, how's it going?
[REPLY] I'm doing great! How about you?
  • [HANDLED] — the user's original message, already answered via TTS.
  • [REPLY] — what the realtime agent said. The user already heard it.

This is a history entry only. The conversation already happened. You are being notified, not asked to respond.

Rules

  1. [voice-instruction] is the primary input. When present, use it over [transcript].
  2. [HANDLED] → always NO_REPLY. No exceptions. Even if the reply seems wrong or incomplete — the user already heard it. Do not correct, echo, paraphrase, or add to it.
  3. Log context from [HANDLED] silently. If the exchange reveals mood, intent, or information worth tracking (fatigue, stress, preferences), update memory/mood/wellbeing.
  4. Never echo tags. [voice-instruction], [transcript], [HANDLED], [REPLY] are routing metadata, not user-facing text.
  5. No prefix = normal voice event. Process the message as-is.
  6. Compound instructions: execute EVERY clause. A [voice-instruction] often carries several actions plus a question ("Rotate to the right, hold that position, then describe what you see"). Handle each clause, in order, with the skill it belongs to — and never confirm a clause you did not actually perform. Answering the question half while silently skipping the movement (or vice versa) is the worst outcome: the user hears "done" for something that never happened.

Read the full file on GitHub · 93 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 93 lines · 19 tokens per session scan A ff52f10b380d

Subscribe to this mod's changes

input-branching is a skill published in the GitHub repository autonomous-ai/autonomous-os (279 stars, last pushed today), licensed Apache-2.0. It adds 19 tokens to every session and 864 once invoked, about $0.0001 per session on Opus 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.