run-worker

run-worker is a skill for Claude Code from getklaim/claude-auto-context. It costs 24 tokens per session (487 once invoked), scanned A, original, MIT.

A skill for manually starting or checking an Auto Context worker, a background process that records project activity for later context. It reports whether the worker is running, pending events, and recent logs.

In plain words
What is it for?
Use it to view worker status, read recent worker logs, or start the worker manually when it is not running.
Why use it?
It gives you a direct way to see whether the worker is active and to inspect what it has recorded when automatic context is missing or needs checking.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/worker-launcher.sh "$(pwd)".

Part of the claude-auto-context plugin — 6 skills, 2 agents, 6 hooks shipped together

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/getklaim/claude-auto-context
agentmods
npx agentmods add skills/getklaim/claude-auto-context/run-worker

Made for: Claude Code.

Or install claude-auto-context, the plugin that ships this one along with the rest of its 6 skills, 2 agents, 6 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/getklaim/claude-auto-context/run-worker.svg)](https://agentmods.dev/skills/getklaim/claude-auto-context/run-worker)
Your own site
<a href="https://agentmods.dev/skills/getklaim/claude-auto-context/run-worker"><img src="https://agentmods.dev/badge/skills/getklaim/claude-auto-context/run-worker.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 487 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00024 $0.00487
Opus 5 $0.00012 $0.00244
Sonnet 5 $0.00005 $0.00097
Haiku 4.5 $0.00002 $0.00049

Measured 6d ago against content hash 98d1bbd85d82, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

run-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 6d 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.

skills/run-worker/SKILL.md · 43 lines

What it actually says

Run Worker

Auto Context 워커를 수동 실행하거나 상태를 확인한다.

Current Status

  • Lock file: !LOCK=".claude-auto-context/worker.lock"; if [ -f "$LOCK" ]; then PID=$(cat "$LOCK"); if kill -0 "$PID" 2>/dev/null; then echo "RUNNING (pid=$PID)"; else echo "STALE LOCK (pid=$PID, not alive)"; fi; else echo "NOT RUNNING"; fi
  • Pending events: !sqlite3 .claude-auto-context/db/claude-auto-context.db "SELECT count(*) FROM raw_events WHERE status='pending'" 2>/dev/null || echo "DB not found"
  • Recent log:

!tail -5 .claude-auto-context/db/worker.log 2>/dev/null || echo "No log file"

Procedure

Arguments: $ARGUMENTS

  1. status — 위 Current Status 섹션 정보를 보여주고 끝
  2. logstail -30 .claude-auto-context/db/worker.log 실행하여 최근 로그 출력
  3. force — 강제 재시작: a. Lock file에서 PID 읽어서 kill $PID 실행 b. Lock file 삭제: rm -f .claude-auto-context/worker.lock c. scripts/worker-launcher.sh 실행 (현재 프로젝트 디렉토리를 인자로 전달) d. 2초 후 lock file 확인하여 시작 여부 보고
  4. 인자 없음 — 스마트 실행: a. 워커가 이미 RUNNING이면 상태만 보여줌 b. NOT RUNNING 또는 STALE LOCK이면 scripts/worker-launcher.sh 실행 후 상태 확인

Launch Command

워커 실행 시 반드시 이 명령을 사용:

./scripts/worker-launcher.sh "$(pwd)"

직접 bun .claude-auto-context/worker.mjs를 실행하지 말 것 — launcher가 lock file, 환경변수(CLAUDECODE unset), 로그 리다이렉트를 처리한다.

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. 6d ago First seen · 43 lines · 24 tokens per session scan A 98d1bbd85d82

Subscribe to this mod's changes

run-worker is a skill published in the GitHub repository getklaim/claude-auto-context (10 stars, last pushed 5mo ago), licensed MIT. It adds 24 tokens to every session and 487 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

media-ingest

Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.

garrytan/gbrain · 52 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

establishing-project-context

Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain term that needs active semantic modeling. Routine small tasks stay on the fast path.

GanyuanRan/Aegis · 45 tokens