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/Josuebmota/MarvinWrote 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/josuebmota/marvin/refinar)<a href="https://agentmods.dev/commands/josuebmota/marvin/refinar"><img src="https://agentmods.dev/badge/commands/josuebmota/marvin/refinar/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/josuebmota/marvin/refinar"><img src="https://agentmods.dev/badge/commands/josuebmota/marvin/refinar.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.00043 | $0.01499 |
| Opus 5.5 | $0.00017 | $0.00600 |
| Sonnet 5.5 | $0.00009 | $0.00300 |
| Haiku 4.5 | $0.00004 | $0.00150 |
Grade A, and why
refinar 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.
How it starts
The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Sessão de refino. Aqui não se implementa: a saída é US com estado: refinada, na fila.
Entrada: $ARGUMENTS (uma anotação, um print, uma linha ⚪ de
.marvin/Memoria/onde_paramos.md, ou "tudo que está ⚪").
Entrada = US que já existe (um id, um caminho, ou "sem modelo") → só a triagem de custo.
Não refaça Por quê, Pronto quando nem Código tocado: preencha só a tabela do Time
(| etapa | papel | modelo · esforço | motivo | estado |) pelo glossário da equipe, partindo do
degrau mais barato que serve; subir exige motivo. "sem modelo" = as US que o marvin --status
lista sem modelo por etapa — em lote, só as da próxima ilha (refinar a fila inteira de uma
vez gasta mais do que economiza). É trabalho de tabela: faça na sessão, sem tl+po, e
confira com marvin --status que elas saíram da contagem.
Para cada etapa, o refino escolhe o agente, a skill (se houver), o modelo e o esforço — o menor custo que entrega o mesmo resultado (agente · skill na coluna papel).
-
Leia a nota (as linhas ⚪ e as anotações sem US) e
marvin --status(a fila e as ilhas que já existem). Se um chat de desenvolvimento estiver aberto, ele escreve só a linha da US dele na nota — você escreve só as suas. Releia antes de salvar. Anotação nova (ainda sem refinar) não vai para um arquivo que cresce: vira uma US commarvin --us <caminho> --anotada— um arquivo por anotação, fora da nota e fora da fila. O índice das abertas é o bloco Anotadas domarvin --status --html(o--statusmostra a contagem por Epic). -
Para cada anotação, o crivo
tl+poem paralelo:tl: causa com arquivo:linha (ler o código, não chutar) · risco (dado, invariante) ou zero · manutenção ou nova · escopo mínimo e o que NÃO entra · tamanho (1 chat / dividir).po: o que eu quero, nas minhas palavras · critério de aceite verificável · em que Epic e Feature entra (existente ou nova, e por quê) · o que funde com o quê · ordem. Os dois partem do grafo. Passo de estrutura — grafo obrigatório (dono, 15/10/2026). Antes de decidir, para cada símbolo do Código tocado: segraphify-out/graph.jsonfor mais velho que o último commit, rodegraphify update .; depoisgraphify affected "<símbolo>"egraphify explain "<símbolo>". Registre no Time uma linha por símbolo com o que o grafo respondeu, ou "sem nó" / "grafo velho" e o fallback usado. Grep/Glob só para localizar. Otlentra por risco (15/10): mudança que toca invariante, escreve no disco de alguém ou mexe emUPDATES/--release; fluxo em delegação. Onde os dois discordarem, me traga a divergência — não escolha em silêncio.
-
Com os dois pareceres:
marvin --us <caminho> --refinada(a US nasce na fila, fora da nota) e preencha oSobre.md: Por quê · Pronto quando · Não entra · Código tocado (o arquivo:linha dotlé isto — é o que define a ilha) · Time. Depoismarvin --us <caminho>de novo: o Impacto sai do grafo, se houver. A anotação já é uma USanotada? Não crie outra: troqueestado: anotadaporrefinadano mesmoSobre.md(ela sai do bloco Anotadas e da contagem; nada é movido nem apagado). A linha ⚪ da nota que a originou sai da nota, e a origem (de onde veio a anotação) fica no Rumo da US. O Time é a tabela| etapa | papel | modelo · esforço | motivo | estado |, uma linha por etapa, preenchida pelotle pelopoa partir do glossário (.marvin/Contexto/Equipe.md): partida no degrau mais barato que serve; subir exige motivo; quem decide não é quem executa. É a economia decidida aqui — a execução obedece (/continuar,/retomar); etapa sem modelo trava. -
Pergunta que só eu respondo fica na US como
❓— não invente a resposta. -
Me mostre, em uma tabela: US · ilha (o
marvin --statusdiz) · o que bloqueia. Não comece a implementar — desenvolver é outro chat:/retomare a porta 1.
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.
- yesterday First seen · 66 lines · 43 tokens per session scan A 11b54adeedbc
refinar is a command published in the GitHub repository Josuebmota/Marvin (5 stars, last pushed 28d ago), licensed MIT. It adds 43 tokens to every session and 1,499 once invoked, about $0.0002 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.
refinar compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| refinarJosuebmota/Marvin | Command | 5 | 28d ago | MIT | A | 43 | Claude Code |
| vault-autoresearch2233admin/obsidian-llm-wiki | Command | 39 | today | GPL-3.0 | A | 15 | Claude Code |
| vault-notebooklm2233admin/obsidian-llm-wiki | Command | 39 | today | GPL-3.0 | A | 21 | Claude Code |
| doctor2233admin/obsidian-llm-wiki | Command | 39 | today | GPL-3.0 | A | 21 | Claude Code |
| vault-expand2233admin/obsidian-llm-wiki | Command | 39 | today | GPL-3.0 | A | 21 | Claude Code |
| vault-think2233admin/obsidian-llm-wiki | Command | 39 | today | GPL-3.0 | A | 14 | Claude Code |
| vault-synthesize2233admin/obsidian-llm-wiki | Command | 39 | today | GPL-3.0 | A | 13 | Claude Code |