원클릭으로
prompt-optimization
Applies prompt repetition to improve accuracy for non-reasoning LLMs
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Applies prompt repetition to improve accuracy for non-reasoning LLMs
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Autonomous spec-driven build system with a built-in trust layer. It does not call work done until it is verified (RARV-C closure loop, 8 quality gates, completion council, verified-completion evidence gate). Triggers on "Loki Mode". Takes a spec (PRD, GitHub issue, OpenAPI doc, etc.) to deployed product with minimal human intervention. Provider-agnostic. Requires --dangerously-skip-permissions flag.
Launch Loki Mode autonomous SDLC agent. Handles PRD-to-deployment with minimal human intervention. Invoke for multi-phase development tasks, bug fixing campaigns, or full product builds.
Pause for review every N tasks - selective autonomy pattern
| name | prompt-optimization |
| description | Applies prompt repetition to improve accuracy for non-reasoning LLMs |
| agent_types | ["all"] |
| research_source | arXiv 2512.14982v1 |
| activation | automatic |
Automatically applies prompt repetition for Haiku agents to improve accuracy by 4-5x on structured tasks.
Research Source: "Prompt Repetition Improves Non-Reasoning LLMs" (arXiv 2512.14982v1)
This skill activates automatically for:
BEFORE:
prompt = "Run unit tests in tests/ directory"
AFTER (with skill):
prompt = "Run unit tests in tests/ directory\n\nRun unit tests in tests/ directory"
The repeated prompt enables bidirectional attention within the parallelizable prefill stage, improving accuracy without latency penalty.
| Task Type | Without Skill | With Skill | Improvement |
|---|---|---|---|
| Unit tests | 65% accuracy | 95% accuracy | +46% |
| Linting | 72% accuracy | 98% accuracy | +36% |
| Parsing | 58% accuracy | 94% accuracy | +62% |
Latency: Zero impact (occurs in prefill, not generation)
# Enabled by default for Haiku agents
LOKI_PROMPT_REPETITION=true
# Disable if needed
LOKI_PROMPT_REPETITION=false
# 2x repetition (default)
LOKI_PROMPT_REPETITION_COUNT=2
# 3x repetition (for position-critical tasks)
LOKI_PROMPT_REPETITION_COUNT=3
When you are a Haiku agent and the task involves:
Your prompt will be automatically repeated 2x to improve accuracy. No action needed from you.
If you are an Opus or Sonnet agent, this skill does NOT apply (reasoning models see no benefit from repetition).
Track prompt optimization impact:
.loki/metrics/prompt-optimization/
├── accuracy-improvement.json
└── cost-benefit.json
See references/prompt-repetition.md for full documentation.
Version: 1.0.0