wtfp:insert-section

wtfp:insert-section is a command for Claude Code from akougkas/wtf-p. It costs 18 tokens per session (690 once invoked), scanned A, a copy of wtfp:execute-outline, MIT.

A command for adding a newly found section to a structured research manuscript. It keeps the document outline, numbering, dependencies, section records, and project state aligned.

In plain words
What is it for?
For inserting a section, assigning its ID and planning details, updating the outline and project state, and creating the section record while preserving existing identifiers and authored prose.
Why use it?
It removes the need to update the outline and related records separately, which can otherwise leave section order or dependencies inconsistent.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Good fit For inserting a section, assigning its ID and planning details, updating the outline and project state, and creating the section record while preserving existing identifiers and authored prose.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/akougkas/wtf-p/wtfp-insert-section
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/akougkas/wtf-p

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 wtfp:insert-section

README.md
[![agentmods](https://agentmods.dev/badge/commands/akougkas/wtf-p/wtfp-insert-section/github.svg)](https://agentmods.dev/commands/akougkas/wtf-p/wtfp-insert-section)
Your own site
<a href="https://agentmods.dev/commands/akougkas/wtf-p/wtfp-insert-section"><img src="https://agentmods.dev/badge/commands/akougkas/wtf-p/wtfp-insert-section/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 wtfp:insert-section

Your own site · 80×15
<a href="https://agentmods.dev/commands/akougkas/wtf-p/wtfp-insert-section"><img src="https://agentmods.dev/badge/commands/akougkas/wtf-p/wtfp-insert-section.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 690 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 83% copy Near-identical to another mod 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.00018 $0.00690
Opus 5.5 $0.00007 $0.00276
Sonnet 5.5 $0.00004 $0.00138
Haiku 4.5 $0.00002 $0.00069

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

Security

Grade A, and why

wtfp:insert-section 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.

Origin

This is a copy

83% identical to wtfp:execute-outline — 39 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

vendors/antigravity/commands/wtfp-insert-section.md · 61 lines

How it starts

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

Insert a section

@${PLUGIN_ROOT}/project/README.md @${PLUGIN_ROOT}/skills/wtfp-plan-section/SKILL.md @${PLUGIN_ROOT}/skills/wtfp-plan-section/references/actions.md

Record contract

Read: project://structure/outline, project://state, project://sections/{section}. Produce: project://structure/outline (update), project://sections/{section} (create), project://state (update).

Resolve every logical URI through the host adapter. Portable v1 JSON records are the source of truth: schema-validate before a write, preserve stable IDs, update revision and timestamps where required, and replace records atomically. Never pass a literal logical URI to a shell command or infer record state from a legacy Markdown control file.

Manuscript prose and supporting context, research, plan, review, summary, handoff, and deliverable artifacts retain their authored format (normally Markdown). Link them from the relevant v1 record; do not convert manuscript prose into project-state JSON.

Procedure

  1. Resolve the insertion point and propose a stable new section ID, goal, dependencies, wave, claims, and word budget.
  2. Preview impacts on outline ordering, dependencies, section totals, and current position; require approval. Every write to project://structure/outline must leave sections[*].word_target summing exactly to target_words. Reallocate across the affected sections and, where the author changed the overall length, restate target_words in the same write. Present the reallocation in the approval preview and refuse to publish an outline whose budgets do not balance.
  3. Create the section record and atomically update outline and state. Do not renumber stable IDs or move manuscript files implicitly.

Safety and completion

Do not initialize a repository or run branch, stage, commit, merge, push, or publish operations. If requested, return a clearly labeled optional handoff for a separately authorized action.

Report the logical resources read, created, updated, archived, or deleted; the gates crossed; validation results; unresolved checkpoints; and the safest next action. Never claim a mutation that was not verified.

Read the full file on GitHub · 61 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 Changed cf76017f86c6
  2. 1mo ago Changed cba854f8c631
  3. 1mo ago First seen · 61 lines · 18 tokens per session scan A 1e87c6acc440

Subscribe to this mod's changes

wtfp:insert-section is a command published in the GitHub repository akougkas/wtf-p (20 stars, last pushed 19d ago), licensed MIT. It adds 18 tokens to every session and 690 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 83% identical to wtfp:execute-outline, differing in 39 lines, and is treated as a copy.