pactx: Open-Source Engine Solves Context Drift in AI Coding Workflows
Glass-Oven-3745 · reddit · 2026-08-23
The author released pactx, a lightweight TypeScript CLI engine designed to solve "AI amnesia" and context drift in long-running AI-assisted software engineering projects.
Core Thesis: The repository itself serves as the single source of truth, creating a bidirectional closed-loop bridge between the codebase and the AI model.
Key Features:
- Egress: Inspects Git state and .ai-context/ (ADRs, rules, glossary) to generate a dense, token-optimized context pack (400 tokens) copied to the clipboard.
- Ingress: Ingests structured state from the AI via a /handoff command, applying updates with patch semantics to prevent data loss.
- Security & Safety: Features a zero-trust jail (path traversal containment), transactional atomic writes with rollback, and idempotency checks.
Workflow: npx pactx init -> npx pactx (copy context) -> Paste to AI -> /handoff -> npx pactx update.
More from coding & agent
- Opus 5 guide: Set effort to Medium, define precise goals, and let it run — daniel_mac8 · 2026-08-23
- Claude Code Version 2.1.241 Incoming — ClaudeCodeLog · 2026-08-23
- Dev Rants on Cloud Environments: Wants Remote Laptop Experience — jasonkneen · 2026-08-23
- Tsinghua + Cornell: ACID-Transaction framework for reliable Agent memory — rohanpaul_ai · 2026-08-23
- MCP Connector for Hotel Booking Launches with USDC Payments on Base — modelcontextprotocol · 2026-08-23
- Hybrid Approach: Cloud for Isolation, Local for Sovereignty — sull · 2026-08-23