Skip to content

Commit 851cfb0

Browse files
ryaneggzclaude
andauthored
FROM bug/705-fallback-searxng-from-exa TO development (#706)
* init * feat: US-001 - Add exa-py dependency and EXA_API_KEY constant Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: ryaneggz <kre8mymedia@gmail.com> * feat: US-002 through US-006 - Exa search integration with fallback chain - Add _normalize_exa_results() for canonical result format - Add _search_with_exa() async helper with asyncio.to_thread() - Reorder fallback chain: Exa -> SearXNG -> Tavily - Fix Tavily normalizer missing engines field - Add defensive (engines ?? []) guard in SearchEngine.tsx - Add prd.json and progress.txt for Ralph tracking Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: ryaneggz <kre8mymedia@gmail.com> * chore: Mark US-002 through US-006 as passing in prd.json Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: ryaneggz <kre8mymedia@gmail.com> * Completed ralph loop --------- Signed-off-by: ryaneggz <kre8mymedia@gmail.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent af6e499 commit 851cfb0

25 files changed

Lines changed: 1779 additions & 57 deletions

.claude/commands/team.md

Lines changed: 85 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# Rummage: Multi-Agent Code Analysis & Proposal System
1+
# Team: Multi-Agent Code Analysis & Proposal System
22

33
## Arguments
4+
45
- `query`: The feature or task description to analyze
56
- `subagents`: Number of elite coding agents to spawn (default: 3)
6-
- `output_dir`: Directory for spec artifacts (default: `.claude/specs/<auto-generated-name>/`)
7+
- `output_dir`: Directory for spec artifacts (default: `.specs/<auto-generated-name>/`)
78

89
**Usage:** `/team query="<feature description>" subagents=<N> output_dir="<path>"`
910

@@ -16,10 +17,11 @@
1617
Store the contents as `INITIAL_REPORT`. This context MUST be provided to all subagents in Phase 1. Do NOT proceed without completing this step.
1718

1819
### Output Directory Setup
20+
1921
- IF `$ARGUMENTS.output_dir` is provided, use that path
20-
- ELSE auto-generate: `.claude/specs/<feature-slug>/` (derive slug from query)
22+
- ELSE auto-generate: `.specs/<feature-slug>/` (derive slug from query)
2123
- RUN `mkdir -p $ARGUMENTS.output_dir` to ensure directory exists
22-
- All artifacts (PROPOSAL_*.md, REVIEW.md, TASKS.md) will be written to this directory
24+
- All artifacts (PROPOSAL\_\*.md, REVIEW.md, TASKS.md) will be written to this directory
2325

2426
---
2527

@@ -32,71 +34,89 @@ Generate exactly `$ARGUMENTS.subagents` elite coding agent perspectives. Each ag
3234
For each agent (1 through N), adopt a distinct elite architect persona and execute:
3335

3436
```markdown
35-
You are AGENT_<N>: <PERSONA_NAME> — an elite software architect with deep expertise in <SPECIALIZATION>.
37+
You are AGENT\_<N>: <PERSONA_NAME> — an elite software architect with deep expertise in <SPECIALIZATION>.
3638

3739
## Your Mission
40+
3841
Analyze the codebase and produce a comprehensive implementation proposal for:
3942

4043
**Feature:** $ARGUMENTS.query
4144

4245
## Context Provided
46+
4347
<INSERT INITIAL_REPORT HERE>
4448

4549
## Your Expertise Lens
50+
4651
- <SPECIALIZATION_1>: How you approach this domain
47-
- <SPECIALIZATION_2>: Your design philosophy
52+
- <SPECIALIZATION_2>: Your design philosophy
4853
- <SPECIALIZATION_3>: Your quality standards
4954

5055
## Research Phase
56+
5157
1. Examine the codebase structure and patterns
5258
2. Identify integration points relevant to the feature
5359
3. Assess existing conventions and architectural decisions
5460
4. Note potential risks, edge cases, and dependencies
5561

5662
## Deliverable Requirements
63+
5764
Produce a detailed proposal covering:
5865

5966
### 1. Executive Summary
67+
6068
Brief overview of your recommended approach (2-3 sentences)
6169

6270
### 2. Architectural Analysis
71+
6372
- Current state assessment
6473
- Proposed changes and their rationale
6574
- Integration points and dependencies
6675

6776
### 3. Implementation Strategy
77+
6878
- Step-by-step implementation plan
6979
- File changes required (new files, modifications)
7080
- Key code patterns to follow
7181

7282
### 4. Design Decisions
83+
7384
- Trade-offs considered
7485
- Why this approach over alternatives
7586
- Alignment with existing codebase patterns
7687

7788
### 5. Risk Assessment
89+
7890
- Potential pitfalls
7991
- Edge cases to handle
8092
- Testing considerations
8193

8294
### 6. Estimated Complexity
95+
8396
- Scope: [Small | Medium | Large]
8497
- Risk Level: [Low | Medium | High]
8598
- Suggested priority order for implementation
8699

87100
## Output
101+
88102
Write your complete proposal to: `$ARGUMENTS.output_dir/PROPOSAL_<PERSONA_NAME>.md`
89103
```
90104

91-
### Suggested Agent Personas (scale to $ARGUMENTS.subagents)
105+
### Dynamic Persona Generation (REQUIRED)
106+
107+
Generate `$ARGUMENTS.subagents` personas **derived from `$ARGUMENTS.query`**. Store as `AGENT_PERSONAS`.
108+
109+
| Agent | Persona | Query-Specific Focus |
110+
| ----- | ----------------- | -------------------------------------- |
111+
| 1-N | `<DOMAIN>_<ROLE>` | Critical dimension of **this feature** |
112+
113+
**Format:** Compound names only (e.g., `AUTH_SENTINEL`, `CACHE_STRATEGIST`). No generic roles.
92114

93-
| Agent | Persona | Specialization |
94-
|-------|---------|----------------|
95-
| 1 | ARCHITECT | System design, scalability, architectural patterns |
96-
| 2 | CRAFTSMAN | Clean code, maintainability, SOLID principles |
97-
| 3 | GUARDIAN | Security, error handling, edge cases, testing |
98-
| 4 | OPTIMIZER | Performance, efficiency, resource management |
99-
| 5 | INTEGRATOR | APIs, interfaces, system boundaries |
115+
**Inject per agent:**
116+
117+
```
118+
You are <PERSONA> — specialist in <FOCUS>. Analyze "$ARGUMENTS.query" through YOUR lens.
119+
```
100120

101121
---
102122

@@ -108,54 +128,65 @@ After all `$ARGUMENTS.subagents` proposals are generated, convene the AI Council
108128
You are the ELITE COUNCIL — a panel of distinguished software architects reviewing implementation proposals.
109129

110130
## Context
131+
111132
**Feature Under Review:** $ARGUMENTS.query
112133

113134
**Initial Project Context:**
114135
<INSERT INITIAL_REPORT HERE>
115136

116137
## Proposals to Review
117-
You have received $ARGUMENTS.subagents independent proposals from `$ARGUMENTS.output_dir/`:
118-
<LIST ALL PROPOSAL_<NAME>.md FILES>
138+
139+
You have received $ARGUMENTS.subagents independent proposals from `$ARGUMENTS.output*dir/`:
140+
<LIST ALL PROPOSAL*<NAME>.md FILES>
119141

120142
## Council Directive
143+
121144
Synthesize all proposals into a unified, actionable implementation plan. Your review must be thorough, fair, and focused on delivering the best possible solution.
122145

123146
## Review Framework
124147

125148
### 1. Proposal Comparison Matrix
126-
| Aspect | Agent 1 | Agent 2 | Agent N | Council Verdict |
127-
|--------|---------|---------|---------|-----------------|
128-
| Architecture | | | | |
129-
| Maintainability | | | | |
130-
| Risk Level | | | | |
131-
| Completeness | | | | |
149+
150+
| Aspect | Agent 1 | Agent 2 | Agent N | Council Verdict |
151+
| --------------- | ------- | ------- | ------- | --------------- |
152+
| Architecture | | | | |
153+
| Maintainability | | | | |
154+
| Risk Level | | | | |
155+
| Completeness | | | | |
132156

133157
### 2. Consensus Points
158+
134159
- What do all/most proposals agree on?
135160
- Which patterns are universally recommended?
136161

137162
### 3. Divergence Analysis
163+
138164
- Where do proposals conflict?
139165
- What are the trade-offs between approaches?
140166
- Council's reasoned decision on each conflict
141167

142168
### 4. Unified Implementation Plan
169+
143170
Synthesize the best elements into a single coherent plan:
171+
144172
- Recommended architecture
145173
- Implementation sequence
146174
- Critical path items
147175
- Non-negotiable requirements
148176

149177
### 5. Risk Consolidation
178+
150179
- Combined risk assessment from all perspectives
151180
- Mitigation strategies
152181

153182
### 6. Final Verdict
183+
154184
- GO / NO-GO / CONDITIONAL recommendation
155185
- Required conditions if CONDITIONAL
156186
- Confidence level: [High | Medium | Low]
157187

158188
## Output
189+
159190
Write the complete council review to: `$ARGUMENTS.output_dir/REVIEW.md`
160191
```
161192

@@ -165,15 +196,18 @@ Write the complete council review to: `$ARGUMENTS.output_dir/REVIEW.md`
165196

166197
After council review, generate the implementation contract:
167198

168-
```markdown
199+
````markdown
169200
You are the TASK ARCHITECT — responsible for converting the council's unified plan into an actionable task checklist.
170201

171202
## Input
203+
172204
- Council Review: `$ARGUMENTS.output_dir/REVIEW.md`
173205
- Original Feature: $ARGUMENTS.query
174206

175207
## Directive
208+
176209
Create a precise, atomic task list that serves as the binding contract for implementation. Each task must be:
210+
177211
- **Binary**: Clearly done or not done
178212
- **Atomic**: Single responsibility
179213
- **Ordered**: Correct dependency sequence
@@ -185,47 +219,57 @@ Create a precise, atomic task list that serves as the binding contract for imple
185219
# Implementation Tasks: <Feature Title>
186220

187221
## Pre-Implementation
222+
188223
- [ ] Verify development environment setup
189224
- [ ] Create feature branch: `feature/<short-name>`
190225
- [ ] Review REVIEW.md council decisions
191226

192227
## Core Implementation
228+
193229
- [ ] Task 1: <specific action>
194-
- Files: `path/to/file.ext`
195-
- Acceptance: <how to verify>
230+
- Files: `path/to/file.ext`
231+
- Acceptance: <how to verify>
196232
- [ ] Task 2: <specific action>
197-
...
233+
...
198234

199235
## Integration
236+
200237
- [ ] Wire up components
201238
- [ ] Update configuration files
202239
- [ ] Add necessary imports/exports
203240

204241
## Testing
242+
205243
- [ ] Unit tests for <component>
206244
- [ ] Integration tests for <flow>
207245
- [ ] Edge case coverage per REVIEW.md
208246

209247
## Documentation
248+
210249
- [ ] Update relevant documentation
211250
- [ ] Add inline code comments for complex logic
212251
- [ ] Update CHANGELOG if applicable
213252

214253
## Verification
254+
215255
- [ ] All tests passing
216256
- [ ] Linting/formatting clean
217257
- [ ] Self-review against REVIEW.md
218258
- [ ] Ready for PR
219259

220260
## Completion Signature
261+
221262
- Total Tasks: <N>
222263
- Estimated Effort: <T>
223264
- Dependencies: <list>
224265
```
266+
````
225267

226268
## Output
269+
227270
Write the complete task contract to: `$ARGUMENTS.output_dir/TASKS.md`
228-
```
271+
272+
````
229273
230274
---
231275
@@ -258,15 +302,18 @@ After each task:
258302
## Progress Log
259303
- [x] Task N: Completed <timestamp>
260304
- Notes: <any relevant observations>
261-
```
305+
````
262306

263307
## Completion
308+
264309
When all tasks are checked:
310+
265311
1. Final verification against `$ARGUMENTS.output_dir/REVIEW.md`
266312
2. Run full test suite
267313
3. Update `$ARGUMENTS.output_dir/TASKS.md` with completion status
268314
4. Report ready for review
269-
```
315+
316+
````
270317
271318
---
272319
@@ -306,17 +353,17 @@ Generate a brief validation summary:
306353
307354
## Output
308355
Append validation results to: `$ARGUMENTS.output_dir/TASKS.md` under `## Validation Results`
309-
```
356+
````
310357

311358
---
312359

313360
## Quick Reference
314361

315-
| Phase | Input | Output | Key Action |
316-
|-------|-------|--------|------------|
317-
| 0 || INITIAL_REPORT + output_dir setup | Read CLAUDE.md, create output dir |
318-
| 1 | INITIAL_REPORT + query | `output_dir/PROPOSAL_*.md` | Generate N agent proposals |
319-
| 2 | All proposals | `output_dir/REVIEW.md` | Council synthesis |
320-
| 3 | REVIEW.md | `output_dir/TASKS.md` | Create task contract |
321-
| 4 | TASKS.md | Code changes | Implement features |
322-
| 5 | Implementation | Validation in TASKS.md | Verify & document |
362+
| Phase | Input | Output | Key Action |
363+
| ----- | ---------------------- | --------------------------------- | --------------------------------- |
364+
| 0 | | INITIAL_REPORT + output_dir setup | Read CLAUDE.md, create output dir |
365+
| 1 | INITIAL_REPORT + query | `output_dir/PROPOSAL_*.md` | Generate N agent proposals |
366+
| 2 | All proposals | `output_dir/REVIEW.md` | Council synthesis |
367+
| 3 | REVIEW.md | `output_dir/TASKS.md` | Create task contract |
368+
| 4 | TASKS.md | Code changes | Implement features |
369+
| 5 | Implementation | Validation in TASKS.md | Verify & document |

.specs/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)