@@ -14,11 +14,13 @@ hooks:
1414 1. **Conversation Analyzed**: Did you review the conversation for DeepWork job executions?
1515 2. **Confusion Identified**: Did you identify points of confusion, errors, or inefficiencies?
1616 3. **Instructions Improved**: Were job instructions updated to address identified issues?
17- 4. **Bespoke Learnings Captured**: Were run-specific learnings added to AGENTS.md?
18- 5. **File References Used**: Do AGENTS.md entries reference other files where appropriate?
19- 6. **Working Folder Correct**: Is AGENTS.md in the correct working folder for the job?
20- 7. **Generalizable Separated**: Are generalizable improvements in instructions, not AGENTS.md?
21- 8. **Sync Complete**: Has `deepwork sync` been run if instructions were modified?
17+ 4. **Instructions Concise**: Are instructions free of redundancy and unnecessary verbosity?
18+ 5. **Shared Content Extracted**: Is lengthy/duplicated content extracted into referenced files?
19+ 6. **Bespoke Learnings Captured**: Were run-specific learnings added to AGENTS.md?
20+ 7. **File References Used**: Do AGENTS.md entries reference other files where appropriate?
21+ 8. **Working Folder Correct**: Is AGENTS.md in the correct working folder for the job?
22+ 9. **Generalizable Separated**: Are generalizable improvements in instructions, not AGENTS.md?
23+ 10. **Sync Complete**: Has `deepwork sync` been run if instructions were modified?
2224
2325 If ANY criterion is not met, continue working to address it.
2426 If ALL criteria are satisfied, include `<promise>✓ Quality Criteria Met</promise>` in your response.
@@ -79,9 +81,8 @@ Analyze the conversation history to extract learnings and improvements, then app
7981 - Note the order of execution
8082
81832 . ** Identify the working folder**
82- - Find where outputs were created during job execution
83- - This is typically specified in the job's working directory
84- - Common patterns: project root, ` ./output/ ` , or job-specific directories
84+ - Should be clear from conversation history where work was done
85+ - If unclear, run ` git diff ` to see where changes were made on the branch
8586
86873 . ** If no job was specified** , ask the user:
8788 - "Which DeepWork job would you like me to learn from?"
@@ -150,15 +151,46 @@ For each generalizable learning:
150151 - Clarify ambiguous instructions
151152 - Update quality criteria if needed
152153
153- 3 . ** Preserve instruction structure**
154+ 3 . ** Keep instructions concise**
155+ - Avoid redundancy - don't repeat the same guidance in multiple places
156+ - Be direct - remove verbose explanations that don't add value
157+ - Prefer bullet points over paragraphs where appropriate
158+
159+ 4 . ** Preserve instruction structure**
154160 - Keep existing sections (Objective, Task, Process, Output Format, Quality Criteria)
155161 - Add to appropriate sections rather than restructuring
156162 - Maintain consistency with other steps
157163
158- 4 . ** Track changes for changelog**
164+ 5 . ** Track changes for changelog**
159165 - Note what was changed and why
160166 - Prepare changelog entry for job.yml
161167
168+ ### Step 4b: Extract Shared Content into Referenced Files
169+
170+ Review all instruction files for the job and identify content that:
171+ - Appears in multiple step instructions (duplicated)
172+ - Is lengthy and could be extracted for clarity
173+ - Would benefit from being maintained in one place
174+
175+ ** Extract to shared files:**
176+
177+ 1 . ** Create shared files** in ` .deepwork/jobs/[job_name]/steps/shared/ `
178+ - ` conventions.md ` - Coding/formatting conventions used across steps
179+ - ` examples.md ` - Common examples referenced by multiple steps
180+ - ` schemas.md ` - Data structures or formats used throughout
181+
182+ 2 . ** Reference from instructions** using markdown includes or explicit references:
183+ ``` markdown
184+ ## Conventions
185+
186+ Follow the conventions defined in ` shared/conventions.md ` .
187+ ```
188+
189+ 3 . ** Benefits of extraction:**
190+ - Single source of truth - update once, applies everywhere
191+ - Shorter instruction files - easier to read and maintain
192+ - Consistent guidance across steps
193+
162194### Step 5: Create/Update AGENTS.md (Bespoke Learnings)
163195
164196The AGENTS.md file captures project-specific knowledge that helps future agent runs.
@@ -285,6 +317,8 @@ When adding entries to AGENTS.md, prefer these patterns:
285317- Points of confusion and inefficiency are identified
286318- Learnings are correctly classified (generalizable vs bespoke)
287319- Job instructions updated for generalizable improvements
320+ - Instructions are concise - no redundancy or unnecessary verbosity
321+ - Shared/lengthy content extracted into referenced files where appropriate
288322- AGENTS.md created/updated with bespoke learnings
289323- File references used instead of duplicating content
290324- AGENTS.md is in the correct working folder
@@ -415,11 +449,13 @@ Verify the learning process meets ALL quality criteria before completing:
4154491 . ** Conversation Analyzed** : Did you review the conversation for DeepWork job executions?
4164502 . ** Confusion Identified** : Did you identify points of confusion, errors, or inefficiencies?
4174513 . ** Instructions Improved** : Were job instructions updated to address identified issues?
418- 4 . ** Bespoke Learnings Captured** : Were run-specific learnings added to AGENTS.md?
419- 5 . ** File References Used** : Do AGENTS.md entries reference other files where appropriate?
420- 6 . ** Working Folder Correct** : Is AGENTS.md in the correct working folder for the job?
421- 7 . ** Generalizable Separated** : Are generalizable improvements in instructions, not AGENTS.md?
422- 8 . ** Sync Complete** : Has ` deepwork sync ` been run if instructions were modified?
452+ 4 . ** Instructions Concise** : Are instructions free of redundancy and unnecessary verbosity?
453+ 5 . ** Shared Content Extracted** : Is lengthy/duplicated content extracted into referenced files?
454+ 6 . ** Bespoke Learnings Captured** : Were run-specific learnings added to AGENTS.md?
455+ 7 . ** File References Used** : Do AGENTS.md entries reference other files where appropriate?
456+ 8 . ** Working Folder Correct** : Is AGENTS.md in the correct working folder for the job?
457+ 9 . ** Generalizable Separated** : Are generalizable improvements in instructions, not AGENTS.md?
458+ 10 . ** Sync Complete** : Has ` deepwork sync ` been run if instructions were modified?
423459
424460If ANY criterion is not met, continue working to address it.
425461If ALL criteria are satisfied, include ` <promise>✓ Quality Criteria Met</promise> ` in your response.
0 commit comments