CLAUDE.md · snarktank/ralph
CLAUDE.md from snarktank/ralph: 105 lines covering Your Task, Progress Report Format, Consolidate Patterns, Update CLAUDE.md Files and more.
Template by snarktank
Chalk Labs
Need help deploying CLAUDE.md · snarktank/ralph?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/snarktank/ralph/main/CLAUDE.md -o CLAUDE.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: prompt-engineering, agent-orchestration
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
A CLAUDE.md file: project memory Claude Code loads at the start of every session.
- For
- Claude Code
- Length
- 105 lines
- File
CLAUDE.md
Sections
- Your Task
- Progress Report Format
- Consolidate Patterns
- Update CLAUDE.md Files
- Quality Requirements
- Browser Testing (If Available)
- Stop Condition
- Important
First lines (shown under the repo's MIT license)
# Ralph Agent Instructions You are an autonomous coding agent working on a software project. ## Your Task 1. Read the PRD at `prd.json` (in the same directory as this file) 2. Read the progress log at `progress.txt` (check Codebase Patterns section first) 3. Check you're on the correct branch from PRD `branchName`. If not, check it out or create from main. 4. Pick the **highest priority** user story where `passes: false` 5. Implement that single user story 6. Run quality checks (e.g., typecheck, lint, test - use whatever your project requires) 7. Update CLAUDE.md files if you discover reusable patterns (see below) 8. If checks pass, commit ALL changes with message: `feat: [Story ID] - [Story Title]` 9. Update the PRD to set `passes: true` for the completed story 10. Append your progress to `progress.txt` ## Progress Report Format APPEND to progress.txt (never replace, always append): ``` ## [Date/Time] - [Story ID] - What was implemented - Files changed - **Learnings for future iterations:** - Patterns discovered (e.g., "this codebase uses X for Y") - Gotchas encountered (e.g., "don't forget to update Z when changing W") - Useful context (e.g., "the evaluation panel is in component X") --- ``` The learnings section is critical - it helps future iterations avoid repeating mistakes and understand the codebase better. ## Consolidate Patterns If you discover a **reusable pattern** that future iterations should know, add it to the `## Codebase Patterns` section at the TOP of progress.txt (create it if it doesn't exist). This section should consolidate the most important learnings: ``` ## Codebase Patterns - Example: Use `sql<number>` template for aggregations - Example: Always use `IF NOT EXISTS` for migrations - Example: Export types from actions.ts for UI components ``` Only add patterns that are **general and reusable**, not story-specific details. ## Update CLAUDE.md Files Before committing, check if any edited files have learnings worth preserving in nearby CLAUDE.md files: 1. **Identify directories with edited files** - Look at which directories you modified 2. **Check for existing CLAUDE.md** - Look for CLAUDE.md in those directories or parent directories 3. **Add valuable learnings** - If you discovered something future developers/agents should know: - API patterns or conventions specific to that module - Gotchas or non-obvious requirements - Dependencies between files - Testing approaches for that area - Configuration or environment requirements **Examples of good CLAUDE.md additions:** - "When modifying X, also update Y to keep them in sync" - "This module uses pattern Z for all API calls" - "Tests require the dev server running on PORT 3000" - "Field names must match the template exactly" **Do NOT add:** - Story-specific implementation details - Temporary debugging notes - Information already in progress.txt Only update CLAUDE.md if you have **genuinely reusable knowledge** that would help future work in that directory. ## Quality Requirements - ALL commits must pass your project's quality checks (typecheck, lint, test) - Do NOT commit broken code - Keep changes focused and minimal - Follow existing code patterns ## Browser Testing (If Available) For any story that changes UI, verify it works in the browser if you have browser testing tools configured (e.g., via MCP): 1. Navigate to the relevant page 2. Verify the UI changes work as expected 3. Take a screenshot if helpful for the progress log If no browser tools are available, note in your progress report that manual browser verification is needed. ## Stop Condition After completing a user story, check if ALL stories have `passes: true`. If ALL stories are complete and passing, reply with: <promise>COMPLETE</promise> If there are still stories with `passes: false`, end your response normally (another iteration will pick up the next story). ## Important - Work on ONE story per iteration - Commit frequently - Keep CI green - Read the Codebase Patterns section in progress.txt before starting
Signals
- Stars
- 22,058
- Forks
- 2,096
- Open issues
- 35
- Last commit (this folder)
- Jan 16, 2026 (9 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/snarktank/ralph
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from snarktank
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get CLAUDE.md · snarktank/ralph running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
CLAUDE.md · snarktank/ralph. Agent Mart. https://agentmart.dev/templates/snarktank-ralph-claude-md (last updated 2026-10-24)