Overhaul unpac-claude for autonomous code analysis mode
Major enhancements to the Claude agent:
- Add autonomous mode (-a) that continuously analyzes all projects
- Add workspace path argument (-w) for specifying workspace location
- Add periodic sync (unpac status/push) with configurable interval
- Add rate limit handling with exponential backoff (5s base, 5min max)
New file operation tools:
- read_file: Read source code and config files
- write_file: Write/update files (code, STATUS.md)
- list_directory: Explore directory structure
- glob_files: Find files by pattern (*.ml, etc)
New shell execution tool:
- run_shell: Execute commands like dune build/test
New workspace sync tools:
- unpac_status_sync: Update README.md and sync state
- unpac_push: Push all branches to remote
- git_commit: Commit changes with message
Autonomous mode workflow:
1. List all projects in workspace
2. For each project, read STATUS.md and source files
3. Analyze code quality (Stdlib combinators, higher-order functions)
4. Check test coverage and flag missing tests
5. Update STATUS.md with findings and shortcomings
6. Make focused improvements and commit changes
7. Periodically sync with remote
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>