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.
npx skills add PatterAI/skills --skill add-tools-and-handoffsgit clone --depth 1 https://github.com/PatterAI/skillsWrote 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.
[](https://agentmods.dev/skills/patterai/skills/add-tools-and-handoffs)<a href="https://agentmods.dev/skills/patterai/skills/add-tools-and-handoffs"><img src="https://agentmods.dev/badge/skills/patterai/skills/add-tools-and-handoffs/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.
<a href="https://agentmods.dev/skills/patterai/skills/add-tools-and-handoffs"><img src="https://agentmods.dev/badge/skills/patterai/skills/add-tools-and-handoffs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00122 | $0.02257 |
| Opus 5.5 | $0.00049 | $0.00903 |
| Sonnet 5.5 | $0.00024 | $0.00451 |
| Haiku 4.5 | $0.00012 | $0.00226 |
Grade A, and why
add-tools-and-handoffs 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 253 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add tools and handoffs to a Patter agent
Patter agents have two built-in tools (transfer_call, end_call) plus
unlimited custom tools. Custom tools can be handler-based (your
Python/TS function runs in-process) or webhook-based (the agent POSTs
JSON arguments to your URL). Both shapes use the same Tool model. Output
guardrails block or rephrase agent responses before they reach TTS.
Built-in tools (always available)
Every agent automatically has:
transfer_call(target: str)— bridge to another phone number. Caller hears the new party, your Patter session ends.end_call()— hang up. Use for "goodbye" flows or abusive callers.
You don't have to register these. The LLM picks them when the system prompt authorizes it.
agent = phone.agent(
engine=OpenAIRealtime2(),
system_prompt=(
"You are Mia, the receptionist for Acme. "
"If the caller asks for a human, call `transfer_call` with target='+14155559999'. "
"If the caller wants to hang up, call `end_call`."
),
first_message="Hi, how can I help?",
)
Custom tools — handler form
The @tool decorator (Python) and defineTool (TypeScript) auto-extract the
JSON schema from your function signature and docstring. Best for simple
synchronous lookups.
Python
from getpatter import Patter, Twilio, OpenAIRealtime2, tool
@tool
async def lookup_customer(phone: str) -> dict:
"""Look up customer details by phone number.
Args:
phone: E.164 phone number, e.g. +14155551234.
Returns:
Customer name, tier, and last order date.
"""
# your CRM call here
return {"name": "Jane Doe", "tier": "gold", "last_order": "2026-04-12"}
phone = Patter(carrier=Twilio(), phone_number="+15550001234")
agent = phone.agent(
engine=OpenAIRealtime2(),
system_prompt="You are a customer-service agent. Use `lookup_customer` when you need account info.",
first_message="Hi, can I help with your account?",
tools=[lookup_customer],
)
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.
- 3mo ago First seen · 253 lines · 122 tokens per session scan A 91d17c5ce308
add-tools-and-handoffs is a skill published in the GitHub repository PatterAI/skills (6 stars, last pushed 5mo ago), licensed MIT. It adds 122 tokens to every session and 2,257 once invoked, about $0.0005 per session on Opus 5.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-31.
add-tools-and-handoffs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-tools-and-handoffsPatterAI/skills | Skill | 6 | 5mo ago | MIT | A | 122 | Claude Code, Codex |
| agentlineAgentLineHQ/AgentLine | Skill | 64 | 1mo ago | MIT | C | 67 | Claude Code, Codex |
| x-tweet-by-conversationbrowser-act/skills | Skill | 6.4k | 26d ago | MIT | A | 218 | Claude Code, Codex |
| oma-scholarfirst-fluke/oh-my-agent | Skill | 1.5k | today | MIT | A | 30 | Claude Code |
| render-3d-product-showcasegooseworks-ai/goose-skills | Skill | 1.3k | 2d ago | MIT | A | 159 | Claude Code, Codex |
| render-airdrop-carouselgooseworks-ai/goose-skills | Skill | 1.3k | 2d ago | MIT | A | 207 | Claude Code, Codex |
| email-lifecycle-flow-writergooseworks-ai/goose-skills | Skill | 1.3k | 2d ago | MIT | A | 50 | Claude Code, Codex |