maintaining-context

maintaining-context is a skill for Claude Code, Codex from HECer/yoke. It costs 57 tokens per session (407 once invoked), scanned A, original, MIT.

A project-memory practice that keeps important context in files such as the project's goals, decisions, and reusable facts. It is intended to help a coding agent continue work accurately across sessions.

In plain words
What is it for?
Reading project goals before substantial work, recording non-obvious decisions, and preserving useful technical knowledge or gotchas.
Why use it?
It reduces the chance that a fresh session will miss earlier constraints, decisions, or project-specific lessons.

Skill for Claude CodeCodex

Part of the yoke plugin — 34 skills, 1 hook shipped together

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/hecer/yoke/maintaining-context
Any agent
npx skills add HECer/yoke --skill maintaining-context
Clone the repo
git clone --depth 1 https://github.com/HECer/yoke

Made for: Claude Code, Codex.

Or install yoke, the plugin that ships this one along with the rest of its 34 skills, 1 hook.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/hecer/yoke/maintaining-context.svg)](https://agentmods.dev/skills/hecer/yoke/maintaining-context)
Your own site
<a href="https://agentmods.dev/skills/hecer/yoke/maintaining-context"><img src="https://agentmods.dev/badge/skills/hecer/yoke/maintaining-context.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 407 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.00057 $0.00407
Opus 5 $0.00028 $0.00204
Sonnet 5 $0.00011 $0.00081
Haiku 4.5 $0.00006 $0.00041

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

Security

Grade A, and why

maintaining-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 3d 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.

canon/skills/maintaining-context/SKILL.md · 35 lines

What it actually says

Maintaining Project Context

Yoke keeps durable, cross-session context in .yoke/context/. These files are the project's memory — they survive between sessions and loop iterations, so an agent starting with a fresh context window is never blind.

Before substantial work

  1. Read .yoke/context/PROJECT.md — the north star (goal, constraints, non-goals, success criteria). Align your work to it. If the task contradicts a non-goal, stop and flag it.
  2. Skim .yoke/context/KNOWLEDGE.md for gotchas that affect what you are about to do.

While working

  • When you make a non-obvious decision (a trade-off, an architectural choice, a rejected alternative), append it to .yoke/context/DECISIONS.md:

    ## <YYYY-MM-DD> — <area-or-story>: <short title>
    What you chose and why, in one or two lines.
    

    (This mirrors the heading the loop writes for completed stories, so loop-authored and hand-authored entries share one shape.)

  • When you learn a reusable fact or gotcha (a non-obvious build step, an API quirk, a convention), append a bullet to .yoke/context/KNOWLEDGE.md.

Rules

  • Never rewrite history in DECISIONS.md — only append.
  • Keep PROJECT.md curated and short; it is read into every loop prompt.
  • Inside the autonomous loop, the loop appends a decision per completed story for you — you still add the why and any learnings.
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. 3d ago First seen · 35 lines · 57 tokens per session scan A 8060bae3c189

Subscribe to this mod's changes

maintaining-context is a skill published in the GitHub repository HECer/yoke (2 stars, last pushed 13d ago), licensed MIT. It adds 57 tokens to every session and 407 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

neo4j-agent-memory-skill

Authoritative reference for the neo4j-agent-memory Python package — a graph-native memory system for AI agents built on Neo4j — and for the hosted service (NAMS) at memory.neo4jlabs.com. Use this skill whenever the user mentions neo4j-agent-memory, agent memory with Neo4j, context graphs, the POLE+O model…

neo4j-contrib/neo4j-skills · 223 tokens

neo4j-gds-skill

Neo4j Graph Data Science (GDS) embedded plugin via Python client or Cypher — covers GraphDataScience, gds.v2 plugin endpoints, gds.version, native projection, Cypher projection, graph catalog operations, stream/stats/mutate/write modes, memory estimation, PageRank, Louvain, WCC, FastRP, KNN, Node Similarity, ML…

neo4j-contrib/neo4j-skills · 199 tokens

ox-consult

Search SageOx team memory BEFORE answering from first-principles reasoning. Auto-fire when the user references recent or specific work or asks a before/after question: "I just pushed...", "did X fix Y?", "is the alert gone now?", "this request", or anything tied to a prior decision, a prod anomaly, or a metric/cost…

sageox/ox · 139 tokens

compound

Document solved problems to compound team knowledge. Creates categorized docs with YAML frontmatter. Triggers on "that worked", "it's fixed", "compound".

wsauret/flywheel · 32 tokens

archive

Archive reviewed activities as compact, source-linked Markdown memory.

rlacombe/switchback-running · 10 tokens

neo4j-cli-tools-skill

Use when working with Neo4j command-line tools — neo4j-cli (modern unified CLI — Cypher via Bolt, schema inspection, Aura management, Docker containers, credential management, agent skill catalog install; install with curl -sSfL https://neo4j.sh/install.sh | bash), neo4j-admin (backup, restore, import, memory sizing)…

neo4j-contrib/neo4j-skills · 159 tokens