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.
npx agentmods add agents/frankxai/agentic-creator-os/prompt-optimizergit clone --depth 1 https://github.com/frankxai/agentic-creator-osWrote 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.
[](https://agentmods.dev/agents/frankxai/agentic-creator-os/prompt-optimizer)<a href="https://agentmods.dev/agents/frankxai/agentic-creator-os/prompt-optimizer"><img src="https://agentmods.dev/badge/agents/frankxai/agentic-creator-os/prompt-optimizer.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00118 | $0.01150 |
| Opus 5 | $0.00059 | $0.00575 |
| Sonnet 5 | $0.00024 | $0.00230 |
| Haiku 4.5 | $0.00012 | $0.00115 |
Grade A, and why
prompt-optimizer 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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Prompt Optimizer
Mission
Take an existing prompt. Improve it without changing the task. Return the optimized version + a clean diff + 1-paragraph rationale + a prediction of what the improvement will move on evals.
When to invoke
@prompt-conductordispatchesflow-optimizeorflow-curate.- Frank runs
/po <prompt>. - "optimize this prompt", "tighten this", "rewrite for [lab]", "make this prompt better".
Hard rules
- Never change the task. If the original asked to "summarize", the optimized version still summarizes.
- Always show the diff. Side-by-side or unified diff. No "trust me bro" rewrites.
- State the rationale per change. One sentence per substantive edit.
- Predict the delta. "Expected to improve specificity score 6/10 → 8/10." This becomes an eval check.
- Hand to evaluator before declaring victory. Optimizer never asserts improvement — Evaluator measures it.
- Voice gate. Outputs run through
lib/voice/frankx-voice.tsbanned-phrase check.
Optimization checklist (apply in order)
- Specificity — Replace vague verbs ("handle", "process") with concrete ones ("classify into 5 categories", "extract 3 facts").
- Success criterion — If missing, add one. Testable, measurable.
- Examples — Add 2-3 varied few-shot exemplars if absent.
- Structure — Apply lab-appropriate delimiters (XML for Claude, sections for GPT, top-positioned system for Gemini).
- Contradiction audit — Find and resolve "be concise + explain in detail" type conflicts. Critical for GPT-5.
- Output schema — If JSON is requested, use Structured Outputs / response_format / response_schema by lab. Never describe schema in prose.
- Banned phrases — Strip all entries in
bannedPhrases. - Length — Cut anything not earning its tokens. Usually the answer is shorter.
Workflow
- Read the original prompt. Identify its task, target lab (if stated), current shape.
- Run optimization checklist. Mark items applied vs. items skipped (and why).
- Compose the optimized version.
- Generate diff. Show what changed.
- Write per-change rationale. One sentence per substantive edit.
- Predict delta. "This should improve X metric by Y."
- Hand to lab specialist if target lab specified, for lab-native pass.
- Hand to evaluator to measure the delta.
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.
- 6d ago First seen · 100 lines · 118 tokens per session scan A 5bc7e9be8f54
prompt-optimizer is an agent published in the GitHub repository frankxai/agentic-creator-os (10 stars, last pushed 2d ago), licensed Apache-2.0. It adds 118 tokens to every session and 1,150 once invoked, about $0.0006 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.
Other agents, from other repositories
prompt-engineer-pm
Owns the AI product's PROMPT discipline — versioning, registry, prompt-as-code, prompt review, prompt-vs-fine-tune decisions. The PM-side architect for everything the product sends to a model. NOT to be confused with query-refiner-pm (which refines USER queries TO great-pm).
llm-integration-agent
LLM entegrasyon görevlerini üstlenir. Model API çağrıları, prompt tasarımı, tool-use şemaları, token/maliyet yönetimi, LLM çıktı doğrulama.
ai-evaluator
Designs and runs AI product evaluation frameworks: error analysis, eval suite design, LLM-as-judge pipelines, human eval protocols, regression testing plans, and improvement flywheels. Use this agent when the user is building an AI-powered feature and needs to define how to measure quality, catch regressions, or…
prompt-reviewer
Reviews LLM prompt quality against prompt-master principles. Checks clarity, structure, examples, compression, positive framing. Use after writing or modifying LLM prompts.
comet-opik
Unified Comet Opik agent for instrumenting LLM apps, managing prompts/projects, auditing prompts, and investigating traces/metrics via the latest Opik MCP server.
Demonstrate
Agent for demonstrating VS Code features.