pub fn improve_command(_verbose: bool) -> Result<()>Expand description
Run the improve command.
This command gathers context from git and previous autom8 sessions, displays a summary, and spawns an interactive Claude session for follow-up work.
The workflow is:
- Check if we’re in a git repo (required)
- Gather context (git, spec, session knowledge)
- Display summary to the user (including any edge case warnings)
- Build the context prompt
- Spawn interactive Claude session
Edge cases handled:
- Not in a git repo: shows error with suggestion
- On main/master branch: shows warning but proceeds
- No session/spec found: shows message that only git context is available
- No commits vs base: shows “no commits yet” in summary
§Arguments
_verbose- Reserved for future extensibility (currently unused)
§Returns
Ok(())- Session completedErr- Not in git repo, context loading failed, or Claude spawn failed