A methodology framework for building software where context drives development, not the other way around.
Tell your AI agent:
Apply Codev to this repo following the instructions at https://github.com/ansari-project/codev/blob/main/INSTALL.md
Codev is a development methodology that treats natural language context as code. Instead of writing code first and documenting later, you start with clear specifications that both humans and AI agents can understand and execute.
π Read the full story: Why We Created Codev: From Theory to Practice - Learn about our journey from theory to implementation and how we built a todo app without directly editing code.
- Context Drives Code - Context definitions flow from high-level specifications down to implementation details
- Human-AI Collaboration - Designed for seamless cooperation between developers and AI agents
- Evolving Methodology - The process itself evolves and improves with each project
Our flagship protocol for structured development:
- Specify - Define what to build in clear, unambiguous language
- Plan - Break specifications into executable phases
- For each phase: Implement β Defend β Evaluate
- Implement: Build the code to meet phase objectives
- Defend: Write comprehensive tests that protect your codeβnot just validation, but defensive fortifications against bugs and regressions
- Evaluate: Verify requirements are met, get user approval, then commit
- Review - Capture lessons and improve the methodology
your-project/
βββ codev/
β βββ protocols/
β β βββ spider/ # The SP(IDE)R protocol
β β βββ protocol.md # Detailed protocol documentation
β β βββ manifest.yaml
β β βββ templates/ # Document templates
β βββ specs/ # Feature specifications
β βββ plans/ # Implementation plans
β βββ reviews/ # Review and lessons learned
β βββ resources/ # Reference materials (llms.txt, etc.)
βββ CLAUDE.md # AI agent instructions
βββ [your code]
- Specifications, plans, and lessons all tracked
- All decisions captured in version control
- Clear traceability from idea to implementation
- Structured formats that AI agents understand
- Multi-agent consultation support (GPT-5, Gemini Pro, etc.)
- Reduces back-and-forth from dozens of messages to 3-4 document reviews
- Every project improves the methodology
- Lessons learned feed back into the process
- Templates evolve based on real experience
Both projects below were given the exact same prompt to build a Todo Manager application using Claude Code with Opus. The difference? The methodology used:
- Built using a VIBE-style prompt approach
- Shows rapid prototyping with conversational AI interaction
- Demonstrates how a simple prompt can drive development
- Results in working code through chat-based iteration
- Built using the SPIDER protocol with full document-driven development
- Same requirements, but structured through formal specifications and plans
- Demonstrates all phases: Specify β Plan β (IDE Loop) β Review
- Complete with specs, plans, and review documents
- Multi-agent consultation throughout the process
Note: This comparison was generated through automated analysis by 3 independent AI agents (Claude, GPT-5, and Gemini Pro), not human review. The findings below represent their consensus assessment:
Aspect | VIBE | SPIDER |
---|---|---|
Overall Score | 12-15 | 92-95 |
Functionality | 0 | 100 |
Test Coverage | 0 | 85 |
Documentation | 0 | 95 |
Architecture | N/A | 90 |
Production Readiness | 0 | 85 |
VIBE Implementation:
- β 3 files total - Just Next.js boilerplate
- β 0% functionality - No todo features implemented
- β 0 tests - No validation or quality assurance
- β No database - No data persistence
- β No API routes - No backend functionality
- β No components - Just default Next.js template
SPIDER Implementation:
- β 32 source files - Complete application structure
- β 100% functionality - Full CRUD operations
- β 5 test suites - API, components, database, MCP coverage
- β SQLite + Drizzle ORM - Proper data persistence
- β Complete API - RESTful endpoints for all operations
- β Component architecture - TodoForm, TodoList, TodoItem, ConversationalInterface
- β MCP integration - AI-ready with server wrapper
- β Type safety - TypeScript + Zod validation
- β Error handling - Boundaries and optimistic updates
- β Documentation - Specs, plans, and lessons learned
As GPT-5 noted: "SPIDER's methodology clearly outperformed... Plan-first approach with defined scope, iterative verification, and delivery mindset"
Gemini Pro explained: "SPIDER correctly inferred the user's intent... It saves hours, if not days, of setup... It builds code the way a professional team would"
The verdict from all 3 agents: Context-driven development ensures completeness, while conversational approaches can miss the mark entirely despite identical prompts and AI models.
Codev is self-hosted - we use Codev methodology to build Codev itself. This means:
- Our test infrastructure is specified in
codev/specs/0001-test-infrastructure.md
- Our development process follows the SP(IDE)R protocol we advocate
- Our improvements come from lessons learned using our own methodology
This self-hosting approach ensures:
- The methodology is battle-tested on real development
- We experience the same workflow we recommend to users
- Any pain points are felt by us first and fixed quickly
- The framework evolves based on actual usage, not theory
You can see this in practice:
- Check
codev/specs/
for our feature specifications - Review
codev/plans/
for how we break down work - Learn from
codev/reviews/
to see what we've discovered
Our comprehensive test suite (52 tests) validates the Codev installation process:
- Framework: Shell-based testing with bats-core (zero dependencies)
- Coverage: SPIDER protocol, SPIDER-SOLO variant, CLAUDE.md preservation
- Isolation: XDG sandboxing ensures tests never touch real user directories
- CI/CD Ready: Tests run in seconds with clear TAP output
- Multi-Platform: Works on macOS and Linux without modification
Run tests locally:
# Fast tests (< 30 seconds)
./scripts/run-tests.sh
# All tests including Claude CLI integration
./scripts/run-all-tests.sh
See tests/README.md
for detailed test documentation.
Ask your AI agent to:
Install Codev by following the instructions at https://github.com/ansari-project/codev/blob/main/INSTALL.md
The agent will:
- Check for prerequisites (Zen MCP server)
- Create the codev/ directory structure
- Install the appropriate protocol (SPIDER or SPIDER-SOLO)
- Set up or update your CLAUDE.md file
See examples/todo-manager/
for a complete walkthrough showing:
- How specifications capture all requirements
- How plans break work into phases
- How the IDE loop ensures quality
- How lessons improve future development
Templates in codev/protocols/spider/templates/
can be modified to fit your team's needs:
spec.md
- Specification structureplan.md
- Planning formatlessons.md
- Retrospective template
Codev includes three specialized AI agents to enhance your development workflow (requires Claude Code with the Task tool):
Keep your Codev installation up-to-date with the latest protocols and improvements:
# Update your Codev framework
"Please update my codev framework to the latest version"
The agent will:
- Check for updates to protocols (SPIDER, TICK, etc.)
- Update agents and templates
- Preserve your specs, plans, and reviews
- Create backups before updating
- Provide rollback instructions
Automatically maintains comprehensive architecture documentation:
# Invoked automatically at the end of TICK protocol reviews
# Or manually: "Update the architecture documentation"
The agent maintains codev/resources/arch.md
with:
- Complete directory structure
- All utility functions and helpers
- Key architectural patterns
- Component relationships
- Technology stack details
Learn from SPIDER implementations across the community:
# Check a repository for SPIDER improvements
"Check [repository-url] for SPIDER improvements"
The agent will:
- Analyze the repository's SPIDER implementation
- Compare against current protocol
- Identify improvements and lessons learned
- Suggest protocol updates with justification
Example repositories to monitor:
ansari-project/todo-manager-spider
- SPIDER implementation with lessons- Your own SPIDER projects with discovered patterns
We welcome contributions! Please help us improve Codev:
- Bug Reports: Open an issue with clear reproduction steps
- Feature Requests: Share your ideas for new features or improvements
- Documentation: Report unclear or missing documentation
- Questions: Ask for clarification or help with implementation
- New protocols beyond SP(IDE)R
- Improved templates
- Integration tools
- Case studies
- SPIDER protocol improvements from your implementations
MIT - See LICENSE file for details
Built with Codev - where context drives code