Skip to content

feat: add multiclaude refresh command for on-demand worktree sync#314

Merged
dlorenc merged 1 commit intodlorenc:mainfrom
aronchick:work/gentle-otter
Jan 28, 2026
Merged

feat: add multiclaude refresh command for on-demand worktree sync#314
dlorenc merged 1 commit intodlorenc:mainfrom
aronchick:work/gentle-otter

Conversation

@aronchick
Copy link
Copy Markdown
Contributor

Summary

  • Adds trigger_refresh socket command in daemon for programmatic refresh triggering
  • Adds multiclaude refresh CLI command that triggers immediate worktree sync
  • Allows merge-queue or users to force refresh after PRs merge instead of waiting for 5-minute polling interval

Addresses P0 roadmap item "Worktree sync: Keep agent worktrees in sync with main as PRs merge"

Changes

File Change
internal/daemon/daemon.go Added handleTriggerRefresh handler and trigger_refresh socket command
internal/cli/cli.go Added refresh command registration and implementation

Test plan

  • go build ./cmd/multiclaude - compiles successfully
  • go test ./internal/daemon/... - all tests pass
  • go test ./internal/cli/... - all tests pass
  • Manual test: multiclaude refresh triggers refresh and shows success message
  • Daemon logs confirm refresh is executed

Usage

# Trigger immediate worktree refresh for all agents
multiclaude refresh

🤖 Generated with Claude Code

Addresses P0 roadmap item "Worktree sync". Adds:
- trigger_refresh socket command in daemon
- multiclaude refresh CLI command that triggers immediate worktree sync
- Allows merge-queue or users to force refresh after PRs merge

The existing 5-minute refresh loop continues unchanged; this adds
on-demand capability for faster sync when needed.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@aronchick aronchick marked this pull request as ready for review January 26, 2026 00:55
@aronchick
Copy link
Copy Markdown
Contributor Author

Merge Queue Approval

This PR has been reviewed and is ready to merge:

  • CI: All 6 jobs passing
  • Reviews: No blocking reviews
  • Scope: Matches title (refresh command for worktree sync)
  • ROADMAP: Directly addresses P0 item "Worktree sync: Keep agent worktrees in sync with main as PRs merge"
  • Size: Small (+51/-0 lines, 2 files)

Recommended action: Merge via squash

🤖 Approved by merge-queue agent

@aronchick
Copy link
Copy Markdown
Contributor Author

✅ APPROVED FOR MERGE

Merge Queue Evaluation: This PR is approved and ready for upstream maintainer to merge.

Status:

  • ✅ CI: All checks passing
  • ✅ Scope: Matches title - adds refresh command (51 additions, 2 files)
  • ✅ Roadmap: ✅ Addresses P0 'Worktree sync' roadmap item
  • ✅ Size: Small and focused (51 additions, 0 deletions)
  • ✅ Type: Feature - adds multiclaude refresh command
  • ✅ No reviews blocking

What it adds:

  • multiclaude refresh CLI command for on-demand worktree sync
  • trigger_refresh socket API endpoint
  • Allows immediate sync instead of waiting for 5-minute polling interval

Roadmap alignment: P0 item states "Worktree sync: Keep agent worktrees in sync with main as PRs merge" - this provides the manual trigger mechanism.

Upstream maintainer: This PR is ready to merge whenever you're ready.

@dlorenc dlorenc added the multiclaude PRs created by multiclaude workers label Jan 28, 2026
@dlorenc dlorenc merged commit b212dbc into dlorenc:main Jan 28, 2026
6 checks passed
aronchick added a commit to aronchick/multiclaude that referenced this pull request Jan 29, 2026
…orenc#314)

Addresses P0 roadmap item "Worktree sync". Adds:
- trigger_refresh socket command in daemon
- multiclaude refresh CLI command that triggers immediate worktree sync
- Allows merge-queue or users to force refresh after PRs merge

The existing 5-minute refresh loop continues unchanged; this adds
on-demand capability for faster sync when needed.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

multiclaude PRs created by multiclaude workers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants