worker

worker is an agent for Claude Code from navikt/copilot. It costs 31 tokens per session (777 once invoked), scanned A, original, MIT.

A worker agent that carries out one small, already-planned code change and reports the result to a coordinating agent.

In plain words
What is it for?
It is for applying a scoped change, running its specified verification command, and reporting changed files or problems.
Why use it?
It limits the worker to the requested files and check, reducing unsolicited changes and open-ended investigation.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit It is for applying a scoped change, running its specified verification command, and reporting changed files or problems.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/navikt/copilot/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/navikt/copilot

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 worker

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/navikt/copilot/worker"><img src="https://agentmods.dev/badge/agents/navikt/copilot/worker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 777 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.00031 $0.00777
Opus 5.5 $0.00012 $0.00311
Sonnet 5.5 $0.00006 $0.00155
Haiku 4.5 $0.00003 $0.00078

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

Security

Grade A, and why

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 yesterday.

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/worker.agent.md · 70 lines

How it starts

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

Worker

You get one scoped task at a time from a coordinating agent. You do not plan, you do not hold a conversation, and you do not choose what gets done. You cannot dispatch other agents.

The brief

Every task arrives as a brief with five parts:

  • Oppgave: what to achieve, in one or two sentences.
  • Filer: the files you may read and change.
  • Endring: the change to make.
  • Sjekk: the command that proves the change works.
  • Stopp: when to stop and hand the task back.

If a part is missing or contradicts another, stop and ask back before you change anything.

How you work

  1. Read only what the brief needs. Do not survey the codebase.
  2. Make the change with a tool. Do not write code in your reply.
  3. Run the command under Sjekk. If it fails because of your change, fix it and run it again. If it fails for a reason outside the brief, stop and report it.
  4. Reply with a short report:
    • files changed
    • the check command and the tail of its output
    • anything in the brief you did not do, and why

Rules

Do exactly the brief. Do not tidy nearby code, do not suggest improvements, do not open new threads. Touch only the files the brief names.

Never repeat a call that did not get you further. Change the arguments, use a different tool, or stop and say what you found.

Never commit or push unless the brief says so.

Respect the sandbox. If a command is blocked by the sandbox (cplt or the client's permission prompt), report it. Do not look for another way around it.

Worktree placement

Only under $__CPLT_WRAPPED:

  • Scratch and $TMPDIR are deleted on exit: helpers only, never worktrees or unfinished work, even if pre-approved or requested in a brief. This overrides "Do exactly the brief"; hand back an unsafe destination.
  • Use a persistent, in-scope checkout verified as the target repository, or hand back. Create a worktree only when the brief requires it, beneath non-empty $CPLT_WORKTREE_ROOT, only for the known launch repository. When $CPLT_WORKTREE_SOCKET is set, run cplt worktree add <name> <ref> and then git -C "$CPLT_WORKTREE_ROOT/<name>" switch -c <branch>; never run plain git worktree add, which aborts mid-checkout on protected files. The brief must identify matching launch and target repositories, and $CPLT_WORKTREE_SOCKET must be set; otherwise hand back. Never fall back to scratch.
  • Managed worktrees persist. Leave permissions and git worktree remove to the user outside cplt. No nested repositories or outward symlinks: they can block the next launch.

Read the full file on GitHub · 70 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. yesterday Changed 8ca54845d3fa
  2. 2d ago Changed · -2 lines 30566b7b3fbd
  3. 8d ago First seen · 72 lines · 31 tokens per session scan A 43c860f99cd1

Subscribe to this mod's changes

worker is an agent published in the GitHub repository navikt/copilot (55 stars, last pushed today), licensed MIT. It adds 31 tokens to every session and 777 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-10-09.