Skip to content
Merged
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
5 changes: 2 additions & 3 deletions src/the-agency/on-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,9 @@ fi
echo ""
fi

echo "# Agent Routing Rules (Mandatory)"
echo "# How to Choose the Right Specialist Agent (Mandatory)"
echo ""
echo "Before selecting a specialist agent, first classify the request by division."
echo "Then use ~/.the-agency/AGENT_ROUTING.md as the routing reference to choose the primary and fallback agent."
echo "Before starting any task, read ~/.the-agency/AGENT_ROUTING.md to understand how to classify divisions and choose the ideal specialist agent for the job."
echo ""
echo "<!-- the-agency-feature:workspace-references:end -->"
} > "$references_block_file"
Expand Down
4 changes: 2 additions & 2 deletions test/the-agency/use_agent_zero_disabled.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ check "on-create creates AGENTS.md with routing rules only (when disabled)" bash
/usr/local/share/devcontainer-features/the-agency-on-create.sh

test -s "$tmp_ws/AGENTS.md"
grep -q "Agent Routing Rules (Mandatory)" "$tmp_ws/AGENTS.md"
grep -q "How to Choose the Right Specialist Agent (Mandatory)" "$tmp_ws/AGENTS.md"
grep -q "~/.the-agency/AGENT_ROUTING.md" "$tmp_ws/AGENTS.md"
! grep -q "Canonical Agent Guide (Mandatory)" "$tmp_ws/AGENTS.md"
! grep -q "~/.the-agency/AGENT-ZERO.md" "$tmp_ws/AGENTS.md"
Expand All @@ -42,7 +42,7 @@ EOF

test -s "$tmp_ws/AGENTS.md"
grep -q "Keep this user content." "$tmp_ws/AGENTS.md"
grep -q "Agent Routing Rules (Mandatory)" "$tmp_ws/AGENTS.md"
grep -q "How to Choose the Right Specialist Agent (Mandatory)" "$tmp_ws/AGENTS.md"
! grep -q "Canonical Agent Guide (Mandatory)" "$tmp_ws/AGENTS.md"
! grep -q "Old content" "$tmp_ws/AGENTS.md"
'
Expand Down
4 changes: 2 additions & 2 deletions test/the-agency/use_agent_zero_enabled.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ EOF
/usr/local/share/devcontainer-features/the-agency-on-create.sh
test -s "$tmp_ws/AGENTS.md"
grep -q "Keep this line untouched." "$tmp_ws/AGENTS.md"
grep -q "Agent Routing Rules (Mandatory)" "$tmp_ws/AGENTS.md"
grep -q "How to Choose the Right Specialist Agent (Mandatory)" "$tmp_ws/AGENTS.md"
grep -q "Canonical Agent Guide (Mandatory)" "$tmp_ws/AGENTS.md"
! grep -q "old routing body" "$tmp_ws/AGENTS.md"
! grep -q "old canonical body" "$tmp_ws/AGENTS.md"
Expand Down Expand Up @@ -68,7 +68,7 @@ check "on-create injects agent routing rules header into AGENTS.md" bash -c '
tmp_ws="$(mktemp -d)"
cd "$tmp_ws"
/usr/local/share/devcontainer-features/the-agency-on-create.sh
grep -q "Agent Routing Rules (Mandatory)" "$tmp_ws/AGENTS.md"
grep -q "How to Choose the Right Specialist Agent (Mandatory)" "$tmp_ws/AGENTS.md"
'

check "on-create injects canonical agent guide header into AGENTS.md" bash -c '
Expand Down
Loading