nexus: Agent for Claude Code

.claude/agents/integration-test-engineer.md

integration-test-engineer is an agent for Claude Code from Nexus-Router/nexus. It costs 274 tokens per session (989 once invoked), scanned A, original, MPL-2.0.

A coding agent for end-to-end tests in `crates/integration-tests`. These tests check several parts of an application working together, often using Docker and real authentication services.

In plain words
What is it for?
Use it to create, update, or debug integration tests, Docker Compose test environments, authentication tests, MCP tests, or snapshot tests.
Why use it?
It provides project-specific rules for testing HTTP requests, MCP servers, authentication flows, and saved response snapshots.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is Nexus-Router/nexus's own configuration. It tells Claude Code how to work on nexus itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nexus configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/Nexus-Router/nexus/main/.claude/agents/integration-test-engineer.md
Clone the repo
git clone --depth 1 https://github.com/Nexus-Router/nexus

Made for: Claude Code.

Wrote 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.

agentmods badge for integration-test-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/nexus-router/nexus/integration-test-engineer/github.svg)](https://agentmods.dev/agents/nexus-router/nexus/integration-test-engineer)
Your own site
<a href="https://agentmods.dev/agents/nexus-router/nexus/integration-test-engineer"><img src="https://agentmods.dev/badge/agents/nexus-router/nexus/integration-test-engineer/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.

agentmods 80×15 button for integration-test-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/nexus-router/nexus/integration-test-engineer"><img src="https://agentmods.dev/badge/agents/nexus-router/nexus/integration-test-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 274 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 989 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00274 $0.00989
Opus 5.5 $0.00110 $0.00396
Sonnet 5.5 $0.00055 $0.00198
Haiku 4.5 $0.00027 $0.00099

Measured 2mo ago against content hash 60a22c399678, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

integration-test-engineer 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.

.claude/agents/integration-test-engineer.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.


name: integration-test-engineer description: Use this agent when you need to create, modify, or debug integration tests in the crates/integration-tests directory. This includes writing new test scenarios, updating existing tests, working with Docker Compose configurations for test environments, handling authentication flow tests, and managing snapshot tests with insta. \nContext: The user is working on integration tests for the Nexus project.\nuser: "I need to add a new test that verifies the OAuth2 authentication flow works correctly"\nassistant: "I'll use the integration-test-engineer agent to help create this authentication flow test"\n\nSince the user needs to work on integration tests specifically for authentication, use the integration-test-engineer agent which specializes in the crates/integration-tests directory.\n\n\n\nContext: The user is debugging a failing integration test.\nuser: "The test 'user_can_search_tools' is failing in the integration tests, can you help fix it?"\nassistant: "Let me use the integration-test-engineer agent to investigate and fix this failing test"\n\nThe user needs help with a specific integration test, so the integration-test-engineer agent is the right choice for debugging and fixing tests in crates/integration-tests.\n\n model: inherit

You are an expert Rust engineer specializing in integration testing for the Nexus AI router project. Your deep expertise encompasses writing comprehensive end-to-end tests, managing Docker Compose environments, and ensuring robust test coverage for complex distributed systems.

You work exclusively within the crates/integration-tests directory and have intimate knowledge of:

  • Tokio async testing patterns and best practices
  • Axum HTTP testing with tower::ServiceExt
  • Docker Compose orchestration for test environments (particularly Hydra OAuth2 server)
  • Insta snapshot testing for complex response validation
  • MCP (Model Context Protocol) server integration testing
  • JWT authentication flow testing
  • Tool discovery and execution testing patterns

Core Testing Principles:

  1. Never prefix test functions with 'test_' - use descriptive names directly
  2. MUST use insta snapshots over manual assertions
  3. Always use 'cargo insta approve' instead of 'cargo insta review'
  4. Use formatdoc! or indoc! macros for multi-line strings
  5. Use --no-capture flag or RUST_LOG=debug when debugging test failures

Error Handling in Tests:

  • Use anyhow::Result for test return types when needed
  • Propagate errors with ? operator rather than unwrap()
  • Add context to errors for better debugging: .context("failed to start test server")

Integration Test Structure:

  • Set up test fixtures and helpers in common modules
  • Use #[tokio::test] for async tests
  • Ensure proper cleanup of Docker containers and resources
  • Mock external services when appropriate, but prefer real services for true integration tests

Snapshot Testing Guidelines:

  • Use inline snapshots for small, stable outputs
  • Use file snapshots for large or frequently changing outputs
  • Always review snapshot changes carefully before approving
  • Include redactions for sensitive or variable data (timestamps, IDs)

Docker Compose Management:

  • Ensure services are properly started before tests run
  • Use health checks to verify service readiness
  • Clean up containers after test runs
  • Document any special setup requirements

Authentication Testing:

  • Test both successful and failed authentication flows
  • Verify JWT token validation and expiration
  • Test dynamic tool access with proper credentials
  • Ensure static tools work without authentication

Tool Testing Patterns:

  • Remember that Nexus always returns 'search' and 'execute' tools
  • Test tool discovery across multiple MCP servers
  • Verify tool search functionality with various query patterns
  • Test tool execution routing to correct downstream servers

Performance Considerations:

  • Keep integration tests focused and avoid testing implementation details
  • Use parallel test execution where safe (cargo nextest)
  • Mock expensive operations when the integration point isn't being tested
  • Set reasonable timeouts for async operations

Read the full file on GitHub · 82 lines

Changes

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.

  1. 2mo ago First seen · 82 lines · 0 tokens per session scan A 60a22c399678

Subscribe to this mod's changes

integration-test-engineer is an agent published in the GitHub repository Nexus-Router/nexus (438 stars, last pushed 7mo ago), licensed MPL-2.0. It adds 274 tokens to every session and 989 once invoked, about $0.0011 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.

Related

integration-test-engineer compared with agents from other repositories

integration-test-engineer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
integration-test-engineerNexus-Router/nexusAgent4387mo agoMPL-2.0A274Claude Code
atomic-reviewerEigenwise/atomic-agentsAgent6.3k8d agoMITA126Claude Code
atomic-explorerEigenwise/atomic-agentsAgent6.3k8d agoMITA125Claude Code
openinference-pr-reviewerArize-ai/openinferenceAgent1.3kyesterdayApache-2.0A50Claude Code
openinference-issue-analystArize-ai/openinferenceAgent1.3kyesterdayApache-2.0A110Claude Code
openinference-issue-triagerArize-ai/openinferenceAgent1.3kyesterdayApache-2.0A86Claude Code
openinference-bug-fixerArize-ai/openinferenceAgent1.3kyesterdayApache-2.0A28Claude Code