Skip to content

Commit eb030da

Browse files
authored
Merge pull request #902 from DFilipeS/main
feat: Added support for Amp code agent.
2 parents 79328aa + be06a23 commit eb030da

File tree

7 files changed

+34
-12
lines changed

7 files changed

+34
-12
lines changed

.github/workflows/scripts/create-github-release.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ gh release create "$VERSION" \
4040
.genreleases/spec-kit-template-roo-ps-"$VERSION".zip \
4141
.genreleases/spec-kit-template-codebuddy-sh-"$VERSION".zip \
4242
.genreleases/spec-kit-template-codebuddy-ps-"$VERSION".zip \
43+
.genreleases/spec-kit-template-amp-sh-"$VERSION".zip \
44+
.genreleases/spec-kit-template-amp-ps-"$VERSION".zip \
4345
.genreleases/spec-kit-template-q-sh-"$VERSION".zip \
4446
.genreleases/spec-kit-template-q-ps-"$VERSION".zip \
4547
--title "Spec Kit Templates - $VERSION_NO_V" \

.github/workflows/scripts/create-release-packages.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -euo pipefail
66
# Usage: .github/workflows/scripts/create-release-packages.sh <version>
77
# Version argument should include leading 'v'.
88
# Optionally set AGENTS and/or SCRIPTS env vars to limit what gets built.
9-
# AGENTS : space or comma separated subset of: claude gemini copilot cursor-agent qwen opencode windsurf codex (default: all)
9+
# AGENTS : space or comma separated subset of: claude gemini copilot cursor-agent qwen opencode windsurf codex amp (default: all)
1010
# SCRIPTS : space or comma separated subset of: sh ps (default: both)
1111
# Examples:
1212
# AGENTS=claude SCRIPTS=sh $0 v0.2.0
@@ -180,7 +180,9 @@ build_variant() {
180180
codebuddy)
181181
mkdir -p "$base_dir/.codebuddy/commands"
182182
generate_commands codebuddy md "\$ARGUMENTS" "$base_dir/.codebuddy/commands" "$script" ;;
183-
183+
amp)
184+
mkdir -p "$base_dir/.agents/commands"
185+
generate_commands amp md "\$ARGUMENTS" "$base_dir/.agents/commands" "$script" ;;
184186
q)
185187
mkdir -p "$base_dir/.amazonq/prompts"
186188
generate_commands q md "\$ARGUMENTS" "$base_dir/.amazonq/prompts" "$script" ;;
@@ -190,7 +192,7 @@ build_variant() {
190192
}
191193

192194
# Determine agent list
193-
ALL_AGENTS=(claude gemini copilot cursor-agent qwen opencode windsurf codex kilocode auggie roo codebuddy q)
195+
ALL_AGENTS=(claude gemini copilot cursor-agent qwen opencode windsurf codex kilocode auggie roo codebuddy amp q)
194196
ALL_SCRIPTS=(sh ps)
195197

