Skip to content

Commit 863a1e8

Browse files
authored
Merge pull request #8 from lambda-curry/feature/core-workspace-split
Update TechStackAgent documentation to reflect new template location …
2 parents 2cbeaa8 + fb4bd2c commit 863a1e8

47 files changed

Lines changed: 1446 additions & 174 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devagent/agents/TaskPlanner.md

Lines changed: 0 additions & 54 deletions
This file was deleted.

.devagent/core/AGENTS.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Agent Roster
2+
3+
Agents can be invoked when explicitly referenced with a leading hash (for example, `#ResearchAgent`) or when their agent file is mentioned (for example, `ResearchAgent.md`)
4+
5+
## How to Think About Agents
6+
7+
- Agents are structured prompt workflows that run inside this environment; they are not separate people to schedule meetings with.
8+
- You trigger an agent by writing a clear instruction block that includes the agent hash and required inputs; the response is the agent run.
9+
- The executing developer has standing approval to invoke any agent immediately; if a review is needed, capture it in a log after the run instead of delaying execution.
10+
- Provide all context and artifacts in the invocation, because agents cannot gather it unless another agent is tasked.
11+
- You remain the coordinator: log decisions and move artifacts forward rather than expecting agent-to-agent conversations.
12+
- Choose the lightest sequence that fits the work; simple enhancements can go straight to #ResearchAgent → #TaskExecutor, while complex features chain through #ProductMissionPartner → #FeatureClarifyAgent → #ResearchAgent → #SpecArchitect → #TaskPlanner → #TaskExecutor.
13+
- Choose the lightest sequence that fits the work; simple enhancements can go straight to #ResearchAgent → #TaskExecutor, while complex features chain through #ProductMissionPartner → #FeatureBrainstormAgent → #ResearchAgent → #SpecArchitect → #TaskPlanner → #TaskExecutor.
14+
- Workflows trigger manually—there is no background scheduler—so note any recurring reviews in change logs when you perform them.
15+
16+
## Agents
17+
18+
- #ProductMissionPartner — Co-creates the product mission and supporting assets. Utilize when product context or mission updates are needed. See `.devagent/core/agents/ProductMissionPartner.md`.
19+
- #FeatureClarifyAgent — Validates requirement completeness through structured clarification sessions. Utilize when feature ideas need validation before spec work, when specs have requirement gaps, or when requirements need completeness review. See `.devagent/core/agents/FeatureClarifyAgent.md`.
20+
- #FeatureBrainstormAgent — Facilitates structured ideation to generate, cluster, and prioritize feature candidates. Utilize when exploring solution spaces before research or when generating ideas from mission goals. See `.devagent/core/agents/FeatureBrainstormAgent.md`.
21+
- #ResearchAgent — Maps open questions and gathers vetted references. Utilize when a new feature needs discovery or spec clarification. See `.devagent/core/agents/ResearchAgent.md`.
22+
- #SpecArchitect — Synthesizes research into review-ready specs. Utilize when a spec draft or revision is required. See `.devagent/core/agents/SpecArchitect.md`.
23+
- #TaskPlanner — Breaks approved specs into sequenced, test-aware tasks. Utilize when planning implementation work. See `.devagent/core/agents/TaskPlanner.md`.
24+
- #TaskExecutor — Implements approved task packets with guardrails and validation. Utilize when tasks are ready for execution. See `.devagent/core/agents/TaskExecutor.md`.
25+
- #TechStackAgent — Creates or updates comprehensive tech stack documentation by analyzing codebases and gathering developer context. Utilize when documenting technology choices for a new or existing project. See `.devagent/core/agents/TechStackAgent.md`.
26+
- #AgentBuilder — Designs high-quality agent prompts and instruction sheets that integrate with the DevAgent roster. Utilize when creating new agents or updating agent templates. See `.devagent/core/agents/AgentBuilder.md`.
27+
- #CodegenBackgroundAgent — Transforms task specs into optimized prompts and deploys them as background agents via Codegen API. Utilize when tasks can be executed asynchronously with external AI agents. See `.devagent/core/agents/codegen/CodegenBackgroundAgent.md`.

