Zero-code OS-layer session continuity and Linux eBPF/XDP runtime protection keeping long-running AI agents alive across server and GPU crashes—with 0 SDK changes and 0 lost tokens.
OS-Boundary Session Continuity & Failover Infrastructure for Autonomous AI Agents
Keep long-running AI agents alive through server and Spot GPU failures in 9.4ms — with 0 SDK changes and 0 lost tokens.
Website · Control Plane · Quickstart · Architecture · LinkedIn
Help us reach more AI engineers and grow the open-source ecosystem — Star this repository.
Demo: FaultPlane Terminal & Control Plane Walkthrough (demo.mp4)
AI agents are evolving beyond short-lived chat requests. Autonomous coding, research, and tool-calling agents can run for 20 to 60 minutes per task while maintaining streaming connections and executing multi-step workflows.
But infrastructure failures can interrupt these workflows at any moment.
When a cloud Spot GPU is reclaimed, a worker crashes, or an upstream connection drops mid-stream, the session can break. The agent may have to restart from step one — wasting compute, losing context, and paying again for work already performed.
FaultPlane operates at the Linux socket and transport boundary to help keep live sessions running without requiring changes to your agent's application logic.
Teams running AI agents in production commonly rely on three categories of infrastructure tools. Each solves an important problem, but none inherently provides transparent live transport recovery without application-level integration.
| Tool Category | Examples | Failure Handling |
|---|---|---|
| Observability & Evals | TraceRoot, LangSmith, Braintrust | Provides visibility into failed runs, but does not independently preserve a live connection. |
| Stateless API Gateways | LiteLLM, Nginx, Envoy | Handles routing and request-level retries; active streams may still drop when an upstream worker fails. |
| Durable Workflow SDKs | Temporal, Restate | Preserves workflow state, but typically requires workflow-specific application integration. |
| FaultPlane | Go Runtime + Shield™ | Designed for zero-SDK integration through a single base_url change, with socket-level monitoring, stream buffering, standby-worker routing, and kernel-level protection. |
Get the FaultPlane runtime running locally and connect an existing OpenAI-compatible client.
From the FaultPlane repository root:
go build ./...
go run ./cmd/daemon
Keep your existing OpenAI, Anthropic, LangGraph, CrewAI, or vLLM integration. Update only the base_url where supported:
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="http://localhost:9090/v1",
)
response = client.chat.completions.create(
model="YOUR_MODEL",
messages=[{"role": "user", "content": "Run multi-step task"}],
)
print(response.choices[0].message.content)
In a second terminal, run the included concurrent agent simulation:
pyt
[Docs] Improve FaultPlane Dashboard Documentation for Beginners
https://github.com/devloperdevesh/FaultPlane/issues/405
Labels: enhancement
[UI] Standardize Button Styles Across FaultPlane
https://github.com/devloperdevesh/FaultPlane/issues/404
Labels: enhancement
[UI] Add Helpful Empty States for Dashboard Sections
https://github.com/devloperdevesh/FaultPlane/issues/403
Labels: enhancement
[UI] Improve FaultPlane Logo Placement and Branding Consistency
https://github.com/devloperdevesh/FaultPlane/issues/402
Labels: enhancement
[UI] Improve FaultPlane Dashboard Experience and Developer Onboarding
https://github.com/devloperdevesh/FaultPlane/issues/401
Labels: enhancement
[UI] Improve FaultPlane login page with consistent branding and responsive layout
https://github.com/devloperdevesh/FaultPlane/issues/399
Labels: enhancement, help wanted, good first issue, frontend-ui, NSOC Approved
Thank you for your interest in contributing to FaultPlane.
FaultPlane is an open-source infrastructure project focused on building reliability primitives for long-running AI workloads through transport resilience, runtime recovery, and distributed systems observability.
We welcome contributions from developers, researchers, and infrastructure engineers. Whether you are fixing a bug, improving documentation, or developing new runtime capabilities, every meaningful contribution helps strengthen the project.
This guide outlines the development workflow, engineering standards, testing expectations, and review process for contributing to FaultPlane.
Before opening an issue or submitting a pull request:
For significant architectural changes, open a discussion before implementation.
This particularly applies to changes involving:
Early discussion helps avoid duplicated work and unnecessary architectural complexity.
| Tool | Version |
|---|---|
| Go | 1.23+ |
| Python | 3.11+ |
| Docker | Latest stable |
| Docker Compose | Latest stable |
| Git | Latest stable |
Ensure the required tools are installed and available in your development environment.
Fork the repository on GitHub, then clone your fork:
git clone https://github.com/<your-username>/FaultPlane.git
cd FaultPlane
Configure the upstream repository:
git remote add upstream https://github.com/devloperdevesh/FaultPlane.git
docker compose up --build
go run ./cmd/daemon
python data-plane/agent_sim/main.py
Some development commands may require additional dependencies or configuration depending on the component being worked on.
The following illustrates the primary project organization:
FaultPlane/
│
├── cmd/
│ └── daemon/
│
├── internal/
│ ├── api/
│ ├── gateway/
│ ├── control/
│ ├── telemetry/
│ └── storage/
│
├── data-plane/
│ └── agent_sim/
│
├── deployments/
│
├── docs/
│
└── README.md
Each component should maintain a clearly defined responsibility.
Contributors should avoid unnecessary coupling between internal packages and preserve existing architectural boundaries.
Each pull request should address one primary objective.
Avoid combining unrelated:
Smaller pull requests are easier to review, test, and maintain.
Infrastructure code should prioritize:
Avoid introducing unnecessary abstractions or dependencies without a clear technical requirement.
FaultPlane separates concerns across:
Changes should respect existing package ownership and component responsibilities.
Consider the following before submitting changes:
Go contributions should follow standard Go conventions.
Requirements:
Before submitting Go changes:
go fmt ./...
go vet ./...
Do not introduce unrelated formatting changes into a pull request.
Use descriptive branch names that communicate the purpose of the change.
Recommended:
feature/checkpoint-storage
feature/otel-exporter
feature/runtime-metrics
fix/recovery-timeout
fix/router-state
docs/update-architecture
Avoid:
update
changes
test
final
new
Write meaningful commit messages using imperative language.
Good examples:
Add gateway health monitoring
I