How Ralph Automatically Detects Branch Changes and Archives Previous Runs

Ralph detects branch changes by comparing the current branchName value in prd.json against a cached value stored in .last-branch, and automatically archives the previous run's artifacts to a timestamped folder when they differ.

Ralph, an open-source feature development workflow tool maintained in the snarktank/ralph repository, preserves your work history through an intelligent state-tracking mechanism. The system continuously monitors your Product Requirements Document (PRD) to detect when you begin work on a new feature branch, triggering an archival process that safeguards your progress before

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →