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.
git clone --depth 1 https://github.com/NicoGenti/opencode-orchestrator-kitWrote 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.
[](https://agentmods.dev/commands/nicogenti/opencode-orchestrator-kit/close-session)<a href="https://agentmods.dev/commands/nicogenti/opencode-orchestrator-kit/close-session"><img src="https://agentmods.dev/badge/commands/nicogenti/opencode-orchestrator-kit/close-session/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.
<a href="https://agentmods.dev/commands/nicogenti/opencode-orchestrator-kit/close-session"><img src="https://agentmods.dev/badge/commands/nicogenti/opencode-orchestrator-kit/close-session.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00023 | $0.00576 |
| Opus 5.5 | $0.00009 | $0.00230 |
| Sonnet 5.5 | $0.00005 | $0.00115 |
| Haiku 4.5 | $0.00002 | $0.00058 |
Grade A, and why
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 29d 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.
What it actually says
Session is ending. Run your close-out cycle and then stop — do not start any new work.
-
Finalize
progress.md: using thewritetool (full overwrite — this file is a snapshot, not a log), record the final session state: stack, currentCurrent state, what was completed (Done), and pendingNext stepswith one pointer line per active/recent plan. For multi-phase plans, the pointer line MUST carry the current phase (e.g.- Plan #0012 (worker pipeline): in-progress — Phase 3b of 14 — see plan/in-progress/0012-worker-pipeline.md). If a plan reachedplan/complete/this session, remove its pointer line fromprogress.md— the plan file itself is the permanent record. -
Audit comprehension announcements: for every task/plan closed this session, confirm a classification (NONE/LIGHT/DEEP) was announced to the user and, for LIGHT/DEEP, a final outcome was recorded; if missing, classify and announce now — before finalizing
progress.md. -
Flush pending appends: using the
edittool (append-only), add any pending decisions to.context/decisions.mdand any pending issues to.context/issues.md. Format:- YYYY-MM-DD: <content> — <why/status>. Keep every entry to bullet points only, maximum 5-10 lines. Skip if there is nothing to add — do not invent entries. -
Archive oversized files: if any
.context/*.mdfile exceeds roughly 3,000 tokens, move its content to.context/archive/<name>-<date>.mdand restart the live file empty (a fresh header is enough; the next session will repopulate it). Do this for each file independently — only archive what actually crossed the threshold. -
Close out cleanly: report in 2-3 lines, in the user's language (the language the user is speaking — this project is language-agnostic at the user-facing interface), what was finalized (which files were updated/archived) and confirm no new work was started. The command file itself stays in English; only the user-facing report is dynamic. Then stop and wait for the next session.
Do not delegate new tasks, do not edit plan bodies, and do not modify PROJECT-PROFILE.md — that is profiler's scope. If a write/edit to .context/ is denied by the permission layer, report the exact path and error verbatim instead of silently skipping the update.
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.
- 29d ago First seen · 19 lines · 23 tokens per session scan A 097797f06a9c
close-session is a command published in the GitHub repository NicoGenti/opencode-orchestrator-kit (9 stars, last pushed 5d ago), licensed MIT. It adds 23 tokens to every session and 576 once invoked, about $0.0001 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-11-03.
close-session compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| close-sessionNicoGenti/opencode-orchestrator-kit | Command | 9 | 5d ago | MIT | A | 23 | Claude Code |
| flow-nexus-user-toolsruvnet/ruflo | Command | 83k | today | MIT | A | 14 | Claude Code |
| flow-nexus-authruvnet/ruflo | Command | 83k | today | MIT | A | 11 | Claude Code |
| dashboard-session-abort-allBlackBeltTechnology/pi-agent-dashboard | Command | 357 | today | MIT | A | 16 | Claude Code |
| dashboard-session-renameBlackBeltTechnology/pi-agent-dashboard | Command | 357 | today | MIT | A | 18 | Claude Code |
| dashboard-session-tellBlackBeltTechnology/pi-agent-dashboard | Command | 357 | today | MIT | A | 21 | Claude Code |
| dashboard-session-unhideBlackBeltTechnology/pi-agent-dashboard | Command | 357 | today | MIT | A | 18 | Claude Code |