aget-close-session

aget-close-session is a skill for Claude Code, Codex from aget-framework/aget. It costs 30 tokens per session (2,363 once invoked), scanned A, original, Apache-2.0.

A session-closing workflow that checks for small unfinished tasks, runs eligible quick fixes, and enriches the final session record with where information came from.

In plain words
What is it for?
Use it at the end of a coding-agent session to triage remaining work, save session notes, and complete the wind-down process.
Why use it?
It reduces the chance of leaving behind easy-to-finish work or losing useful context when an agent 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/aget-framework/aget/aget-close-session
Any agent
npx skills add aget-framework/aget --skill aget-close-session
Clone the repo
git clone --depth 1 https://github.com/aget-framework/aget

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 aget-close-session

README.md
[![agentmods](https://agentmods.dev/badge/skills/aget-framework/aget/aget-close-session.svg)](https://agentmods.dev/skills/aget-framework/aget/aget-close-session)
Your own site
<a href="https://agentmods.dev/skills/aget-framework/aget/aget-close-session"><img src="https://agentmods.dev/badge/skills/aget-framework/aget/aget-close-session.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,363 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.00030 $0.02363
Opus 5 $0.00015 $0.01182
Sonnet 5 $0.00006 $0.00473
Haiku 4.5 $0.00003 $0.00236

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

Security

Grade A, and why

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

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/skills/aget-close-session/SKILL.md · 202 lines

How it starts

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

aget-close-session

Close an AGET agent session with decision support. Scans for quick wins, auto-executes them, then runs wind-down and enriches the session note.

Governing Requirements

planning/artifacts/CAP-SESSION-013_close_session_requirements.md v0.1.0 Extends: AGET_SESSION_SPEC v1.2.0 (CAP-SESSION-004: Wind-Down Protocol) Proposal: SP-008

Modification Guard

Before modifying this skill: update planning/artifacts/CAP-SESSION-013_close_session_requirements.md requirements first. SKILL.md implements the spec, not the other way around. (OBS-13, L157)

Instructions

When this skill is invoked:

Phase 1: Pre-Close Triage (R-CLOSE-001 through R-CLOSE-007)

Before running wind-down, scan session context for remaining low-effort work.

Friction rule: Use Glob and Grep to discover uncommitted files and session state — do NOT use git status via Bash. This avoids a wasted permission prompt (R-CLOSE-040, R-CLOSE-041).

  1. Review what the session was working on and what's unfinished
  2. Identify quick wins (≤5 min each, same repo, single action):
    • Undeployed deliverables the session already built
    • Memory saves that prevent future re-discovery
    • Stale file cleanup the session identified but didn't act on
    • Status updates on tracked items (PROJECT_PLANs, issues)
    • Draft finalization (docs already written but not committed)
  3. Execute them automatically — do NOT ask permission (R-CLOSE-002)
  4. Report what was done in the output under Pre-close actions:
  5. Skip anything requiring >5 min, new research, multi-file refactors, or other agents' work (R-CLOSE-005)
  6. If a quick win fails, note the failure and continue closing (R-CLOSE-007)

Triage boundary: Fix time ≤5 min qualifies. Diagnostic time is excluded from the 5-min budget but counts against the friction budget (R-CLOSE-020).

Phase 2: Wind-Down Delegation (CAP-SESSION-004)

Run wind-down and telemetry as a single Bash call (R-CLOSE-042):

Read the full file on GitHub · 202 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. 5d ago First seen · 202 lines · 30 tokens per session scan A 19a3c2ee2f23

Subscribe to this mod's changes

aget-close-session is a skill published in the GitHub repository aget-framework/aget (11 stars, last pushed 5d ago), licensed Apache-2.0. It adds 30 tokens to every session and 2,363 once invoked, about $0.0002 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.