δΈζ | English
FailCore
The "Safety Airbag" for AI Agents. π‘οΈ
Status: Beta (0.1.x) Β· Distribution: GitHub Releases (PyPI lagging) Β· License: Apache 2.0
When your agent breaks, you don't need better prompts β you need a circuit breaker.
FailCore is a fail-fast execution runtime for AI agents.
It does not try to make agents smarter β it makes them safe and reliable.
While frameworks like LangChain focus on planning, FailCore focuses on what happens during execution: enforcing permissions, blocking side-effects (network & filesystem), and generating forensic audit logs.
π§ͺ Experimental: Proxy Mode (Pre-release)
FailCore is actively developing an experimental proxy mode, distributed via GitHub pre-releases.
The proxy runs in front of LLM providers and transparently forwards requests while observing and tracing execution at runtime. It is streaming-aware and designed as a foundation for future execution-time enforcement and auditing.
Proxy mode is experimental and not production-ready. APIs and behaviors may change.
π° Cost Tracking (Early Stage)
Cost-related features are under early development, focusing on traceability and provider compatibility. Expect changes as APIs evolve.
βΆοΈ Execution-Time Protection (Live Demo)
FailCore enforces security at tool invocation time β
before any network or filesystem side-effect occurs.
Demo: Tool-level SSRF protection with strict network policy and full execution trace.
πΈ See It In Action (Audit Report)
FailCore automatically generates audit HTML reports for every run.
(Below: FailCore blocking a real-world path traversal attack generated by an LLM)
This audit report captures a failed execution, providing a structured timeline, incident analysis, and trace-backed evidence for post-incident inspection.
β¨ What's New (v0.1.x)
- π‘οΈ SSRF Protection β Network-layer validation (DNS resolution and private IP checks).
- π Filesystem Sandbox β Detects and blocks
../path traversal attacks. - π Audit Reports β One-command generation of professional HTML dashboards.
- π― Semantic Status β Clear distinction between
BLOCKED(threat neutralized) vsFAIL(tool error).
π₯ Quick Start
1. Install
Note: The PyPI package may lag behind the latest features. For the newest builds (including experimental proxy mode), use GitHub Releases.
2. Generate Report
failcore show
failcore report --last > report.htmlThe report provides a human-readable summary of execution results, highlighting blocked operations and failure points.
Why FailCore?
Modern AI agents are fragile. FailCore addresses core execution risks:
| Risk | Without FailCore | With FailCore |
|---|---|---|
| Security (SSRF) | Agent can access internal metadata services. | BLOCKED by network-layer validation. |
| Filesystem | Agent can read/write arbitrary files via ../. |
BLOCKED by strict sandbox enforcement. |
| Cost | One step fails, entire workflow restarts. | DETERMINISTIC REPLAY of successful steps. |
| Visibility | Thousands of log lines. | FORENSIC REPORT with clear verdicts. |
Contributing
Contributions are welcome.
If you are building agent systems that need stronger execution guarantees, we would love your feedback.
License
Apache License 2.0 β see LICENSE.
Copyright Β© 2025 ZiLing


