Agent Prompt: Session title and branch generation

Agent Prompt: Session title and branch generation is an agent for Claude Code from openonion/connectonion. It costs 19 tokens per session (312 once invoked), scanned A, original, Apache-2.0.

A small writing helper that creates a concise title and a Git branch name for a coding session. A Git branch is a separate line of development used to organize changes.

In plain words
What is it for?
It is for turning a coding-task description into a short sentence-case title and a lowercase branch name beginning with `claude/`.
Why use it?
It gives the session a clear label and a consistent branch name without requiring someone to invent them manually.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit It is for turning a coding-task description into a short sentence-case title and a lowercase branch name beginning with claude/.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/openonion/connectonion/agent-prompt-session-title-and-branch-generation
About the project

ConnectOnion is an open-source, template-first toolkit for building, debugging, deploying, and operating AI agents. Developers use its command-line tools and Python runtime to create agents, add tools, connect services, deploy them, and make them callable by other agents, while the catalogue entries are related agents, skills, and instructions.

openonion/connectonion · 1,480 stars · on GitHub · docs.connectonion.com

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.

Clone the repo
git clone --depth 1 https://github.com/openonion/connectonion

Made for: Claude Code.

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 Agent Prompt: Session title and branch generation

README.md
[![agentmods](https://agentmods.dev/badge/agents/openonion/connectonion/agent-prompt-session-title-and-branch-generation/github.svg)](https://agentmods.dev/agents/openonion/connectonion/agent-prompt-session-title-and-branch-generation)
Your own site
<a href="https://agentmods.dev/agents/openonion/connectonion/agent-prompt-session-title-and-branch-generation"><img src="https://agentmods.dev/badge/agents/openonion/connectonion/agent-prompt-session-title-and-branch-generation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Agent Prompt: Session title and branch generation

Your own site · 80×15
<a href="https://agentmods.dev/agents/openonion/connectonion/agent-prompt-session-title-and-branch-generation"><img src="https://agentmods.dev/badge/agents/openonion/connectonion/agent-prompt-session-title-and-branch-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 312 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.
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.00312
Opus 5 $0.00010 $0.00156
Sonnet 5 $0.00004 $0.00062
Haiku 4.5 $0.00002 $0.00031

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

Security

Grade A, and why

Agent Prompt: Session title and branch generation 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 12d 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.

connectonion/useful_prompts/cc_prompt/prompts/agents/agent-prompt-session-title-and-branch-generation.md · 22 lines

What it actually says

You are coming up with a succinct title and git branch name for a coding session based on the provided description. The title should be clear, concise, and accurately reflect the content of the coding task. You should keep it short and simple, ideally no more than 6 words. Avoid using jargon or overly technical terms unless absolutely necessary. The title should be easy to understand for anyone reading it. Use sentence case for the title (capitalize only the first word and proper nouns), not Title Case.

The branch name should be clear, concise, and accurately reflect the content of the coding task. You should keep it short and simple, ideally no more than 4 words. The branch should always start with "claude/" and should be all lower case, with words separated by dashes.

Return a JSON object with "title" and "branch" fields.

Example 1: {"title": "Fix login button not working on mobile", "branch": "claude/fix-mobile-login-button"} Example 2: {"title": "Update README with installation instructions", "branch": "claude/update-readme"} Example 3: {"title": "Improve performance of data processing script", "branch": "claude/improve-data-processing"}

Here is the session description: {description} Please generate a title and branch name for this session.

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. 12d ago First seen · 22 lines · 0 tokens per session scan A c2b3b2706b70

Subscribe to this mod's changes

Agent Prompt: Session title and branch generation is an agent published in the GitHub repository openonion/connectonion (1,480 stars, last pushed yesterday), licensed Apache-2.0. It adds 19 tokens to every session and 312 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.