claude-code

A command-line coding assistant for exploring codebases and making complex changes across multiple files.

In plain words
What is it for?
Use it to investigate unfamiliar code, update several related files, and carry out multi-step programming work.
Why use it?
It helps with large refactors and extended coding tasks that are difficult to handle in one short exchange.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/markus-global/markus/claude-code
Any agent
npx skills add markus-global/markus --skill claude-code
Clone the repo
git clone --depth 1 https://github.com/markus-global/markus

Made for: Claude Code, Codex.

Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,225 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 $0.00023 $0.02225
Opus 5 $0.00012 $0.01112
Sonnet 5 $0.00005 $0.00445
Haiku 4.5 $0.00002 $0.00222

Measured 2d ago against content hash 4e9a09817b3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

claude-code 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 2d 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.

templates/skills/claude-code/SKILL.md · 240 lines

How it starts

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

Claude Code

Claude Code (claude binary) is Anthropic's agentic coding CLI. Markus invokes it via invoke_coding_tool({ tool: "claude-code", ... }). Use it for complex, multi-turn coding tasks where deep reasoning and broad file exploration are needed.

Installation

npm install -g @anthropic-ai/claude-code
claude --version

Verify with markus doctor. Requires authentication via one of: ANTHROPIC_API_KEY env var, ANTHROPIC_BASE_URL for custom endpoints, or interactive claude login.

How Markus Invokes Claude Code

Markus runs Claude Code in non-interactive print mode with structured streaming output:

claude --print --output-format stream-json --verbose --max-turns 50 --permission-mode bypassPermissions "<prompt>"
Flag Purpose
--print Non-interactive mode — runs to completion without user input
--output-format stream-json Emits structured JSON events for progress parsing
--verbose Detailed progress output
--max-turns 50 Allows up to 50 agent turns for complex tasks
--permission-mode bypassPermissions Auto-approves all file edits and commands — required because --print mode has no interactive stdin for approval prompts

Additional args can be configured per-deployment via CodingToolConfig.defaultArgs.

Stream-JSON Output

Each stdout line is a JSON event. Key event types:

Event type Meaning
assistant with text content Progress message / reasoning summary
assistant with tool_use File edit, shell command, or other tool invocation
result Final outcome with cost and token data

The result event includes:

  • result — Final summary text
  • input_tokens, output_tokens — Token usage
  • cache_read_tokens, cache_write_tokens — Prompt cache stats
  • cost_usd — Estimated cost in USD

Markus parses these into progress events (file_edit, progress, completed) and extracts cost reports automatically.

CLAUDE.md Context File

Read the full file on GitHub · 240 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 240 lines · 23 tokens per session scan A 4e9a09817b3b

Subscribe to this mod's changes

claude-code is a skill published in the GitHub repository markus-global/markus (157 stars, last pushed 5d ago), licensed Apache-2.0. It adds 23 tokens to every session and 2,225 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-30.