context-reconstruct

context-reconstruct is a skill for Claude Code, Codex from sonichi/sutando. It costs 43 tokens per session (2,917 once invoked), scanned A, original, MIT.

A procedure for recovering an agent's working context from saved project records after an interruption or long-running sequence of tasks. It tells the agent to read records such as the current task, owner thread, pending questions, handoff notes, and build log before acting.

In plain words
What is it for?
Use it in agent workflows that may be interrupted, compacted, or run repeatedly. It helps the agent re-establish what is being worked on, who owns it, what remains unanswered, and what has already been built.
Why use it?
It reduces mistakes caused by relying on incomplete or outdated memory. The agent can resume work from the project's durable notes instead of asking the owner to repeat the context.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it in agent workflows that may be interrupted, compacted, or run repeatedly. It helps the agent re-establish what is being worked on, who owns it, what remains unanswered, and what has already been built.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sonichi/sutando/context-reconstruct
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.

Any agent
npx skills add sonichi/sutando --skill context-reconstruct
Clone the repo
git clone --depth 1 https://github.com/sonichi/sutando

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/sonichi/sutando/context-reconstruct/github.svg)](https://agentmods.dev/skills/sonichi/sutando/context-reconstruct)
Your own site
<a href="https://agentmods.dev/skills/sonichi/sutando/context-reconstruct"><img src="https://agentmods.dev/badge/skills/sonichi/sutando/context-reconstruct/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 context-reconstruct

Your own site · 80×15
<a href="https://agentmods.dev/skills/sonichi/sutando/context-reconstruct"><img src="https://agentmods.dev/badge/skills/sonichi/sutando/context-reconstruct.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,917 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Anti-Refusal · line 54
    Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.
    Fix: Remove instructions that suppress warnings, disclaimers, or ethical commentary. Let the agent surface safety-relevant caveats to the user.
How audits are shown
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.00043 $0.02917
Opus 5.5 $0.00017 $0.01167
Sonnet 5.5 $0.00009 $0.00583
Haiku 4.5 $0.00004 $0.00292

Measured 13d ago against content hash de4b9d87e9c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

context-reconstruct 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 13d 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/context-reconstruct/SKILL.md · 108 lines

How it starts

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

context-reconstruct

Goal: never act on lost/eroded memory of the ongoing work. The agent can be interrupted, compacted, or run dozens of interleaved cron passes and still pick up exactly where the thread left off — without the owner re-reminding it.

Why a skill, not a script: a hardcoded bundler (fixed N reads, one channel, fixed depth) is rigid — and easy to skip (narrate "re-anchor" then assert from memory anyway). The fix isn't a rigid script; it's flexible judgment + practice. This file is living — improve it whenever a reconstruction misses.

The one rule

Before interpreting or acting on anything that depends on earlier context, READ the durable record. Don't recall — read. A "re-anchor" you claim but don't actually read is the failure.

What to read — judgment, fit to the moment (not a checklist to run blindly)

Read the current-track record FIRST — <workspace>/hosts/<hostname>/current-track.md (this skill owns it; see "Maintain" below). It is a bounded head, not the whole history. Every pass pays this read, so the file is rotated: entries older than the newest ~32 KB live in current-track-archive.md beside it (scripts/current-track-rotate.py, run when health-check's context-read-budget probe warns; everything rotation removes from the head is appended to the archive, in the order entries leave — an interrupted rotation repeats a batch there rather than losing it). Rotation replaces the file, so append entries through scripts/current-track-write.py append (entry on stdin) — it shares rotation's lock in src/current_track.py, and an entry can never land between rotation's read and its replace. Read the head; open the archive only for a specific older referent. An entry that other tools read as live state — an owner hold, a hands off, an in force until — is kept in the head at any age, because a hold that ages out reads as not held to every consumer that greps this file. Resolve <hostname> with bash scripts/sutando-config.sh host-label, the same way the per-host files do. Legacy fallback: if that file is absent but <workspace>/state/current-track.md exists, read the legacy path and migrate it to the per-host path on the next write — the flat path was shared across hosts and is being retired (#2567). It's the fast anchor: the current main-track goal, the active sub-task, and the live open decisions. This is what's missing when "continue your main track" gets guessed — the goal must be a pinned record, not inferred from luck.

Read the full file on GitHub · 108 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. 13d ago Changed de4b9d87e9c1
  2. 1mo ago Changed f6e0b31c0d89
  3. 1mo ago Changed · +1 lines 30e57ae4ae7a
  4. 1mo ago First seen · 107 lines · 43 tokens per session scan A 6ecd18ec9e75

Subscribe to this mod's changes

context-reconstruct is a skill published in the GitHub repository sonichi/sutando (397 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 2,917 once invoked, about $0.0002 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-08-30.

Related

Other skills, from other repositories