Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

feat: add Claude Code section to `wt config show` (#833)

Maximilian Roos3490fb338e5d
diff --git a/src/commands/config/show.rs b/src/commands/config/show.rs
index 1ec59b400..598cda16d 100644
--- a/src/commands/config/show.rs
+++ b/src/commands/config/show.rs
@@ -45,6 +45,10 @@ pub fn handle_config_show(full: bool) -> anyhow::Result<()> {
// Render shell integration status
render_shell_status(&mut show_output)?;
+ // Render Claude Code status
+ show_output.push('\n');
+ render_claude_code_status(&mut show_output)?;
+
// Run full diagnostic checks if requested (includes slow network calls)
if full {
show_output.push('\n');
@@ -76,16 +80,19 @@ fn is_claude_available() -> bool {
.unwrap_or(false)
}
-/// Check if the worktrunk plugin is installed in Claude Code
-fn is_plugin_installed() -> bool {
+/// Get the home directory for Claude Code config detection
+fn get_home_dir() -> Option<PathBuf> {
// Try HOME/USERPROFILE env vars first (for tests and explicit overrides), then fall back to dirs
- let home = std::env::var("HOME")
+ std::env::var("HOME")
.or_else(|_| std::env::var("USERPROFILE"))
.ok()
.map(PathBuf::from)
- .or_else(dirs::home_dir);
+ .or_else(dirs::home_dir)
+}
- let Some(home) = home else {
+/// Check if the worktrunk plugin is installed in Claude Code
+fn is_plugin_installed() -> bool {
+ let Some(home) = get_home_dir() else {
return false;
};
@@ -98,6 +105,24 @@ fn is_plugin_installed() -> bool {
content.contains("\"worktrunk@worktrunk\"")
}
+/// Check if the statusline is configured in Claude Code settings
+fn is_statusline_configured() -> bool {
+ let Some(home) = get_home_dir() else {
+ return false;
+ };
+
+ let settings_file = home.join(".claude/settings.json");
+ let Ok(content) = std::fs::read_to_string(&settings_file) else {
+ return false;
+ };
+
+ // Check if statusLine is configured with a wt command
+ // Match "wt " at a word boundary in command context to avoid false positives
+ // from unrelated JSON keys containing "wt" (e.g., "fontWeight", "tabWidth")
+ content.contains("\"statusLine\"")
+ && (content.contains("\"wt ") || content.contains(": \"wt ") || content.contains(":\"wt "))
+}
+
/// Get the git version string (e.g., "2.47.1")
fn get_git_version() -> Option<String> {
let output = Cmd::new("git").arg("--version").run().ok()?;
@@ -149,48 +174,70 @@ fn check_zsh_compinit_missing() -> bool {
// ==================== Render Functions ====================
-/// Render OTHER section (version, Claude plugin, hyperlinks)
-fn render_runtime_info(out: &mut String) -> anyhow::Result<()> {
- let cmd = crate::binary_name();
- let version = version_str();
+/// Render CLAUDE CODE section (plugin and statusline status)
+fn render_claude_code_status(out: &mut String) -> anyhow::Result<()> {
+ let claude_available = is_claude_available();
- writeln!(out, "{}", format_heading("OTHER", None))?;
+ writeln!(out, "{}", format_heading("CLAUDE CODE", None))?;
- // Version info
- writeln!(
- out,
- "{}",
- info_message(cformat!("{cmd}: <bold>{version}</>"))
- )?;
- if let Some(git_version) = get_git_version() {
+ if !claude_available {
writeln!(
out,
"{}",
- info_message(cformat!("git: <bold>{git_version}</>"))
+ info_message(cformat!("<bold>claude</> CLI not installed"))
)?;
+ return Ok(());
}
- // Claude Code plugin status
+ // Plugin status
let plugin_installed = is_plugin_installed();
- let claude_available = is_claude_available();
-
if plugin_installed {
- writeln!(out, "{}", success_message("Claude Code plugin installed"))?;
- } else if claude_available {
+ writeln!(out, "{}", success_message("Plugin installed"))?;
+ } else {
writeln!(
out,
"{}",
- hint_message("Claude Code plugin not installed. To install, run:")
+ hint_message("Plugin not installed. To install, run:")
)?;
let install_commands = "claude plugin marketplace add max-sixty/worktrunk\nclaude plugin install worktrunk@worktrunk";
writeln!(out, "{}", format_bash_with_gutter(install_commands))?;
+ }
+
+ // Statusline status
+ let statusline_configured = is_statusline_configured();
+ if statusline_configured {
+ writeln!(out, "{}", success_message("Statusline configured"))?;
} else {
writeln!(
out,
"{}",
- hint_message(cformat!(
- "Claude Code plugin not installed (<bold>claude</> not found)"
- ))
+ hint_message(
+ "Statusline not configured. See https://worktrunk.dev/claude-code/#statusline"
+ )
+ )?;
+ }
+
+ Ok(())
+}
+
+/// Render OTHER section (version, hyperlinks)
+fn render_runtime_info(out: &mut String) -> anyhow::Result<()> {
+ let cmd = crate::binary_name();
+ let version = version_str();
+
+ writeln!(out, "{}", format_heading("OTHER", None))?;
+
+ // Version info
+ writeln!(
+ out,
+ "{}",
+ info_message(cformat!("{cmd}: <bold>{version}</>"))
+ )?;
+ if let Some(git_version) = get_git_version() {
+ writeln!(
+ out,
+ "{}",
+ info_message(cformat!("git: <bold>{git_version}</>"))
)?;
}
diff --git a/tests/common/mod.rs b/tests/common/mod.rs
index 46695b624..589469851 100644
--- a/tests/common/mod.rs
+++ b/tests/common/mod.rs
@@ -1834,6 +1834,20 @@ impl TestRepo {
.unwrap();
}
+ /// Setup the statusline as configured in Claude Code settings
+ ///
+ /// Creates the settings.json file with the wt statusline command.
+ /// The temp_home must already be set up (via set_temp_home_env on the command).
+ pub fn setup_statusline_configured(temp_home: &std::path::Path) {
+ let claude_dir = temp_home.join(".claude");
+ std::fs::create_dir_all(&claude_dir).unwrap();
+ std::fs::write(
+ claude_dir.join("settings.json"),
+ r#"{"statusLine":{"type":"command","command":"wt list statusline --claude-code"}}"#,
+ )
+ .unwrap();
+ }
+
/// Setup mock `gh` that returns configurable PR/CI data
///
/// Use this for testing CI status parsing code. The mock returns JSON data
diff --git a/tests/integration_tests/config_show.rs b/tests/integration_tests/config_show.rs
index 37aba0115..b9f46e722 100644
--- a/tests/integration_tests/config_show.rs
+++ b/tests/integration_tests/config_show.rs
@@ -1207,7 +1207,8 @@ fn test_config_show_shell_integration_active(mut repo: TestRepo, temp_home: Temp
fn test_config_show_plugin_installed(mut repo: TestRepo, temp_home: TempDir) {
// Setup mock gh/glab for deterministic output
repo.setup_mock_ci_tools_unauthenticated();
- // Setup plugin as installed in Claude Code
+ // Setup mock claude CLI and plugin as installed
+ repo.setup_mock_claude_installed();
TestRepo::setup_plugin_installed(temp_home.path());
// Create global config
@@ -1261,6 +1262,37 @@ fn test_config_show_claude_available_plugin_not_installed(mut repo: TestRepo, te
});
}
+#[rstest]
+fn test_config_show_statusline_configured(mut repo: TestRepo, temp_home: TempDir) {
+ // Setup mock gh/glab for deterministic output
+ repo.setup_mock_ci_tools_unauthenticated();
+ // Setup mock claude CLI, plugin, AND statusline
+ repo.setup_mock_claude_installed();
+ TestRepo::setup_plugin_installed(temp_home.path());
+ TestRepo::setup_statusline_configured(temp_home.path());
+
+ // Create global config
+ let global_config_dir = temp_home.path().join(".config").join("worktrunk");
+ fs::create_dir_all(&global_config_dir).unwrap();
+ fs::write(
+ global_config_dir.join("config.toml"),
+ r#"worktree-path = "../{{ repo }}.{{ branch }}"
+"#,
+ )
+ .unwrap();
+
+ let settings = setup_snapshot_settings_with_home(&repo, &temp_home);
+ settings.bind(|| {
+ let mut cmd = wt_command();
+ repo.configure_wt_cmd(&mut cmd);
+ repo.configure_mock_commands(&mut cmd);
+ cmd.arg("config").arg("show").current_dir(repo.root_path());
+ set_temp_home_env(&mut cmd, temp_home.path());
+
+ assert_cmd_snapshot!(cmd);
+ });
+}
+
/// Test that deprecated [commit-generation] section shows warning and creates migration file
#[rstest]
fn test_deprecated_commit_generation_section_shows_warning(repo: TestRepo, temp_home: TempDir) {
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_claude_available_plugin_not_installed.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_claude_available_plugin_not_installed.snap
index d53c92022..506234581 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_claude_available_plugin_not_installed.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_claude_available_plugin_not_installed.snap
@@ -49,10 +49,13 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+↳ Plugin not installed. To install, run:
+  claude plugin marketplace add max-sixty/worktrunk
+  claude plugin install worktrunk@worktrunk
+↳ Statusline not configured. See https://worktrunk.dev/claude-code/#statusline
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed. To install, run:
-  claude plugin marketplace add max-sixty/worktrunk
-  claude plugin install worktrunk@worktrunk
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap
index 4bc84f002..0e94edfd3 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap
@@ -62,8 +62,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_project_commit_generation_deprecations.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_project_commit_generation_deprecations.snap
index e0c9c03dc..07292bcf6 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_project_commit_generation_deprecations.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_project_commit_generation_deprecations.snap
@@ -67,8 +67,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_empty_project_config.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_empty_project_config.snap
index a61f69c54..ea997b7c3 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_empty_project_config.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_empty_project_config.snap
@@ -49,8 +49,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_from_linked_worktree_shows_main_worktree_hint.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_from_linked_worktree_shows_main_worktree_hint.snap
index 3771403fb..a8c630e2c 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_from_linked_worktree_shows_main_worktree_hint.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_from_linked_worktree_shows_main_worktree_hint.snap
@@ -51,8 +51,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_full_command_not_found.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_full_command_not_found.snap
index 4a0ae1537..b42c4cb2b 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_full_command_not_found.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_full_command_not_found.snap
@@ -53,6 +53,9 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
DIAGNOSTICS
↳ CI status requires GitHub or GitLab remote
✗ Commit generation failed (nonexistent-llm-command-12345 -m test-model)
@@ -64,5 +67,4 @@ exit_code: 0
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_full_not_configured.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_full_not_configured.snap
index 176d8110c..f214f2ecc 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_full_not_configured.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_full_not_configured.snap
@@ -50,6 +50,9 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
DIAGNOSTICS
↳ CI status requires GitHub or GitLab remote
↳ Commit generation not configured
@@ -57,5 +60,4 @@ exit_code: 0
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_github_remote.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_github_remote.snap
index ba81ecce7..15fd42634 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_github_remote.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_github_remote.snap
@@ -49,8 +49,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_gitlab_remote.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_gitlab_remote.snap
index ba81ecce7..15fd42634 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_gitlab_remote.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_gitlab_remote.snap
@@ -49,8 +49,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_invalid_project_toml.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_invalid_project_toml.snap
index 9bebd406c..da6dac68e 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_invalid_project_toml.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_invalid_project_toml.snap
@@ -55,8 +55,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_invalid_user_toml.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_invalid_user_toml.snap
index 40c17e174..224bd23fd 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_invalid_user_toml.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_invalid_user_toml.snap
@@ -55,8 +55,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_no_project_config.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_no_project_config.snap
index ba81ecce7..15fd42634 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_no_project_config.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_no_project_config.snap
@@ -49,8 +49,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_no_user_config.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_no_user_config.snap
index e348505fa..ba3d449de 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_no_user_config.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_no_user_config.snap
@@ -49,8 +49,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_outside_git_repo.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_outside_git_repo.snap
index b431c8b94..5bd7927b8 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_outside_git_repo.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_outside_git_repo.snap
@@ -11,6 +11,8 @@ info:
COLUMNS: "500"
GIT_EDITOR: ""
HOME: "[TEST_HOME]"
+ LANG: C
+ LC_ALL: C
MOCK_CONFIG_DIR: "[MOCK_CONFIG_DIR]"
PATH: "[PATH]"
RUST_LOG: warn
@@ -41,8 +43,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_partial_shell_config_shows_hint.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_partial_shell_config_shows_hint.snap
index ffd776801..11667ed99 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_partial_shell_config_shows_hint.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_partial_shell_config_shows_hint.snap
@@ -53,8 +53,10 @@ exit_code: 0
↳ To configure, run wt config shell install
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_plugin_installed.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_plugin_installed.snap
index 3d7f390e8..f98414a7c 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_plugin_installed.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_plugin_installed.snap
@@ -49,8 +49,11 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+✓ Plugin installed
+↳ Statusline not configured. See https://worktrunk.dev/claude-code/#statusline
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-✓ Claude Code plugin installed
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_shell_integration_active.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_shell_integration_active.snap
index 5e317ab5b..37b89d48b 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_shell_integration_active.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_shell_integration_active.snap
@@ -49,8 +49,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_statusline_configured.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_statusline_configured.snap
new file mode 100644
index 000000000..baefa7725
--- /dev/null
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_statusline_configured.snap
@@ -0,0 +1,59 @@
+---
+source: tests/integration_tests/config_show.rs
+info:
+ program: wt
+ args:
+ - config
+ - show
+ env:
+ APPDATA: "[TEST_CONFIG_HOME]"
+ CLICOLOR_FORCE: "1"
+ COLUMNS: "500"
+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
+ GIT_CONFIG_SYSTEM: /dev/null
+ GIT_EDITOR: ""
+ GIT_TERMINAL_PROMPT: "0"
+ HOME: "[TEST_HOME]"
+ LANG: C
+ LC_ALL: C
+ MOCK_CONFIG_DIR: "[MOCK_CONFIG_DIR]"
+ PATH: "[PATH]"
+ RUST_LOG: warn
+ SHELL: ""
+ TERM: alacritty
+ USERPROFILE: "[TEST_HOME]"
+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
+ WT_TEST_DELAYED_STREAM_MS: "-1"
+ WT_TEST_EPOCH: "1735776000"
+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
+---
+success: true
+exit_code: 0
+----- stdout -----
+
+----- stderr -----
+USER CONFIG ~/.config/worktrunk/config.toml
+  worktree-path = "../{{ repo }}.{{ branch }}"
+
+PROJECT CONFIG _REPO_/.config/wt.toml
+↳ Not found
+
+SHELL INTEGRATION
+▲ Shell integration not active
+  Invoked as: [PROJECT_ROOT]/target/debug/wt
+
+○ Skipped bash; ~/.bashrc not found
+○ Skipped zsh; ~/.zshrc not found
+○ Skipped fish; ~/.config/fish/functions not found
+
+CLAUDE CODE
+✓ Plugin installed
+✓ Statusline configured
+
+OTHER
+○ wt: [VERSION]
+○ git: [VERSION]
+○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_project_config_for_ci.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_project_config_for_ci.snap
index f013784eb..e41d14bda 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_project_config_for_ci.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_project_config_for_ci.snap
@@ -53,8 +53,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_user_config_for_commit_generation.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_user_config_for_commit_generation.snap
index c3b076a36..3cfc94540 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_user_config_for_commit_generation.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_user_config_for_commit_generation.snap
@@ -65,8 +65,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_unmatched_candidate_warning.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_unmatched_candidate_warning.snap
index bb79d8c82..a18f35d64 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_unmatched_candidate_warning.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_unmatched_candidate_warning.snap
@@ -55,8 +55,10 @@ exit_code: 0
  alias wt="git worktree"
↳ If `alias wt="git worktree"` is shell integration, report a false negative: https://github.com/max-sixty/worktrunk/issues/new?title=Shell%20integration%20detection%20false%20negative&body=Shell%20integration%20not%20detected%20despite%20config%20containing%20%60wt%60.%0A%0A%2A%2AUnmatched%20lines%3A%2A%2A%0A%60%60%60%0Aalias%20wt%3D%22git%20worktree%22%0A%60%60%60%0A%0A%2A%2AExpected%20behavior%3A%2A%2A%20These%20lines%20should%20be%20detected%20as%20shell%20integration.
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_user_deleted_migration_shows_regenerate_hint.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_user_deleted_migration_shows_regenerate_hint.snap
index 4661abba2..e51652c72 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_user_deleted_migration_shows_regenerate_hint.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_user_deleted_migration_shows_regenerate_hint.snap
@@ -51,8 +51,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_project_keys.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_project_keys.snap
index d3d27eb3d..8678d5754 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_project_keys.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_project_keys.snap
@@ -51,8 +51,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_user_keys.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_user_keys.snap
index ab9fd9191..67c9a2c1a 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_user_keys.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_user_keys.snap
@@ -53,8 +53,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_whitespace_only_project_config.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_whitespace_only_project_config.snap
index a61f69c54..ea997b7c3 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_whitespace_only_project_config.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_whitespace_only_project_config.snap
@@ -49,8 +49,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_with_project_config.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_with_project_config.snap
index f6a302d94..8cae76c12 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_with_project_config.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_with_project_config.snap
@@ -55,8 +55,10 @@ exit_code: 0
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snap
index dcdb6eb34..6b567fad6 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snap
@@ -51,8 +51,10 @@ exit_code: 0
○ Skipped bash; ~/.bashrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snap
index 00cb4bc13..9241e54ba 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snap
@@ -53,8 +53,10 @@ exit_code: 0
○ Skipped bash; ~/.bashrc not found
○ Skipped fish; ~/.config/fish/functions not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__configure_shell__config_show_detects_fish_legacy_conf_d.snap b/tests/snapshots/integration__integration_tests__configure_shell__config_show_detects_fish_legacy_conf_d.snap
index 08bdaaaa7..b8e802c68 100644
--- a/tests/snapshots/integration__integration_tests__configure_shell__config_show_detects_fish_legacy_conf_d.snap
+++ b/tests/snapshots/integration__integration_tests__configure_shell__config_show_detects_fish_legacy_conf_d.snap
@@ -51,8 +51,10 @@ exit_code: 0
○ Fish integration found in deprecated location @ ~/.config/fish/conf.d/wt.fish
↳ To migrate to ~/.config/fish/functions/wt.fish, run wt config shell install fish
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__configure_shell__config_show_fish_legacy_with_functions_dir.snap b/tests/snapshots/integration__integration_tests__configure_shell__config_show_fish_legacy_with_functions_dir.snap
index da4b12355..9caa0bd9c 100644
--- a/tests/snapshots/integration__integration_tests__configure_shell__config_show_fish_legacy_with_functions_dir.snap
+++ b/tests/snapshots/integration__integration_tests__configure_shell__config_show_fish_legacy_with_functions_dir.snap
@@ -51,8 +51,10 @@ exit_code: 0
○ Skipped bash; ~/.bashrc not found
○ Skipped zsh; ~/.zshrc not found
+CLAUDE CODE
+○ claude CLI not installed
+
OTHER
○ wt: [VERSION]
○ git: [VERSION]
-↳ Claude Code plugin not installed (claude not found)
○ Hyperlinks: inactive