close

close is a skill for Claude Code, Codex from wrg32786/aigent-os. It costs 15 tokens per session (2,535 once invoked), scanned A, original, MIT.

A session-ending memory workflow that saves decisions and prepares a resume point for later work.

In plain words
What is it for?
Recording durable session notes, preserving decisions, and preparing context for the next session.
Why use it?
It reduces the risk of losing context, decisions, and priorities when a coding session ends.

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/wrg32786/aigent-os/close
Any agent
npx skills add wrg32786/aigent-os --skill close
Clone the repo
git clone --depth 1 https://github.com/wrg32786/aigent-os

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 close

README.md
[![agentmods](https://agentmods.dev/badge/skills/wrg32786/aigent-os/close.svg)](https://agentmods.dev/skills/wrg32786/aigent-os/close)
Your own site
<a href="https://agentmods.dev/skills/wrg32786/aigent-os/close"><img src="https://agentmods.dev/badge/skills/wrg32786/aigent-os/close.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,535 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.00015 $0.02535
Opus 5 $0.00008 $0.01267
Sonnet 5 $0.00003 $0.00507
Haiku 4.5 $0.00002 $0.00253

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

Security

Grade A, and why

close 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.

skills/close/SKILL.md · 298 lines

How it starts

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

Session Close

Deprecated. This skill is superseded by [[skills/context-capsule/SKILL.md|/context-capsule]] (docs/two-verb-lifecycle.md). New installs should reach for /context-capsule; this file stays for anyone still invoking /close by habit during the transition.

Run the aigent-OS end-of-session memory commit inline. The close must be idempotent: rerunning it after a partial failure must not duplicate ledger entries, capsules, or session summaries.

All operator-owned durable state lives under vault/. Framework indexes such as memory/SKILL_LEDGER.md remain outside the vault and are not session memory.

Hardened compatibility contract

The active two-verb lifecycle does not run a second close ceremony, but manual /close keeps the same shared postconditions as nightly:

  • exact already-authored decision outcomes append only through daemons/nightly-decision-outcome.mjs, with a unique decision/interval match and compare-and-swap;
  • bounded Session Log or Active Priorities trimming runs only through skills/context-hygiene/SKILL.md, archives before removal, and must end in CONTEXT_HYGIENE PASS;
  • Dream synthesis follows skills/dream/SKILL.md and must end in DREAM_CONTRACT PASS;
  • cognitive changes follow skills/cognitive-update/SKILL.md and must end in COGNITIVE_CONTRACT PASS;
  • missing canonical input is failure, not "nothing to do";
  • judgment-bearing measurement entries are staged through skills/nightly-ledger-capture/SKILL.md.

These helpers use local memory, Git, stderr, and the SessionStart surface. No external coordination service is required.

Step 0: discipline audit

Run these checks before writing the daily note.

Gate A: honesty ledger

If the session included non-trivial work, completed-task claims, multi-file edits, or consequential decisions and vault/memory/HONESTY_LEDGER.md was not updated:

  1. Run /honesty-check on the most consequential work block.
  2. Append one structured entry covering verified, inferred, guessed, tradeoffs, stopped short, cost implications, self-rating, and resolution.
  3. Continue only after the entry is durable.

Read the full file on GitHub · 298 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. 3d ago First seen · 298 lines · 15 tokens per session scan A bbdd7161d452

Subscribe to this mod's changes

close is a skill published in the GitHub repository wrg32786/aigent-os (17 stars, last pushed yesterday), licensed MIT. It adds 15 tokens to every session and 2,535 once invoked, about $0.0001 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-09-01.