Repository navigation
docs: add Xcode DerivedData cleanup recipe - #1423
Conversation
Add a post-remove hook recipe that cleans up Xcode's DerivedData when removing a worktree, by grepping info.plist for the worktree path. Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
thank you @RickeyBoy ! this looks like a great example. @worktrunk-bot I am totally green to this specific area. please can you do a really thorough check / research that this is correct? |
|
Did a thorough review of this recipe — the worktrunk hook configuration is correct, and the overall approach is sound. A couple of observations: What's correct:
Minor suggestions:
So the grep line could be: Neither of these is a correctness bug — the recipe will work as-is for typical paths. Just minor hardening. |
-F avoids interpreting worktree paths as regex patterns, and -r is redundant since the glob already targets specific files. Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
Good one. I've improved the script 😄 |
|
Looks great, thanks for the quick update! |
Two issues caused the bot to post prose comments instead of inline suggestions in #1423: 1. The claude-mention prompt had no guidance about using inline suggestions when providing code feedback on PRs. Added explicit instructions to use the review-pr skill for inline suggestions. 2. The review-pr skill blocked push offers on human PRs entirely. Updated section 7 to allow offering (not auto-pushing) a commit for mechanical fixes on human PRs. Closes #1433 Co-Authored-By: Claude Opus 4.6 <[email protected]>
…ers (#1435) ## Summary - **`claude-mention` prompt**: Added explicit guidance to use the `review-pr` skill for inline suggestions when providing code feedback on PRs — both for `@worktrunk-bot` mentions and bot-engaged conversation comments. This tells the bot to post inline suggestions on exact diff lines (not prose in a conversation comment) and to offer pushing a commit for mechanical fixes. - **`review-pr` skill section 7**: Updated from "bot PRs only" to also allow **offering** to push a commit on human PRs when fixes are mechanical and correctness is obvious. The bot still posts inline suggestions first and only pushes after the author accepts. Addresses both failures from #1423: the bot will now (a) use inline `suggestion` blocks instead of conversation comments, and (b) offer to push the changes. ## Test plan - [ ] Trigger `claude-mention` on a PR with a review request and verify inline suggestions are posted - [ ] Verify the bot offers to push mechanical fixes on human PRs - [ ] Verify bot PRs still get direct pushes without asking Closes #1433 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: worktrunk-bot <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]>
Summary
For iOS developers, this PR add a
post-removehook recipe to Tips & Patterns that cleans up Xcode's DerivedData when removing a worktree.Context
Xcode's DerivedData directory names are hashed from the
.xcodeprojpath, making them hard to match by name alone. Each DerivedData directory contains aninfo.plistwith aWorkspacePathfield that records the original project path. This recipe leverages that to find and remove only the matching cache.