From 0f387b7df2971778c4e066b447b4f50a34aff770 Mon Sep 17 00:00:00 2001 From: Julian lechner Date: Fri, 18 Sep 2026 09:31:34 +0200 Subject: [PATCH] feat(build): resolve shell-specific agent tool placeholder in PowerShell build Replace __SHELL__ in each generated Claude agent's tools field with PowerShell or Bash depending on the package being built, so a role that needs shell execution only gets the one matching its target shell. Co-Authored-By: Claude Sonnet 5 --- scripts/build.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build.ps1 b/scripts/build.ps1 index 727102f..99e9089 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -177,7 +177,9 @@ foreach ($shell in @('powershell','bash')) { if ($client -eq 'codex') { Set-Content (Join-Path $agentsOutput "$name.toml") "name = $(Quote-Toml $name)`r`ndescription = $(Quote-Toml $description)`r`ndeveloper_instructions = $(Quote-Toml $instructions)" -Encoding UTF8 } else { + $shellTool = if ($shell -eq 'powershell') { 'PowerShell' } else { 'Bash' } $tools = $agentTools[$name] + if ($tools) { $tools = $tools.Replace('__SHELL__', $shellTool) } $frontmatter = "---`r`nname: $name`r`ndescription: $description`r`n" if ($tools) { $frontmatter += "tools: $tools`r`n" } Set-Content (Join-Path $agentsOutput "$name.md") ($frontmatter + "---`r`n`r`n$instructions") -Encoding UTF8