anomalyco/rift — reverse-engineered prompt
Reverse engineered prompt
Build me a command line tool called Rift that lets me instantly fork my current project folder into a new workspace so I can try another idea or run another coding agent without messing up my existing files.
It should preserve the exact current folder state, including uncommitted Git changes, staged files, ignored files, and build output. On supported systems it should use copy on write snapshots instead of slowly copying everything. I want commands to initialize a folder when needed, create a named workspace, list child workspaces, show ancestors, remove a workspace quickly, and later garbage collect removed workspaces.
Please include a simple npm package that installs the native Rust CLI, plus JavaScript bindings for Bun and Node so code can call create, list, remove, ancestors, init, and gc. Add basic shell integration for bash and zsh so after creating or removing a workspace my terminal can automatically move into the right folder.
Keep the README clear with install instructions, platform notes for Linux btrfs, macOS APFS, and Windows status, plus development and test commands.
Want more depth? Deep Reverse