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/JoaoEquer/OficinaWrote 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/joaoequer/oficina/fechar-sessao)<a href="https://agentmods.dev/commands/joaoequer/oficina/fechar-sessao"><img src="https://agentmods.dev/badge/commands/joaoequer/oficina/fechar-sessao/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/joaoequer/oficina/fechar-sessao"><img src="https://agentmods.dev/badge/commands/joaoequer/oficina/fechar-sessao.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.00844 |
| Opus 5.5 | $0.00009 | $0.00338 |
| Sonnet 5.5 | $0.00005 | $0.00169 |
| Haiku 4.5 | $0.00002 | $0.00084 |
Grade A, and why
fechar-sessao 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 2mo 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
This is opt-in bookkeeping, never a gate. Run it only when you land on a natural stopping point and want to leave a marker — never as a required step before starting the next task, and never to "catch up" a session that ended without it. A session that runs until it hits a token/quota limit won't get a clean close, and that's fine: a stale or missing Estado Atual costs nothing by itself. If the user is here to start new work, start it — don't spend a turn closing out the last one first unless they specifically asked for that.
Close the current session on this project. Optional argument: $ARGUMENTS — a note steering the summary, if the user wants to point at something specific; otherwise derive it entirely from the conversation.
AGENTS.md is read in full, every turn, by every tool that opens this project (@AGENTS.md from CLAUDE.md/GEMINI.md). Nothing written into it is ever "cheap" — it is a permanent per-turn tax, not a notebook. This project does not keep a separate session-history log — Oficina used to write one to .oficina/memory/log.md, but that duplicated what Claude Code's own native memory (~/.claude/projects/<path>/memory/, loaded on demand, not every turn) already does better, for no audience that needed the duplicate. So there is exactly one durable record now: your own memory, if you're Claude Code.
- Confirm this project has an
AGENTS.mdat its root. If not, stop and say/oficina:initneeds to run first. - Summarize this session in 3-5 factual bullets: what changed, decisions made, what's in progress, the next concrete step. No hype, no invented progress — if something is still broken or unverified, say so.
- Before you overwrite anything: if you are Claude Code and the current
## Estado Atualcontent (or this session) holds a decision, gotcha, or fact worth keeping past today — something a future session would want and shouldn't have to rediscover — save it to your own memory now. Once you replace the section below, that wording is gone; nothing else will have it. - Rewrite the
## Estado Atualsection ofAGENTS.mdwith today's summary — this section is the current state, never a history. Replace the entire section body, don't append below what's there. If you find more than one dated entry already in the section (a past session appended instead of replacing), that's the bug this step exists to stop: fold anything from the stale entries that's still true into today's summary, then delete the rest — don't carry the pile forward. - Verify mechanically — don't trust your own edit. Re-read the
## Estado Atualsection you just wrote. Count the dated headers in it (**YYYY-MM-DD**or similar). If there's more than one, the replace didn't take: collapse it to a single current-state block before moving on. This check exists because step 4's instruction — replace, don't append — already existed in this exact wording before and still got violated for weeks; don't assume the prose alone is enough this time either. - Never touch
OPEN_DECISIONS.md— that file is hand-edited only when a decision is actually confirmed, never AI-summarized. - Never write credentials, tokens, connection strings, or client contract terms into
AGENTS.mdor your own memory, per the security-baseline rule. If the summary would include any, redact it and flag it to the user instead of writing it. - Do not commit — show the diff of
AGENTS.mdand let the user review before committing.
Report: the updated ## Estado Atual block, and whatever you saved to memory in step 3, nothing else.
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.
- 2mo ago Changed · +5 lines · -7 tokens per session 26d62c65bd49
- 3mo ago First seen · 17 lines · 30 tokens per session scan A 6a7d480ce138
fechar-sessao is a command published in the GitHub repository JoaoEquer/Oficina (2 stars, last pushed 7d ago), licensed MIT. It adds 23 tokens to every session and 844 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-08-31.
fechar-sessao compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| fechar-sessaoJoaoEquer/Oficina | Command | 2 | 7d ago | MIT | A | 23 | Claude Code |
| context-statstravisjneuman/.claude | Command | 115 | 2d ago | MIT | A | 7 | Claude Code |
| save-sessionloulanyue/awesome-claude-notes | Command | 271 | 1mo ago | MIT | A | 28 | Claude Code |
| handoff-contextTechNickAI/ai-coding-config | Command | 23 | 2mo ago | MIT | A | 22 | Claude Code |
| contextsamibs/skillfoundry | Command | 13 | 2mo ago | MIT | A | 0 | Claude Code |
| context-healthdoncheli/don-cheli-sdd | Command | 59 | 3mo ago | Apache-2.0 | A | 77 | Claude Code |
| capturardoncheli/don-cheli-sdd | Command | 59 | 3mo ago | Apache-2.0 | A | 74 | Claude Code |