Commit 3c03f98
feat: port SDLC enhancements from aegis-daemon — --bare, Stop hook, --add-dir
- Add --bare flag to build_claude_cmd() for faster Claude startup (skips
CLAUDE.md discovery, MCP init, auto-memory); hooks still load via --settings
- Add --add-dir support: work_dir always passed first (required by --bare for
CLAUDE.md re-discovery), plus dynamically detected cross-repo dirs
- Add detect_cross_repo_dirs() that scans REPOS_DIR for repos referenced in
the task prompt and passes them as additional --add-dir flags
- Create hooks/stop-checkpoint.sh Stop hook: captures checkpoint on every
stop, re-engages Claude if TypeScript errors detected, allows stop on
second fire (stop_hook_active=true) to prevent infinite loops
- Register Stop hook in ensure_hooks_settings() JSON template
- Wire CC_CHECKPOINT_FILE env var into execute_task() around claude invocation
- Warn when ANTHROPIC_API_KEY is unset (required by --bare mode)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 75aa64b commit 3c03f98
2 files changed
Lines changed: 141 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
249 | 259 | | |
250 | 260 | | |
251 | 261 | | |
252 | 262 | | |
253 | 263 | | |
254 | 264 | | |
255 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
256 | 286 | | |
257 | 287 | | |
258 | 288 | | |
259 | | - | |
| 289 | + | |
260 | 290 | | |
261 | 291 | | |
262 | 292 | | |
263 | 293 | | |
| 294 | + | |
264 | 295 | | |
265 | 296 | | |
266 | 297 | | |
267 | 298 | | |
268 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
269 | 309 | | |
270 | 310 | | |
271 | 311 | | |
| |||
418 | 458 | | |
419 | 459 | | |
420 | 460 | | |
421 | | - | |
| 461 | + | |
422 | 462 | | |
423 | | - | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
424 | 486 | | |
425 | 487 | | |
426 | 488 | | |
427 | 489 | | |
428 | 490 | | |
429 | | - | |
| 491 | + | |
| 492 | + | |
430 | 493 | | |
| 494 | + | |
431 | 495 | | |
432 | 496 | | |
433 | 497 | | |
| |||
0 commit comments