Repository navigation
Add worktree guide for onboarding - #7
Merged
Merged
Conversation
A tutorial covering what git worktrees are, why they matter for running many Claude Code agents in parallel, and how Harness turns them into a usable workflow. Aimed at developers new to the multi-agent flow. Lives in-app as a new Guide view (accessible from the repo-select screen and Settings > Help) and on the marketing site at docs/guide.html. Includes four programmatic diagrams — worktree anatomy, collision vs isolation, a Harness sidebar mockup, and a parallel workflow timeline — so there's no reliance on raster assets. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
tresat
added a commit
to tresat/harness
that referenced
this pull request
Jul 24, 2026
- Extract normalizeAlias() + ALIAS_MAX_LEN in shared/state/aliases.ts; IPC handler, MCP control-server dep, and control-server response echo all use it so the trim/clamp logic can't drift (fixes ness-dev#2) - useHotkeys skips when focused element (or ancestor) has data-hotkeys="ignore"; AliasEditor input opts in so Cmd+W / Cmd+K / etc. don't fire while renaming. Opt-in (not a general "skip inputs" rule) because xterm's hidden textarea would otherwise break every terminal-time hotkey (fixes ness-dev#4) - useAliasForPath now accepts string | null | undefined; App.tsx window title read no longer needs the '?? ...' fallback subscription to a permanently-empty key (fixes ness-dev#7) - MCP control-server response includes clamped: true when the caller's input differed from what got stored; the set_worktree_alias tool surfaces this to the agent as "input was normalized" so silent whitespace/length changes are discoverable (fixes ness-dev#8) - Add control-server.test.ts covering POST/DELETE /aliases end-to-end: scope-fallback, clamp reporting, empty-clears-alias, and 400 on no worktreePath + no scope (fixes ness-dev#9) - displayLabel docstring now explains the resolution order, the machine-facing exclusion, and the per-id selector pairing (fixes ness-dev#10)
frenchie4111
pushed a commit
that referenced
this pull request
Jul 24, 2026
- Extract normalizeAlias() + ALIAS_MAX_LEN in shared/state/aliases.ts; IPC handler, MCP control-server dep, and control-server response echo all use it so the trim/clamp logic can't drift (fixes #2) - useHotkeys skips when focused element (or ancestor) has data-hotkeys="ignore"; AliasEditor input opts in so Cmd+W / Cmd+K / etc. don't fire while renaming. Opt-in (not a general "skip inputs" rule) because xterm's hidden textarea would otherwise break every terminal-time hotkey (fixes #4) - useAliasForPath now accepts string | null | undefined; App.tsx window title read no longer needs the '?? ...' fallback subscription to a permanently-empty key (fixes #7) - MCP control-server response includes clamped: true when the caller's input differed from what got stored; the set_worktree_alias tool surfaces this to the agent as "input was normalized" so silent whitespace/length changes are discoverable (fixes #8) - Add control-server.test.ts covering POST/DELETE /aliases end-to-end: scope-fallback, clamp reporting, empty-clears-alias, and 400 on no worktreePath + no scope (fixes #9) - displayLabel docstring now explains the resolution order, the machine-facing exclusion, and the per-id selector pairing (fixes #10)
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
git worktreefrom scratch.docs/guide.htmllinked from the nav and footer ofdocs/index.html. Same content, same six sections..gitnode branching to three working copiesThe in-app diagrams use theme tokens so they adapt to the user's chosen color scheme (dracula, nord, solarized, etc.); the web versions use the fixed amber/red/green palette matching the existing hero.
Test plan
guideSeenstate — repo-select screen shows icon + guide linkdocs/guide.htmlin a browser — diagrams render, nav/footer links workdocs/index.htmlnav shows the new Guide link🤖 Generated with Claude Code