complete-task

complete-task is an agent for Claude Code from uHappyLogic/cairn. It costs 32 tokens per session (1,501 once invoked), scanned A, original, MIT.

A task-focused coding agent that completes one named item from a project task list and checks whether its success conditions were met.

In plain words
What is it for?
Use it to find a task in TASKSTODO.md, implement it, verify the result, move it to the completed list, and hand back the changed file paths.
Why use it?
It turns a single planned task into a verified change while keeping the task list up to date and reporting which files it changed.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

Good fit Use it to find a task in TASKSTODO.md, implement it, verify the result, move it to the completed list, and hand back the changed file paths.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/uhappylogic/cairn/complete-task
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/uHappyLogic/cairn

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 complete-task

README.md
[![agentmods](https://agentmods.dev/badge/agents/uhappylogic/cairn/complete-task/github.svg)](https://agentmods.dev/agents/uhappylogic/cairn/complete-task)
Your own site
<a href="https://agentmods.dev/agents/uhappylogic/cairn/complete-task"><img src="https://agentmods.dev/badge/agents/uhappylogic/cairn/complete-task/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 complete-task

Your own site · 80×15
<a href="https://agentmods.dev/agents/uhappylogic/cairn/complete-task"><img src="https://agentmods.dev/badge/agents/uhappylogic/cairn/complete-task.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 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,501 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.00032 $0.01501
Opus 5.5 $0.00013 $0.00600
Sonnet 5.5 $0.00006 $0.00300
Haiku 4.5 $0.00003 $0.00150

Measured 23d ago against content hash 335fd6d8ff5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

complete-task 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 23d 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.

core/agents/complete-task.md · 107 lines

How it starts

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

{{AGENT_WRITE_TOOLS}}---

You are an agent completing one task from the project's task list in an isolated subagent context. You write your change set to a file in the run's scratch directory and stage and commit nothing — committing is the orchestrator's job under the layer rule.

Inputs

Your prompt carries three values and nothing else:

  • Task name — the Complete the task named: "<TASK_NAME>" line, the ## heading text of the one task to complete.
  • Milestone directory — the Milestone directory: <MILESTONE_DIR> line, the already-resolved <MILESTONE_DIR> of the milestone the task belongs to. Use it as given, as the supplied directory the shared procedure's step 1 takes; you never resolve it yourself.
  • Scratch directory — the Scratch directory: <scratch dir> line, the run's <scratch dir>, a directory outside the repository that the orchestrator has already created. Your return goes into it as two files (see the return-file contract below); you never create, choose, or replace it yourself.

How to complete the task

Follow the shared procedure at {{PLUGIN_ROOT}}/shared/complete-procedure.md exactly — it is the single source of truth for the find → load environment → carry out → verify → remove from the list work. Read it first, then carry out every step against the task and the milestone directory in your prompt.

Return-file contract (subagent only)

The shared procedure has you record the exact set of paths you create or edit as you carry out the task; that recorded set, with the milestone task list the removal changes, is your task's whole change set, and the acceptance bar step 5 hands on is your task's record. You write the bar to the body file <scratch dir>/body.txt and that change set to the path file <scratch dir>/paths.txt, in the same shell call as the procedure's step 5 removal, and stage none of it: the orchestrator commits your task with the body file's content as the commit's body and the path file as its only pathspec, so its commit carries exactly your bar and exactly the paths the file names. Run step 5 as this one fixed shell call, written out in full exactly as shown, with only <MILESTONE_DIR>, <Task Title>, the bar's bullets, the recorded paths, and <scratch dir> replaced:

Read the full file on GitHub · 107 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. 23d ago Changed · +37 lines · +5 tokens per session 335fd6d8ff5e
  2. 1mo ago Changed · +12 lines 2dc94126b4f6
  3. 1mo ago Changed 460e45079b1c
  4. 1mo ago Changed · +11 lines 9615c4981e73
  5. 2mo ago Changed · +1 lines ceed6cd474f9
  6. 2mo ago Changed 8ec4e53b5059
  7. 2mo ago Changed · +7 lines d25c88a18a39
  8. 2mo ago Changed · -5 lines · -8 tokens per session f806a51c4aee
  9. 3mo ago First seen · 44 lines · 35 tokens per session scan A ea99f7e109b5

Subscribe to this mod's changes

complete-task is an agent published in the GitHub repository uHappyLogic/cairn (3 stars, last pushed 15d ago), licensed MIT. It adds 32 tokens to every session and 1,501 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.

Related

complete-task compared with agents from other repositories

complete-task next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
complete-taskuHappyLogic/cairnAgent315d agoMITA32Claude Code
quotatonone-ai/tononeAgent85yesterdayMITA23Claude Code
stagetonone-ai/tononeAgent85yesterdayMITA22Claude Code
vaulttonone-ai/tononeAgent85yesterdayMITA27Claude Code
docktonone-ai/tononeAgent85yesterdayMITA24Claude Code
scopetonone-ai/tononeAgent85yesterdayMITA18Claude Code
trailhead-researchToRvaLDz/trailheadAgent393d agoMITA20Claude Code