You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(library): add Nix flake detection to repair workflow errata step
The errata step now detects flake.nix and offers library job setup via
sparse checkout. Silent when already configured, informational when no
flake is present. Adds quality criterion and bumps version to 1.5.1.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: src/deepwork/standard_jobs/deepwork_jobs/AGENTS.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,18 @@ Mitigation strategies documented in `define.md`:
64
64
65
65
The github_outreach `final_report` step had `analyze_repos` as a file input but was missing it from the `dependencies` list. This was caught at workflow start time but could have been caught earlier during the `implement` step. The define step's validation rules already mention this (`from_step must be in dependencies`) but it was missed during creation.
Core commands for managing DeepWork jobs. These commands help you define new multi-step
@@ -267,3 +267,4 @@ steps:
267
267
"Rules Folder Removed": "`.deepwork/rules/` folder is gone."
268
268
"Rules Job Removed": "`.deepwork/jobs/deepwork_rules/` is gone."
269
269
"MCP Server Entry Removed": "The `deepwork serve` entry is removed from `.mcp.json` (or the file is deleted if empty)."
270
+
"Library Jobs Offered": "If a flake.nix exists without DEEPWORK_ADDITIONAL_JOBS_FOLDERS, the user was offered library job setup. If no flake.nix exists, the Nix devshell option was mentioned. If already configured, nothing was said."
3. **If already configured**: Do nothing. No output about library jobs — this is silent.
196
+
197
+
4. **If `flake.nix` exists but library jobs are NOT configured**: Offer to set it up. Tell the user:
198
+
> Your project uses a Nix flake. You can access shared DeepWork library jobs by adding a sparse checkout to your shellHook. This keeps library jobs live and up-to-date without copying them into your project.
199
+
200
+
Then suggest adding to their `flake.nix` shellHook:
201
+
```nix
202
+
shellHook = ''
203
+
export REPO_ROOT=$(git rev-parse --show-toplevel)
204
+
205
+
# Clone DeepWork library jobs if not present
206
+
if [ ! -d "$REPO_ROOT/.deepwork/upstream" ]; then
207
+
git clone --sparse --filter=blob:none \
208
+
https://github.com/Unsupervisedcom/deepwork.git \
209
+
"$REPO_ROOT/.deepwork/upstream"
210
+
git -C "$REPO_ROOT/.deepwork/upstream" sparse-checkout set --cone library/jobs/
5. **If no `flake.nix` exists**: Mention it as an option. Tell the user:
229
+
> DeepWork library jobs can be accessed via a Nix dev shell with `DEEPWORK_ADDITIONAL_JOBS_FOLDERS`. See `library/jobs/README.md` in the DeepWork repo for setup instructions.
230
+
231
+
Do not go into detail — just make the user aware.
232
+
233
+
### Step 8: Verify Git Status
180
234
181
235
Check that the cleanup hasn't left untracked garbage:
0 commit comments