.devagent/core/README.md

Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
1+
# DevAgent Core Kit
2+
3+
The DevAgent **core** kit is a portable collection of agent instruction sheets and reusable templates that enable structured product development workflows. Copy this entire `core/` directory to any project to gain immediate access to the full DevAgent roster and workflow templates.
4+
5+
## What's Included
6+
7+
- **Agent Instruction Sheets** (`agents/`) - Detailed briefs for 10+ specialized agents covering ideation, research, specification, planning, and execution
8+
- **Document Templates** (`templates/`) - Reusable structures for research packets, specs, task plans, and feature hubs
9+
- **Agent Roster** (`AGENTS.md`) - Quick reference guide for when to invoke each agent
10+
- **This Setup Guide** (`README.md`) - Instructions for initializing DevAgent in new projects
11+
12+
## Core vs Workspace
13+
14+
DevAgent separates **portable** artifacts (core) from **project-specific** artifacts (workspace):
15+
16+
- **`.devagent/core/`** (this directory) - PORTABLE agent kit that can be copied to any project
17+
- **`.devagent/workspace/`** - PROJECT-SPECIFIC product mission, features, research, and decisions
18+
19+
This separation enables **5-minute setup** for new projects: copy `core/`, create `workspace/` skeleton, customize your mission, and start working.
20+
21+
## Directory Structure
22+
23+
```
24+
.devagent/
25+
├── core/ # PORTABLE - Copy to any project
26+
│ ├── agents/ # Agent instruction sheets
27+
│ │ ├── ProductMissionPartner.md
28+
│ │ ├── FeatureClarifyAgent.md
29+
│ │ ├── FeatureBrainstormAgent.md
30+
│ │ ├── ResearchAgent.md
31+
│ │ ├── SpecArchitect.md
32+
│ │ ├── TaskPlanner.md
33+
│ │ ├── TaskExecutor.md
34+
│ │ ├── TechStackAgent.md
35+
│ │ ├── AgentBuilder.md
36+
│ │ └── codegen/
37+
│ │ └── CodegenBackgroundAgent.md
38+
│ ├── templates/ # Reusable document templates
39+
│ │ ├── agent-brief-template.md
40+
│ │ ├── brainstorm-packet-template.md
41+
│ │ ├── clarification-packet-template.md
42+
│ │ ├── clarification-questions-framework.md
43+
│ │ ├── constitution-template.md
44+
│ │ ├── research-packet-template.md
45+
│ │ ├── spec-document-template.md
46+
│ │ ├── task-plan-template.md
47+
│ │ ├── task-prompt-template.md
48+
│ │ ├── tech-stack-template.md
49+
│ │ └── feature-hub-template/ # Template for new feature hubs
50+
│ │ ├── README.md
51+
│ │ ├── research/
52+
│ │ └── spec/
53+
│ ├── AGENTS.md # Agent roster documentation
54+
│ └── README.md # Core kit usage & setup instructions
55+
56+
└── workspace/ # PROJECT-SPECIFIC - Changes per project
57+
├── product/ # Product mission & strategy
58+
│ ├── mission.md
59+
│ ├── roadmap.md
60+
│ └── guiding-questions.md
61+
├── memory/ # Project constitution & decisions
62+
│ ├── constitution.md
63+
│ ├── decision-journal.md
64+
│ ├── tech-stack.md
65+
│ ├── overview.md
66+
│ └── _archive/ # Historical constitution snapshots
67+
├── features/ # Feature hubs with research & specs
68+
│ ├── README.md
69+
│ └── YYYY-MM-DD_feature-slug/
70+
│ ├── README.md
71+
│ ├── research/
72+
│ │ └── YYYY-MM-DD_topic.md
73+
│ └── spec/
74+
│ └── YYYY-MM-DD_spec.md
75+
├── research/ # Cross-cutting research
76+
│ └── YYYY-MM-DD_topic.md
77+
└── tasks/ # Task execution logs (future)
78+
└── YYYY-MM-DD_task-id.md
79+
```
80+
81+
## Quick Setup (< 5 Minutes)
82+
83+
Initialize DevAgent in a new project with these steps:
84+
85+
### 1. Copy the Core Kit
86+
```bash
87+
# From an existing DevAgent project
88+
cp -r .devagent/core /path/to/new-project/.devagent/
89+
90+
# Or clone this repository and copy core/
91+
git clone <this-repo-url>
92+
cp -r devagent/.devagent/core /path/to/new-project/.devagent/
93+
```
94+
95+
### 2. Create Workspace Skeleton
96+
```bash
97+
cd /path/to/new-project/.devagent
98+
mkdir -p workspace/{product,memory,features,research,tasks}
99+
mkdir -p workspace/memory/_archive
100+
```
101+
102+
### 3. Initialize Product Mission
103+
```bash
104+
# Create your product mission document
105+
cat > workspace/product/mission.md << 'EOF'
106+
# Product Mission
107+
108+
## Vision
109+
[What does success look like?]
110+
111+
## Target Users
112+
[Who are we building for?]
113+
114+
## Core Value Proposition
115+
[What unique value do we provide?]
116+
117+
## Success Metrics
118+
[How will we measure impact?]
119+
EOF
120+
```
121+
122+
### 4. Invoke Your First Agent
123+
Open your AI chat interface (Cursor, Codegen, etc.) and reference:
124+
```
125+
@.devagent/core/agents/ProductMissionPartner.md
126+
127+
Help me refine our product mission based on:
128+
- Our target market is [X]
129+
- Our key differentiator is [Y]
130+
- Our success criteria are [Z]
131+
```
132+
133+
### 5. Start Building
134+
- Use `#ResearchAgent` to explore new features
135+
- Use `#SpecArchitect` to document implementations
136+
- Use `#TaskPlanner` and `#TaskExecutor` to break down work
137+
- All artifacts save to `workspace/` while `core/` remains portable
138+
139+
**Target Setup Time:** Under 5 minutes from copy to first agent invocation.
140+
141+
## How Agents Use This Structure
142+
143+
**Agents Read From:**
144+
- `core/agents/` - To understand their role and workflow
145+
- `core/templates/` - To structure their outputs consistently
146+
- `workspace/product/` - To align with product mission and strategy
147+
- `workspace/memory/` - To respect project constitution and decisions
148+
149+
**Agents Write To:**
150+
- `workspace/features/YYYY-MM-DD_feature-slug/` - Research packets, specs
151+
- `workspace/memory/` - Constitution updates, decision journal entries
152+
- `workspace/research/` - Cross-cutting research that spans multiple features
153+
- `workspace/tasks/` - Task execution logs (future capability)
154+
155+
**Key Principle:** `core/` provides the *how* (agent instructions + templates), while `workspace/` captures the *what* (your project's specific artifacts).
156+
157+
## Usage Notes
158+
159+
### Updating the Core Kit
160+
- When DevAgent core is updated, simply replace your `core/` directory with the new version
161+
- Your `workspace/` remains untouched during core updates
162+
- Review changelog below before updating to understand changes
163+
164+
### Customizing for Your Team
165+
- **Recommended:** Keep `core/` unmodified for easy updates
166+
- **Team-specific customizations:** Add to `workspace/memory/constitution.md` instead
167+
- **Template extensions:** Reference core templates but save customized versions in your project docs
168+
169+
### Cross-Project Learning
170+
- Share research and patterns by copying specific `workspace/` subdirectories between projects
171+
- The portable `core/` kit means setup is always < 5 minutes
172+
- Consider maintaining an internal "DevAgent template project" with your team's baseline `workspace/` structure
173+
174+
## Agent Roster Quick Reference
175+
176+
See `AGENTS.md` for full details. Common workflows:
177+
178+
**Simple Enhancement:**
179+
1. `#ResearchAgent` - Explore the problem space
180+
2. `#TaskExecutor` - Implement directly from research
181+
182+
**Complex Feature:**
183+
1. `#ProductMissionPartner` - Validate mission alignment
184+
2. `#FeatureBrainstormAgent` - Generate solution ideas
185+
3. `#ResearchAgent` - Gather technical context
186+
4. `#SpecArchitect` - Document the design
187+
5. `#TaskPlanner` - Break into tasks
188+
6. `#TaskExecutor` - Implement step by step
189+
190+
**When Requirements Are Unclear:**
191+
- Insert `#FeatureClarifyAgent` after ideation to validate completeness
192+
- Use structured clarification sessions before committing to specs
193+
194+
## Updates & Changelog
195+
196+
### Version History
197+
- **2025-10-01** - Initial core-workspace split release
198+
- Separated portable core from project-specific workspace
199+
- Added comprehensive setup documentation
200+
- Established < 5 minute setup target
201+
202+
### Upcoming Features
203+
- Enhanced task execution logging in `workspace/tasks/`
204+
- Agent-to-agent handoff automation
205+
- Template versioning and migration tools
206+
207+
---
208+
209+
**Questions or Issues?** Review individual agent instructions in `agents/` or see the root `README.md` for project-specific context.
210+
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
- Clarify usage patterns, optional approval gates, and escalation paths so teams can wire resources into their own environments without assuming extra roles.
1717

1818
## Knowledge Sources
19-
- Internal: `.devagent/agents/`, `.devagent/product/`, `.devagent/templates/`, `.devagent/README.md`.
19+
- Internal: `.devagent/core/agents/`, `.devagent/workspace/product/`, `.devagent/core/templates/`, `.devagent/README.md`.
2020
- External: Context7 library docs for tooling references, Exa search for industry examples when inputs are sparse.
2121
- Retrieval etiquette: Reuse existing patterns when agents share responsibilities; cite new research in `guiding-questions.md` if the source is tentative.
2222

2323
## Workflow
2424
1. Kickoff: Confirm mission statement and desired outputs.
2525
2. Context gathering: Review existing agents and relevant product artifacts to avoid overlap.
26-
3. Outline: Start from `.devagent/templates/agent-brief-template.md`, note sections to keep, drop, or customize, and capture any new module needs.
26+
3. Outline: Start from `.devagent/core/templates/agent-brief-template.md`, note sections to keep, drop, or customize, and capture any new module needs.
2727
4. Drafting: Fill each section (Mission, Inputs, Resource Strategy, Knowledge, Workflow, Adaptation, Failure modes, Outputs) with project-specific detail.
2828
5. Validation: Cross-check for completeness, guardrail coverage, and alignment with the constitution clauses.
2929
6. Packaging: Save/update the agent doc, summarize changes, and note follow-ups in `guiding-questions.md` if needed.
@@ -37,8 +37,8 @@
3737
- Surface conflicts with existing agents (duplicated mission or overlapping scope) and request direction before proceeding.
3838

3939
## Expected Output
40-
- Markdown agent brief saved under `.devagent/agents/<AgentName>.md` using the standard template or a documented variation.
41-
- Updates to shared templates when the base structure evolves, committed to `.devagent/templates/`.
40+
- Markdown agent brief saved under `.devagent/core/agents/<AgentName>.md` using the standard template or a documented variation.
41+
- Updates to shared templates when the base structure evolves, committed to `.devagent/core/templates/`.
4242

4343
## Follow-up Hooks
4444
- Recommend which roster agents should review or consume the new agent (e.g., #SpecArchitect, #TaskPlanner).

0 commit comments

Comments
 (0)