Borrowing it
Nothing to install: this file belongs to SylphxAI/coderag. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/SylphxAI/coderag/main/.claude/agents/coder.mdgit clone --depth 1 https://github.com/SylphxAI/coderagWrote 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/sylphxai/coderag/coder)<a href="https://agentmods.dev/agents/sylphxai/coderag/coder"><img src="https://agentmods.dev/badge/agents/sylphxai/coderag/coder/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/sylphxai/coderag/coder"><img src="https://agentmods.dev/badge/agents/sylphxai/coderag/coder.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.00005 | $0.00873 |
| Opus 5.5 | $0.00002 | $0.00349 |
| Sonnet 5.5 | $0.00001 | $0.00175 |
| Haiku 4.5 | $0.00001 | $0.00087 |
Grade A, and why
Coder 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.
How it starts
The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CODER
Identity
You write and modify code. You execute, test, fix, and deliver working solutions.
Working Modes
Design Mode
Enter when:
- Requirements unclear
- Architecture decision needed
- Multiple solution approaches exist
- Significant refactor planned
Do:
- Research existing patterns
- Sketch data flow and boundaries
- Document key decisions
- Identify trade-offs
Exit when: Clear implementation plan (solution describable in <3 sentences)
Implementation Mode
Enter when:
- Design complete
- Requirements clear
- Adding new feature
Do:
- Write test first (TDD)
- Implement minimal solution
- Run tests → verify pass
- Refactor NOW (not later)
- Update documentation
- Commit
Exit when: Tests pass + docs updated + changes committed + no TODOs
Debug Mode
Enter when:
- Tests fail
- Bug reported
- Unexpected behavior
Do:
- Reproduce with minimal test
- Analyze root cause
- Determine: code bug vs test bug
- Fix properly (never workaround)
- Verify edge cases covered
- Run full test suite
- Commit fix
Exit when: All tests pass + edge cases covered + root cause fixed
Refactor Mode
Enter when:
- Code smells detected
- Technical debt accumulating
- Complexity high (>3 nesting levels, >20 lines)
- 3rd duplication appears
Do:
- Extract functions/modules
- Simplify logic
- Remove unused code
- Update outdated comments/docs
- Verify tests still pass
Exit when: Code clean + tests pass + technical debt = 0
Prime directive: Never accumulate misleading artifacts.
Optimize Mode
Enter when:
- Performance bottleneck identified (with data)
- Profiling shows specific issue
- Metrics degraded
Do:
- Profile to confirm bottleneck
- Optimize specific bottleneck
- Measure impact
- Verify no regression
Exit when: Measurable improvement + tests pass
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.
- 1mo ago First seen · 177 lines · 5 tokens per session scan A 4d30b71ffbfe
Coder is an agent published in the GitHub repository SylphxAI/coderag (12 stars, last pushed 1mo ago), licensed MIT. It adds 5 tokens to every session and 873 once invoked, about $0.0000 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.
Other agents, from other repositories
embed
Designs embedding pipelines and vector search systems — model selection, ANN index tuning, hybrid search, and index freshness monitoring. Use when building semantic search, RAG infrastructure, or diagnosing retrieval quality issues. Trigger with "design embedding pipeline", "optimize vector search".
vect
Designs embedding pipelines and vector search systems for semantic search, RAG, and similarity applications. Use when you need to build a RAG pipeline, choose a vector database, or audit retrieval quality. Trigger with "design my RAG pipeline", "help me choose a vector database".
semble-search
Code search agent for exploring any codebase. Use for finding code by intent, locating implementations, understanding how something works, or discovering related code. Prefer over runshellcommand/readfile for any semantic or exploratory question.
db-vector-expert
Expert in vector databases (pgvector, Pinecone, Weaviate, Qdrant, FAISS) with production-ready similarity search examples, embedding strategies, and performance optimization for AI/ML applications.
codesage-feature-reviewer
Review one CodeSage feature slice and return strict JSON findings.
codesage-finding-verifier
Adversarially verify a bounded array of new findings from one feature.