fechar-sessao

fechar-sessao is a command for Claude Code from JoaoEquer/Oficina. It costs 30 tokens per session (439 once invoked), scanned A, original, MIT.

A session-closing command for projects using Oficina, a harness that stores shared instructions and project memory. It updates the current-status section in AGENTS.md and adds a dated session record.

In plain words
What is it for?
Use it at the end of a coding session to record completed work, decisions, unfinished items, and the next concrete step.
Why use it?
It leaves a factual handoff for the next work session instead of relying on memory. It separates the project's current state from its append-only history.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions AGENTS.md.

Part of the oficina plugin — 17 skills, 6 commands shipped together

Good fit Use it at the end of a coding session to record completed…

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/joaoequer/oficina/fechar-sessao
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.

Clone the repo
git clone --depth 1 https://github.com/JoaoEquer/Oficina

Made for: Claude Code.

Or install oficina, the plugin that ships this one along with the rest of its 17 skills, 6 commands.

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 fechar-sessao

README.md
[![agentmods](https://agentmods.dev/badge/commands/joaoequer/oficina/fechar-sessao.svg)](https://agentmods.dev/commands/joaoequer/oficina/fechar-sessao)
Your own site
<a href="https://agentmods.dev/commands/joaoequer/oficina/fechar-sessao"><img src="https://agentmods.dev/badge/commands/joaoequer/oficina/fechar-sessao.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 439 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.
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.00030 $0.00439
Opus 5 $0.00015 $0.00219
Sonnet 5 $0.00006 $0.00088
Haiku 4.5 $0.00003 $0.00044

Measured 6d ago against content hash 6a7d480ce138, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

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 6d 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.

commands/fechar-sessao.md · 17 lines

What it actually says

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.

  1. Confirm this project has an AGENTS.md at its root. If not, stop and say /oficina:init needs to run first.
  2. 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.
  3. Rewrite the ## Estado Atual section of AGENTS.md with that summary — this section reflects the current state, not a history. If the section already exists (replace its content) or not (this project's AGENTS.md predates this convention — insert a new ## Estado Atual section right after the "Source of truth for the data model" line, before ## Harness).
  4. Create .oficina/memory/ in the project root if it doesn't exist, and append a new entry to .oficina/memory/log.md: a ## YYYY-MM-DD heading followed by the same summary. Append-only — never rewrite or delete previous entries.
  5. Never touch OPEN_DECISIONS.md — that file is hand-edited only when a decision is actually confirmed, never AI-summarized.
  6. Never write credentials, tokens, connection strings, or client contract terms into .oficina/memory/, per the security-baseline rule. If the summary would include any, redact it and flag it to the user instead of writing it.
  7. Do not commit — show the diff of AGENTS.md and the new log entry, and let the user review before committing.

Report: the updated ## Estado Atual block and the new log entry, nothing else.

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. 6d ago First seen · 17 lines · 30 tokens per session scan A 6a7d480ce138

Subscribe to this mod's changes

fechar-sessao is a command published in the GitHub repository JoaoEquer/Oficina (2 stars, last pushed 4d ago), licensed MIT. It adds 30 tokens to every session and 439 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-31.