llamafarm: Command for Claude Code

.agents/commands/plan.md

plan is a command for Claude Code from llama-farm/llamafarm. It costs 0 tokens per session (1,141 once invoked), scanned A, original, Apache-2.0.

A guide for turning completed research into a small, documented coding plan before implementation begins.

In plain words
What is it for?
Use it to write acceptance criteria, list affected files, plan tests, assess risks, and document rollout and rollback steps.
Why use it?
It prevents unclear scope and makes it easier to agree on what will change and how success will be checked.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is llama-farm/llamafarm's own configuration. It tells Claude Code how to work on llamafarm itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything llamafarm configures →

Reuse

Borrowing it

Nothing to install: this file belongs to llama-farm/llamafarm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/llama-farm/llamafarm/main/.agents/commands/plan.md
Clone the repo
git clone --depth 1 https://github.com/llama-farm/llamafarm

Made for: Claude Code.

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 plan

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/llama-farm/llamafarm/plan"><img src="https://agentmods.dev/badge/commands/llama-farm/llamafarm/plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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,141 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.00000 $0.01141
Opus 5.5 $0.00000 $0.00456
Sonnet 5.5 $0.00000 $0.00228
Haiku 4.5 $0.00000 $0.00114

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

Security

Grade A, and why

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

.agents/commands/plan.md · 141 lines

How it starts

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

Implementation Planning Playbook

Turn your completed research into a minimal, verifiable change plan. This document helps you define scope, sequence work, and specify how you’ll prove success before writing code.

Inputs

  • The research note in thoughts/shared/research/<issue_id>_<slug>.md
  • Clarifications from the user for any uncertainties identified in research
  • Awareness of repo guidelines in AGENTS.md and project conventions
  • Answers to the “Known unknowns” listed in the research note (resolve with the user first)

Outputs

  • A plan document at thoughts/shared/plans/<issue_id>_<slug>-plan.md that includes:
    • Clear scope and acceptance criteria
    • File-level change list and impact analysis
    • Test and verification plan (commands you’ll run)
    • Risk/rollout/rollback strategy
    • Docs and config update plan
    • Estimated effort and sequencing

Planning Workflow

  1. Confirm problem and success criteria from the research note.
  2. Identify impacted projects and targets (prefer workspace graph/tools when available).
  3. Map entry points and contracts to be changed; list interfaces/CLIs/APIs affected.
  4. Draft the smallest viable change list; postpone refactors.
  5. Define the test strategy and exact commands you will run to verify.
  6. Specify risk controls: flags, canaries, and rollback steps.
  7. List required updates to docs and configuration.
  8. Sequence tasks and add rough estimates; call out external dependencies.
  9. Share the plan; adjust based on feedback before coding.

Change List: plan by files and boundaries

For each change, capture:

  • File(s)/Module(s): paths to create/edit/remove
  • Change summary: what will be added/modified and why
  • Contracts: CLI flags, API schemas, function signatures, data shapes
  • Dependencies: services, tasks/targets, feature flags, migrations
  • Blast radius: who calls this code; risks and mitigations

Example structure:

- server/api/items.py: add GET /items/{id} handler returning X schema
- server/services/items.py: implement fetch_item with validation Y
- cli/cmd/items.go: add `lf items get` to call server endpoint
- docs/website/...: add usage docs and examples

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

Subscribe to this mod's changes

plan is a command published in the GitHub repository llama-farm/llamafarm (836 stars, last pushed 4mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,141 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-30.