3030#
3131# 5. Multi-Agent Support
3232# - Handles agent-specific file paths and naming conventions
33- # - Supports: Claude, Gemini, Copilot, Cursor, Qwen, opencode, Codex, Windsurf, Junie, Kilo Code, Auggie CLI, Roo Code, CodeBuddy CLI, Qoder CLI, Amp, SHAI, Tabnine CLI, Kiro CLI, Mistral Vibe, Kimi Code, Pi Coding Agent, iFlow CLI, Antigravity or Generic
33+ # - Supports: Claude, Gemini, Copilot, Cursor, Qwen, opencode, Codex, Windsurf, Junie, Kilo Code, Auggie CLI, Roo Code, CodeBuddy CLI, Qoder CLI, Amp, SHAI, Tabnine CLI, Kiro CLI, Mistral Vibe, Kimi Code, Pi Coding Agent, iFlow CLI, Forge, Antigravity or Generic
3434# - Can update single agents or all existing agent files
3535# - Creates default Claude file if no agent files exist
3636#
3737# Usage: ./update-agent-context.sh [agent_type]
38- # Agent types: claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|junie|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|iflow|generic
38+ # Agent types: claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|junie|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|iflow|forge| generic
3939# Leave empty to update all existing agent files
4040
4141set -e
@@ -63,7 +63,7 @@ AGENT_TYPE="${1:-}"
6363# Agent-specific file paths
6464CLAUDE_FILE=" $REPO_ROOT /CLAUDE.md"
6565GEMINI_FILE=" $REPO_ROOT /GEMINI.md"
66- COPILOT_FILE=" $REPO_ROOT /.github/agents/ copilot-instructions.md"
66+ COPILOT_FILE=" $REPO_ROOT /.github/copilot-instructions.md"
6767CURSOR_FILE=" $REPO_ROOT /.cursor/rules/specify-rules.mdc"
6868QWEN_FILE=" $REPO_ROOT /QWEN.md"
6969AGENTS_FILE=" $REPO_ROOT /AGENTS.md"
@@ -74,7 +74,7 @@ AUGGIE_FILE="$REPO_ROOT/.augment/rules/specify-rules.md"
7474ROO_FILE=" $REPO_ROOT /.roo/rules/specify-rules.md"
7575CODEBUDDY_FILE=" $REPO_ROOT /CODEBUDDY.md"
7676QODER_FILE=" $REPO_ROOT /QODER.md"
77- # Amp, Kiro CLI, IBM Bob, and Pi all share AGENTS.md — use AGENTS_FILE to avoid
77+ # Amp, Kiro CLI, IBM Bob, Pi, and Forge all share AGENTS.md — use AGENTS_FILE to avoid
7878# updating the same file multiple times.
7979AMP_FILE=" $AGENTS_FILE "
8080SHAI_FILE=" $REPO_ROOT /SHAI.md"
@@ -86,6 +86,7 @@ VIBE_FILE="$REPO_ROOT/.vibe/agents/specify-agents.md"
8686KIMI_FILE=" $REPO_ROOT /KIMI.md"
8787TRAE_FILE=" $REPO_ROOT /.trae/rules/AGENTS.md"
8888IFLOW_FILE=" $REPO_ROOT /IFLOW.md"
89+ FORGE_FILE=" $AGENTS_FILE "
8990
9091# Template file
9192TEMPLATE_FILE=" $REPO_ROOT /.specify/templates/agent-file-template.md"
@@ -701,12 +702,15 @@ update_specific_agent() {
701702 iflow)
702703 update_agent_file " $IFLOW_FILE " " iFlow CLI" || return 1
703704 ;;
705+ forge)
706+ update_agent_file " $AGENTS_FILE " " Forge" || return 1
707+ ;;
704708 generic)
705709 log_info " Generic agent: no predefined context file. Use the agent-specific update script for your agent."
706710 ;;
707711 * )
708712 log_error " Unknown agent type '$agent_type '"
709- log_error " Expected: claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|junie|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|iflow|generic"
713+ log_error " Expected: claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|junie|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|iflow|forge| generic"
710714 exit 1
711715 ;;
712716 esac
@@ -754,6 +758,7 @@ update_all_existing_agents() {
754758 _update_if_new " $AMP_FILE " " Amp" || _all_ok=false
755759 _update_if_new " $KIRO_FILE " " Kiro CLI" || _all_ok=false
756760 _update_if_new " $BOB_FILE " " IBM Bob" || _all_ok=false
761+ _update_if_new " $FORGE_FILE " " Forge" || _all_ok=false
757762 _update_if_new " $WINDSURF_FILE " " Windsurf" || _all_ok=false
758763 _update_if_new " $JUNIE_FILE " " Junie" || _all_ok=false
759764 _update_if_new " $KILOCODE_FILE " " Kilo Code" || _all_ok=false
@@ -794,7 +799,7 @@ print_summary() {
794799 fi
795800
796801 echo
797- log_info " Usage: $0 [claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|junie|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|iflow|generic]"
802+ log_info " Usage: $0 [claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|junie|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|iflow|forge| generic]"
798803}
799804
800805# ==============================================================================
0 commit comments