Pactrail: A Transactional Coding Agent Harness in Rust
akmessi2810 · reddit · 2026-07-18
The author introduces Pactrail, an open-source coding-agent harness in Rust that treats every coding task as a "software change transaction."
Key designs include:
- User tasks become contracts containing permissions, write scopes, and budgets
- Executed in an isolated candidate workspace
- Tool calls validated via JSON Schema, checking capabilities, path policies, and transaction states
- Model turns, tool calls, policy decisions, and validation results written to a hash-linked trace
- Generates immutable diffs and integrity-checked receipts; the repo is only modified upon explicit user apply
The author stresses: models lack unrestricted file system API access by default, and native process execution is disabled. Memory is restricted to recalling conventions and past decisions, preventing silent permanent writes. It currently supports various local/remote models and OpenAI-style APIs, though MCP, streaming, and fuller OS/OCI sandboxes are on the roadmap. The project is dual-licensed under MIT and Apache-2.0.
Related event: Pactrail Brings Transactional Coding Agents to Rust(2 posts)→
More from coding & agent
- Building a Secure AI Agent Gateway: Self-Hosting OAuth for Multiple SaaS Apps — Defiant_Cod_2654 · 2026-07-22
- Rowboat launches as an open-source, local-first AI coworker with memory — ycombinator · 2026-07-22
- Reddit user chains Ideogram 4 and Krea2 to mimic bbox-based image positioning — v3lh0t05c0 · 2026-07-22
- Apollo Cuts AI Assistant Skill Dev Time by 85% with Deep Agents — LangChain · 2026-07-22
- Scoble says AI “loops” really means long-running multi-agent workspaces — Scobleizer · 2026-07-22
- Kimi Code opens a waitlist as Moonshot rolls out its coding product — Fabulous_Bonus_8981 · 2026-07-22