context-recovery

context-recovery is a skill for Claude Code, Codex from SakuraByteCore/codexmate. It costs 72 tokens per session (846 once invoked), scanned A, original, Apache-2.0.

A project-history lookup tool for finding context in local sessions from coding agents such as Codex, Claude Code, Gemini, CodeBuddy, and Codexmate.

In plain words
What is it for?
Use it to create handoff summaries, find earlier decisions or validations, and investigate past work on a repository, branch, file, error, pull request, or issue.
Why use it?
It helps recover what happened in earlier work when the current session lacks the background. It provides historical evidence, while current pull requests, checks, deployments, and files still need live verification.

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/sakurabytecore/codexmate/context-recovery
Any agent
npx skills add SakuraByteCore/codexmate --skill context-recovery
Clone the repo
git clone --depth 1 https://github.com/SakuraByteCore/codexmate

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-recovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/sakurabytecore/codexmate/context-recovery.svg)](https://agentmods.dev/skills/sakurabytecore/codexmate/context-recovery)
Your own site
<a href="https://agentmods.dev/skills/sakurabytecore/codexmate/context-recovery"><img src="https://agentmods.dev/badge/skills/sakurabytecore/codexmate/context-recovery.svg" alt="Measured on agentmods" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 846 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.00072 $0.00846
Opus 5 $0.00036 $0.00423
Sonnet 5 $0.00014 $0.00169
Haiku 4.5 $0.00007 $0.00085

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

Security

Grade A, and why

context-recovery 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 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/search_sessions.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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-recovery/SKILL.md · 65 lines

How it starts

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

Codexmate Project Context Recovery

Overview

Use this skill to build an evidence-first project handoff brief from local agent sessions. It is not semantic memory or a live GitHub source of truth. It works best with hard identifiers: owner/repo, branch names, file paths, commit hashes, exact errors, PR/issue numbers plus repo filters, or unique commands.

Old sessions are historical evidence. Mutable facts such as PR state, CI, releases, deployments, and current files still require live checks before action.

Quick Start

Generate a context brief first. Resolve scripts/search_sessions.py relative to this skill directory; after npm installation the full package path is node_modules/codexmate/skills/context-recovery/scripts/search_sessions.py.

python3 scripts/search_sessions.py "SakuraByteCore/codexmate feat/task-orchestration-tab" --mode brief --source all --path-filter codexmate --match all --format text --limit 8

Use plain search when you need raw candidates:

python3 scripts/search_sessions.py "exact error text" --mode search --source all --path-filter codexmate --format text --limit 10

Workflow

  1. Confirm the object: repo/project, PR/issue number, branch, file path, command, exact error text, person, or date range. If multiple projects match, state the chosen object before searching.
  2. Prefer hard identifiers: exact owner/repo, short repo name, PR/issue number with repo filter, branch, file path, commit hash, exact error, then user wording.
  3. Generate a brief: use --mode brief; add --path-filter for project/worktree isolation; use --match all when the query has strong identifiers.
  4. Check confidence: high means multiple hard signals appeared; medium/weak means re-query with stronger identifiers before relying on it; none means no hits were found.
  5. Use the brief as a handoff: extract timeline, decisions, validations, risks, files, commands, commits, and top evidence sessions.
  6. Live-check mutable facts: before commenting, merging, releasing, or claiming current status, check GitHub/current files directly.

Read the full file on GitHub · 65 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. 5d ago First seen · 65 lines · 72 tokens per session scan A 56e3e38cfe68

Subscribe to this mod's changes

context-recovery is a skill published in the GitHub repository SakuraByteCore/codexmate (341 stars, last pushed yesterday), licensed Apache-2.0. It adds 72 tokens to every session and 846 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

migrate-memory

Migrate legacy NanoClaw and Claude-native memory into the shared memory tree and provider-neutral standing instructions. Run after an update reports the shared-memory breaking change, or when a group still has .seed.md, legacy CLAUDE.md/CLAUDE.local.md, Claude auto-memory, or an unindexed imported-agent-memory.md.…

nanocoai/nanoclaw · 92 tokens

add-karpathy-llm-wiki

Add a persistent wiki knowledge base to a NanoClaw group. Based on Karpathy's LLM Wiki pattern. Triggers on "add wiki", "wiki", "knowledge base", "llm wiki", "karpathy wiki".

nanocoai/nanoclaw · 56 tokens

memory

Search conversation history and understand Dream-managed profile and memory files.

HKUDS/nanobot · 14 tokens

add-mnemon

Add persistent graph-based memory via mnemon. Agents recall past context before responding and remember insights after each turn.

nanocoai/nanoclaw · 27 tokens

memory-config

Diagnose and configure MemSearch memory behavior. Use when the user asks about MemSearch configuration, plugin summarization, PROJECT.md/USER.md maintenance, memory directories, index health, provider routing, prompt files, or migration/compatibility questions.

zilliztech/memsearch · 52 tokens

memory-to-skill

Turn workflows from your MemSearch memory into reusable skills. Use when the user asks to make/create/extract/distill a skill from what they just did or from past work, review skill candidates, install a distilled skill, or 'turn this into a skill'. Manages MemSearch procedural-memory candidates under…

zilliztech/memsearch · 82 tokens