runaway-context

runaway-context is a skill for Claude Code, Codex from sms021/RunawayContext. It costs 111 tokens per session (1,378 once invoked), scanned A, original, MIT.

A project-context workflow for RunawayContext v3, which stores project briefs, searchable lessons, and drafts in a governed knowledge system.

In plain words
What is it for?
Use it when entering a RunawayContext project, searching its lessons, reviewing its brief, or recording a durable correction as an approved lesson.
Why use it?
It gives the coding agent relevant project history and routes lasting changes through approval and audit checks.

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/sms021/runawaycontext/runaway-context
Any agent
npx skills add sms021/RunawayContext --skill runaway-context
Clone the repo
git clone --depth 1 https://github.com/sms021/RunawayContext

Made for: Claude Code, Codex.

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 runaway-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/sms021/runawaycontext/runaway-context.svg)](https://agentmods.dev/skills/sms021/runawaycontext/runaway-context)
Your own site
<a href="https://agentmods.dev/skills/sms021/runawaycontext/runaway-context"><img src="https://agentmods.dev/badge/skills/sms021/runawaycontext/runaway-context.svg" alt="Measured on agentmods" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,378 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.00111 $0.01378
Opus 5 $0.00056 $0.00689
Sonnet 5 $0.00022 $0.00276
Haiku 4.5 $0.00011 $0.00138

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

Security

Grade A, and why

runaway-context 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 4d 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/runaway-context/SKILL.md · 116 lines

How it starts

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

RunawayContext Skill

This skill activates the RunawayContext v3 retrieval surface inside Claude Code. When the skill is loaded, the AI has access to:

  • Read tools (via the MCP server): get_brief, search_chunks, search_lessons, list_drafts, list_specialists, brief_preview, audit_verify.
  • Write tools (via the MCP server): propose_lesson_draft, approve_draft, reject_draft, regen_brief, brief_rollback, mature_lesson.

When to invoke

  1. Entering a new project directory. The AI should call get_brief with the project's slug. The brief is auto-generated, capped at 150 lines, and reflects the current curated state.

  2. The user asks for context. Examples:

    • "What do you know about the accounting project?" → get_brief(slug='accounting').
    • "Search for paycom-related lessons." → search_lessons(query='paycom', project='paycom').
    • "What's the data map for Procore?" → query data_sources and data_source_mappings for system='procore'.
  3. The user corrects you on something durable. When the correction is project-specific and likely to recur, propose a draft:

    • propose_lesson_draft(title=..., what_happened=..., the_fix=..., prevention_rule=..., project_tags=[...]).
    • Do not call log_lesson directly. The drafts inbox is the human-approval gate (HR-9).
  4. The user invokes a slash command:

    • /runaway:brief <slug>get_brief(slug).
    • /runaway:search <query>search_chunks(query) + search_lessons(query) and present merged results.
    • /runaway:project <slug> → switch the active project context (multi-project session stacking).
    • /runaway:draftslist_drafts() and present for review.
    • /runaway:regen <slug>regen_brief(slug).
    • /runaway:stats → run runaway stats and present the output.

Hard rules to honor

This skill enforces the same hard rules as the underlying install:

  • HR-1. No network calls. All MCP traffic is stdio. Semantic embeddings are local-onnx unless the install opted in to remote providers.
  • HR-2. Every propose_lesson_draft call must include at least one project_tags entry from the canonical slug registry. If the user gives you content without a slug, ask for one before drafting.
  • HR-3. Never call hard-delete via this skill. The MCP server does not expose it.
  • HR-9. Never call mature_lesson without explicit user authorization. The engine proposes; the user (or you, under their authority) approves.
  • HR-13. Do not generate TODO / FIXME markers when writing files in a RunawayContext install's source tree.

Read the full file on GitHub · 116 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. 4d ago First seen · 116 lines · 111 tokens per session scan A 5dba83b16049

Subscribe to this mod's changes

runaway-context is a skill published in the GitHub repository sms021/RunawayContext (16 stars, last pushed 3mo ago), licensed MIT. It adds 111 tokens to every session and 1,378 once invoked, about $0.0006 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.