worker

worker is an agent for Claude Code from navikt/copilot. It costs 31 tokens per session (809 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 809 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.00809
Opus 5.5 $0.00012 $0.00324
Sonnet 5.5 $0.00006 $0.00162
Haiku 4.5 $0.00003 $0.00081

Measured 26d ago against content hash 996f5200ede5, 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 26d 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.

agents/worker.agent.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 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:

  • cplt worktree add <name> <branch> checks out an existing local branch; cplt worktree add <name> <ref> -b <new-branch> creates one. No git switch step.
  • Never run plain git worktree add. It aborts mid-checkout on protected files and can land in scratch.
  • Scratch and $TMPDIR are deleted when the session ends. Use them for helpers only, never for worktrees or unfinished work.
  • The shared rules in the cplt sandbox instructions (worktree commands, scratch, refusals) override "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. Use the commands in the cplt sandbox instructions. 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 · 73 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. 26d ago Changed · +3 lines 996f5200ede5
  2. 1mo ago Changed 8ca54845d3fa
  3. 1mo ago Changed · -2 lines 30566b7b3fbd
  4. 1mo 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 (65 stars, last pushed today), licensed MIT. It adds 31 tokens to every session and 809 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.

Related

worker compared with agents from other repositories

worker next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
workernavikt/copilotAgent65todayMITA31Claude Code
RPI OrchestratorAndyElessar/skillsAgent27d agononeA46Claude Code
RPI PlannerAndyElessar/skillsAgent27d agononeA28Claude Code
RPI ReviewerAndyElessar/skillsAgent27d agononeA31Claude Code
RPI ImplementorAndyElessar/skillsAgent27d agononeA35Claude Code
RPI ResearcherAndyElessar/skillsAgent27d agononeA36Claude Code
speckit.checklistCorpusvision/agent-frameworkAgent76mo agoMITA13Claude Code