196198
norm_list() {

AGENTS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Specify supports multiple AI agents by generating agent-specific command files a
4444
| **Roo Code** | `.roo/rules/` | Markdown | N/A (IDE-based) | Roo Code IDE |
4545
| **CodeBuddy CLI** | `.codebuddy/commands/` | Markdown | `codebuddy` | CodeBuddy CLI |
4646
| **Amazon Q Developer CLI** | `.amazonq/prompts/` | Markdown | `q` | Amazon Q Developer CLI |
47+
| **Amp** | `.agents/commands/` | Markdown | `amp` | Amp CLI |
4748

4849
### Step-by-Step Integration Guide
4950

@@ -309,6 +310,7 @@ Require a command-line tool to be installed:
309310
- **opencode**: `opencode` CLI
310311
- **Amazon Q Developer CLI**: `q` CLI
311312
- **CodeBuddy CLI**: `codebuddy` CLI
313+
- **Amp**: `amp` CLI
312314

313315
### IDE-Based Agents
314316

@@ -321,7 +323,7 @@ Work within integrated development environments:
321323

322324
### Markdown Format
323325

324-
Used by: Claude, Cursor, opencode, Windsurf, Amazon Q Developer
326+
Used by: Claude, Cursor, opencode, Windsurf, Amazon Q Developer, Amp
325327

326328
```markdown
327329
---

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ Want to see Spec Kit in action? Watch our [video overview](https://www.youtube.c
149149
| [Roo Code](https://roocode.com/) || |
150150
| [Codex CLI](https://github.com/openai/codex) || |
151151
| [Amazon Q Developer CLI](https://aws.amazon.com/developer/learning/q-developer-cli/) | ⚠️ | Amazon Q Developer CLI [does not support](https://github.com/aws/amazon-q-developer-cli/issues/3064) custom arguments for slash commands. |
152+
| [Amp](https://ampcode.com/) || |
152153

153154
## 🔧 Specify CLI Reference
154155

@@ -166,7 +167,7 @@ The `specify` command supports the following options:
166167
| Argument/Option | Type | Description |
167168
|------------------------|----------|------------------------------------------------------------------------------|
168169
| `<project-name>` | Argument | Name for your new project directory (optional if using `--here`, or use `.` for current directory) |
169-
| `--ai` | Option | AI assistant to use: `claude`, `gemini`, `copilot`, `cursor-agent`, `qwen`, `opencode`, `codex`, `windsurf`, `kilocode`, `auggie`, `roo`, `codebuddy`, or `q` |
170+
| `--ai` | Option | AI assistant to use: `claude`, `gemini`, `copilot`, `cursor-agent`, `qwen`, `opencode`, `codex`, `windsurf`, `kilocode`, `auggie`, `roo`, `codebuddy`, `amp`, or `q` |
170171
| `--script` | Option | Script variant to use: `sh` (bash/zsh) or `ps` (PowerShell) |
171172
| `--ignore-agent-tools` | Flag | Skip checks for AI agent tools like Claude Code |
172173
| `--no-git` | Flag | Skip git repository initialization |
@@ -191,6 +192,9 @@ specify init my-project --ai cursor-agent
191192
# Initialize with Windsurf support
192193
specify init my-project --ai windsurf
193194

195+
# Initialize with Amp support
196+
specify init my-project --ai amp
197+
194198
# Initialize with PowerShell scripts (Windows/cross-platform)
195199
specify init my-project --ai copilot --script ps
196200

scripts/bash/update-agent-context.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
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, Kilo Code, Auggie CLI, or Amazon Q Developer CLI
33+
# - Supports: Claude, Gemini, Copilot, Cursor, Qwen, opencode, Codex, Windsurf, Kilo Code, Auggie CLI, Roo Code, CodeBuddy CLI, Amp, or Amazon Q Developer CLI
3434
# - Can update single agents or all existing agent files
3535
# - Creates default Claude file if no agent files exist
3636
#
@@ -70,6 +70,7 @@ KILOCODE_FILE="$REPO_ROOT/.kilocode/rules/specify-rules.md"
7070
AUGGIE_FILE="$REPO_ROOT/.augment/rules/specify-rules.md"
7171
ROO_FILE="$REPO_ROOT/.roo/rules/specify-rules.md"
7272
CODEBUDDY_FILE="$REPO_ROOT/CODEBUDDY.md"
73+
AMP_FILE="$REPO_ROOT/AGENTS.md"
7374
Q_FILE="$REPO_ROOT/AGENTS.md"
7475

7576
# Template file
@@ -585,12 +586,15 @@ update_specific_agent() {
585586
codebuddy)
586587
update_agent_file "$CODEBUDDY_FILE" "CodeBuddy CLI"
587588
;;
589+
amp)
590+
update_agent_file "$AMP_FILE" "Amp"
591+
;;
588592
q)
589593
update_agent_file "$Q_FILE" "Amazon Q Developer CLI"
590594
;;
591595
*)
592596
log_error "Unknown agent type '$agent_type'"
593-
log_error "Expected: claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|q"
597+
log_error "Expected: claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|amp|q"
594598
exit 1
595599
;;
596600
esac

scripts/powershell/update-agent-context.ps1

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Mirrors the behavior of scripts/bash/update-agent-context.sh:
99
2. Plan Data Extraction
1010
3. Agent File Management (create from template or update existing)
1111
4. Content Generation (technology stack, recent changes, timestamp)
12-
5. Multi-Agent Support (claude, gemini, copilot, cursor-agent, qwen, opencode, codex, windsurf, kilocode, auggie, roo, q)
12+
5. Multi-Agent Support (claude, gemini, copilot, cursor-agent, qwen, opencode, codex, windsurf, kilocode, auggie, roo, amp, q)
1313
1414
.PARAMETER AgentType
1515
Optional agent key to update a single agent. If omitted, updates all existing agent files (creating a default Claude file if none exist).
@@ -25,7 +25,7 @@ Relies on common helper functions in common.ps1
2525
#>
2626
param(
2727
[Parameter(Position=0)]
28-
[ValidateSet('claude','gemini','copilot','cursor-agent','qwen','opencode','codex','windsurf','kilocode','auggie','roo','codebuddy','q')]
28+
[ValidateSet('claude','gemini','copilot','cursor-agent','qwen','opencode','codex','windsurf','kilocode','auggie','roo','codebuddy','amp','q')]
2929
[string]$AgentType
3030
)
3131

@@ -55,6 +55,7 @@ $KILOCODE_FILE = Join-Path $REPO_ROOT '.kilocode/rules/specify-rules.md'
5555
$AUGGIE_FILE = Join-Path $REPO_ROOT '.augment/rules/specify-rules.md'
5656
$ROO_FILE = Join-Path $REPO_ROOT '.roo/rules/specify-rules.md'
5757
$CODEBUDDY_FILE = Join-Path $REPO_ROOT 'CODEBUDDY.md'
58+
$AMP_FILE = Join-Path $REPO_ROOT 'AGENTS.md'
5859
$Q_FILE = Join-Path $REPO_ROOT 'AGENTS.md'
5960

6061
$TEMPLATE_FILE = Join-Path $REPO_ROOT '.specify/templates/agent-file-template.md'
@@ -379,8 +380,9 @@ function Update-SpecificAgent {
379380
'auggie' { Update-AgentFile -TargetFile $AUGGIE_FILE -AgentName 'Auggie CLI' }
380381
'roo' { Update-AgentFile -TargetFile $ROO_FILE -AgentName 'Roo Code' }
381382
'codebuddy' { Update-AgentFile -TargetFile $CODEBUDDY_FILE -AgentName 'CodeBuddy CLI' }
383+
'amp' { Update-AgentFile -TargetFile $AMP_FILE -AgentName 'Amp' }
382384
'q' { Update-AgentFile -TargetFile $Q_FILE -AgentName 'Amazon Q Developer CLI' }
383-
default { Write-Err "Unknown agent type '$Type'"; Write-Err 'Expected: claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|q'; return $false }
385+
default { Write-Err "Unknown agent type '$Type'"; Write-Err 'Expected: claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|amp|q'; return $false }
384386
}
385387
}
386388

@@ -413,7 +415,7 @@ function Print-Summary {
413415
if ($NEW_FRAMEWORK) { Write-Host " - Added framework: $NEW_FRAMEWORK" }
414416
if ($NEW_DB -and $NEW_DB -ne 'N/A') { Write-Host " - Added database: $NEW_DB" }
415417
Write-Host ''
416-
Write-Info 'Usage: ./update-agent-context.ps1 [-AgentType claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|q]'
418+
Write-Info 'Usage: ./update-agent-context.ps1 [-AgentType claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|amp|q]'
417419
}
418420

419421
function Main {

src/specify_cli/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ def _github_auth_headers(cli_token: str | None = None) -> dict:
144144
"install_url": "https://aws.amazon.com/developer/learning/q-developer-cli/",
145145
"requires_cli": True,
146146
},
147+
"amp": {
148+
"name": "Amp",
149+
"folder": ".agents/",
150+
"install_url": "https://ampcode.com/manual#install",
151+
"requires_cli": True,
152+
},
147153
}
148154

149155
SCRIPT_TYPE_CHOICES = {"sh": "POSIX Shell (bash/zsh)", "ps": "PowerShell"}
@@ -859,7 +865,7 @@ def ensure_executable_scripts(project_path: Path, tracker: StepTracker | None =
859865
@app.command()
860866
def init(
861867
project_name: str = typer.Argument(None, help="Name for your new project directory (optional if using --here, or use '.' for current directory)"),
862-
ai_assistant: str = typer.Option(None, "--ai", help="AI assistant to use: claude, gemini, copilot, cursor-agent, qwen, opencode, codex, windsurf, kilocode, auggie, codebuddy, or q"),
868+
ai_assistant: str = typer.Option(None, "--ai", help="AI assistant to use: claude, gemini, copilot, cursor-agent, qwen, opencode, codex, windsurf, kilocode, auggie, codebuddy, amp, or q"),
863869
script_type: str = typer.Option(None, "--script", help="Script type to use: sh or ps"),
864870
ignore_agent_tools: bool = typer.Option(False, "--ignore-agent-tools", help="Skip checks for AI agent tools like Claude Code"),
865871
no_git: bool = typer.Option(False, "--no-git", help="Skip git repository initialization"),

0 commit comments

Comments
 (0)