Skip to content

feat: Add pu recap command#115

Open
2witstudios wants to merge 1 commit intomainfrom
pu/feature-2
Open

feat: Add pu recap command#115
2witstudios wants to merge 1 commit intomainfrom
pu/feature-2

Conversation

@2witstudios
Copy link
Owner

Summary

  • Adds pu recap — a new CLI command that answers "what happened while I was away?" by combining agent status with git diff stats into a single structured view
  • Full protocol plumbing: Request::Recap / Response::RecapResult with RecapWorktreeEntry and RecapAgentEntry data structures
  • Rich terminal output: status icons (● streaming, ◆ waiting, ✓ done, ✗ broken), duration formatting, prompt preview, diff stats with color-coded +/- counts, and an aggregate summary line

Example output

━━━ Workspace Recap ━━━

  ✓ feature-auth (ag-a1b2) done 12m
    4 file(s), +127, -23
    "Add user authentication middleware"

  ● refactor-db (ag-e5f6) streaming 45m
    7 file(s), +342, -89
    "Refactor database connection pooling"

  1 done, 1 streaming · 11 file(s) · +469, -112

Test plan

  • All 425 existing + new tests pass (cargo test — 0 failures)
  • Clippy clean (cargo clippy — 0 warnings)
  • Pre-commit hooks pass (formatting + hygiene)
  • Manual test: pu recap with active workspace agents
  • Manual test: pu recap --json produces valid JSON

🤖 Generated with Claude Code

When you dispatch multiple agents and step away, the first question on
return is "what happened?" — `pu recap` answers it instantly by combining
agent status with git diff stats into a single structured view.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@coderabbitai
Copy link

coderabbitai bot commented Mar 8, 2026

Warning

Rate limit exceeded

@2witstudios has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 17 minutes and 32 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 14708dc2-f290-4e64-b06d-bc0f57ce36ab

📥 Commits

Reviewing files that changed from the base of the PR and between 55aa882 and e48ea7d.

📒 Files selected for processing (6)
  • crates/pu-cli/src/commands/mod.rs
  • crates/pu-cli/src/commands/recap.rs
  • crates/pu-cli/src/main.rs
  • crates/pu-cli/src/output.rs
  • crates/pu-core/src/protocol.rs
  • crates/pu-engine/src/engine.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch pu/feature-2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant