audit-search

audit-search is a command for Claude Code from gonzalezpazmonica/pm-workspace. It costs 26 tokens per session (1,093 once invoked), scanned A, a copy of audit-search, MIT.

A command for searching an audit trail with ordinary language, keywords, filters, or regular expressions. Regular expressions are patterns used to find matching text.

In plain words
What is it for?
Find audit entries such as who created a backlog item, changes in a sprint, or rejected recommendations using natural-language queries or regex.
Why use it?
It avoids manually scanning a long action history when investigating a change, user action, recommendation, or project event. Searches can be narrowed by date, user, or action type.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: agent in frontmatter.

Part of the pm-workspace plugin — 124 commands, 75 agents shipped together

Good fit Find audit entries such as who created a backlog item, changes in a sprint, or rejected recommendations using natural-language queries or regex.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/gonzalezpazmonica/pm-workspace/audit-search
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/gonzalezpazmonica/pm-workspace

Made for: Claude Code.

Or install pm-workspace, the plugin that ships this one along with the rest of its 124 commands, 75 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 audit-search

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

agentmods 80×15 button for audit-search

Your own site · 80×15
<a href="https://agentmods.dev/commands/gonzalezpazmonica/pm-workspace/audit-search"><img src="https://agentmods.dev/badge/commands/gonzalezpazmonica/pm-workspace/audit-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,093 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 100% copy Near-identical to another mod 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.00026 $0.01093
Opus 5 $0.00013 $0.00547
Sonnet 5 $0.00005 $0.00219
Haiku 4.5 $0.00003 $0.00109

Measured 9d ago against content hash 12391a895d93, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

audit-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 9d 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.

Origin

This is a copy

100% identical to audit-search — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/audit-search.md · 149 lines

How it starts

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

Audit Search — Búsqueda Contextual en Audit Trail

Propósito

Búsqueda flexible y poderosa en el audit trail usando lenguaje natural, filtros específicos, regex y saved searches. Útil para investigaciones, compliance checks y análisis históricos.

Sintaxis

/audit-search {query} [--from date] [--to date] [--user nombre] [--action tipo] [--lang es|en]

Parámetros

Parámetro Tipo Descripción
{query} string Consulta: natural language, regex (/pattern/), o palabra clave
--from date Fecha inicio (YYYY-MM-DD)
--to date Fecha fin (YYYY-MM-DD)
--user string Filtrar por usuario (p.e. monica busca entradas de monica)
--action string Filtrar por tipo: query, modify, recommend, decision, generate
--lang string es (español), en (inglés)

Ejemplos de Uso

Natural Language Search

/audit-search "cambios en el sprint 4"
# Busca entradas que mencionen sprint y cambios

/audit-search "quién creó el PBI de login"
# Busca acciones de creación de PBI con palabra "login"

/audit-search "recomendaciones rechazadas"
# Busca recomendaciones con resultado negativo

Regex Patterns

/audit-search "/sprint-[0-9]{4}-0[1-4]/"
# Busca cualquier sprint del 01 al 04

/audit-search "/pbi.*create.*success/"
# Busca creaciones exitosas de PBIs

/audit-search "/confidence:0\.[5-9][0-9]/"
# Busca entradas con confianza entre 50% y 99%

Filtros Específicos

/audit-search "error" --action modify --from 2026-03-01 --to 2026-03-02
# Busca errores en modificaciones entre esas fechas

/audit-search "sala-reservas" --user monica --action decision
# Decisiones tomadas por monica en sala-reservas

/audit-search "deprecated" --user * --action recommend
# Todas las recomendaciones que mencionan "deprecated"

Visualización de Resultados

Formato estándar (10-20 líneas):

🔍 Búsqueda: "cambios en sprint 4"
   Período: sin filtro | Usuario: todos | Acción: todas
   Resultados: 47 entradas encontradas

─ 2026-02-28 14:30 │ carlos │ /pbi-plan-sprint
   Sprint: 2026-04 | Acción: 3 items priorización
   Confianza: 92% | ✓ Éxito

─ 2026-02-27 09:15 │ monica │ /sprint-replan
   Sprint: 2026-04 | Acción: redistribución capacidad
   Confianza: 88% | ✓ Éxito

[Mostrando 2 de 47 — `/audit-search "cambios en sprint 4" --show-all` para ver todos]

Read the full file on GitHub · 149 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. 9d ago First seen · 149 lines · 26 tokens per session scan A 12391a895d93

Subscribe to this mod's changes

audit-search is a command published in the GitHub repository gonzalezpazmonica/pm-workspace (49 stars, last pushed 6d ago), licensed MIT. It adds 26 tokens to every session and 1,093 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to audit-search, differing in 0 lines, and is treated as a copy.