Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 44 additions & 10 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ You are working in the Codev project itself, with multiple development protocols
**Available Protocols**:
- **SPIDER**: Multi-phase development with consultation - `codev/protocols/spider/protocol.md`
- **SPIDER-SOLO**: Single-agent variant - `codev/protocols/spider-solo/protocol.md`
- **TICK**: Fast autonomous implementation - `codev/protocols/tick/protocol.md`
- **TICK**: Amendment workflow for existing specs - `codev/protocols/tick/protocol.md`
- **EXPERIMENT**: Disciplined experimentation - `codev/protocols/experiment/protocol.md`
- **MAINTAIN**: Codebase maintenance (code hygiene + documentation sync) - `codev/protocols/maintain/protocol.md`

Expand Down Expand Up @@ -73,18 +73,22 @@ AI agents must stop at `spec-draft` after writing a spec, and stop at `committed

## Protocol Selection Guide

### Use TICK for:
- Small features (< 300 lines of code)
- Well-defined tasks with clear requirements
- Bug fixes with known solutions
- Simple configuration changes
- Utility function additions
- Tasks needing fast iteration
### Use TICK for (amendments to existing specs):
- **Amendments** to an existing SPIDER spec that is already `integrated`
- Small scope (< 300 lines of new/changed code)
- Clear requirements that extend existing functionality
- Examples:
- Adding a feature to an existing system (e.g., "add password reset to user auth")
- Bug fixes that extend existing functionality
- Configuration changes with logic
- Utility function additions to existing modules

### Use SPIDER for:
**TICK modifies spec/plan in-place** and creates a new review file. Cannot be used for greenfield work.

### Use SPIDER for (new features):
- Creating a **new feature from scratch** (no existing spec to amend)
- New protocols or protocol variants
- Major changes to existing protocols
- New example projects
- Significant changes to installation process
- Complex features requiring multiple phases
- Architecture changes
Expand Down Expand Up @@ -484,6 +488,36 @@ wait

**Why Codex is slower**: Codex CLI's `--full-auto` mode executes shell commands sequentially with reasoning between each step. For PR reviews, it typically runs 10-15 commands like `git show <branch>:<file>`, `rg -n "pattern"`, etc. This is more thorough but takes ~2x longer than Gemini's text-only analysis.

### Architect-Mediated PR Reviews

For faster and more consistent PR reviews, the Architect can prepare context upfront and pass it to consultants:

```bash
# Standard mode (consultant explores filesystem - slower)
consult --model gemini pr 68

# Mediated mode (architect provides context - faster)
consult --model gemini pr 68 --context overview.md

# Via stdin
cat overview.md | consult --model gemini pr 68 --context -

# 3-way parallel mediated reviews
consult --model gemini pr 68 --context overview.md &
consult --model codex pr 68 --context overview.md &
consult --model claude pr 68 --context overview.md &
wait
```

**When to use mediated mode**:
- 3-way reviews where consistent context is important
- Large PRs where exploration is slow
- When specific aspects need focused review

**Template**: Use `codev/templates/pr-overview.md` to prepare context.

**Performance**: Mediated reviews complete in ~30-60s vs 120-250s with exploration.

### How It Works

1. Reads the consultant role from `codev/roles/consultant.md`
Expand Down
24 changes: 14 additions & 10 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ You are working in the Codev project itself, with multiple development protocols
**Available Protocols**:
- **SPIDER**: Multi-phase development with consultation - `codev/protocols/spider/protocol.md`
- **SPIDER-SOLO**: Single-agent variant - `codev/protocols/spider-solo/protocol.md`
- **TICK**: Fast autonomous implementation - `codev/protocols/tick/protocol.md`
- **TICK**: Amendment workflow for existing specs - `codev/protocols/tick/protocol.md`
- **EXPERIMENT**: Disciplined experimentation - `codev/protocols/experiment/protocol.md`
- **MAINTAIN**: Codebase maintenance (code hygiene + documentation sync) - `codev/protocols/maintain/protocol.md`

Expand Down Expand Up @@ -73,18 +73,22 @@ AI agents must stop at `spec-draft` after writing a spec, and stop at `committed

## Protocol Selection Guide

### Use TICK for:
- Small features (< 300 lines of code)
- Well-defined tasks with clear requirements
- Bug fixes with known solutions
- Simple configuration changes
- Utility function additions
- Tasks needing fast iteration
### Use TICK for (amendments to existing specs):
- **Amendments** to an existing SPIDER spec that is already `integrated`
- Small scope (< 300 lines of new/changed code)
- Clear requirements that extend existing functionality
- Examples:
- Adding a feature to an existing system (e.g., "add password reset to user auth")
- Bug fixes that extend existing functionality
- Configuration changes with logic
- Utility function additions to existing modules

### Use SPIDER for:
**TICK modifies spec/plan in-place** and creates a new review file. Cannot be used for greenfield work.

### Use SPIDER for (new features):
- Creating a **new feature from scratch** (no existing spec to amend)
- New protocols or protocol variants
- Major changes to existing protocols
- New example projects
- Significant changes to installation process
- Complex features requiring multiple phases
- Architecture changes
Expand Down
23 changes: 22 additions & 1 deletion codev-skeleton/protocols/spider/templates/plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,25 @@ Phase 1 ──→ Phase 2 ──→ Phase 3
| [Date] | [What changed] | [Why] | [Who] |

## Notes
[Additional context, assumptions, or considerations]
[Additional context, assumptions, or considerations]

---

## Amendment History

This section tracks all TICK amendments to this plan. TICKs modify both the spec and plan together as an atomic unit.

<!-- When adding a TICK amendment, add a new entry below this line in chronological order -->

<!--
### TICK-001: [Amendment Title] (YYYY-MM-DD)

**Changes**:
- [Phase added]: [Description of new phase]
- [Phase modified]: [What was updated]
- [Implementation steps]: [New steps added]

**Review**: See `reviews/####-name-tick-001.md`

---
-->
31 changes: 30 additions & 1 deletion codev-skeleton/protocols/spider/templates/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,33 @@ Note: All consultation feedback has been incorporated directly into the relevant
- [ ] Expert AI Consultation Complete

## Notes
[Any additional context or considerations not covered above]
[Any additional context or considerations not covered above]

---

## Amendments

This section tracks all TICK amendments to this specification. TICKs are lightweight changes that refine an existing spec rather than creating a new one.

<!-- When adding a TICK amendment, add a new entry below this line in chronological order -->

<!--
### TICK-001: [Amendment Title] (YYYY-MM-DD)

**Summary**: [One-line description of what changed]

**Problem Addressed**:
[Why this amendment was needed - what gap or issue in the original spec]

**Spec Changes**:
- [Section modified]: [What changed and why]
- [New section added]: [Purpose]

**Plan Changes**:
- [Phase added/modified]: [Description]
- [Implementation steps]: [What was updated]

**Review**: See `reviews/####-name-tick-001.md`

---
-->
Loading