Borrowing it
Nothing to install: this file belongs to PedroGiudice/lex-vector. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/PedroGiudice/lex-vector/main/.claude/commands/jurisprudence-search.mdgit clone --depth 1 https://github.com/PedroGiudice/lex-vectorWrote 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/pedrogiudice/lex-vector/jurisprudence-search)<a href="https://agentmods.dev/commands/pedrogiudice/lex-vector/jurisprudence-search"><img src="https://agentmods.dev/badge/commands/pedrogiudice/lex-vector/jurisprudence-search/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/pedrogiudice/lex-vector/jurisprudence-search"><img src="https://agentmods.dev/badge/commands/pedrogiudice/lex-vector/jurisprudence-search.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.00000 | $0.01057 |
| Opus 5.5 | $0.00000 | $0.00423 |
| Sonnet 5.5 | $0.00000 | $0.00211 |
| Haiku 4.5 | $0.00000 | $0.00106 |
Grade A, and why
jurisprudence-search 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.
How it starts
The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Claude Command: Jurisprudence Search
Execute the Jurisprudence Research Agent for iterative deep research on Brazilian court jurisprudence.
Usage
/jurisprudence-search "Seu tema de pesquisa juridica"
Or with arguments:
/jurisprudence-search --check # Check dependencies only
/jurisprudence-search --help # Show available courts
What This Command Does
- Validates that the Gemini ADK environment is properly configured
- Executes the Jurisprudence Research Agent with the provided topic
- The agent autonomously:
- Decomposes the legal topic into sub-vectors
- Executes iterative searches with site restrictions (whitelist of court domains)
- Extracts jurisprudence metadata (processo, relator, data)
- Analyzes gaps and refines queries
- Synthesizes findings into a structured legal report
- Saves results to
adk-agents/jurisprudence_agent/research_output/
Court Domains (Whitelist)
The agent restricts searches to official Brazilian court domains:
| Code | Court | Domain |
|---|---|---|
| STJ | Superior Tribunal de Justica | stj.jus.br |
| STF | Supremo Tribunal Federal | stf.jus.br |
| TJSP | TJ Sao Paulo | tjsp.jus.br |
| TJMG | TJ Minas Gerais | tjmg.jus.br |
| TJRJ | TJ Rio de Janeiro | tjrj.jus.br |
| TRF1-5 | Tribunais Regionais Federais | trf1-5.jus.br |
Execution
When the user invokes this command, execute:
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || echo "/home/cmr-auto/claude-work/repos/lex-vector")
cd "$REPO_ROOT/adk-agents/jurisprudence_agent" && source .venv/bin/activate && python agent.py "$ARGUMENTS"
If $ARGUMENTS is empty, ask the user for a legal research topic in Portuguese.
If $ARGUMENTS is --check, run:
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || echo "/home/cmr-auto/claude-work/repos/lex-vector")
cd "$REPO_ROOT/adk-agents/jurisprudence_agent" && source .venv/bin/activate && python -c "from agent import JurisprudenceAgent; print('OK')"
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 First seen · 119 lines · 0 tokens per session scan A d77a4f296b13
jurisprudence-search is a command published in the GitHub repository PedroGiudice/lex-vector (5 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,057 tokens. 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.
jurisprudence-search compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| jurisprudence-searchPedroGiudice/lex-vector | Command | 5 | 5mo ago | MIT | A | 0 | Claude Code |
| deps-auditwshobson/agents | Command | 42k | yesterday | MIT | A | 23 | Claude Code |
| review-epo-claimsRobThePCGuy/Claude-Patent-Creator | Command | 209 | 11d ago | MIT | A | 22 | Claude Code |
| review-policymlunato47/claude-grc-plugin | Command | 189 | 1mo ago | MIT | A | 12 | Claude Code |
| au-pspftractorjuice/arc-kit | Command | 2.3k | 2d ago | none | A | 37 | Claude Code |
| compliance-auditTheLobbi/claude | Command | 21 | 7d ago | MIT | A | 0 | Claude Code |
| app-store-auditmjmirza/app-store-compliance | Command | 403 | yesterday | none | A | 35 | Claude Code |