AI Tools Integration Guide
March 10, 2026 · View on GitHub
Table of Contents
Overview
The system-tests repository includes built-in AI integration capabilities designed to enhance developer productivity when implementing new tests, troubleshooting issues, and working with complex testing scenarios. These tools leverage comprehensive context about the repository structure, testing patterns, and best practices to provide intelligent assistance.
Knowledge of AI tools is drawn from the project's documentation (found in the docs directory), the source code itself, and predefined rules and instructions (.cursor/rules). Users are strongly encouraged to actively participate in continuous improvement efforts and contribute new capabilities to enhance the AI tools' functionality and effectiveness.
The default and recommended AI tool for developing with system-tests is Cursor AI. Additionally, Claude CLI and other AI coding agents are fully supported through dedicated configuration files. Using alternative tools is encouraged.
The AI tools
Github Copilot support
The predefined rules within the system-tests repository are optimized specifically for Cursor AI, but you can effortlessly adapt them for GitHub Copilot using Copilot itself.
To adapt rules for GitHub Copilot:
-
Activate Copilot's Agent Mode.
-
Open the Copilot chat and input the following instruction:
Parse all files within the .cursor/rules directory, combine their contents into a single new file at .github/copilot-instructions.md, and remove any occurrences of the text: --- description: globs: alwaysApply: ---
Important Reminders:
- Do not commit the
.github/copilot-instructions.mdfile. - To add new rules or instructions, always use Cursor AI’s standard rule files located at ".cursor/rules"
- If you introduce new instructions or modify existing documentation, always include new tests. These tests are essential for validating the impact and effectiveness of your changes on the AI assistant’s functionality. Please refer to section Prompt validation to know about the ai prompt validations.
Cursor
Cursor AI is the default IDE and automatically integrates the predefined rules located in the .cursor/rules directory. No additional setup is required—the rules will load automatically.
Cursor allows you to add specialized rules tailored for very specific tasks. These rules aren't loaded by default into the AI context but can easily be activated by mentioning them explicitly in the chat, enabling precise and focused interactions.
Cursor specialized prompts
These are manual rules you need to explicitly mention to activate them:
- java-endpoint-prompt - Java Endpoint Generation Specialist
- Comprehensive guidelines for implementing Java weblog endpoints across different frameworks
- Covers Spring Boot, Vert.x 3/4, Jersey, Play, Ratpack, Akka-HTTP, RESTEasy
- Includes build validation, dependency preservation, and framework-specific patterns
- How to activate: Mention "java-endpoint-prompt.mdc" in your request
- Additional documentation: Java Endpoint Implementation Guide
Feel free to create and contribute as many specialized rules as you need—your teammates will greatly appreciate your efforts!
If you introduce new instructions, enhance existing documentation, or improve the predefined rules, you're strongly encouraged to add corresponding tests. These tests play a vital role in validating your enhancements and ensuring the AI assistant performs optimally. For further guidance, see section Prompt validation.
📚 Complete Cursor AI Documentation Suite
Cursor AI documentation suite:
- Cursor AI Comprehensive Guide: Complete overview of AI integration with practical examples and workflows
- Cursor Practical Examples: Real-world examples and step-by-step workflows
- Cursor Specialized Prompts: See above for manual rule activation
- AI Tools Prompt Validation (beta): Testing and validation framework
📖 New to AI in system-tests? Start with the Cursor AI Comprehensive Guide for a complete introduction.
MCP Servers Integration (Beta)
Model Context Protocol (MCP) servers extend AI capabilities with specialized tools and integrations. The system-tests repository provides several MCP server configurations to enhance your development workflow. MCP servers can be used with any compatible AI tool, including Cursor and Claude CLI.
Available MCP Servers:
- Datadog MCP Server: Provides CI Visibility integration including pipeline event search and aggregation, test event analysis, flaky test detection, code coverage summaries, and PR insights. Pre-configured in the repository via
.cursor/mcp.json(for Cursor) and.mcp.json(for Claude CLI and other compatible tools). See Datadog MCP Server Setup for detailed setup and usage instructions.
To set up MCP servers, follow the specific setup guides for each server. All MCP servers integrate seamlessly with compatible AI tools, providing enhanced context and capabilities for working with the system-tests repository.
Claude CLI
The system-tests repository provides native support for Claude CLI (Anthropic's command-line interface for Claude) through a dedicated configuration in the .claude/ directory.
Configuration Files
.claude/
├── CLAUDE.md # Claude-specific instructions and rules pointer
├── settings.json # Claude CLI settings (permissions, environment, MCP enablement)
└── settings.local.json # Local settings (personal overrides, not committed)
.mcp.json # MCP server configuration (shared across AI tools)
.claude/CLAUDE.md: Contains Claude-specific instructions and points to the shared rules in.cursor/rules/.claude/settings.json: Configures Claude CLI behavior, including default permission mode, environment variables, MCP server enablement (e.g., the Datadog MCP server), and theDataDog/claude-marketplaceplugins which provide Datadog-specificdd:*skills (CI debugging, PR feedback, Jira automation, and more).claude/settings.local.json: Personal overrides for local development (not shared via git).mcp.json: Defines MCP server connections at the repository root. Claude CLI automatically discovers this file and makes the configured servers available. Currently includes the Datadog MCP server for CI Visibility integration
Setting up Claude CLI
-
Install Claude CLI following the official Anthropic documentation
-
Run Claude from the repository root:
cd system-tests claudeClaude CLI automatically reads the
.claude/CLAUDE.mdfile and follows the shared rules defined in.cursor/rules/. -
For non-interactive usage (e.g., scripts or automation):
claude --permission-mode acceptEdits -p "Your prompt here"
Running Promptfoo Evaluations
Use the interactive wizard script to run prompt evaluations:
./utils/scripts/ai/promptfoo_eval.sh
The wizard guides you through:
- Selecting the AI provider (e.g., Claude AI Agent SDK)
- Choosing which test scenarios to run
- Automatically executing the evaluation
See Prompt validation for more details on the evaluation process.
GitHub CLI (gh)
The AI tools are configured to use the GitHub CLI (gh) for all interactions with GitHub (github.com), including repository management, pull requests, issues, and CI/CD operations. The AI assistant will automatically use gh commands when performing GitHub-related tasks.
Installation
brew install gh
Authentication
gh auth login
To verify your authentication status:
gh auth status
GitLab CLI (glab)
The AI tools are configured to use the GitLab CLI (glab) for all interactions with GitLab (gitlab.ddbuild.io), including pipeline management, merge requests, and CI/CD operations. The AI assistant will automatically use glab commands when performing GitLab-related tasks.
Installation
brew install glab
Authentication
You will need a personal access token to authenticate with GitLab. You can create one from your GitLab profile at Settings > Access Tokens on gitlab.ddbuild.io.
Once you have your token, authenticate:
glab auth login --hostname gitlab.ddbuild.io
To set the default host:
glab config set host gitlab.ddbuild.io
Supported AI Tools via AGENTS.md
For compatibility with other AI coding agents (such as Aider, Windsurf, Cline, etc.), the repository includes an AGENTS.md file at the root level.
The AGENTS.md file serves as a unified entry point for AI coding agents that follow the AGENTS.md convention. It:
- Points to the shared rules in
.cursor/rules/directory - Lists all "always applied" rules that agents must follow
- Identifies "manual" rules that require explicit activation
- Provides a quick reference for project context
This approach ensures consistent behavior across all AI tools by maintaining a single source of truth for rules and instructions.
Any AI coding tool that reads AGENTS.md files can benefit from the system-tests configuration, including:
- Aider - AI pair programming in your terminal
- Windsurf - AI-powered IDE
- Cline - Autonomous coding agent for VS Code
- Other tools following the AGENTS.md convention