danielrosehill commited on
Commit
364e204
·
1 Parent(s): 6a506c2

Add missing critical steps to flow with subheading format

Browse files

- Added Step 1: Project Analysis
- Added Step 2: Intelligent Crew Selection (was missing!)
- Added Step 3: Context Window Calculation (was missing!)
- Added Step 4: Context Optimization - THE CRITICAL STEP
- Restructured as subheadings instead of table for better readability
- Now properly shows the complete 9-step flow
- Emphasized context optimization as the key innovation

Files changed (1) hide show
  1. source/README.md +31 -8
source/README.md CHANGED
@@ -140,14 +140,37 @@ This completes the flow.
140
 
141
  ### Complete Flow Sequence
142
 
143
- | Step | Action | Description |
144
- |------|--------|-------------|
145
- | 1 | **Copy to temp** | Crew gets copied to a temporary directory for processing |
146
- | 2 | **Variable insertion** | Crew configs are edited slightly for the task at hand through variable substitution |
147
- | 3 | **Deploy to workspace** | Processed crew gets copied into the project directory at `./.claude/agents` |
148
- | 4 | **Generate overview** | CLAUDE.md gets created in the workspace containing a brief overview of the crew |
149
- | 5 | **Confirmation** | User receives success message confirming their repo has been created with an optimized team of subagents that won't overrun context |
150
- | 6 | **Reusability** | User can create as many stock agents as they wish, knowing they'll be kept safe in the library and assembled when needed for future projects |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
 
152
  ## Reference
153
 
 
140
 
141
  ### Complete Flow Sequence
142
 
143
+ #### Step 1: Project Analysis
144
+ HTPG evaluates the project specification and requirements that the user is proposing.
145
+
146
+ #### Step 2: Intelligent Crew Selection
147
+ HTPG draws up a shortlist of subagents from the Agent Farm to form a "crew" with minimal task overlap and maximal synergy for the specific project needs.
148
+
149
+ #### Step 3: Context Window Calculation
150
+ HTPG calculates the approximate cumulative context window that the desired crew would impose on the system.
151
+
152
+ #### Step 4: Context Optimization (The Critical Step!)
153
+ If the crew exceeds the user-defined context limit, HTPG makes intelligent substitutions until an optimized crew is assembled that fits within constraints. Tactics include:
154
+ - Removing least important subagents
155
+ - Truncating descriptions or shortening system prompts of constituent agents
156
+
157
+ #### Step 5: Crew Staging
158
+ Selected and optimized crew gets copied to a temporary directory for processing.
159
+
160
+ #### Step 6: Config Adaptation
161
+ Crew configs are edited for the task at hand through variable substitution, giving cookie-cutter subagents project-specific context.
162
+
163
+ #### Step 7: Deployment to Workspace
164
+ Processed crew gets copied into the project directory at `./.claude/agents`.
165
+
166
+ #### Step 8: Documentation Generation
167
+ CLAUDE.md gets created in the workspace containing a brief overview of the assembled crew and their roles.
168
+
169
+ #### Step 9: User Confirmation
170
+ User receives a success message confirming their repo has been created with an optimized team of subagents that won't overrun context.
171
+
172
+ ### The Result
173
+ Users can create as many stock agents as they wish, knowing they'll be kept safe in the Agent Farm library and intelligently assembled when needed for future projects.
174
 
175
  ## Reference
176