Skip to content

Conversation

@denen99
Copy link
Contributor

@denen99 denen99 commented Jan 9, 2026

No description provided.

- Add --tool flag to ralph.sh (amp|claude, defaults to amp)
- Update documentation in README.md and AGENTS.md
- Update flowchart to be tool-agnostic ("AI picks a story" vs "Amp picks a story")
- Add .claude/ to .gitignore

Usage: ./ralph.sh --tool claude [max_iterations]
@wquguru
Copy link

wquguru commented Jan 9, 2026

I've ported it to Claude Code: https://github.com/wquguru/ralph-ryan

This project is forked from snarktank/ralph by Ryan Carson. The name "ralph-ryan" honors both the Ralph pattern and its creator Ryan. Try Amp - Ryan's AI coding tool!

@denen99
Copy link
Contributor Author

denen99 commented Jan 9, 2026

Thanks - i guess up to @snarktank if he wants support for both or not in a single tool. I wont be offended personally if the answer is no, i have it working on my personal fork as well, i figured i would at least submit the PR out of good faith

@snarktank
Copy link
Owner

Hi @denen99 - thanks for submitting. Your claude prompt should use CLAUDE.md because that's what it uses. Please fix and I'll look at this again.

@denen99
Copy link
Contributor Author

denen99 commented Jan 10, 2026

my fault, i didnt realize prompt.md was native to AMP instead of ralph, apologies. I updated the PR to use CLAUDE.md as well as the necessary docs.

Also apologies for the dupe PR, github defaults to the remote PR when creating pull requests instead of local which created an extra PR by accident.

@snarktank
Copy link
Owner

Thanks @denen99. I'd appreciate it if you could run 2+ loops with this new implementation and report back. I want to triple check it really works well. Please test it in both CC and Amp. Thanks!

@colinmollenhour
Copy link

colinmollenhour commented Jan 11, 2026

Thanks for your PR @denen99. FYI, I created PR #13 that includes the commits in this PR and adds several more. :)

@denen99
Copy link
Contributor Author

denen99 commented Jan 11, 2026

@snarktank ran 2 clean tests, 1 with claude, 1 with amp, each with an initial PRD and a follow up PRD in existing directory. There was one small bug in ralph.sh that I addressed and updated in the PR, after that both runs worked without issue.

Claude Run - https://gist.github.com/denen99/8d0b545c82af096cebc807a6bcdd3823

Amp Run - https://gist.github.com/denen99/87ecb0d4950dc0e3023da2ddaf89517f

cp -r skills/ralph ~/.claude/skills/
```

### Configure Amp auto-handoff (recommended)
Copy link

@Man-Jain Man-Jain Jan 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey, i think the command for claude should also be added in this section as well if it's being added for other things.

Claude Code: claude --dangerously-skip-permissions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure i follow, claude does run with --dangerously-skip-permissions in ralph.sh line 95

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm my bad, i mistook auto handoff for something else.

@snarktank
Copy link
Owner

@denen99 Thanks. I'll probably merge this but first please close any other dupe PRs (if there are any). I need time to look a little more closely at the code.

@archvalmiki
Copy link

scripts/ralph/CLAUDE.md instructions still mention AGENTS.md everywhere instead of CLAUDE.md.. fyi

@snarktank
Copy link
Owner

Thanks for the thorough testing. Ready to merge once you fix the issue @archvalmiki flagged - CLAUDE.md still references AGENTS.md in a few places. Please update those references to CLAUDE.md and I'll merge.

@snarktank snarktank mentioned this pull request Jan 16, 2026
@denen99
Copy link
Contributor Author

denen99 commented Jan 16, 2026

Thanks @archvalmiki for the spot, missed that. CLAUDE.md has been updated @snarktank

@getaaron
Copy link

I don't think this type of if/else implementation is great, it will get messy when we want to add opencode, copilot, gemini, codex, etc.

How about a config file (eg yml/json) that is read from with amp as the default. it can have the tool name, prompt, list of any env vars, cli command to run, etc.

And instead of mostly copying the prompt we could have a prompt template and jinja or other templating to render the prompt based on the config selected

@FacuVCanale
Copy link

if this isnt merged i think i will start using https://github.com/frizynn/gralph
the paralelization and compatibility is insane

@snarktank snarktank merged commit ed82d00 into snarktank:main Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants