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/gonzalezpazmonica/saviaWrote 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/gonzalezpazmonica/savia/code-improve)<a href="https://agentmods.dev/commands/gonzalezpazmonica/savia/code-improve"><img src="https://agentmods.dev/badge/commands/gonzalezpazmonica/savia/code-improve/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/gonzalezpazmonica/savia/code-improve"><img src="https://agentmods.dev/badge/commands/gonzalezpazmonica/savia/code-improve.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.00021 | $0.00683 |
| Opus 5 | $0.00010 | $0.00342 |
| Sonnet 5 | $0.00004 | $0.00137 |
| Haiku 4.5 | $0.00002 | $0.00068 |
Grade A, and why
code-improve 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 2d 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- code-improve — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/code-improve
Lanza un bucle autónomo de mejora de código inspirado en autoresearch. Detecta oportunidades, aplica mejoras medibles, y genera PRs pendientes de revisión humana.
1. Cargar configuración
- Leer
@docs/rules/domain/autonomous-safety.md— reglas de seguridad (OBLIGATORIO) - Leer
@docs/rules/domain/pm-config.md+pm-config.local.md - Leer
.opencode/skills/code-improvement-loop/SKILL.md
2. Uso
/code-improve [--project {nombre}] [--scope {path}] [--tipo {coverage|complexity|lint|deps|todos|all}] [--max-tasks {n}] [--dry-run]
--project: Proyecto específico (default: proyecto activo)--scope: Limitar a una ruta específica (default: todo el proyecto)--tipo: Tipo de mejora (default:all)--max-tasks: Máximo de mejoras a intentar--dry-run: Solo detectar oportunidades sin aplicar
3. Gate de arranque
✅ AUTONOMOUS_REVIEWER configurado → si no: ❌ ABORT
✅ Tests del proyecto pasan → si no: ❌ "Baseline roto"
4. Detección y confirmación
Mostrar oportunidades detectadas:
🔄 Code Improvement Loop — {proyecto}
📊 Métricas baseline:
Cobertura: 67.3%
Complejidad máx: 18 (src/api/handler.ts)
Warnings linter: 42
TODOs sin ticket: 8
Deps desactualizadas: 3
📋 Oportunidades detectadas: {n}
1. [coverage] src/auth/ — cobertura 42% → objetivo 80%
2. [complexity] src/api/handler.ts — complejidad 18 → objetivo ≤10
3. [lint] src/ — 42 warnings corregibles
...
👤 Reviewer: {AUTONOMOUS_REVIEWER}
⏱️ Time-box por tarea: {AGENT_TASK_TIMEOUT_MINUTES} min
¿Confirmar arranque? (s/n)
5. Output
🔄 Code Improvement — Completado
✅ PRs creados: {n}
⚠️ Descartados (métricas no mejoraron): {n}
❌ Crashes: {n}
📊 Mejoras propuestas:
Cobertura: 67.3% → 78.1% (+10.8%) [3 PRs]
Complejidad máx: 18 → 12 (-6) [1 PR]
Warnings: 42 → 15 (-27) [2 PRs]
📄 Resultados: output/improvement-results-{fecha}.tsv
📝 Audit log: output/agent-runs/improvement-{fecha}-audit.log
⚡ /compact
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.
- 2d ago First seen · 81 lines · 21 tokens per session scan A 2e98cbc8a170
code-improve is a command published in the GitHub repository gonzalezpazmonica/savia (50 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 683 once invoked, about $0.0001 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-09-06.
Other commands, from other repositories
playwright-test-heal
Run all my tests and fix the failing ones.
bugfix
Bug fix workflow: root cause analysis → user review → regression test + fix via TDD.
verify-bug
Post-merge UAT verification workflow. Walks JIRA reproduce steps, performs comparative audits (Before/After), attaches evidence to JIRA, and transitions status on PASS.
timeout-fix
A procedure for diagnosing and fixing tests that exceed their time limit by finding causes such as slow processing, hanging network calls, deadlocks, heavy setup, or leaked resources.
api-aqa-flow-execution-and-report-analysis
Phase 6 Execution & Report Analysis of api-aqa-flow (USER INTERACTION REQUIRED).
qa-changes
This skill should be used when the user asks to "QA a pull request", "test PR changes", "verify a PR works", "functionally test changes", or when an automated workflow triggers QA validation of code changes. Provides a structured methodology for setting up the environment, exercising changed behavior, and reporting…