AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
翻译准备中
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证CortexOps is the CI reliability layer for AI agents — golden datasets, tool-call gates, and regression diffs that block bad deploys before users see them.
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
Reliability infrastructure for AI agents.
Evaluate · Observe · Operate — for LangGraph, CrewAI, and AutoGen.
You deployed an agent. You have no idea if it regressed overnight.
No standard eval format. No failure traces. No CI gate before the next prompt change ships.
CortexOps fixes that.
The free tier runs evals locally. The Pro tier adds hosted trace storage,
a live dashboard, Slack alerts, and LLM-as-judge scoring.
Then point the SDK at the hosted API:
Traces are stored for 90 days. View them in the
dashboard (https://app.g查看完整 README ↗Reliability infrastructure for AI agents.
Evaluate · Observe · Operate — for LangGraph, CrewAI, and AutoGen.
You deployed an agent. You have no idea if it regressed overnight.
No standard eval format. No failure traces. No CI gate before the next prompt change ships.
CortexOps fixes that.
pip install cortexops
from cortexops import CortexTracer, EvalSuite
# Wrap your LangGraph app — zero refactor required
tracer = CortexTracer(project="payments-agent")
graph = tracer.wrap(your_langgraph_app)
# Run evaluations against a golden dataset
results = EvalSuite.run(
dataset="golden_v1.yaml",
agent=graph,
)
print(results.summary())
# CortexOps eval — payments-agent
# Cases : 9 (7 passed, 2 failed)
# Task completion : 91.4%
# Tool accuracy : 97.0/100
# Latency p50/p95 : 42ms / 187ms
# Failed cases:
# - escalation_router: tool_call_mismatch (score 41)
The free tier runs evals locally. The Pro tier adds hosted trace storage, a live dashboard, Slack alerts, and LLM-as-judge scoring.
Get an API key at getcortexops.com
Then point the SDK at the hosted API:
from cortexops import CortexTracer, EvalSuite
tracer = CortexTracer(
project="my-agent",
api_key="cxo-your-key-here",
api_url="https://api.getcortexops.com"
)
graph = tracer.wrap(your_langgraph_app)
Traces are stored for 90 days. View them in the dashboard or via the API docs.
When a production trace fails, promote it to a golden dataset case in one click — then run the same case in CI before the next deploy.
| Tier | Price | What you get |
|---|---|---|
| Free | $0 | Local evals, CLI, GitHub Actions gate |
| Pro | $49/seat/mo | Hosted traces, Slack alerts, dashboard, LLM judge |
| Enterprise | Custom | VPC, SSO, SLA |
Start a Pro trial: getcortexops.com/#pricing
Define test cases in YAML. Run them locally or in CI.
# golden_v1.yaml
version: 1
project: payments-agent
cases:
- id: refund_lookup_01
input: "What is the status of refund REF-8821?"
expected_tool_calls: [lookup_refund]
expected_output_contains: ["approved", "REF-8821"]
max_latency_ms: 3000
- id: dispute_escalation_01
input: "I was charged twice — this is unauthorized"
expected_tool_calls: [classify_dispute, route_escalation]
expected_output_contains: ["escalated"]
max_latency_ms: 5000
Add the CortexOps Eval Gate GitHub Action to a workflow:
jobs:
eval:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write # for the sticky PR comment
steps:
- uses: actions/checkout@v4
- uses: ashishodu2023/cortexops-eval-action@v1
with:
dataset: golden_v1.yaml
agent: agent:build_agent()
fail-on: |
task_completion < 0.90
tool_accuracy < 0.95
It writes a report (metrics, thresholds, failed cases) to the job summary, keeps one comment on the PR up to date, and fails the job if any condition is true. Without the action, the same gate is one CLI call:
cortexops eval run --dataset golden_v1.yaml --agent "agent:build_agent()" \
--fail-on "task_completion < 0.90" --output-json report.json --summary-md summary.md
GitLab users can include ci-templates/gitlab/cortexops-eval.gitlab-ci.yml; a cortexops-eval pre-commit hook is also available.
Or gate from pytest (pip install "cortexops[pytest]"):
import cortexops
@cortexops.eval_gate("golden_v1.yaml", fail_on="task_completion < 0.90")
def test_payments_agent():
return build_agent()
cortexops/
├── sdk/ # pip install cortexops
│ ├── cortexops/
│ │ ├── tracer.py # CortexTracer — wraps LangGraph / CrewAI
│ │ ├── eval.py # EvalSuite — golden dataset runner
│ │ ├── metrics.py # task_completion, tool_accuracy, latency, hallucination
│ │ ├── models.py # Pydantic data models
│ │ └── client.py # HTTP client for hosted API
│ └── tests/
├── backend/ # FastAPI + Celery + SQLite/Postgres
│ ├── app/
│ │ ├── main.py
│ │ ├── routers/ # /v1/evals, /v1/traces
│ │ ├── models/ # DB records + API schemas
│ │ └── worker/ # Celery async eval tasks
│ └── Dockerfile
├── frontend-new/ # React dashboard (app.getcortexops.com)
├── docs-site/ # Static docs (docs.getcortexops.com)
├── examples/
│ └── langgraph_payments/ # Full runnable demo
│ ├── agent.py
│ ├── golden_v1.yaml
│ └── run_eval.py
└── docker-compose.yml
git clone https://github.com/ashishodu2023/cortexops
cd cortexops
# Start API + worker + Redis
docker compose up --build
# In another terminal — run the demo eval
cd examples/langgraph_payments
pip install -e ../../sdk/
python run_eval.py
# API docs at http://localhost:8000/docs
# Dashboard at http://localhost:3000
| Framework | Status |
|---|---|
| LangGraph | Stable |
| CrewAI | Stable |
| AutoGen | Beta |
| LlamaIndex agents | Coming soon |
| Custom callables | Supported via CortexTracer.wrap() |
| Metric | What it checks |
|---|---|
task_completion | Agent produced a valid, non-error output |
tool_accuracy | Expected tool calls were actually made |
latency | Response within max_latency_ms budget |
hallucination | Detects fabrication signals in output |
Add custom metrics by subclassing cortexops.Metric.
tracer.set_prompt(name, version))sample_rate=0.1, CORTEXOPS_SAMPLE_RATE)@cortexops.eval_gate(...))@cortexops/sdk: tracer + eval gate CLI (#33)Want to work on any of these? See open issues or open a discussion.
git clone https://github.com/ashishodu2023/cortexops
cd cortexops/sdk
pip install -e ".[dev]"
pytest tests/ -v
See CONTRIBUTING.md. Issues labeled good first issue are a great place to start.
To report a vulnerability, see SECURITY.md.
@software{cortexops2025,
author = {Ashish, et al.},
title = {CortexOps: Reliability Infrastructure for AI Agents},
year = {2025},
url = {https://github.com/ashishodu2023/cortexops},
}
MIT — see LICENSE.