feat: Improve multiclaude refresh with agent-context awareness#339
Open
aronchick wants to merge 1 commit intodlorenc:mainfrom
Open
feat: Improve multiclaude refresh with agent-context awareness#339aronchick wants to merge 1 commit intodlorenc:mainfrom
aronchick wants to merge 1 commit intodlorenc:mainfrom
Conversation
When run inside an agent worktree, `multiclaude refresh` now syncs just that worktree directly instead of triggering a global refresh via daemon. This gives agents immediate feedback and control over their sync process. Changes: - Add context detection: automatically identifies agent worktree from cwd - Add direct refresh: syncs single worktree using worktree.RefreshWorktree() - Add --all flag: explicitly triggers global refresh (previous behavior) - Update /refresh slash command to recommend CLI method - Provide detailed output: fetch status, rebase info, conflict handling Behavior: - Inside agent worktree: refreshes that worktree directly with feedback - Outside agent context: triggers daemon-based global refresh - With --all flag: always triggers daemon-based global refresh P0 Roadmap item: Worktree sync Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
Author
|
✅ Merge Queue: READY TO MERGE
This PR is ready for maintainer merge. |
whitmo
added a commit
to whitmo/multiclaude
that referenced
this pull request
Mar 1, 2026
whitmo
added a commit
to whitmo/multiclaude
that referenced
this pull request
Mar 1, 2026
…(context-aware refresh) 13 new tests covering token-aware status display, LongDescription help, handleListRepos enriched response, context-aware refresh path detection, --all flag parsing, and worktree path edge cases. Findings documented at /tmp/swarm-tests-338-339.md including: - PR dlorenc#338 depends on unmerged ForkConfig PR - PR dlorenc#339 symlink handling is correct - Both PRs are independent with no conflicts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2 tasks
whitmo
added a commit
to whitmo/multiclaude
that referenced
this pull request
Mar 1, 2026
…c#333 on pr-triage-b2 Tests from multiclaude workers (silly-otter, lively-otter, clever-bear): - PR dlorenc#338: Token-aware status display, hibernate help, rich list_repos response - PR dlorenc#339: Context-aware refresh, worktree path detection, --all flag parsing - PR dlorenc#337: Categorized help (worker report captured, tests via CLI assertions) - PR dlorenc#333: Enhanced repair (worker report captured, daemon handler tests) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Mar 1, 2026
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
multiclaude refreshnow syncs just that worktree directly with immediate feedbackChanges
internal/cli/cli.gointernal/prompts/commands/refresh.mdBehavior
--allflagTest plan
Roadmap
P0 item: Worktree sync - Keep agent worktrees in sync with main as PRs merge
🤖 Generated with Claude Code