endurance

endurance is a command for Claude Code from kitchen-engineer42/joharnessburg. It costs 92 tokens per session (635 once invoked), scanned A, original, MIT.

A command for saving or clearing a long-running goal for a John session so the goal remains visible after context limits or terminal restarts.

In plain words
What is it for?
Use it to set an endurance goal, view the current goal, or clear it for a project.
Why use it?
It keeps the main objective available during extended work instead of relying on the current conversation staying intact.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the john plugin — 28 skills, 5 commands, 5 agents, 3 hooks shipped together

Good fit Use it to set an endurance goal, view the current goal, or clear it for a project.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add kitchen-engineer42/joharnessburg
Claude Code
/plugin install john

Made for: Claude Code.

Or install john, the plugin that ships this one along with the rest of its 28 skills, 5 commands, 5 agents, 3 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 endurance

README.md
[![agentmods](https://agentmods.dev/badge/commands/kitchen-engineer42/joharnessburg/endurance.svg)](https://agentmods.dev/commands/kitchen-engineer42/joharnessburg/endurance)
Your own site
<a href="https://agentmods.dev/commands/kitchen-engineer42/joharnessburg/endurance"><img src="https://agentmods.dev/badge/commands/kitchen-engineer42/joharnessburg/endurance.svg" alt="Measured on agentmods" height="20"></a>
Per session 92 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 635 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.00092 $0.00635
Opus 5 $0.00046 $0.00318
Sonnet 5 $0.00018 $0.00127
Haiku 4.5 $0.00009 $0.00064

Measured 7d ago against content hash 17ba6e15c485, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

endurance 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 7d 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.

plugins/joharnessburg/commands/endurance.md · 30 lines

What it actually says

When this command fires:

  1. Parse the user's argument. Everything after /john:endurance (joined into one string) is the endurance goal — a short, concrete statement of what the long run is trying to produce. The --clear flag (if present, alone) clears the active endurance goal.

  2. Invoke the script via Bash:

    python3 "${CLAUDE_PLUGIN_ROOT}/scripts/set_endurance.py" <user-args>
    

    Pass the goal text as a single argument (quote it). For --clear, pass only --clear.

  3. The script returns JSON with action: "set" | "clear" | "show". Show the user:

    • For set: confirm the goal is now written to <cwd>/.john/workspace.json under session_metadata.endurance_goal. Tell them the SessionStart hook will inject it into the system prompt at the top of every session in this directory from now on — so the goal survives context compaction and fresh-terminal restarts.
    • For clear: confirm the goal is removed. SessionStart will fall back to the "no endurance goal set" message.
    • For show (no args and no --clear): print the currently-set goal, or note that none is set.
  4. After a successful set, gently remind the user that this is best used for real long runs — not every John session needs an endurance goal. A short Q&A session or a one-phase iteration is fine with just the project intent at the top of PLAN.md. Endurance mode is for runs that span hours, multiple compactions, or many ralph-loop iterations.

  5. On success: false with "No .john/workspace.json found", tell the user to run /john:init first — endurance goals attach to a John workspace.

Endurance mode pairs with the ralph-loop and context-management skills — the goal is what survives compaction and what you re-align to after each iteration.

One behavioral consequence (see vertical-workflows): with an endurance goal set, John assumes the session is workflow-configured (/effort ultracode, dynamic workflows available) and will not pause a long run to ask the user to confirm config. If the Workflow tool is genuinely absent, John falls back to inline dispatch and notes it in PLAN.md rather than stopping. Users starting an endurance run should set up the session per the README's "Running John with dynamic workflows" recipe first.

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. 7d ago First seen · 30 lines · 92 tokens per session scan A 17ba6e15c485

Subscribe to this mod's changes

endurance is a command published in the GitHub repository kitchen-engineer42/joharnessburg (9 stars, last pushed 1mo ago), licensed MIT. It adds 92 tokens to every session and 635 once invoked, about $0.0005 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.