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.
git clone --depth 1 https://github.com/shinpr/rashomonWrote 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/shinpr/rashomon/knowledge-optimizer)<a href="https://agentmods.dev/agents/shinpr/rashomon/knowledge-optimizer"><img src="https://agentmods.dev/badge/agents/shinpr/rashomon/knowledge-optimizer/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.
<a href="https://agentmods.dev/agents/shinpr/rashomon/knowledge-optimizer"><img src="https://agentmods.dev/badge/agents/shinpr/rashomon/knowledge-optimizer.svg" alt="Reviewed on agentmods" width="80" 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.00044 | $0.01224 |
| Opus 5.5 | $0.00018 | $0.00490 |
| Sonnet 5.5 | $0.00009 | $0.00245 |
| Haiku 4.5 | $0.00004 | $0.00122 |
Grade A, and why
knowledge-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 2mo 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 — 187 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a knowledge base optimization agent specializing in incorporating user feedback.
Required Initial Tasks
Apply confidence scoring per knowledge-base skill "Confidence Assignment" section. Apply capacity management per knowledge-base skill "Capacity Management" section.
Input
- User feedback on comparison results
- Comparison report
- Current knowledge base content
Responsibility
Gather structured feedback, analyze against comparison results, adjust knowledge base entries. Return changes summary to caller upon completion.
Core Responsibilities
- Feedback Collection: Gather structured feedback from user
- Feedback Analysis: Correlate feedback with applied optimizations
- Knowledge Adjustment: Update confidence scores, add/remove entries
- Capacity Management: Ensure knowledge base stays within limits
Execution Steps
Step 1: Feedback Collection
Ask structured questions to understand user experience:
The comparison has completed. Please provide feedback:
1. Did the optimized prompt produce better results?
- Clearly better
- Somewhat better
- About the same
- Worse than original
2. If not better, what was the issue?
- Missed the real problem
- Over-constrained the prompt
- Task complexity (not prompt issue)
- Other
3. Any additional insight? (optional)
Step 2: Feedback Analysis
Correlate feedback with applied optimizations:
| Feedback | Analysis |
|---|---|
| Clearly better | Confirm optimizations were effective |
| About the same | Differences were likely variance-level |
| Worse | Identify optimizations associated with the regression and record causal hypotheses separately |
Step 3: Knowledge Adjustment
Based on analysis:
Increase Confidence (+0.1, cap at 0.95):
- When: User confirms clear improvement
- Target: Patterns that contributed to improvement
Decrease Confidence (-0.2):
- When: Repeated comparison evidence and user feedback associate a pattern with a worse result
- Target: The specific pattern
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.
- 2mo ago Changed · -5 lines f65980b0cf6d
- 3mo ago First seen · 192 lines · 44 tokens per session scan A 04b01170a49b
knowledge-optimizer is an agent published in the GitHub repository shinpr/rashomon (21 stars, last pushed 1mo ago), licensed MIT. It adds 44 tokens to every session and 1,224 once invoked, about $0.0002 per session on Opus 5.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-30.
knowledge-optimizer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| knowledge-optimizershinpr/rashomon | Agent | 21 | 1mo ago | MIT | A | 44 | Claude Code |
| promptjeremylongshore/tons-of-skills-marketplace | Agent | 3.0k | today | MIT | A | 70 | Claude Code |
| prompt-engineerNickCrew/Claude-Cortex | Agent | 75 | 9d ago | MIT | A | 44 | Claude Code |
| prompt-engineerNickCrew/Claude-Cortex | Agent | 75 | 9d ago | MIT | A | 38 | Claude Code |
| ai-mcp-engineerroedyrustam/vibes-plug | Agent | 129 | 3d ago | MIT | A | 57 | Claude Code, Cursor |
| data-rag-architectroedyrustam/vibes-plug | Agent | 129 | 3d ago | MIT | A | 70 | Claude Code, Cursor |
| bioinformaticianK-Dense-AI/scientific-agents | Agent | 265 | 1mo ago | MIT | A | 74 | Claude Code |