Roll it back.
Directly undo actions in reverse dependency order.
Create record → Delete recordSafely execute multi-step agent workflows across APIs, databases, SaaS, and infrastructure—with recovery built in.
FRAMEWORK-NEUTRAL · MODEL-NEUTRAL · SELF-HOSTABLE
↑ Try it — execute the recovery plan
BUILT FOR THE AGENT STACK YOU ALREADY USE
Wrap high-impact workflows in a transaction. AgentTX records every action, prevents duplicate execution, and safely resumes after failure.
Simple defaultsStart safe, customize when needed.
Explicit recoveryDefine rollback and compensation inline.
Complete historyTrace every side effect and decision.
from agenttx import transaction
@transaction()
async def onboard_customer(customer):
crm = await tx.step(
salesforce.create_customer(customer),
rollback=salesforce.delete_customer
)
subscription = await tx.step(
stripe.create_subscription(customer),
compensate=stripe.cancel_subscription
)
await tx.step(
send_welcome_email(customer),
irreversible=True,
approval="before_execute"
)Reasoning frameworks decide what to do. AgentTX makes sure the real-world side effects are safe when something goes wrong.
AgentTX understands that not every real-world action behaves the same way. Make the semantics explicit.
Directly undo actions in reverse dependency order.
Create record → Delete recordRun a new action that restores the business state.
Charge customer → Issue refundUse idempotency keys to prevent duplicate effects.
Timeout → Reuse operation resultPut a human checkpoint before the point of no return.
Send email → Approval requiredReconcile payment state before retries and compensate failed downstream actions.
Explore use case →Checkpoint changes, protect production pushes, and reverse failed releases.
Explore use case →Roll back partial environments and keep cloud state consistent.
Explore use case →Run AgentTX anywhere. Inspect every line. Extend the transaction layer for your own tools and workflows.
Transaction and recovery infrastructure for AI agents.
Pay for transaction actions—not tokens. Self-host for free, or let AgentTX Cloud run the infrastructure.
For developers and self-hosted deployments.
Managed infrastructure for production agents.
Controls and visibility for growing teams.
Retry safely. Roll back failures. Compensate side effects.
Protect irreversible actions.