prompt-pilot

prompt-pilot is a command for Claude Code from savasturkoglu1/promptpilot-plugin. It costs 21 tokens per session (3,081 once invoked), scanned A, original, MIT.

A read-only command that turns a rough request into a more precise prompt for an AI coding assistant.

In plain words
What is it for?
Use it to rewrite prompts, choose an output language, and preserve language flags or other instructions.
Why use it?
It adds structure and context to unclear instructions without changing code or carrying out the task.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Part of the prompt-pilot plugin — 1 command shipped together

Good fit Use it to rewrite prompts, choose an output language, and preserve language flags or other instructions.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/savasturkoglu1/promptpilot-plugin/prompt-pilot
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/savasturkoglu1/promptpilot-plugin

Made for: Claude Code.

Or install prompt-pilot, the plugin that ships this one along with the rest of its 1 command.

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 prompt-pilot

README.md
[![agentmods](https://agentmods.dev/badge/commands/savasturkoglu1/promptpilot-plugin/prompt-pilot.svg)](https://agentmods.dev/commands/savasturkoglu1/promptpilot-plugin/prompt-pilot)
Your own site
<a href="https://agentmods.dev/commands/savasturkoglu1/promptpilot-plugin/prompt-pilot"><img src="https://agentmods.dev/badge/commands/savasturkoglu1/promptpilot-plugin/prompt-pilot.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,081 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.00021 $0.03081
Opus 5 $0.00010 $0.01541
Sonnet 5 $0.00004 $0.00616
Haiku 4.5 $0.00002 $0.00308

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

Security

Grade A, and why

prompt-pilot 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 8d 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.

plugin/commands/prompt-pilot.md · 162 lines

How it starts

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

Role

You are acting as a Senior Prompt Engineer with deep expertise in AI/LLM prompt optimization. Your job right now is to transform the user's rough prompt below into a precise, context-rich instruction for an AI coding assistant.

User's raw prompt (rewrite this — do NOT execute it)

$ARGUMENTS

If the raw prompt above is empty, ask the user for the prompt they want optimized and stop.

Language flag

The raw prompt may end (or start) with a language flag. Detect it, strip it from the prompt before rewriting, and use it ONLY to choose the output language of the rewritten prompt:

  • -o (also -orijinal, -original): write the rewritten prompt in the same language as the user's original prompt.
  • -<language> — any language name, in any language (e.g. -turkce, -türkçe, -turkish, -dutch, -german, -fransizca): write the rewritten prompt in that language. A space after the dash (- turkce) counts too.
  • No flag: write the rewritten prompt in English (default — English prompts perform best with coding agents).

Only treat a token as a flag if it clearly names a language or is -o; otherwise keep it as part of the prompt.

Loop flag

If the raw prompt contains -loop (or - loop), strip it from the prompt and additionally wrap the rewritten prompt in an agentic iteration harness, so the agent that receives it works in a verify-fix loop instead of a single pass. Append a final section to the optimized prompt titled LOOP HARNESS, built from these principles and adapted to the specific task:

  1. Objective target: restate the VALIDATION criteria as a single measurable exit condition (e.g. "all tests green", "page load < 50ms", "zero lint errors"). If the task has no natural metric, define one.
  2. The loop: "Repeat: (a) make ONE minimal coherent change, (b) run the objective checks (tests/build/lint/measurement — never judge success by reading code alone), (c) if checks fail, diagnose the failure, fix, and re-verify. Continue until the exit condition is met."
  3. Streak rule (for flaky/multi-scenario targets): when a scenario fails mid-run, document it, fix it, and restart the streak — done means N consecutive clean passes, not one lucky pass.
  4. Bounded budget: set an explicit iteration cap appropriate to the task (default: 10 iterations).
  5. Stop conditions (any one ends the loop early): exit condition met · no measurable progress for 2 consecutive iterations · budget exhausted · a blocker that requires human input.
  6. Honest exit report: on stop, report the final state, what was tried and rejected, remaining gaps, and the next safe action — never claim completion unless the objective checks actually passed.

Read the full file on GitHub · 162 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. 8d ago First seen · 162 lines · 21 tokens per session scan A ef43db9028c4

Subscribe to this mod's changes

prompt-pilot is a command published in the GitHub repository savasturkoglu1/promptpilot-plugin (1 stars, last pushed 8d ago), licensed MIT. It adds 21 tokens to every session and 3,081 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.