AgentProbe supports project-level configuration via config files, environment variables, and CLI profiles.
Create .agentproberc.yml in your project root:
# .agentproberc.yml
adapter: openai
parallel: 4
timeout: 30000
reporter: console
output_dir: results/
env_file: .env
# Plugins
plugins:
- agentprobe-plugin-slack
- ./my-custom-plugin.js
# Webhook notifications
webhooks:
- url: https://hooks.slack.com/services/XXX
events: [failure, regression]
- url: https://discord.com/api/webhooks/XXX
events: [failure]
# Profiles
profiles:
ci:
reporter: junit
output_dir: test-results/
parallel: 8
timeout: 60000
dev:
reporter: console
parallel: 1Or use agentprobe.config.ts for TypeScript:
export default {
adapter: 'openai',
parallel: 4,
timeout: 30000,
reporter: 'console',
};| Option | Type | Default | Description |
|---|---|---|---|
adapter |
string | auto | Default trace adapter |
parallel |
number | 1 | Parallel test execution |
timeout |
number | 30000 | Default timeout (ms) |
reporter |
string | console | Output format |
output_dir |
string | — | Directory for results |
env_file |
string | — | Path to .env file |
plugins |
string[] | [] | Plugins to load |
webhooks |
object[] | [] | Webhook notifications |
profiles |
object | {} | Named config profiles |
Switch configurations with --profile:
agentprobe run tests/ --profile ciname: My Tests
env:
API_KEY: test-key
MODEL: gpt-4
tests: [...]tests:
- name: Test with env
env:
FEATURE_FLAG: "true"
trace: traces/test.json
expect:
tool_called: searchagentprobe run tests.yaml --env-file .env.testagentprobe plugin install <name>Plugins export assertions, adapters, or reporters:
// my-plugin.js
module.exports = {
assertions: {
no_pii: (trace, expected) => ({
passed: !/\b\d{3}-\d{2}-\d{4}\b/.test(trace.final_output),
actual: 'checked',
}),
},
};Register in config:
plugins:
- ./my-plugin.jsDefine compliance rules in a policy file:
# compliance.yml
rules:
- name: No PII in output
check: no_pii
- name: Cost under $0.10
check: max_cost
threshold: 0.10
- name: Only approved tools
check: tool_allowlist
tools: [search, summarize, respond]agentprobe compliance traces/ --policy compliance.yml