Skip to main content

AgentCICD

AgentCICD is an open-source engine for evaluating agent behavior before release. Define an evaluation as a folder containing declarative SQL, optional Python fixtures, inputs, and secret references. Run it locally, inspect the materialized stages and report artifacts, and keep the evaluation alongside the agent it protects.

The engine is designed for repeatable agent evaluation workflows: prepare cases, invoke agents or fixtures, score results, publish metrics or issues, and inspect the evidence behind a release decision.

What It Provides

  • Declarative evaluation stages written in AgentCICD SQL on top of Spark SQL.
  • Named batch and streaming tables that make preparation, generation, scoring, and reporting inspectable.
  • Python fixtures for reusable evaluators, tools, simulators, parsers, and target adapters.
  • A local sandbox manager that routes fixture calls while fixtures run independently.
  • Typed YAML inputs and local secret references, with scalar .properties compatibility.
  • Local run artifacts, reports, traces, tables, and an inspection UI.

Install

Install the engine with the Spark execution backend:

python -m pip install "agentcicd[spark]"

For local development:

git clone https://github.com/agentcicd/agentcicd.git
cd agentcicd
python -m venv .venv
source .venv/bin/activate
python -m pip install -e '.[test,spark]'

Quick Start

Validate the included example without starting Spark:

agentcicd validate examples/quickstart

Run it with Spark and open the local inspector:

agentcicd run examples/quickstart --backend spark --open

agentcicd run prints a loopback URL. The inspector remains available while the command is running; stop it with Ctrl-C when you are finished reviewing the run.

Project Layout

An AgentCICD project is a directory.

support-eval/
  recipe.sql
  fixture_target.py
  fixture_judge.py
  inputs.yaml
  secrets.yaml
  agentcicd.toml
  • recipe.sql: Evaluation stages, fixture calls, scoring, and published outputs.
  • fixture_*.py: Optional Python functions available to the recipe as local.<function_name>.
  • inputs.yaml: Values for SQL DECLARE INPUT declarations. YAML supports scalars, lists, and objects when the declared type accepts them.
  • secrets.yaml: Local secret records. Reference a secret from inputs.yaml as secret.<KEY>; do not embed credentials in SQL or commit the file.
  • agentcicd.toml: Optional run configuration, including backend and parallel-stage settings.

The legacy input.properties and secret.properties formats remain supported for scalar values.

Minimal Recipe

CREATE BATCH TABLE cases
SELECT * FROM VALUES
  ('case-001', 'How do I reset my password?'),
  ('case-002', 'Where is my order?')
AS cases(case_id, message);

CREATE BATCH TABLE metric_rows
SELECT
  'case_count' AS metric,
  COUNT(*) AS value
FROM cases;

PUBLISH metric_rows TO REPORTS WITH (COMPONENT = METRIC);

Named tables are evaluation evidence. Use separate tables for preparation, target calls, parsing, scoring, and aggregates so a report change can be traced back to the relevant examples.

Python Fixtures

Fixtures hold reusable Python logic while recipes retain the evaluation dataflow:

from agentcicd import Str, function


@function
def normalize_answer(value: Str) -> Str:
    return value.strip().lower()

Save this as fixture_normalize.py, then call it from a recipe:

CREATE BATCH TABLE normalized
SELECT local.normalize_answer(value = message) AS message
FROM cases;

Fixture calls are routed through the sandbox manager. This preserves isolation and gives the run a single control point for fixture lifecycle, rate limits, and teardown.

Inputs And Secrets

Declare dependencies in SQL:

DECLARE INPUT target_url STRING;
DECLARE INPUT provider_key SECRET;
DECLARE INPUT threshold FLOAT DEFAULT 0.8;

Supply them locally:

# inputs.yaml
target_url: https://agent.example.test
provider_key: secret.OPENAI_API_KEY
threshold: 0.85
# secrets.yaml
OPENAI_API_KEY:
  type: api_key
  value: replace-with-local-value

Keep secrets.yaml out of version control. AgentCICD redacts secret values from local inspection artifacts, but you should still treat local secret files as credentials.

Commands

agentcicd validate path/to/project
agentcicd run path/to/project --backend spark
agentcicd ui serve path/to/project

Use --ui off for CI or non-interactive runs.

Development

Run the standalone engine test suite:

python -m pytest

The default suite validates the folder runner without requiring Spark. Spark and end-to-end tests are marked separately.

To change the local inspector UI:

cd ui
npm ci
npm run build

This rebuilds the static assets packaged with the Python distribution.

Documentation

License

No license has been selected yet. Add an OSI-approved license before inviting external contributors or distributing the repository as open source.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentcicd-0.1.0.tar.gz (556.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentcicd-0.1.0-py3-none-any.whl (649.8 kB view details)

Uploaded Python 3

File details

Details for the file agentcicd-0.1.0.tar.gz.

File metadata

  • Download URL: agentcicd-0.1.0.tar.gz
  • Upload date:
  • Size: 556.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agentcicd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b5c99261b252bfcd09c7da4d680e9f2e694370f29dce318dd477a81a5fda922b
MD5 4a9a48717aac3f98a2f0f375ad76b2da
BLAKE2b-256 9f3368cffb61a796f7828b5f12a08a6361bc350557b9f3b4ac6b045aa68a0fe3

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentcicd-0.1.0.tar.gz:

Publisher: release.yml on agentcicd/agentcicd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentcicd-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agentcicd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 649.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agentcicd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea8d6daf55cda1f07c261743eaf503b1c65c2c6c95b0e08e10b1df91123ffeca
MD5 ca9b9b667e2a1c954e290c9e171f77a1
BLAKE2b-256 61448020ee707034e1a18643b923a4ae6d36f97b181929b9d3c07deb0bd96ee6

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentcicd-0.1.0-py3-none-any.whl:

Publisher: release.yml on agentcicd/agentcicd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page