context-end

context-end is a skill for Claude Code, Codex from conorbronsdon/agent-context-os. It costs 46 tokens per session (1,392 once invoked), scanned A, original, MIT.

A session-closing procedure for a workspace system that reviews a proposed handoff summary, records approved results, updates state and decisions, and checks repository safety.

In plain words
What is it for?
Use it to close or hand off a session, validate the required repository markers, run the workspace lifecycle command, and leave reviewable state and decision records.
Why use it?
It helps preserve what happened and what should happen next when a coding session ends.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is colocated: bash scripts/contextos.sh propose end --input .context-os/inputs/<payload.json>.

Good fit Use it to close or hand off a session, validate the required repository markers, run the workspace lifecycle command, and leave reviewable state and decision records.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/conorbronsdon/agent-context-os
agentmods
npx agentmods add skills/conorbronsdon/agent-context-os/context-end

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/conorbronsdon/agent-context-os/context-end"><img src="https://agentmods.dev/badge/skills/conorbronsdon/agent-context-os/context-end.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,392 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 medium

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 →

  • medium Excessive Agency · line 95
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00046 $0.01392
Opus 5.5 $0.00018 $0.00557
Sonnet 5.5 $0.00009 $0.00278
Haiku 4.5 $0.00005 $0.00139

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

Security

Grade A, and why

context-end 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 11d 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.

.agents/skills/context-end/SKILL.md · 124 lines

How it starts

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

End a workspace session

Execution roots (required)

When the host executes commands inside Bash, replace the bash executable shown below with "$BASH" to reuse that shell. This avoids selecting a different Bash from PATH, such as the Windows WSL launcher inside a Git Bash session. In a terminal outside Bash, select the installed Bash explicitly.

Use the exact roots supplied by the host attachment: KernelRoot is the trusted Context OS product containing scripts/contextos.sh; ContextRoot owns tracked identity and lifecycle state; and WorkingRoot is the ordinary application. For an external attachment, require all three exact absolute paths and run:

bash <KernelRoot>/scripts/contextos.sh --context-root <ContextRoot> --working-root <WorkingRoot> <command>

Do not search upward or infer a root from cwd or the skill installation. The kernel must validate the ignored local binding before strict lifecycle work. A missing, moved, stale, linked, nested, or mismatched binding stops the workflow; use the explicit project rebind proposal after a legitimate move. ContextRoot owns all lifecycle writes. WorkingRoot is read-only evidence. The colocated bash scripts/contextos.sh <command> compatibility form remains valid.

Throughout this procedure, resolve routing, state, session, proposal, receipt, and local-artifact paths beneath ContextRoot. In split mode, spell local paths as absolute <ContextRoot>/... paths and invoke every lifecycle command through the absolute KernelRoot wrapper with both exact role options. In colocated mode, run the relative compatibility commands from the colocated root.

Leave durable, reviewable state for the next session.

Procedure

1. Draft before writing

Determine today's local date and time. Extract completed work, durable decisions and rationale, meaningful rejected alternatives, priority or thread changes, blockers, open work, and next actions. Present the draft and obtain confirmation before creating a proposal.

Read the full file on GitHub · 124 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. 11d ago Changed · +5 lines 5bfac1fe1416
  2. 19d ago Changed · +4 lines 175c31290f67
  3. 23d ago Changed df443acef707
  4. 25d ago Changed · +2 lines 997eae855c04
  5. 1mo ago Changed · +5 lines ffd5a0621dff
  6. 1mo ago Changed · +29 lines e36eec5b29cc
  7. 1mo ago First seen · 79 lines · 46 tokens per session scan A 3adeccfb8afa

Subscribe to this mod's changes

context-end is a skill published in the GitHub repository conorbronsdon/agent-context-os (29 stars, last pushed 5d ago), licensed MIT. It adds 46 tokens to every session and 1,392 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

journal-optimizer

Guided database pruning and optimization workflows for memory-journal-mcp. Uses importance scores, relationship density, and entry metadata to identify low-value entries for safe soft-deletion. Includes dry-run previews, backup gates, and revert guidance. Use when the user says "clean up the database", "optimize…

neverinfamous/memory-journal-mcp · 101 tokens

mnemo-cortex

Installs and wires Mnemo Cortex (local-first persistent memory) into OpenClaw and other MCP-capable agents. Use for cross-session recall, decision history, or multi-agent shared memory.

GuyMannDude/mnemo-cortex · 44 tokens

kn-init

Use at the start of a new session to read project docs, understand context, and see current state.

knowns-dev/knowns · 23 tokens

kn-extract

Use when extracting reusable patterns, decisions, failures, or knowledge into documentation.

knowns-dev/knowns · 18 tokens

alive:session-history

Revive sessions (quick or heavy), browse, and search — 'what happened recently?', 'find the session where we discussed X', 'revive yesterday's session'. For single-session recall and multi-session browsing. If the human needs to merge multiple sessions into one working context or detect conflicts between parallel…

alivecontext/alive · 76 tokens

alive:mine-for-context

Deep context extraction from source material. Creates reference bundles, builds extraction plans, tracks what's been extracted, and discovers new targets — people, subjects, patterns, connections. The archaeologist that turns raw sources into structured knowledge. Can be invoked by alive:session-history for targeted…

alivecontext/alive · 63 tokens