How Ralph Tracks and Switches Between Feature Branches During Execution

Ralph tracks feature branches by comparing the branchName field in prd.json against a persisted .last-branch file; when they differ, it archives the previous run's state to a timestamped archive/ directory before updating the tracker.

In the snarktank/ralph repository, branch management is handled entirely within the driver script ralph.sh through a simple state persistence mechanism. This ensures that when you switch between feature branches—such as moving from ralph/auth-refactor to ralph/ui-cleanup—

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 →