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 agentproto/ts --skill pb-new-agent-sessiongit clone --depth 1 https://github.com/agentproto/tsWrote 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/agentproto/ts/pb-new-agent-session)<a href="https://agentmods.dev/skills/agentproto/ts/pb-new-agent-session"><img src="https://agentmods.dev/badge/skills/agentproto/ts/pb-new-agent-session/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/agentproto/ts/pb-new-agent-session"><img src="https://agentmods.dev/badge/skills/agentproto/ts/pb-new-agent-session.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.00068 | $0.01242 |
| Opus 5.5 | $0.00027 | $0.00497 |
| Sonnet 5.5 | $0.00014 | $0.00248 |
| Haiku 4.5 | $0.00007 | $0.00124 |
Grade A, and why
pb-new-agent-session 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 5d 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 — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.
pb-new-agent-session — spawn a worker and drive it to a result
Goal
One delegated task, one session: pick the harness and model, spawn the worker with a self-contained brief, wait for its turn to end, read and verify the result, then kill the session so the tree stays clean.
Prerequisites (reference by name, not re-explained here): ap-spawn-agent,
ap-read-output, ap-wait-fanin, ap-lifecycle, ap-models-auth,
ap-adapters. The family map is the agentproto skill; the cheap-model
picking guidance lives in the cheap-coders group.
Steps
1. Pick the harness and model
- Cheap bulk work:
hermes+z-ai/glm-5.3-flash, billed through theteam-primaryaccess profile. Note: hermes has NO built-in file/shell tools. - Work that must edit files or run commands natively:
claude-code(Read, Write, Bash, Edit are built in — no gateway mount needed). - Check what is installed before choosing (harness listing from
ap-adapters); model eligibility and access profiles go toap-models-auth.
2. Take the event cursor BEFORE spawning
Grab a cursor first so the spawn event cannot slip past your wait:
{ "tool": "session_events_poll", "args": {} }
Use the returned nextCursor as since in every later session_monitor
call. Events emitted before this first poll are returned immediately with
since, so the ordering is race-free.
3. Spawn with a self-contained brief
The child knows nothing about your conversation — put paths, constraints, deliverable, and done-criteria in the prompt:
{
"tool": "agent_start",
"args": {
"harness": "hermes",
"model": "z-ai/glm-5.3-flash",
"cwd": "/path/to/repo",
"label": "worker-audit",
"access": { "profileRef": "team-primary" },
"mcpServers": [
{ "name": "agentproto", "transport": "http", "ref": "http://127.0.0.1:18790/mcp" }
],
"prompt": "Audit src/ for unused exports and list them in AUDIT.md.",
"wait": false
}
}
Replace the prompt with your self-contained brief (goal, exact file paths,
constraints). mcpServers gives the worker agentproto tools. For
claude-code, drop mcpServers (native tools) and keep the rest. The call returns the session id; keep it with the label.
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.
- 5d ago Changed · +17 lines 46d3a825cc74
- 2mo ago Changed · +1 lines 0b4fcf4f1d2e
- 3mo ago First seen · 111 lines · 68 tokens per session scan A f299118b9e05
pb-new-agent-session is a skill published in the GitHub repository agentproto/ts (11 stars, last pushed yesterday), licensed Apache-2.0. It adds 68 tokens to every session and 1,242 once invoked, about $0.0003 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-09-04.
pb-new-agent-session compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pb-new-agent-sessionagentproto/ts | Skill | 11 | yesterday | Apache-2.0 | A | 68 | Claude Code, Codex |
| markedit-toolssammcj/agentic-coding | Skill | 174 | today | Apache-2.0 | A | 16 | Claude Code, Codex |
| deferred-task-executionsammcj/agentic-coding | Skill | 174 | today | Apache-2.0 | A | 54 | Claude Code |
| herdrsammcj/agentic-coding | Skill | 174 | today | Apache-2.0 | A | 29 | Claude Code, Codex |
| glyphyonatangross/orchestkit | Skill | 317 | today | MIT | A | 53 | Claude Code |
| disk-cleanupyonatangross/orchestkit | Skill | 317 | today | MIT | A | 61 | Claude Code |
| skill-creator-primersammcj/agentic-coding | Skill | 174 | today | Apache-2.0 | A | 74 | Claude Code |