fechar

fechar is a command for Claude Code from Josuebmota/Marvin. It costs 30 tokens per session (459 once invoked), scanned A, original, MIT.

A session-closing workflow for recording decisions and checking repository changes. It uses Git, a version-control system, to review the current files and recent history.

In plain words
What is it for?
Use it to close a development session, update user-story notes, record completed work, check changed files, and identify missing ownership or documentation.
Why use it?
It prevents discoveries, decisions, and unowned changes from being left only in the chat. It also keeps work notes and release records up to date.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths.

Good fit Use it to close a development session, update user-story notes, record completed work, check changed files, and identify missing ownership or documentation.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/josuebmota/marvin/fechar
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/Josuebmota/Marvin

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/josuebmota/marvin/fechar/github.svg)](https://agentmods.dev/commands/josuebmota/marvin/fechar)
Your own site
<a href="https://agentmods.dev/commands/josuebmota/marvin/fechar"><img src="https://agentmods.dev/badge/commands/josuebmota/marvin/fechar/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.

agentmods 80×15 button for fechar

Your own site · 80×15
<a href="https://agentmods.dev/commands/josuebmota/marvin/fechar"><img src="https://agentmods.dev/badge/commands/josuebmota/marvin/fechar.svg" alt="Reviewed on agentmods" width="80" 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 459 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.00459
Opus 5.5 $0.00012 $0.00184
Sonnet 5.5 $0.00006 $0.00092
Haiku 4.5 $0.00003 $0.00046

Measured yesterday against content hash 337fdd6bdce1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fechar 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 yesterday.

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.

.claude/commands/fechar.md · 29 lines

What it actually says

Feche a sessão. O par do /retomar: nada do que foi descoberto hoje pode ficar só na conversa.

  1. git status --short e git log --oneline -3. Arquivo novo sem justificativa → me pergunte.

  2. Para cada US que mexemos hoje (as da seção Em andamento de .marvin/Memoria/onde_paramos.md): uma entrada no Rumo do Sobre.md dela, datada, com o que se viu e o que se decidiu — e o que foi descartado, se houve. Concluiu e foi validada? Evidência preenchida, estado: concluida, linha em .marvin/Releases/<versao>.md, e sai da nota.

  3. Reescreva a linha de cada US na nota: o próximo passo numa frase. A nota é lista de ponteiros — não escreva relato nela; o relato acabou de ir para o Rumo.

  4. Armadilha nova que um papel sofreu hoje → o .md daquele agente em .claude/agents/, acrescentando. Procedimento que rodou pela segunda vez → skill.

  5. Rode marvin --fechar — ele cruza o diff com o Código tocado das US ativas e acusa o que mudou sem dono. Ele confere o diff por repo (a raiz e cada sub-repo em repos/). Corrija o Código tocado (ou abra a US que faltava) e rode marvin --us <caminho> de novo: o Impacto é regerado. Depois marvin --status — se acusar algo, conserte antes de fechar.

  6. Diga se é hora de um chat novo — a regra está no rodapé do /retomar — e, se for, qual seria a primeira frase dele.

$ARGUMENTS

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. yesterday First seen · 29 lines · 30 tokens per session scan A 337fdd6bdce1

Subscribe to this mod's changes

fechar is a command published in the GitHub repository Josuebmota/Marvin (5 stars, last pushed 28d ago), licensed MIT. It adds 30 tokens to every session and 459 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-12-05.

Related

fechar compared with commands from other repositories

fechar next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fecharJosuebmota/MarvinCommand528d agoMITA30Claude Code
revertwshobson/agentsCommand43k3d agoMITA15Claude Code
remove-deadcodecode-yeongyu/oh-my-openagentCommand71ktodaynoneA20OpenCode
prp-commitFmarzochi/EGCCommand72todayApache-2.0A15Claude Code
summarize-changesCloudAI-X/claude-workflow-v2Command1.4k2mo agoMITA13Claude Code
unforgit-curateMiguelMedeiros/unforgitCommand13yesterdayMITA0Claude Code
review-codechohra-med/expo_boilerplateCommand362mo agoMITA50Claude Code