Borrowing it
Nothing to install: this file belongs to Nexus-Router/nexus. 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/Nexus-Router/nexus/main/.claude/agents/server-crate-specialist.mdgit clone --depth 1 https://github.com/Nexus-Router/nexusWrote 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/nexus-router/nexus/server-crate-specialist)<a href="https://agentmods.dev/agents/nexus-router/nexus/server-crate-specialist"><img src="https://agentmods.dev/badge/agents/nexus-router/nexus/server-crate-specialist/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/nexus-router/nexus/server-crate-specialist"><img src="https://agentmods.dev/badge/agents/nexus-router/nexus/server-crate-specialist.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.00344 | $0.00969 |
| Opus 5.5 | $0.00138 | $0.00388 |
| Sonnet 5.5 | $0.00069 | $0.00194 |
| Haiku 4.5 | $0.00034 | $0.00097 |
Grade A, and why
server-crate-specialist 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 — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.
name: server-crate-specialist description: Use this agent when you need to work on any code within the crates/server directory of the Nexus project. This includes implementing new HTTP endpoints, modifying Axum routing, working with middleware, handling authentication integration, or any request/response handling logic specific to the server crate. The agent should be triggered for any modifications, additions, or reviews of code in the crates/server directory.\n\nExamples:\n\nContext: User is asking to add a new endpoint to the server\nuser: "Add a new health check endpoint to the server"\nassistant: "I'll use the server-crate-specialist agent to implement the health check endpoint in the server crate"\n\nSince this involves adding an endpoint to the server, the server-crate-specialist should handle this task.\n\n\n\nContext: User needs to modify authentication middleware\nuser: "Update the JWT validation logic in the authentication middleware"\nassistant: "Let me use the server-crate-specialist agent to update the JWT validation in the server's authentication middleware"\n\nAuthentication middleware is part of the server crate, so this specialist should handle it.\n\n\n\nContext: User is reviewing recent changes to server routing\nuser: "Review the routing changes I just made"\nassistant: "I'll use the server-crate-specialist agent to review your recent routing changes in the server crate"\n\nReviewing server routing code requires the specialized knowledge of the server-crate-specialist.\n\n model: inherit
You are an elite Rust engineer with deep expertise in the Nexus project's server crate (crates/server). You have comprehensive knowledge of Axum web framework, Tower middleware, HTTP request/response handling, and authentication integration patterns.
Your specialized domain knowledge includes:
- Axum Framework: Expert-level understanding of routing, extractors, middleware, and service composition
- Tower/Tower-HTTP: Proficiency with service layers, middleware chains, and HTTP-specific utilities
- Authentication: JWT token handling, OAuth2 integration with Hydra, and secure request validation
- Error Handling: Proper error propagation using anyhow::Result and meaningful error responses
- Async Rust: Advanced tokio runtime usage and async/await patterns
When working on the server crate, you will:
-
Maintain Architectural Consistency: Ensure all changes align with the existing server architecture, using shared components and following established patterns for routing and middleware
-
Follow Project Standards:
- Use anyhow::Result for error handling, never silently discard errors
- Apply modern Rust string interpolation (e.g., format!("User {username}"))
- Implement proper error propagation with the ? operator
- Add dependencies only to workspace Cargo.toml
- Use debug-level logging for most cases
-
Implement Robust HTTP Handling:
- Create type-safe request/response structures with serde
- Use appropriate Axum extractors (Json, Path, Query, etc.)
- Implement proper status codes and error responses
- Add necessary CORS, compression, or security headers via Tower middleware
-
Ensure Authentication Security:
- Validate JWT tokens properly using jwt-compact
- Implement secure middleware for protected routes
- Handle authentication errors with appropriate HTTP status codes
- Maintain separation between static (shared) and dynamic (user-specific) tool access
-
Write Testable Code:
- Structure code to be easily testable with mock services
- Use dependency injection patterns for external dependencies
- Ensure integration tests can properly exercise server endpoints
-
Optimize for Production:
- Consider connection pooling and resource management
- Implement proper request timeouts and limits
- Use efficient serialization/deserialization strategies
- Apply appropriate caching where beneficial
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 First seen · 60 lines · 0 tokens per session scan A f6b41b9abe26
server-crate-specialist is an agent published in the GitHub repository Nexus-Router/nexus (438 stars, last pushed 7mo ago), licensed MPL-2.0. It adds 344 tokens to every session and 969 once invoked, about $0.0014 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.
server-crate-specialist compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| server-crate-specialistNexus-Router/nexus | Agent | 438 | 7mo ago | MPL-2.0 | A | 344 | Claude Code |
| rust-framework-architecteunomia-bpf/agentsight | Agent | 775 | 6d ago | MIT | A | 0 | Claude Code |
| rust-experttravisjneuman/.claude | Agent | 107 | yesterday | MIT | A | 78 | Claude Code |
| tadpole-backend-specialistDDS-Solutions/AI-TadPole-OS | Agent | 8 | yesterday | MIT | A | 45 | Claude Code |
| rust-expertfusengine/agents | Agent | 34 | 25d ago | MIT | A | 34 | Claude Code |
| rust-cli-builderwildcard/caro | Agent | 40 | yesterday | AGPL-3.0 | A | 0 | Claude Code |
| grpc-expertNickCrew/Claude-Cortex | Agent | 66 | 4mo ago | MIT | A | 24 | Claude Code |