Open Source AI Agent Harness for Brief Users
⚠️ EXPERIMENTAL: This project is in early development and provided "as-is" without warranty. Use at your own risk. The configuration patterns, hooks, and scripts may change significantly between releases. We recommend testing thoroughly in a non-production environment before adopting for critical workflows.
Brief Wiggum provides an AI agent configuration for Claude Code and Cursor that integrates with Brief - the product management tool for AI-native teams.
Prerequisite: You need Brief MCP connected to your AI editor. See Brief MCP Setup for setup.
- Fork this repository
- Connect Brief MCP in your Claude Code or Cursor settings
- Customize
CLAUDE.md.template→CLAUDE.mdfor your project - Run
/onboardto load Brief context and start working
Keep your agent working until verification passes:
./.claude/scripts/ralph.sh "Implement feature X with tests"
./.claude/scripts/ralph.sh --linear BRI-123 "Fix the bug"PreToolUse hooks block dangerous git operations before they execute:
- History rewriting (
--amend,rebase,reset) - Conflict resolution shortcuts (
--ours,--theirs) - Protected branch pushes (main, master, production)
- Untracked file deletion (
clean -f)
Modular skills in .claude/skills/ loaded on demand:
| Skill | Purpose |
|---|---|
development |
TDD, debugging, testing |
patterns |
API, database, security |
brief-design |
Design system |
extensions |
Chrome, MCP |
visual-testing |
Playwright |
Slash commands for common workflows:
| Command | Purpose |
|---|---|
/onboard |
Load Brief + Linear context |
/onboard BRI-XXX |
Load specific Linear issue |
/prep |
Pre-commit validation |
/health |
Check environment |
/ralph |
Run iterative loop |
/todo-all |
Execute all pending todos |
/design |
Design system compliance and polish |
/joust-rabbit |
Process PR review comments |
/peer-review |
Multi-model code review (OpenAI, Gemini) |
Specialized agents for complex tasks:
| Agent | Purpose |
|---|---|
context-loader |
Load all context layers |
task-planner |
Plan implementation with Brief context |
implementation |
Autonomous coding with permission gates |
pr-preparer |
Pre-commit validation |
code-explorer |
Codebase navigation |
Brief Wiggum follows these principles:
-
Fresh context per iteration - Each Ralph loop iteration starts with empty context. State carries via files and Brief MCP (product context, decisions), not session history. This keeps the AI in its "smart zone" where it performs best.
-
Simplicity over configuration - Four principles in CLAUDE.md, not 200 lines of rules.
-
Goal-driven execution - Define success criteria (tests pass, types check), let the agent loop until verified.
-
Business context injection - Brief MCP provides product strategy, decisions, and customer insights so AI doesn't just write code—it writes the right code.
- Brief MCP: Connect to your Brief workspace (setup guide)
- Claude Code or Cursor: AI-assisted development environment
- pnpm/npm/yarn: For running build commands
- Optional:
OPENAI_API_KEYand/orGEMINI_API_KEYfor/peer-review
| Doc | Description |
|---|---|
| Quick Start | 5-minute setup guide |
| Brief MCP Setup | Connect Brief to your editor |
| Philosophy | Ralph Wiggum methodology |
| Platform Support | Claude Code vs Cursor |
| Customization | Adapt for your stack |
See the examples/ directory for stack-specific configurations:
This software is experimental and provided "as-is" without any warranty, express or implied. By using Brief Wiggum, you acknowledge that:
- AI agents may produce incorrect, incomplete, or unexpected results
- Git guards and hooks are safety measures but cannot guarantee prevention of all data loss
- You are responsible for reviewing all changes before committing
- The maintainers are not liable for any damages arising from use of this software
- Configuration patterns may change significantly between versions
Always maintain proper backups and test in isolated environments before using with important projects.
See CONTRIBUTING.md for guidelines.
MIT License - see LICENSE
Named after the Ralph Wiggum Loop pattern for iterative AI agent execution.
- Original Ralph Wiggum - Greg Huntley's foundational work
- Boris Cherney's thread - Early exploration of the pattern
- Claude Code Ralph Plugin - Anthropic's official plugin
- Effective Harnesses for Long-Running Agents - Anthropic engineering blog
- Ralph Wiggum Best Practices - Bash loop vs plugin comparison
- Vercel Ralph Loop Agent - Production implementation
- Dev Interrupted Podcast - Origins and methodology