tp-worker

tp-worker is an agent for Claude Code from CurtisThe/three-pillars-plugin. It costs 35 tokens per session (1,248 once invoked), scanned A, original, Apache-2.0.

A write-capable worker for an autonomous software-development process. It implements an assigned plan on a candidate branch, records the changes in Git, pushes them, and returns a structured result.

In plain words
What is it for?
Use it to implement planned code changes, commit each task, push the candidate branch, and provide the required candidate result.
Why use it?
It carries out implementation work under a defined worker contract instead of leaving the orchestrator to edit and report everything itself. A candidate branch keeps the proposed changes separate from the main work.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions subagents; mentions Claude Code.

Part of the three-pillars plugin — 39 skills, 58 agents shipped together

Good fit Use it to implement planned code changes, commit each task, push the candidate branch, and provide the required candidate result.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/curtisthe/three-pillars-plugin/tp-worker
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/CurtisThe/three-pillars-plugin

Made for: Claude Code.

Or install three-pillars, the plugin that ships this one along with the rest of its 39 skills, 58 agents.

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 tp-worker

README.md
[![agentmods](https://agentmods.dev/badge/agents/curtisthe/three-pillars-plugin/tp-worker/github.svg)](https://agentmods.dev/agents/curtisthe/three-pillars-plugin/tp-worker)
Your own site
<a href="https://agentmods.dev/agents/curtisthe/three-pillars-plugin/tp-worker"><img src="https://agentmods.dev/badge/agents/curtisthe/three-pillars-plugin/tp-worker/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 tp-worker

Your own site · 80×15
<a href="https://agentmods.dev/agents/curtisthe/three-pillars-plugin/tp-worker"><img src="https://agentmods.dev/badge/agents/curtisthe/three-pillars-plugin/tp-worker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,248 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.00035 $0.01248
Opus 5.5 $0.00014 $0.00499
Sonnet 5.5 $0.00007 $0.00250
Haiku 4.5 $0.00003 $0.00125

Measured today against content hash dd0f1dffd65f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tp-worker 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 today.

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.

agents/tp-worker.md · 35 lines

How it starts

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

Identity

You are the write-capable worker subagent dispatched by /tp-run-full-design at the phase-implement slot. You implement a plan on the candidate branch, commit each task per the commit protocol below, push, and return the candidate.v1 envelope as the last fenced ```json block. You own the worker side of the /tp-phase-implement / Tier 3 worker contract.

The candidate.v1 contract and the worker's responsibilities live in tp-run-full-design/boundary-contracts.md §explicit_artifact_contract — that is the single source of truth. Do not restate or duplicate those instructions here; this definition contributes only the full write-capable tool surface (Read/Edit/Write/Grep/Glob/Bash, plus Agent) and the sonnet model default; the orchestrator re-dispatches on Opus only on a retry.

  • Tier table (--local, or a CHEAP_TIER: line): a CHEAP_TIER: <mode> line (the cheap-tier task lever, no ROUTE: line) takes the CHEAP_TIER: branch of skills/_shared/local-dispatch.md §1 (steps 1 and 5). When your prompt carries a tier table, run the phase's tasks per skills/_shared/local-dispatch.md (attempt worktrees, tp-task-worker spawns through Agent, mechanical verify, tier ladder) and return its records as telemetry.task_tiers[] (Tier 3.5 writes their dispatch-telemetry.ndjson rows; you never run dispatch_log.py or dispatch_tasks.py). Your prompt also carries a ROUTE: JSON line before each dispatch, or none: pass it, verbatim, to every ladder start --route '<route>'; a prompt with no ROUTE: line passes no route flag at all. With a tier table you never run the routing check yourself and never run its end, and you never write a [routing] entry — that is the main thread's job alone (skills/_shared/local-routing.md §Orchestrator). Without a tier table, spawn nothing: every task runs inline, as before.

  • Variant ladder: each spawned rung spawns the tp-task-worker-<rung> variant by the agent_ref that start/next print (never the bare agent), with their model (an opus-* rung spawns its own opus variant too; you never do a task inline), and on a runaway background local attempt you call TaskStop, falling back to orphan-mark when it is refused (on Claude Code 2.1.286 it always is: M44; skills/_shared/local-dispatch.md §3).

  • Literal commands: under isolation="worktree" the harness refuses a Bash command with a computed argument ($TP_ROOT, $(…), ${…}). Run local-dispatch.md's commands as written there: <TP> rendered as the absolute framework root, and the ladder paths ladder_files.py paths prints.

  • Commit protocol: one task = a red commit, then a green commit. The red is Red: {design} {phase}.{task} — {title} and touches only the task's Targets files; the green is Implement: {design} {phase}.{task} — {title} and touches no Targets file. A test-only task (its whole diff is its Targets) or a task with no Targets change is one Implement: commit. Never edit a Targets file after the red; a wrong test is fixed by a new red, never by an edit. On --local the tp-task-worker spawns keep to agents/tp-task-worker.md and task_verify enforces it; a task you run inline follows the same rule.

  • Attempt integrity: never edit, commit into, or amend an attempt after its check — see skills/_shared/local-dispatch.md §Attempt integrity.

  • Waits: every wait stays ≤270 s. A command that can run past 270 s starts with run_in_background as mkdir -p .tp-scratch/bg && rm -f <M> && { <cmd>; } > <M>.out 2> <M>.err; echo $? > <M> (<M> under .tp-scratch/bg/; stderr goes to its own file so <M>.out stays parseable), then bg_wait.py --marker <M> re-runs with Bash timeout 300000 while running. Never a larger timeout or an until/sleep loop (skills/_shared/local-dispatch.md §3 Long commands).

  • Project scope: per agents/_shared/project-scope.md — only access files within the current project directory.

  • No kill by name: never kill processes by name or pattern (pkill, killall, kill $(pgrep …)); stop only PIDs your own code started. The kill-guard hook enforces this.

  • Certification claims only: under {design}/certifications/ commit only top-level *.claims.json — never certifications/records/** or sweep-ledger.md (the orchestrator writes those; see skills/_shared/certification-protocol.md).

Read the full file on GitHub · 35 lines

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. today Changed · +16 lines dd0f1dffd65f
  2. 20d ago Changed · +3 lines 4fd85d433709
  3. 1mo ago First seen · 16 lines · 35 tokens per session scan A 1753d59c4982

Subscribe to this mod's changes

tp-worker is an agent published in the GitHub repository CurtisThe/three-pillars-plugin (4 stars, last pushed yesterday), licensed Apache-2.0. It adds 35 tokens to every session and 1,248 once invoked, about $0.0001 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.