Wrap an AI agent function so it gets watched for silent failures.
Gate risky actions, like refunds, behind a human approval check.
Track gradual workflow drift over time before it causes a bad outcome.
Build a local, redacted history of past agent runs to tune detection.
| murudan/cockpit-core | 0marildo/imago | 0xdfi/glm-5.2-1m-4x-dgx-spark | |
|---|---|---|---|
| Stars | 3 | 3 | 3 |
| Language | Python | Python | Python |
| Setup difficulty | easy | easy | hard |
| Complexity | 3/5 | 2/5 | 5/5 |
| Audience | developer | general | researcher |
Figures from each repo's GitHub metadata at analysis time.
Needs numpy, the rest of the test suite has no other dependencies.
Cockpit-core is a Python tool built to watch AI agents while they work and catch problems before they cause real damage. Instead of only checking whether a task finished, it tries to predict where a workflow is heading and step in at the boundary, right before an action that cannot be undone. The idea behind it is that AI agents often fail quietly: they make up a plausible looking input, get back an empty or wrong result, and then report success anyway. Cockpit-core exists to catch that kind of mistake before it happens, not after the fact. The project describes agent failures using a nine state model of how a workflow can drift away from being healthy, either in reversible ways, such as losing context, stalling, drifting from the original goal, or losing track of the truth, or in ways that cannot be undone, such as false completion, runaway behavior, being taken over, or firing an irreversible action. Cockpit-core tracks a workflow's phase, its health, and who currently has control, and combines two detection methods: one that checks for sudden false completions, and one that tracks gradual drift over time using a simple statistical average. The project states that testing on real traces showed these two methods cover most of the failures they measured. Using it is meant to be simple. A developer can add one line to wrap an existing agent function, or use a more detailed set of calls to observe each step, mark phase changes, and gate risky, irreversible actions behind a check that a human can approve or deny. It ships with adapters for the OpenAI Agents SDK and LangGraph, so it can plug into agents built with those frameworks without much extra setup. There is also a local, customer owned option to save records of past workflow runs, with rules for redacting sensitive information such as emails or secrets, so a team can build a history of runs and use it to tune the detectors to their own workload. Cockpit-core comes with a test suite and seven example workflows in the repository, showing situations like a refund agent and an invoice reconciliation task. It is aimed at developers building or maintaining AI agents who want an early warning before a costly mistake ships.
A Python library that watches AI agents while they run and stops risky, irreversible actions before a workflow silently goes wrong.
Mainly Python. The stack also includes Python, NumPy.
Setup difficulty is rated easy, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.