Ripperdoc is a powerful, extensible AI coding agent that runs directly in your terminal. Inspired by tools like Claude Code, Aider, and Goose, Ripperdoc helps you write code, refactor projects, execute shell commands, and manage files through natural language conversations.
- 🔌 Model Agnostic - Works with Anthropic Claude, OpenAI, Google Gemini, DeepSeek, and any OpenAI-compatible API
- 🎣 Extensible Architecture - 30+ built-in tools with hooks system for custom workflows
- 🤖 Multi-Agent Coordination - Built-in task graph and team collaboration for complex workflows
- 📚 Skill System - Load capability bundles on-demand (PDF, Excel, PowerPoint, custom languages)
- 🔌 MCP Integration - First-class Model Context Protocol server support
- 🛡️ Safe by Default - Permission system with configurable rules and hooks
- 🎨 Beautiful UI - Rich terminal interface with themes, syntax highlighting, and interactive TUIs
- ⚡ Background Tasks - Run long-running commands asynchronously with real-time monitoring
中文文档 | Contributing | Documentation
- 30+ Built-in Tools - File operations (Read, Write, Edit, MultiEdit), code search (Grep, Glob), shell execution (Bash, Background), LSP integration, and more
- Jupyter Support - Direct .ipynb notebook editing with cell manipulation
- Background Tasks - Run commands asynchronously with output monitoring and status tracking
- Task Graph System - Persistent task management with dependencies, blockers, and ownership
- Team Coordination - Multi-agent collaboration with structured messaging and coordination
- Specialized Subagents - Built-in agents for code review, exploration, planning, and test generation
- Skill System - Load SKILL.md bundles to extend capabilities (PDF, Excel, PowerPoint, custom languages)
- Hooks System - Execute custom scripts at lifecycle events with decision control
- Custom Commands - Define reusable slash commands with parameter substitution
- MCP Integration - Connect to Model Context Protocol servers for extended capabilities
- Rich Terminal UI - Beautiful interface with syntax highlighting and progress indicators
- Theme Support - Customizable color schemes and styling options
- Interactive TUIs - Terminal UIs for managing agents, models, permissions, and hooks
- Safe Mode - Permission prompts with configurable rules for dangerous operations
- Persistent History - Full conversation history with search and replay
- Session Forking - Create branches from any conversation state
- Usage Tracking - Monitor token usage and costs across sessions
pip install git+https://github.com/quantmew/ripperdoc.gitgit clone https://github.com/quantmew/ripperdoc.git
cd ripperdoc
pip install -e .# Install with development dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Type checking
mypy ripperdoc
# Code formatting
black ripperdoc
# Linting
ruff ripperdocripperdocripperdoc [OPTIONS]Options:
--yolo- Skip permission prompts (safe mode is on by default)--model <model_name>- Specify model (e.g.,claude-sonnet-4-20250514,gpt-4o)--tools <tool_list>- Filter available tools (comma-separated, or "" for none)--no-mcp- Disable MCP server integration--verbose- Enable verbose logging--theme <theme_name>- Set UI theme
Environment Variables:
RIPPERDOC_ENABLE_TASKS=false- Use legacy Todo tools instead of Task GraphRIPPERDOC_TASK_LIST_ID- Force a shared Task Graph list ID across sessionsRIPPERDOC_MODEL- Default model to useRIPPERDOC_TEMPERATURE- Default temperature (0.0-2.0)RIPPERDOC_API_KEY- API key for configured provider
Task Graph scope behavior:
- By default, task lists are session-scoped (new session starts clean; resume/continue keeps the same tasks)
- Set
RIPPERDOC_TASK_LIST_IDto intentionally share one task list across sessions
Code Analysis:
> Can you explain what this function does?
> Find all references to the `parse_config` function
File Operations:
> Read the main.py file and suggest improvements
> Create a new component called UserProfile.tsx
> Update all imports to use the new package structure
Code Generation:
> Create a new Python script that implements a REST API client
> Generate unit tests for the auth module
> Add error handling to the database connection code
Extend Ripperdoc with reusable Skill bundles stored in SKILL.md files:
Skill Locations:
~/.ripperdoc/skills/<skill-name>/SKILL.md(personal skills).ripperdoc/skills/<skill-name>/SKILL.md(project-specific, can be committed to git)
Skill Frontmatter:
---
name: pdf-processing
description: Comprehensive PDF manipulation toolkit
allowed-tools: Read, Write, Bash
model: claude-sonnet-4-20250514
max-thinking-tokens: 20000
---Built-in Skills:
pdf- PDF manipulation (extract text/tables, create, merge/split)pptx- PowerPoint presentation creation and editingxlsx- Excel spreadsheet operations with formulascangjie- 仓颉 programming language support
Execute custom scripts at lifecycle events with decision control:
Hook Events:
PreToolUse- Before tool execution (can block/modify)PostToolUse- After successful tool executionPostToolUseFailure- After tool execution failurePermissionRequest- When permission is requestedUserPromptSubmit- When user submits inputSessionStart/End- Session lifecycleSubagentStart/Stop- Subagent lifecycle
Hook Configuration:
{
"hooks": [
{
"event": "PreToolUse",
"command": "npm run lint",
"blocking": true,
"include_tools": ["Write", "Edit"]
}
]
}Ripperdoc supports the Model Context Protocol for extending capabilities:
# List available MCP servers
> /mcp
# Query MCP resources
> What MCP servers are available?
> Query the context7 documentation for React hooksDefine reusable slash commands with parameter substitution:
Command File: .ripperdoc/commands/deploy.md
---
description: Deploy application to production
---
Deploying $ARGUMENTS to production...
!`npm run build && npm run deploy`Usage: /deploy my-feature-branch
Ripperdoc provides powerful slash commands for session management:
Session Commands:
/exit- Exit the session/clear- Clear conversation history/compact- Compact conversation history/fork- Create new session branch from current state/resume- Resume a previous session
Configuration Commands:
/config- Manage configuration/models- Manage model providers/tools- View available tools/permissions- Manage permission rules/hooks- Manage hooks configuration/themes- Change UI theme/output_language- Set output language/output_style- Set output style
Information Commands:
/help- Show help information/status- Show session status/stats- Show usage statistics/cost- Show cost tracking/doctor- Run system diagnostics
Feature Commands:
/skills- List available skills/agents- Manage subagents/tasks- Task graph management/todos- Legacy todo management/commands- List custom commands/context- Manage context/memory- Manage memory/mcp- MCP server management
> Show me all the Python files in the project
> Find where the user authentication logic is implemented
> List all API endpoints in the project
> Explain the architecture of this codebase
> Run the tests in the background
> Start the dev server and monitor its output
> Check status of background tasks
- CLI Layer (
ripperdoc/cli/) - Terminal interface, UI components, command handlers - Core Layer (
ripperdoc/core/) - Agent definitions, configuration, hooks, providers - Tools Layer (
ripperdoc/tools/) - 30+ built-in tools for file operations, code analysis, etc. - Protocol Layer (
ripperdoc/protocol/) - Stdio protocol handler for SDK communication - Utils Layer (
ripperdoc/utils/) - Shared utilities for logging, permissions, file operations
File Operations:
Read- Read file contents with optional offset/limitWrite- Create new files or overwrite existingEdit- Replace exact string matches in filesMultiEdit- Batch edit operations on single fileNotebookEdit- Edit Jupyter notebook cells
Code Analysis:
Grep- Search code using regex patternsGlob- File pattern matchingLSP- Language Server Protocol integration
Shell Operations:
Bash- Execute shell commandsKillBash- Kill background shell processesBashOutput- Read output from background tasks
Agent Features:
TaskCreate/Update/Get/List- Task graph managementTeamCreate/Delete- Multi-agent team coordinationSendMessage- Inter-agent messagingTask- Delegate to specialized subagents
Extensibility:
Skill- Load skill bundles on-demandToolSearch- Discover and activate toolsAskUserQuestion- Interactive user prompts
- Anthropic - Claude 3.5 Sonnet, Claude 3 Opus, Haiku
- OpenAI - GPT-4, GPT-4 Turbo, GPT-3.5
- Google - Gemini Pro, Gemini Flash
- DeepSeek - DeepSeek Coder, DeepSeek Chat
- Custom - Any OpenAI-compatible API
ripperdoc/
├── cli/ # CLI interface and UI components
├── core/ # Core functionality and configuration
│ ├── hooks/ # Hooks system implementation
│ ├── providers/ # LLM provider implementations
│ └── query/ # Query processing loop
├── tools/ # Built-in tool implementations
├── protocol/ # Stdio protocol handler
│ └── stdio/ # Protocol implementation
├── utils/ # Utility functions
└── data/ # Model pricing and context data
# Run all tests
pytest
# Run specific test file
pytest tests/test_bash_tool.py
# Run with coverage
pytest --cov=ripperdoc# Type checking
mypy ripperdoc
# Code formatting
black ripperdoc
# Linting
ruff check ripperdoc
# Format with Black
black ripperdoc~/.ripperdoc/config.json- User-level configuration.ripperdoc/config.json- Project-level configuration (overrides user config)
{
"model": "claude-sonnet-4-20250514",
"temperature": 1.0,
"api_key": "your-api-key",
"permission_rules": {
"Bash": {
"rule": "ask",
"commands": ["rm -rf", "sudo", ">:"]
}
},
"hooks": {
"hooks": [
{
"event": "PreToolUse",
"command": "npm run lint",
"blocking": true
}
]
},
"theme": "default",
"enable_tasks": true
}We welcome contributions! Please see CONTRIBUTING.md for guidelines.
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests and linting
- Submit a pull request
See CHANGELOG.md for version history and updates.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
- ✅ Commercial Use
- ✅ Distribution
- ✅ Modification
- ✅ Patent Grant
- ✅ Private Use
- ✅ Sublicensing
- ❌ Trademark Use
Inspired by and built with ideas from:
- Claude Code - Anthropic's official CLI
- aider - AI pair programming tool
- Goose - Extensible AI assistant
- Cursor - AI-powered code editor
Made with ❤️ by the Ripperdoc team