Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion profiles/default/agents/implementation-verifier.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: implementation-verifier
description: Use proactively to verify the end-to-end implementation of a spec
tools: Write, Read, Bash, WebFetch, Playwright
tools: Write, Read, Bash, WebFetch, Playwright, Chrome
color: green
model: inherit
---
Expand Down
2 changes: 1 addition & 1 deletion profiles/default/agents/implementer.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: implementer
description: Use proactively to implement a feature by following a given tasks.md for a spec.
tools: Write, Read, Bash, WebFetch, Playwright, Skill
tools: Write, Read, Bash, WebFetch, Playwright, Chrome, Skill
color: red
model: inherit
---
Expand Down
16 changes: 16 additions & 0 deletions scripts/common-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,15 @@ replace_playwright_tools() {
echo "$tools" | sed "s/Playwright/$playwright_tools/g"
}

# Replace Chrome tool with expanded Claude in Chrome tool list
replace_chrome_tools() {
local tools=$1

local chrome_tools="mcp__claude-in-chrome__javascript_tool, mcp__claude-in-chrome__read_page, mcp__claude-in-chrome__find, mcp__claude-in-chrome__form_input, mcp__claude-in-chrome__computer, mcp__claude-in-chrome__navigate, mcp__claude-in-chrome__resize_window, mcp__claude-in-chrome__gif_creator, mcp__claude-in-chrome__upload_image, mcp__claude-in-chrome__get_page_text, mcp__claude-in-chrome__tabs_context_mcp, mcp__claude-in-chrome__tabs_create_mcp, mcp__claude-in-chrome__update_plan, mcp__claude-in-chrome__read_console_messages, mcp__claude-in-chrome__read_network_requests, mcp__claude-in-chrome__shortcuts_list, mcp__claude-in-chrome__shortcuts_execute"

echo "$tools" | sed "s/Chrome/$chrome_tools/g"
}

# Process conditional compilation tags ({{IF}}, {{UNLESS}}, {{ENDIF}}, {{ENDUNLESS}})
# Ignores {{orchestrated_standards}} and other placeholders
process_conditionals() {
Expand Down Expand Up @@ -1026,6 +1035,13 @@ compile_agent() {
content=$(echo "$content" | sed "s|^tools:.*$|$new_tools_line|")
fi

# Replace Chrome in tools
if echo "$content" | grep -q "^tools:.*Chrome"; then
local tools_line=$(echo "$content" | grep "^tools:")
local new_tools_line=$(replace_chrome_tools "$tools_line")
content=$(echo "$content" | sed "s|^tools:.*$|$new_tools_line|")
fi

if [[ "$DRY_RUN" == "true" ]]; then
echo "$dest_file"
else
Expand Down