lucius

lucius is a command for Claude Code from 686f6c61/alfred-dev. It costs 17 tokens per session (1,121 once invoked), scanned A, original, MIT.

Un comando que solicita una segunda opinión técnica externa sobre un proyecto mediante Codex CLI. Prepara el alcance y las condiciones de la revisión antes de ejecutarla.

In plain words
What is it for?
Obtener diagnósticos y recomendaciones por elemento sobre el código, usando una revisión externa cuando la sesión interactiva y sus requisitos lo permiten.
Why use it?
Ayuda a revisar decisiones o problemas de código desde otra perspectiva y evita presentar una auditoría como terminada cuando solo se ha preparado.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: runs codex exec; mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Bash(python3 .claude/alfred-continuity.py *), Read, Agent.

Part of the alfred-dev plugin — 11 skills, 22 commands, 10 agents, 5 hooks, 1 MCP server shipped together

Good fit Obtener diagnósticos y recomendaciones por elemento sobre el código, usando una revisión externa cuando la sesión interactiva y sus requisitos lo permiten.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/686f6c61/alfred-dev
agentmods
npx agentmods add commands/686f6c61/alfred-dev/lucius

Made for: Claude Code.

Or install alfred-dev, the plugin that ships this one along with the rest of its 11 skills, 22 commands, 10 agents, 5 hooks, 1 MCP server.

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 lucius

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/686f6c61/alfred-dev/lucius"><img src="https://agentmods.dev/badge/commands/686f6c61/alfred-dev/lucius.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 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,121 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.00017 $0.01121
Opus 5.5 $0.00007 $0.00448
Sonnet 5.5 $0.00003 $0.00224
Haiku 4.5 $0.00002 $0.00112

Measured 1mo ago against content hash 96481b64c4e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lucius 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 1mo 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.

commands/lucius.md · 104 lines

How it starts

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

/alfred-dev:lucius

Eres Alfred, orquestador del equipo. El usuario quiere una segunda opinión técnica externa sobre el código de su proyecto. Activa a Lucius usando la herramienta Agent con subagent_type: "alfred-dev:lucius".

Argumentos del usuario: $ARGUMENTS

Protocolo helper-first y modo headless

Antes de lanzar a Lucius, intentar Codex CLI o leer el repo, consume el prefetch determinista si existe:

python3 .claude/alfred-continuity.py consume-prefetch "$PWD" --expected lucius

Si el prefetch existe y devuelve salida, responde con esa salida y termina. Si no existe, prepara la revisión sin ejecutarla:

python3 .claude/alfred-continuity.py lucius "$PWD" --raw "$ARGUMENTS"

En modo headless (claude -p), SDK sin callback usable, auditoría automática o si una herramienta indica que hay prefetch consumido, NO lances Agent, NO ejecutes codex exec y NO presentes una revisión como hecha. Devuelve LUCIUS_HEADLESS_START con directorio, scope, prerequisitos y siguiente paso. Si el scope es inválido, devuelve LUCIUS_INVALID_SCOPE y termina sin lanzar Codex CLI.

En sesión interactiva normal, puedes continuar desde esa preparación y entonces activar a Lucius con confirmación y preflight de Codex CLI.

Uso

/alfred-dev:lucius                       → audita el directorio actual
/alfred-dev:lucius src/                  → audita un subdirectorio concreto
/alfred-dev:lucius --scope security      → solo problemas de seguridad
/alfred-dev:lucius src/ --scope tests    → tests en un subdirectorio

Scopes disponibles

Scope Qué analiza
all (por defecto) Auditoría completa: seguridad, arquitectura, tests, rendimiento
security OWASP Top 10, secretos, validación de entrada, CVEs
tests Cobertura, casos borde, rutas de error sin test
architecture Acoplamiento, responsabilidad única, dependencias circulares
performance N+1, operaciones bloqueantes, cuellos de botella

Read the full file on GitHub · 104 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. 1mo ago First seen · 104 lines · 17 tokens per session scan A 96481b64c4e7

Subscribe to this mod's changes

lucius is a command published in the GitHub repository 686f6c61/alfred-dev (117 stars, last pushed 2mo ago), licensed MIT. It adds 17 tokens to every session and 1,121 once invoked, about $0.0001 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-08-30.