From d118951f9b5006ee9c5928fd62d2110088a840cd Mon Sep 17 00:00:00 2001 From: Nicklas af Ekenstam Date: Wed, 15 Apr 2026 08:44:27 +0200 Subject: [PATCH 1/2] Restore version in agent badge, fix --agent name matching Put version back in agent name field so the orange badge shows 'shipkit v0.1.12'. Update cli.py run command to pass the versioned name to --agent so it matches correctly. --- shipkit/cli.py | 3 ++- shipkit/compilers/agents.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/shipkit/cli.py b/shipkit/cli.py index 0f58400..881f082 100644 --- a/shipkit/cli.py +++ b/shipkit/cli.py @@ -799,9 +799,10 @@ def run(prompt: tuple[str, ...], no_agent: bool): ) # Build launch command with shipkit agent (unless --no-agent) + from shipkit import __version__ cmd = ["claude"] if not no_agent: - cmd.extend(["--agent", "shipkit"]) + cmd.extend(["--agent", f"shipkit v{__version__}"]) if prompt: cmd.append(" ".join(prompt)) diff --git a/shipkit/compilers/agents.py b/shipkit/compilers/agents.py index 0a1d686..68adf8c 100644 --- a/shipkit/compilers/agents.py +++ b/shipkit/compilers/agents.py @@ -151,8 +151,8 @@ def generate_claude_agent_with_hooks( # Build YAML frontmatter with hooks and MCP servers import yaml frontmatter_data = { - "name": "shipkit", - "description": f"Shipkit v{__version__} — Production-grade Claude Code assistant with battle-tested skills and self-learning capabilities", + "name": f"shipkit v{__version__}", + "description": "Production-grade Claude Code assistant with battle-tested skills and self-learning capabilities", "model": "sonnet", "tools": "*", "permissionMode": "acceptEdits", From 7ca8198b14f28d21fce24658b0cd65bddce604bf Mon Sep 17 00:00:00 2001 From: Nicklas af Ekenstam Date: Wed, 15 Apr 2026 08:51:58 +0200 Subject: [PATCH 2/2] Fix test_run_with_agent to handle versioned agent name The agent name now includes a version suffix (e.g., "shipkit v0.1.12"), so the assertion needs to check startsWith rather than exact match. --- tests/test_run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_run.py b/tests/test_run.py index 4d22c07..752cde4 100644 --- a/tests/test_run.py +++ b/tests/test_run.py @@ -43,7 +43,8 @@ def test_run_with_agent(self, initialized_home, tmp_repo, monkeypatch): call_args = mock_run.call_args[0][0] assert "claude" in call_args assert "--agent" in call_args - assert "shipkit" in call_args + agent_arg = call_args[call_args.index("--agent") + 1] + assert agent_arg.startswith("shipkit") def test_run_without_agent(self, initialized_home, tmp_repo, monkeypatch): """Test run command with --no-agent flag."""