Platform-agnostic pipeline AI agent with MCP tool integration and multi-step execution engine
Project description
cicaddy
Platform-agnostic AI agent for running AI workflows in CI pipelines, with MCP tool integration and multi-step execution engine.
Features
- Multi-provider AI: Gemini, OpenAI, Claude (direct API and Vertex AI for both Gemini and Claude)
- Sub-agent delegation: AI-powered triage with parallel specialized sub-agents
- MCP integration: Connect to any MCP-compatible tool server
- Multi-step execution: Token-aware execution engine with recovery
- YAML task definitions: DSPy-based task configuration
- Notifications: Slack and email notification support
- HTML reports: Customizable analysis report generation
- Extensible agents: Registry-based agent factory for custom agents
Installation
# Recommended install (includes Vertex AI support for Gemini and Claude)
pip install 'cicaddy[vertex]'
# Base install (Gemini via Vertex AI and standalone API key providers)
pip install cicaddy
Quick Start
# Run with environment file
cicaddy run --env-file .env
# Run with CLI arguments
cicaddy run --ai-provider gemini-vertex --agent-type task --log-level DEBUG
# Show configuration
cicaddy config show --env-file .env
# Validate configuration
cicaddy validate --env-file .env
Configuration
Configure via environment variables or .env file. Vertex AI with Application Default Credentials (ADC) is the recommended default, following Google Agent Platform security hardening guidelines that favor ADC over standalone API keys.
# AI Provider (Gemini via Vertex AI — uses Google Cloud ADC, no API key needed)
AI_PROVIDER=gemini-vertex
AI_MODEL=gemini-3-flash-preview
GOOGLE_CLOUD_PROJECT=your-gcp-project
# GOOGLE_CLOUD_LOCATION=global # optional, defaults to "global"
# AI Provider (Claude via Vertex AI — uses Google Cloud ADC, no API key needed)
# AI_PROVIDER=anthropic-vertex
# AI_MODEL=claude-sonnet-4-6
# ANTHROPIC_VERTEX_PROJECT_ID=your-gcp-project
# GOOGLE_CLOUD_LOCATION=global
# AI Provider (Gemini — standalone API key)
# AI_PROVIDER=gemini
# AI_MODEL=gemini-3-flash
# GEMINI_API_KEY=your-key-here
# Agent
AGENT_TYPE=task
TASK_TYPE=scheduled_analysis
# MCP Servers (JSON array)
MCP_SERVERS_CONFIG=[]
# Notifications
SLACK_WEBHOOK_URL=https://hooks.slack.com/...
# DSPy Task File (takes precedence over AI_TASK_PROMPT)
AI_TASK_FILE=tasks/dora_report.yaml
DSPy Task Definition (YAML)
Instead of raw prompt strings (AI_TASK_PROMPT), define structured tasks in YAML with typed inputs, expected outputs, MCP tool constraints, and reasoning strategy. Set AI_TASK_FILE to your task file path.
See examples/dora_metrics_task.yaml for a complete DORA metrics analysis task using DevLake MCP, and examples/templates/report_template.html for the HTML report template.
Key schema fields:
| Field | Description |
|---|---|
inputs[].env_var |
Resolve value from environment variable at load time |
inputs[].format |
diff or code for fenced rendering in prompt |
tools.servers |
Restrict to specific MCP servers |
tools.required_tools |
Tools the AI must use during execution |
tools.forbidden_tools |
Tools the AI must not use |
reasoning |
chain_of_thought, react, or simple |
output_format |
markdown, html, or json |
context |
Supports {{VAR}} placeholders resolved at load time |
Sub-Agent Delegation (v0.8.0+)
Enable AI-powered sub-agent delegation with DELEGATION_MODE=auto. An AI triage step analyzes the context, selects specialized sub-agents (security, architecture, performance, etc.), runs them in parallel with sibling awareness (each agent knows what others cover), and aggregates results.
# Add to your .env
DELEGATION_MODE=auto
MAX_SUB_AGENTS=3
cicaddy run --env-file .env
Built-in review agents: security-reviewer, architecture-reviewer, api-reviewer, database-reviewer, ui-reviewer, devops-reviewer, performance-reviewer, general-reviewer. Custom agents can be defined via YAML files in .agents/delegation/.
See docs/sub-agent-delegation.md for full configuration, built-in agent details, custom agent YAML format, and tool filtering.
See examples/delegation/ for example configurations.
Extending with Platform Plugins
cicaddy discovers platform plugins automatically via Python entry_points. Plugins can register agents, CLI args, env vars, config sections, validators, and a settings loader — without modifying cicaddy itself.
1. Define plugin callables (my_plugin/plugin.py):
def register_agents():
from cicaddy.agent.factory import AgentFactory
from my_plugin.agent import MergeRequestAgent, detect_agent_type
AgentFactory.register("merge_request", MergeRequestAgent)
AgentFactory.register_detector(detect_agent_type, priority=40)
def get_cli_args():
from cicaddy.cli.arg_mapping import ArgMapping
return [
ArgMapping(cli_arg="--mr-iid", env_var="CI_MERGE_REQUEST_IID",
help_text="Merge request IID"),
]
2. Register in pyproject.toml:
[project.entry-points."cicaddy.agents"]
my_platform = "my_plugin.plugin:register_agents"
[project.entry-points."cicaddy.cli_args"]
my_platform = "my_plugin.plugin:get_cli_args"
[project.entry-points."cicaddy.settings_loader"]
my_platform = "my_plugin.config:load_settings"
3. Install and run — plugins are discovered automatically:
pip install cicaddy my-cicaddy-plugin
cicaddy run --env-file .env
Available plugin groups: cicaddy.agents, cicaddy.cli_args, cicaddy.env_vars, cicaddy.config_sections, cicaddy.validators, cicaddy.settings_loader.
Official Plugins
| Plugin | Platform | Description |
|---|---|---|
| cicaddy-gitlab | GitLab | AI-powered merge request reviews and branch analysis for GitLab CI |
| cicaddy-action | GitHub | GitHub Action for AI PR reviews and changelog generation |
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cicaddy-0.12.3.tar.gz.
File metadata
- Download URL: cicaddy-0.12.3.tar.gz
- Upload date:
- Size: 309.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd0be6740a7ddde8eea2093693e15c7b2ff00a5a6ea9ceebd6f17061a44995ee
|
|
| MD5 |
57d612b3016b679535596e7380be41df
|
|
| BLAKE2b-256 |
e6f56afb500ba0e43c4dcaf093ad33b80d9d83a0132422fb4a3ad5b10b77debb
|
Provenance
The following attestation bundles were made for cicaddy-0.12.3.tar.gz:
Publisher:
python-publish.yml on waynesun09/cicaddy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cicaddy-0.12.3.tar.gz -
Subject digest:
dd0be6740a7ddde8eea2093693e15c7b2ff00a5a6ea9ceebd6f17061a44995ee - Sigstore transparency entry: 1424550932
- Sigstore integration time:
-
Permalink:
waynesun09/cicaddy@3b20cd2943e82246828691ccd87e34b6ec18c2d1 -
Branch / Tag:
refs/tags/v0.12.3 - Owner: https://github.com/waynesun09
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@3b20cd2943e82246828691ccd87e34b6ec18c2d1 -
Trigger Event:
release
-
Statement type:
File details
Details for the file cicaddy-0.12.3-py3-none-any.whl.
File metadata
- Download URL: cicaddy-0.12.3-py3-none-any.whl
- Upload date:
- Size: 359.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83a408cb55c10b16bcf40c36de5db58c46f736ec7bde59df494a7ce2ca328905
|
|
| MD5 |
f4cded6b7ecc98835606213fcc7cb32e
|
|
| BLAKE2b-256 |
14b085884c836827187996ad91aee861c28c6d4f36fad4c933437a1509f626cf
|
Provenance
The following attestation bundles were made for cicaddy-0.12.3-py3-none-any.whl:
Publisher:
python-publish.yml on waynesun09/cicaddy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cicaddy-0.12.3-py3-none-any.whl -
Subject digest:
83a408cb55c10b16bcf40c36de5db58c46f736ec7bde59df494a7ce2ca328905 - Sigstore transparency entry: 1424550981
- Sigstore integration time:
-
Permalink:
waynesun09/cicaddy@3b20cd2943e82246828691ccd87e34b6ec18c2d1 -
Branch / Tag:
refs/tags/v0.12.3 - Owner: https://github.com/waynesun09
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@3b20cd2943e82246828691ccd87e34b6ec18c2d1 -
Trigger Event:
release
-
Statement type: