lucius

lucius is a command for coding agents 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

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

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.

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

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.

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. Scan, not verified.
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 $0.00017 $0.01121
Opus 5 $0.00009 $0.00561
Sonnet 5 $0.00003 $0.00224
Haiku 4.5 $0.00002 $0.00112

Measured 3d ago against content hash 96481b64c4e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 (119 stars, last pushed 18d ago), licensed MIT. It adds 17 tokens to every session and 1,121 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-08-30.

Related

Other commands, from other repositories