deepen-plan

deepen-plan is a command for Claude Code from JairoTorregrosa/jaiskills. It costs 15 tokens per session (1,025 once invoked), scanned A, original, MIT.

A planning command that improves an existing plan by researching each section with parallel agents and adding relevant findings.

In plain words
What is it for?
Use it to expand a plan file with research about its tasks, technologies, codebase patterns, and related past fixes.
Why use it?
It helps uncover technical details, internal project references, and previously documented solutions before implementation begins.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the jaiskills plugin — 12 skills, 13 commands, 4 agents, 2 hooks, 1 MCP server shipped together

Good fit Use it to expand a plan file with research about its tasks, technologies, codebase patterns, and related past fixes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jairotorregrosa/jaiskills/deepen-plan
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.

Clone the repo
git clone --depth 1 https://github.com/JairoTorregrosa/jaiskills

Made for: Claude Code.

Or install jaiskills, the plugin that ships this one along with the rest of its 12 skills, 13 commands, 4 agents, 2 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 deepen-plan

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/jairotorregrosa/jaiskills/deepen-plan"><img src="https://agentmods.dev/badge/commands/jairotorregrosa/jaiskills/deepen-plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 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,025 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.00015 $0.01025
Opus 5 $0.00008 $0.00513
Sonnet 5 $0.00003 $0.00205
Haiku 4.5 $0.00002 $0.00103

Measured 10d ago against content hash caae7026ceb2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

deepen-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 10d 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/deepen-plan.md · 119 lines

How it starts

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

Enhance a plan file with research insights by spawning parallel research agents.

Step 1: Locate the Plan File

If $ARGUMENTS specifies a path, use it. Otherwise, find the most recent *-plan.md file in the current working directory using Glob.

Read the plan file. If it cannot be found or read, report the error and stop.

Save the original content for later diffing.

Step 2: Parse Plan Structure

Parse the plan file to extract:

  1. Task sections: Each ### T<N>: <title> block with its description, location, acceptance criteria
  2. Technologies: For each task, identify external technologies, frameworks, libraries, or APIs mentioned (e.g., "Python", "TypeScript", "React", "PostgreSQL", "Claude API")
  3. Internal references: File paths and internal patterns mentioned in each task

Build a list of (task_id, task_title, task_description, technologies[]) tuples.

If docs/solutions/ exists in the project:

Spawn a jaiskills:insistir-learnings-researcher agent via the Task tool with a query summarizing the plan's overall goal and key technologies. This searches for relevant past solutions that could inform the plan.

This runs in parallel with Step 4.

Step 4: Spawn Parallel Researchers

For each task section that references at least one external technology, framework, or library:

Spawn a jaiskills:insistir-researcher agent via the Task tool. Each researcher receives:

  • The task title and full description
  • The specific technologies to research for that task
  • The project's tech stack context (from package.json, tsconfig.json, etc.)
  • Instruction to send findings back to you (the orchestrator) via SendMessage

Spawn all researchers in parallel — do NOT wait for one to finish before starting the next.

Skip tasks that only reference internal codebase patterns with no external dependencies.

Step 5: Collect All Findings

Wait for all spawned agents (researchers + optional learnings researcher) to send their findings via SendMessage.

Read the full file on GitHub · 119 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. 10d ago First seen · 119 lines · 15 tokens per session scan A caae7026ceb2

Subscribe to this mod's changes

deepen-plan is a command published in the GitHub repository JairoTorregrosa/jaiskills (5 stars, last pushed 9d ago), licensed MIT. It adds 15 tokens to every session and 1,025 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-31.