pipeline-pesquisa

pipeline-pesquisa is a command for Claude Code from georgemarmelstein/superjurista-dev. It costs 40 tokens per session (6,247 once invoked), scanned A, original, MIT.

A Portuguese-language workflow for researching legal precedents across five Brazilian sources: BNP, CJF, JULIA, STJ, and TNU. It combines the results and preserves verbatim source material for citations.

In plain words
What is it for?
Use it to search Brazilian precedent databases, merge findings, create a source corpus, and verify research and citations.
Why use it?
It avoids repeating completed research and checks generated files and citation sources with deterministic scripts. This helps keep legal research outputs traceable and consistent.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the TodoWrite tool.

Part of the superjurista-dev plugin — 11 skills, 22 commands, 7 agents shipped together

Good fit Use it to search Brazilian precedent databases, merge findings, create a source corpus, and verify research and citations.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/georgemarmelstein/superjurista-dev/pipeline-pesquisa
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/georgemarmelstein/superjurista-dev

Made for: Claude Code.

Or install superjurista-dev, the plugin that ships this one along with the rest of its 11 skills, 22 commands, 7 agents.

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 pipeline-pesquisa

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/georgemarmelstein/superjurista-dev/pipeline-pesquisa"><img src="https://agentmods.dev/badge/commands/georgemarmelstein/superjurista-dev/pipeline-pesquisa.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,247 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.00040 $0.06247
Opus 5 $0.00020 $0.03123
Sonnet 5 $0.00008 $0.01249
Haiku 4.5 $0.00004 $0.00625

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

Security

Grade A, and why

pipeline-pesquisa 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 11d 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.

scaffold/commands/pipeline-pesquisa.md · 271 lines

How it starts

The opening of the file, as written. The whole thing — 271 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Orquestrador: Pipeline de Pesquisa de Precedentes v3.0

v3.0 — retomada + gate por script + fontes verbatim (molde vivo: .claude/commands/pipeline-sentenca.md). O que mudou da versão anterior: (1) RETOMADA — o workspace é DETERMINÍSTICO (slug do tema, SEM timestamp), então pesquisa cujo artefato já existe e passa no gate não roda de novo; (2) validação DETERMINÍSTICA — scripts/verificar_pesquisa.py confere as âncoras (normalizadas de acento/caixa); o orquestrador NÃO lê relatórios para validar; (3) FONTES VERBATIM — cada pesquisador grava também um parcial fontes-<fonte>.json e scripts/merge_fontes.py produz o corpus $ID-fontes.json (cadeia de custódia das citações, consumida por scripts/verificar_citacoes.py); (4) subagente responde UMA LINHA de status — o relatório vive no arquivo, nunca na conversa; (5) FONTES COMPLETAS — além de BNP/CJF/JULIA, o pipeline pesquisa STJ (espelhos SCON via Dados Abertos) e TNU (base viva do eproc), fechando a lista de fontes autorizadas. Os métodos de busca (sintaxe de cada MCP) vivem nos agentes pesquisadores.

<scripts_deterministicos> | Script | Função | |--------|--------| | scripts/verificar_pesquisa.py | Gate + retomada: varredura (PENDENTES), --etapa (exit-coded), --etapas (subconjunto), --gate (final) | | scripts/merge_fontes.py | Funde os parciais fontes-*.json em $ID-fontes.json (valida, deduplica, reatribui IDs); sem LLM, sem contexto | </scripts_deterministicos>

<agents_utilizados> | Agent | Capacidade | Arquivo | |-------|------------|---------| | pesquisador-bnp | Precedentes vinculantes STF/STJ | .claude/agents/pesquisa/pesquisador-bnp.md | | pesquisador-cjf | Jurisprudência regional TRF1/TRF3/TRF4 (radar de bases vivas) | .claude/agents/pesquisa/pesquisador-cjf.md | | pesquisador-julia | Jurisprudência TRF5 (por turma) | .claude/agents/pesquisa/pesquisador-julia.md | | pesquisador-stj | Jurisprudência STJ (repetitivos, súmulas, dominante) | .claude/agents/pesquisa/pesquisador-stj.md | | pesquisador-tnu | Jurisprudência TNU (representativos, uniformização JEFs) | .claude/agents/pesquisa/pesquisador-tnu.md | | consolidador-pesquisa | Análise cruzada e hierarquia | .claude/agents/pesquisa/consolidador-pesquisa.md | </agents_utilizados>

<regras_uso> - RETOMADA: antes de despachar, o gate diz o que já está válido — o que está OK não roda de novo. Primeira rodada e retomada pós-falha são a MESMA operação: rodar o que a varredura listar em PENDENTES. - CONDUZIR POR CAMINHO: o orquestrador passa paths prontos; o subagente pesquisa via MCP e GRAVA (Write) o relatório E o parcial de fontes no workspace. O documento NUNCA volta inline na resposta. - RESPOSTA DE UMA LINHA: cada subagente responde apenas " OK | $ID-pesquisa-.md" — quem confere o conteúdo é o script, não o orquestrador lendo. - VALIDAÇÃO POR SCRIPT: nunca validar lendo o documento; sempre python scripts/verificar_pesquisa.py "$WORKSPACE" --etapa <fonte>. - Subagentes LEEM o próprio prompt via Read (.claude/agents/pesquisa/...); o orquestrador não copia a capacidade deles — injeta só o TEMA, os caminhos e o lembrete de sintaxe da fonte. - As pesquisas 1a/1b/1c/1d/1e são INDEPENDENTES entre si: despachar as pendentes em PARALELO (até 5 Tasks sonnet no MESMO turno). A consolidação (Etapa 2) só roda depois delas. - Subagentes nunca usam TodoWrite. </regras_uso>

Read the full file on GitHub · 271 lines

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. 11d ago First seen · 271 lines · 40 tokens per session scan A 2a6c0458a86c

Subscribe to this mod's changes

pipeline-pesquisa is a command published in the GitHub repository georgemarmelstein/superjurista-dev (22 stars, last pushed 1mo ago), licensed MIT. It adds 40 tokens to every session and 6,247 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-30.