Skip to content

Commit f679468

Browse files
fuyongdeclaude
andauthored
feat: add iFlow CLI support (#1875)
Add `iflow` as a supported AI agent (the key users pass to --ai) across all relevant configuration files, release scripts, agent context scripts, and README. Includes consistency tests following the same pattern as kimi/tabnine additions. - README: describe `check` generically (git + all AGENT_CONFIG CLI agents) - README: describe `--ai` with reference to AGENT_CONFIG for full list Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 333a765 commit f679468

File tree

10 files changed

+116
-20
lines changed

10 files changed

+116
-20
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ gh release create "$VERSION" \
6262
.genreleases/spec-kit-template-trae-ps-"$VERSION".zip \
6363
.genreleases/spec-kit-template-pi-sh-"$VERSION".zip \
6464
.genreleases/spec-kit-template-pi-ps-"$VERSION".zip \
65+
.genreleases/spec-kit-template-iflow-sh-"$VERSION".zip \
66+
.genreleases/spec-kit-template-iflow-ps-"$VERSION".zip \
6567
.genreleases/spec-kit-template-generic-sh-"$VERSION".zip \
6668
.genreleases/spec-kit-template-generic-ps-"$VERSION".zip \
6769
--title "Spec Kit Templates - $VERSION_NO_V" \

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
1515
.PARAMETER Agents
1616
Comma or space separated subset of agents to build (default: all)
17-
Valid agents: claude, gemini, copilot, cursor-agent, qwen, opencode, windsurf, codex, kilocode, auggie, roo, codebuddy, amp, kiro-cli, bob, qodercli, shai, tabnine, agy, vibe, kimi, trae, pi, generic
17+
Valid agents: claude, gemini, copilot, cursor-agent, qwen, opencode, windsurf, codex, kilocode, auggie, roo, codebuddy, amp, kiro-cli, bob, qodercli, shai, tabnine, agy, vibe, kimi, trae, pi, iflow, generic
1818
1919
.PARAMETER Scripts
2020
Comma or space separated subset of script types to build (default: both)
@@ -463,6 +463,10 @@ function Build-Variant {
463463
$cmdDir = Join-Path $baseDir ".pi/prompts"
464464
Generate-Commands -Agent 'pi' -Extension 'md' -ArgFormat '$ARGUMENTS' -OutputDir $cmdDir -ScriptVariant $Script
465465
}
466+
'iflow' {
467+
$cmdDir = Join-Path $baseDir ".iflow/commands"
468+
Generate-Commands -Agent 'iflow' -Extension 'md' -ArgFormat '$ARGUMENTS' -OutputDir $cmdDir -ScriptVariant $Script
469+
}
466470
'generic' {
467471
$cmdDir = Join-Path $baseDir ".speckit/commands"
468472
Generate-Commands -Agent 'generic' -Extension 'md' -ArgFormat '$ARGUMENTS' -OutputDir $cmdDir -ScriptVariant $Script
@@ -479,7 +483,7 @@ function Build-Variant {
479483
}
480484

481485
# Define all agents and scripts
482-
$AllAgents = @('claude', 'gemini', 'copilot', 'cursor-agent', 'qwen', 'opencode', 'windsurf', 'codex', 'kilocode', 'auggie', 'roo', 'codebuddy', 'amp', 'kiro-cli', 'bob', 'qodercli', 'shai', 'tabnine', 'agy', 'vibe', 'kimi', 'trae', 'pi', 'generic')
486+
$AllAgents = @('claude', 'gemini', 'copilot', 'cursor-agent', 'qwen', 'opencode', 'windsurf', 'codex', 'kilocode', 'auggie', 'roo', 'codebuddy', 'amp', 'kiro-cli', 'bob', 'qodercli', 'shai', 'tabnine', 'agy', 'vibe', 'kimi', 'trae', 'pi', 'iflow', 'generic')
483487
$AllScripts = @('sh', 'ps')
484488

485489
function Normalize-List {

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

Lines changed: 5 additions & 2 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 kilocode auggie roo codebuddy amp shai tabnine kiro-cli agy bob vibe qodercli kimi trae pi generic (default: all)
9+
# AGENTS : space or comma separated subset of: claude gemini copilot cursor-agent qwen opencode windsurf codex kilocode auggie roo codebuddy amp shai tabnine kiro-cli agy bob vibe qodercli kimi trae pi iflow generic (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
@@ -297,6 +297,9 @@ build_variant() {
297297
pi)
298298
mkdir -p "$base_dir/.pi/prompts"
299299
generate_commands pi md "\$ARGUMENTS" "$base_dir/.pi/prompts" "$script" ;;
300+
iflow)
301+
mkdir -p "$base_dir/.iflow/commands"
302+
generate_commands iflow md "\$ARGUMENTS" "$base_dir/.iflow/commands" "$script" ;;
300303
generic)
301304
mkdir -p "$base_dir/.speckit/commands"
302305
generate_commands generic md "\$ARGUMENTS" "$base_dir/.speckit/commands" "$script" ;;
@@ -306,7 +309,7 @@ build_variant() {
306309
}
307310

308311
# Determine agent list
309-
ALL_AGENTS=(claude gemini copilot cursor-agent qwen opencode windsurf codex kilocode auggie roo codebuddy amp shai tabnine kiro-cli agy bob vibe qodercli kimi trae pi generic)
312+
ALL_AGENTS=(claude gemini copilot cursor-agent qwen opencode windsurf codex kilocode auggie roo codebuddy amp shai tabnine kiro-cli agy bob vibe qodercli kimi trae pi iflow generic)
310313
ALL_SCRIPTS=(sh ps)
311314

312315
norm_list() {

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Specify supports multiple AI agents by generating agent-specific command files a
4646
| **Tabnine CLI** | `.tabnine/agent/commands/` | TOML | `tabnine` | Tabnine CLI |
4747
| **Kimi Code** | `.kimi/skills/` | Markdown | `kimi` | Kimi Code CLI (Moonshot AI) |
4848
| **Pi Coding Agent** | `.pi/prompts/` | Markdown | `pi` | Pi terminal coding agent |
49+
| **iFlow CLI** | `.iflow/commands/` | Markdown | `iflow` | iFlow CLI (iflow-ai) |
4950
| **IBM Bob** | `.bob/commands/` | Markdown | N/A (IDE-based) | IBM Bob IDE |
5051
| **Trae** | `.trae/rules/` | Markdown | N/A (IDE-based) | Trae IDE |
5152
| **Generic** | User-specified via `--ai-commands-dir` | Markdown | N/A | Bring your own agent |

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ See Spec-Driven Development in action across different scenarios with these comm
188188
| [Tabnine CLI](https://docs.tabnine.com/main/getting-started/tabnine-cli) || |
189189
| [Mistral Vibe](https://github.com/mistralai/mistral-vibe) || |
190190
| [Kimi Code](https://code.kimi.com/) || |
191+
| [iFlow CLI](https://docs.iflow.cn/en/cli/quickstart) || |
191192
| [Windsurf](https://windsurf.com/) || |
192193
| [Antigravity (agy)](https://antigravity.google/) || Requires `--ai-skills` |
193194
| [Trae](https://www.trae.ai/) || |
@@ -199,17 +200,17 @@ The `specify` command supports the following options:
199200

200201
### Commands
201202

202-
| Command | Description |
203-
| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
204-
| `init` | Initialize a new Specify project from the latest template |
205-
| `check` | Check for installed tools (`git`, `claude`, `gemini`, `code`/`code-insiders`, `cursor-agent`, `windsurf`, `qwen`, `opencode`, `codex`, `kiro-cli`, `shai`, `qodercli`, `vibe`, `kimi`, `pi`) |
203+
| Command | Description |
204+
| ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
205+
| `init` | Initialize a new Specify project from the latest template |
206+
| `check` | Check for installed tools: `git` plus all CLI-based agents configured in `AGENT_CONFIG` (for example: `claude`, `gemini`, `code`/`code-insiders`, `cursor-agent`, `windsurf`, `qwen`, `opencode`, `codex`, `kiro-cli`, `shai`, `qodercli`, `vibe`, `kimi`, `iflow`, `pi`, etc.) |
206207

207208
### `specify init` Arguments & Options
208209

209-
| Argument/Option | Type | Description |
210-
| ---------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
211-
| `<project-name>` | Argument | Name for your new project directory (optional if using `--here`, or use `.` for current directory) |
212-
| `--ai` | Option | AI assistant to use: `claude`, `gemini`, `copilot`, `cursor-agent`, `qwen`, `opencode`, `codex`, `windsurf`, `kilocode`, `auggie`, `roo`, `codebuddy`, `amp`, `shai`, `kiro-cli` (`kiro` alias), `agy`, `bob`, `qodercli`, `vibe`, `kimi`, `pi`, or `generic` (requires `--ai-commands-dir`) |
210+
| Argument/Option | Type | Description |
211+
| ---------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
212+
| `<project-name>` | Argument | Name for your new project directory (optional if using `--here`, or use `.` for current directory) |
213+
| `--ai` | Option | AI assistant to use (see `AGENT_CONFIG` for the full, up-to-date list). Common options include: `claude`, `gemini`, `copilot`, `cursor-agent`, `qwen`, `opencode`, `codex`, `windsurf`, `kilocode`, `auggie`, `roo`, `codebuddy`, `amp`, `shai`, `kiro-cli` (`kiro` alias), `agy`, `bob`, `qodercli`, `vibe`, `kimi`, `iflow`, `pi`, or `generic` (requires `--ai-commands-dir`) |
213214
| `--ai-commands-dir` | Option | Directory for agent command files (required with `--ai generic`, e.g. `.myagent/commands/`) |
214215
| `--script` | Option | Script variant to use: `sh` (bash/zsh) or `ps` (PowerShell) |
215216
| `--ignore-agent-tools` | Flag | Skip checks for AI agent tools like Claude Code |

scripts/bash/update-agent-context.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
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, Roo Code, CodeBuddy CLI, Qoder CLI, Amp, SHAI, Tabnine CLI, Kiro CLI, Mistral Vibe, Kimi Code, Pi Coding Agent, Antigravity or Generic
33+
# - Supports: Claude, Gemini, Copilot, Cursor, Qwen, opencode, Codex, Windsurf, 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
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|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|generic
38+
# Agent types: claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|iflow|generic
3939
# Leave empty to update all existing agent files
4040

4141
set -e
@@ -84,6 +84,7 @@ BOB_FILE="$AGENTS_FILE"
8484
VIBE_FILE="$REPO_ROOT/.vibe/agents/specify-agents.md"
8585
KIMI_FILE="$REPO_ROOT/KIMI.md"
8686
TRAE_FILE="$REPO_ROOT/.trae/rules/AGENTS.md"
87+
IFLOW_FILE="$REPO_ROOT/IFLOW.md"
8788

8889
# Template file
8990
TEMPLATE_FILE="$REPO_ROOT/.specify/templates/agent-file-template.md"
@@ -682,12 +683,15 @@ update_specific_agent() {
682683
pi)
683684
update_agent_file "$AGENTS_FILE" "Pi Coding Agent" || return 1
684685
;;
686+
iflow)
687+
update_agent_file "$IFLOW_FILE" "iFlow CLI" || return 1
688+
;;
685689
generic)
686690
log_info "Generic agent: no predefined context file. Use the agent-specific update script for your agent."
687691
;;
688692
*)
689693
log_error "Unknown agent type '$agent_type'"
690-
log_error "Expected: claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|generic"
694+
log_error "Expected: claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|iflow|generic"
691695
exit 1
692696
;;
693697
esac
@@ -747,6 +751,7 @@ update_all_existing_agents() {
747751
_update_if_new "$VIBE_FILE" "Mistral Vibe" || _all_ok=false
748752
_update_if_new "$KIMI_FILE" "Kimi Code" || _all_ok=false
749753
_update_if_new "$TRAE_FILE" "Trae" || _all_ok=false
754+
_update_if_new "$IFLOW_FILE" "iFlow CLI" || _all_ok=false
750755

751756
# If no agent files exist, create a default Claude file
752757
if [[ "$_found_agent" == false ]]; then
@@ -773,7 +778,7 @@ print_summary() {
773778
fi
774779

775780
echo
776-
log_info "Usage: $0 [claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|generic]"
781+
log_info "Usage: $0 [claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|iflow|generic]"
777782
}
778783

779784
#==============================================================================

scripts/powershell/update-agent-context.ps1

Lines changed: 7 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, codebuddy, amp, shai, tabnine, kiro-cli, agy, bob, vibe, qodercli, kimi, trae, pi, generic)
12+
5. Multi-Agent Support (claude, gemini, copilot, cursor-agent, qwen, opencode, codex, windsurf, kilocode, auggie, roo, codebuddy, amp, shai, tabnine, kiro-cli, agy, bob, vibe, qodercli, kimi, trae, pi, iflow, generic)
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','amp','shai','tabnine','kiro-cli','agy','bob','qodercli','vibe','kimi','trae','pi','generic')]
28+
[ValidateSet('claude','gemini','copilot','cursor-agent','qwen','opencode','codex','windsurf','kilocode','auggie','roo','codebuddy','amp','shai','tabnine','kiro-cli','agy','bob','qodercli','vibe','kimi','trae','pi','iflow','generic')]
2929
[string]$AgentType
3030
)
3131

@@ -65,6 +65,7 @@ $BOB_FILE = Join-Path $REPO_ROOT 'AGENTS.md'
6565
$VIBE_FILE = Join-Path $REPO_ROOT '.vibe/agents/specify-agents.md'
6666
$KIMI_FILE = Join-Path $REPO_ROOT 'KIMI.md'
6767
$TRAE_FILE = Join-Path $REPO_ROOT '.trae/rules/AGENTS.md'
68+
$IFLOW_FILE = Join-Path $REPO_ROOT 'IFLOW.md'
6869

6970
$TEMPLATE_FILE = Join-Path $REPO_ROOT '.specify/templates/agent-file-template.md'
7071

@@ -411,8 +412,9 @@ function Update-SpecificAgent {
411412
'kimi' { Update-AgentFile -TargetFile $KIMI_FILE -AgentName 'Kimi Code' }
412413
'trae' { Update-AgentFile -TargetFile $TRAE_FILE -AgentName 'Trae' }
413414
'pi' { Update-AgentFile -TargetFile $AGENTS_FILE -AgentName 'Pi Coding Agent' }
415+
'iflow' { Update-AgentFile -TargetFile $IFLOW_FILE -AgentName 'iFlow CLI' }
414416
'generic' { Write-Info 'Generic agent: no predefined context file. Use the agent-specific update script for your agent.' }
415-
default { Write-Err "Unknown agent type '$Type'"; Write-Err 'Expected: claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|generic'; return $false }
417+
default { Write-Err "Unknown agent type '$Type'"; Write-Err 'Expected: claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|iflow|generic'; return $false }
416418
}
417419
}
418420

@@ -439,6 +441,7 @@ function Update-AllExistingAgents {
439441
if (Test-Path $VIBE_FILE) { if (-not (Update-AgentFile -TargetFile $VIBE_FILE -AgentName 'Mistral Vibe')) { $ok = $false }; $found = $true }
440442
if (Test-Path $KIMI_FILE) { if (-not (Update-AgentFile -TargetFile $KIMI_FILE -AgentName 'Kimi Code')) { $ok = $false }; $found = $true }
441443
if (Test-Path $TRAE_FILE) { if (-not (Update-AgentFile -TargetFile $TRAE_FILE -AgentName 'Trae')) { $ok = $false }; $found = $true }
444+
if (Test-Path $IFLOW_FILE) { if (-not (Update-AgentFile -TargetFile $IFLOW_FILE -AgentName 'iFlow CLI')) { $ok = $false }; $found = $true }
442445
if (-not $found) {
443446
Write-Info 'No existing agent files found, creating default Claude file...'
444447
if (-not (Update-AgentFile -TargetFile $CLAUDE_FILE -AgentName 'Claude Code')) { $ok = $false }
@@ -453,7 +456,7 @@ function Print-Summary {
453456
if ($NEW_FRAMEWORK) { Write-Host " - Added framework: $NEW_FRAMEWORK" }
454457
if ($NEW_DB -and $NEW_DB -ne 'N/A') { Write-Host " - Added database: $NEW_DB" }
455458
Write-Host ''
456-
Write-Info 'Usage: ./update-agent-context.ps1 [-AgentType claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|generic]'
459+
Write-Info 'Usage: ./update-agent-context.ps1 [-AgentType claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|iflow|generic]'
457460
}
458461

459462
function Main {

src/specify_cli/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,13 @@ def _format_rate_limit_error(status_code: int, headers: httpx.Headers, url: str)
289289
"install_url": "https://www.npmjs.com/package/@mariozechner/pi-coding-agent",
290290
"requires_cli": True,
291291
},
292+
"iflow": {
293+
"name": "iFlow CLI",
294+
"folder": ".iflow/",
295+
"commands_subdir": "commands",
296+
"install_url": "https://docs.iflow.cn/en/cli/quickstart",
297+
"requires_cli": True,
298+
},
292299
"generic": {
293300
"name": "Generic (bring your own agent)",
294301
"folder": None, # Set dynamically via --ai-commands-dir

0 commit comments

Comments
 (0)