docs: Add CLAUDE.md - Comprehensive AI assistant guide for Ralph#46
Open
NathanWCarlson wants to merge 1 commit intosnarktank:mainfrom
Open
docs: Add CLAUDE.md - Comprehensive AI assistant guide for Ralph#46NathanWCarlson wants to merge 1 commit intosnarktank:mainfrom
NathanWCarlson wants to merge 1 commit intosnarktank:mainfrom
Conversation
Provides detailed documentation for AI assistants working with Ralph: - Project overview and key concepts - Repository structure explanation - Commands and development workflows - Technology stack details - PRD format and conventions - Story sizing guidelines - Quality requirements and patterns
Greptile OverviewGreptile SummaryAdded comprehensive Key Strengths:
Documentation Alignment:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant Ralph as ralph.sh
participant Amp as Amp Instance
participant Git as Git Repository
participant PRD as prd.json
participant Progress as progress.txt
Dev->>Ralph: ./ralph.sh [max_iterations]
loop For each iteration (max 10)
Ralph->>PRD: Read prd.json
Ralph->>Amp: Spawn fresh Amp instance with prompt.md
Amp->>PRD: Read task list
Amp->>Progress: Read Codebase Patterns section
Amp->>Git: Check current branch
Amp->>Amp: Pick highest priority story (passes: false)
Amp->>Amp: Implement single user story
Amp->>Amp: Run quality checks (typecheck, lint, test)
alt Quality checks pass
Amp->>Git: Commit with format: feat: [Story ID] - [Title]
Amp->>PRD: Update story (passes: true)
Amp->>Progress: Append progress report with learnings
Amp->>Amp: Check if all stories complete
alt All stories complete
Amp->>Ralph: Output <promise>COMPLETE</promise>
Ralph->>Dev: Exit successfully
else More stories pending
Amp->>Ralph: End iteration normally
Ralph->>Ralph: Continue to next iteration
end
else Quality checks fail
Amp->>Progress: Document failure and learnings
Ralph->>Ralph: Continue to next iteration
end
end
Ralph->>Dev: Max iterations reached or complete
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add comprehensive documentation for AI assistants working with Ralph, the autonomous AI agent loop system for Amp CLI. This guide provides essential context about the project architecture, conventions, and best practices for both developing Ralph itself and using it in other projects.
Key Changes
Notable Details
This documentation serves as the primary reference for AI assistants (like Claude) to understand and work effectively with the Ralph system.