run-agent

A command for choosing a task from a project plan and opening the related agent instruction file in Cursor.

In plain words
What is it for?
Use it to select the next task, run a specific agent file, check agent status, validate a file path, or open the instructions without running them.
Why use it?
It removes the need to manually compare task dependencies, priorities, and current progress before starting work.

Command for Claude Code

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/paulbreuler/limps/run-agent
Clone the repo
git clone --depth 1 https://github.com/paulbreuler/limps

Made for: Claude Code.

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,735 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.01735
Opus 5 $0.00000 $0.00868
Sonnet 5 $0.00000 $0.00347
Haiku 4.5 $0.00000 $0.00173

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

Security

Grade A, and why

run-agent 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.

.claude/commands/run-agent.md · 213 lines

How it starts

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

Run Agent

Select the next best agent task from a plan and open it in Cursor, or run a specific agent file.

Invocation

/run-agent [plan-name]
/run-agent --agent [agent-path]
/run-agent --assess [plan-name]
/run-agent --agent [agent-path] --open-only

What This Command Does

  1. Selects next best task (if plan name provided) - Uses scoring algorithm based on:

    • Dependencies (40%): Features with all dependencies PASS get highest score
    • Workload balance (30%): Agents with fewer remaining tasks get higher score
    • Priority (30%): Lower feature IDs (earlier in plan) get higher score
  2. Assesses agent status - Checks completion state and file organization

  3. Validates agent path (when --agent provided) - Errors if file does not exist

  4. Opens agent file in Cursor - Opens the selected or specified agent file with context

  5. Displays instructions - Shows quick links and next steps

  6. Prints a brief checklist - Extracts Files/Tests sections when present (LLM-focused)

Usage Examples

Select and Run Next Task

/run-agent 0004-datagrid-overhaul

This will:

  • Analyze the plan to find the next best agent task
  • Display selection with score breakdown
  • Verify agent status
  • Open the agent file in Cursor
  • Show context and instructions

Run Specific Agent File

/run-agent --agent plans/0004-feature-name/agents/004_agent_name.agent.md

Opens the specified agent file directly in Cursor.

To find agents: Use /plan-list-agents <plan-number> to see all available agents with clickable links, then use /run-agent --agent [path] to run the specific one you want.

Assess Agent Status

/run-agent --assess 0004-datagrid-overhaul

Assesses all agents in the plan for completion status and file organization.

Instructions for Claude

When this command is invoked, you must:

  1. Get next task or parse arguments:
    • If plan name provided: Use get_next_task MCP tool (server: limps) to get the next best task
    • If --agent provided: Use the specified agent file path
    • If --assess provided: Use get_plan_status MCP tool (server: limps) to assess plan status

Read the full file on GitHub · 213 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. 2d ago First seen · 213 lines · 0 tokens per session scan A 37a438a77819

Subscribe to this mod's changes

run-agent is a command published in the GitHub repository paulbreuler/limps (10 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,735 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.