| name | are-rebuild |
| description | Reconstruct project from specification documents (experimental) |
| disable-model-invocation | true |
Reconstruct a project from specification documents using agents-reverse-engineer.
Run the rebuild command in the background and monitor progress in real time.
Steps
-
Read version: Read .claude/ARE-VERSION → store as $VERSION. Show the user: agents-reverse-engineer v$VERSION
-
Run the rebuild command in the background using run_in_background: true:
npx agents-reverse-engineer@$VERSION rebuild --backend claude $ARGUMENTS
-
Monitor progress by polling the latest progress log:
- Wait ~15 seconds (use
sleep 15 in Bash), then use Glob to find the latest .agents-reverse-engineer/progress-*.log file, and Read it (use the offset parameter to read only the last ~20 lines for long files)
- Show the user a brief progress update (e.g. "4/12 rebuild units completed")
- Check whether the background task has completed using
TaskOutput with block: false
- Repeat until the background task finishes
- Important: Keep polling even if no progress log exists yet (the command takes a few seconds to start writing)