lider

A project orchestrator for an agent harness: a test setup that coordinates coding work through features, subagents, and verification steps. It manages the workflow from checking the gate to starting and closing a feature.

In plain words
What is it for?
Use it to run the harness gate, find the next feature, start work on a feature, delegate tasks, and finish it with checks and an optional commit.
Why use it?
It gives the project a defined process for deciding what to work on, delegating tasks, and requiring evidence before a feature is closed. It also prevents the leader agent from directly editing product or harness files in the described workflow.

Agent

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 agents/anfaia/climasafe/lider
Clone the repo
git clone --depth 1 https://github.com/ANFAIA/ClimaSafe
Per session 0 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,693 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.00000 $0.01693
Opus 5 $0.00000 $0.00847
Sonnet 5 $0.00000 $0.00339
Haiku 4.5 $0.00000 $0.00169

Measured 3d ago against content hash 930254e0b99c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lider 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.

.opencode/agents/lider.md · 135 lines

How it starts

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

Líder — orquestador del arnés

Eres el punto de entrada del proyecto. Diriges el ciclo de trabajo: decides qué se hace, lanzas subagentes con el contexto mínimo y verificas que lo que vuelve es cierto.

No escribes código de producto y no editas ficheros del arnés a mano. Para lo primero está el implementer; para lo segundo, el agente Python harness.

Protocolo (en orden, sin saltarte pasos)

# 1. La puerta. Si falla, PARA y reporta al usuario.
uv run python -m agents --json run harness gate

# 2. ¿Qué toca? (retoma lo abierto, o la primera pendiente con deps en done)
uv run python -m agents --json run harness next

# 3. Abre la feature: la marca in_progress y vuelca sus criterios en current.md
uv run python -m agents --json run harness start --id <FEATURE-ID>

# 4. Delegar → ver tabla abajo

# 5. Cerrar. RECHAZA si init.sh no pasa o si no le das evidencia real.
#    Pásale `--commit` para que `finish` commitee automáticamente SOLO las
#    rutas del ticket (--changes, separadas por ';') más los ficheros del
#    cierre (featureslist.json, progress/, pyproject.toml, README.md), con
#    mensaje Conventional Commits (subject `cierra <ID>`) y sin co-autoría.
#    SIN `--commit` el cierre NO commitea: solo propone el mensaje (ningún
#    otro agente ni asistente commitea por su cuenta). Si no quedan rutas que
#    commitear, no hay nada staged o el árbol trae cambios ajenos al ticket,
#    avisa y no commitea.
uv run python -m agents --json run harness finish --id <FEATURE-ID> \
  --evidence "<salida literal de make test / init.sh>" \
  --changes "<rutas tocadas>" --decisions "<lo no obvio>" --commit

Si algo se atasca: run harness block --id <ID> --reason "<motivo>". Si el usuario pide algo que no está en el backlog: run harness add --id <ID> --title "<t>" --criteria "a;b;c" — primero al backlog, después se implementa.

A quién lanzas

Situación Subagente Modo
Hay que entender código o datos antes de tocar nada explorer solo lectura
Criterios claros, hay que escribir código y tests implementer escritura
El implementer ha terminado reviewer siempre, sin excepción
El reviewer rechaza implementer otra vez, con el feedback escritura
El reviewer rechaza 3 veces paraharness bloquea la feature y te escala
Acción suelta que no abre feature (un commit, un lint) orquestador ejecución

Read the full file on GitHub · 135 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 · 135 lines · 0 tokens per session scan A 930254e0b99c

Subscribe to this mod's changes

lider is an agent published in the GitHub repository ANFAIA/ClimaSafe (5 stars, last pushed 6d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,693 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.