Skip to content

"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/

Python

refactor: move Qodercli setup script to dedicated qoder-plugin/ directory

shengwei.psw52dc2fb7de2d
diff --git a/.gitignore b/.gitignore
index bfeb417e0..059602d7d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -89,4 +89,5 @@
assets/gen_typing_gif.py
!README_CN.md
-!opencode-commands/
\ No newline at end of file
+!opencode-commands/
+!/qoder-plugin/
\ No newline at end of file
diff --git a/README.md b/README.md
index 906e2e180..a17b16920 100644
--- a/README.md
+++ b/README.md
@@ -56,7 +56,7 @@ CLI is the universal interface for both humans and AI agents:
- **Python 3.10+**
- Target software installed (e.g., GIMP, Blender, LibreOffice, or your own application)
-- A supported AI coding agent: [Claude Code](#-claude-code) | [OpenCode](#-opencode) | [More Platforms](#-more-platforms-coming-soon)
+- A supported AI coding agent: [Claude Code](#-claude-code) | [OpenCode](#-opencode) | [Qodercli](#-qodercli) | [More Platforms](#-more-platforms-coming-soon)
### Pick Your Platform
@@ -182,6 +182,28 @@ The command runs as a subtask and follows the same 7-phase methodology as Claude
</details>
+<details>
+<summary><h4 id="-qodercli">โšก Qodercli</h4></summary>
+
+**Step 1: Register the Plugin**
+
+```bash
+git clone https://github.com/HKUDS/CLI-Anything.git
+bash CLI-Anything/qoder-plugin/setup-qodercli.sh
+```
+
+This registers the cli-anything plugin in `~/.qoder.json`. Start a new Qodercli session after registration.
+
+**Step 2: Use CLI-Anything from Qodercli**
+
+```bash
+/cli-anything:cli-anything ./gimp
+/cli-anything:refine ./gimp "batch processing and filters"
+/cli-anything:validate ./gimp
+```
+
+</details>
+
<details>
<summary><h4 id="-more-platforms-coming-soon">๐Ÿ”ฎ More Platforms (Coming Soon)</h4></summary>
diff --git a/README_CN.md b/README_CN.md
index 09cef2fc1..0738e92a8 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -56,7 +56,7 @@ CLI ๆ˜ฏไบบ็ฑปๅ’Œ AI Agent ๅ…ฑ้€š็š„ไธ‡่ƒฝๆŽฅๅฃ๏ผš
- **Python 3.10+**
- ็›ฎๆ ‡่ฝฏไปถๅทฒๅฎ‰่ฃ…๏ผˆๅฆ‚ GIMPใ€Blenderใ€LibreOffice ๆˆ–ไฝ ่‡ชๅทฑ็š„ๅบ”็”จ๏ผ‰
-- ๆ”ฏๆŒ็š„ AI ็ผ–็จ‹ๅทฅๅ…ทไน‹ไธ€๏ผš[Claude Code](#-claude-code) | [OpenCode](#-opencode) | [ๆ›ดๅคšๅนณๅฐ](#-ๆ›ดๅคšๅนณๅฐๅณๅฐ†ๆ”ฏๆŒ)
+- ๆ”ฏๆŒ็š„ AI ็ผ–็จ‹ๅทฅๅ…ทไน‹ไธ€๏ผš[Claude Code](#-claude-code) | [OpenCode](#-opencode) | [Qodercli](#-qodercli) | [ๆ›ดๅคšๅนณๅฐ](#-ๆ›ดๅคšๅนณๅฐๅณๅฐ†ๆ”ฏๆŒ)
### ้€‰ๆ‹ฉไฝ ็š„ๅนณๅฐ
@@ -182,6 +182,28 @@ cp CLI-Anything/cli-anything-plugin/HARNESS.md .opencode/commands/
</details>
+<details>
+<summary><h4 id="-qodercli">โšก Qodercli</h4></summary>
+
+**็ฌฌไธ€ๆญฅ๏ผšๆณจๅ†Œๆ’ไปถ**
+
+```bash
+git clone https://github.com/HKUDS/CLI-Anything.git
+bash CLI-Anything/qoder-plugin/setup-qodercli.sh
+```
+
+่„šๆœฌไผšๅฐ† cli-anything ๆ’ไปถๆณจๅ†Œๅˆฐ `~/.qoder.json`ใ€‚ๆณจๅ†ŒๅŽๅผ€ๅฏๆ–ฐ็š„ Qodercli ไผš่ฏๅณๅฏไฝฟ็”จใ€‚
+
+**็ฌฌไบŒๆญฅ๏ผšๅœจ Qodercli ไธญไฝฟ็”จ CLI-Anything**
+
+```bash
+/cli-anything:cli-anything ./gimp
+/cli-anything:refine ./gimp "ๆ‰นๅค„็†ๅ’Œๆปค้•œ"
+/cli-anything:validate ./gimp
+```
+
+</details>
+
<details>
<summary><h4 id="-ๆ›ดๅคšๅนณๅฐๅณๅฐ†ๆ”ฏๆŒ">๐Ÿ”ฎ ๆ›ดๅคšๅนณๅฐ๏ผˆๅณๅฐ†ๆ”ฏๆŒ๏ผ‰</h4></summary>
diff --git a/qoder-plugin/setup-qodercli.sh b/qoder-plugin/setup-qodercli.sh
new file mode 100755
index 000000000..3ffe7f1a7
--- /dev/null
+++ b/qoder-plugin/setup-qodercli.sh
@@ -0,0 +1,98 @@
+#!/usr/bin/env bash
+# Register cli-anything plugin for Qodercli
+#
+# Usage:
+# bash setup-qodercli.sh # Auto-detect plugin path
+# bash setup-qodercli.sh /custom/path # Use custom plugin path
+
+set -euo pipefail
+
+# Colors
+GREEN='\033[0;32m'
+YELLOW='\033[1;33m'
+BLUE='\033[0;34m'
+NC='\033[0m'
+
+# Determine plugin path
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+# Default to cli-anything-plugin relative to qoder-plugin directory
+PLUGIN_DIR="${1:-$(cd "${SCRIPT_DIR}/../cli-anything-plugin" && pwd)}"
+
+# Validate plugin directory
+if [ ! -f "${PLUGIN_DIR}/.claude-plugin/plugin.json" ]; then
+ echo -e "${YELLOW}Error: plugin.json not found at ${PLUGIN_DIR}/.claude-plugin/${NC}"
+ exit 1
+fi
+
+# Qodercli config file
+QODER_CONFIG="${QODER_HOME:-$HOME}/.qoder.json"
+
+echo -e "${BLUE}โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”${NC}"
+echo -e "${BLUE} cli-anything Plugin for Qodercli${NC}"
+echo -e "${BLUE}โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”${NC}"
+echo ""
+echo "Plugin path: ${PLUGIN_DIR}"
+echo "Config file: ${QODER_CONFIG}"
+echo ""
+
+# Check if jq is available
+if ! command -v jq &> /dev/null; then
+ echo -e "${YELLOW}jq not found. Please install jq or manually add to ${QODER_CONFIG}:${NC}"
+ echo ""
+ echo '{'
+ echo ' "plugins": {'
+ echo ' "sources": {'
+ echo ' "local": [{"path": "'"${PLUGIN_DIR}"'"}]'
+ echo ' }'
+ echo ' }'
+ echo '}'
+ echo ""
+ exit 1
+fi
+
+# Create or update config
+if [ -f "${QODER_CONFIG}" ]; then
+ # Check if plugin already registered
+ if jq -e ".plugins.sources.local[]? | select(.path == \"${PLUGIN_DIR}\")" "${QODER_CONFIG}" > /dev/null 2>&1; then
+ echo -e "${GREEN}โœ“ Plugin already registered in ${QODER_CONFIG}${NC}"
+ else
+ # Add plugin to existing config
+ TMP_CONFIG=$(mktemp)
+ jq --arg path "${PLUGIN_DIR}" '
+ .plugins //= {} |
+ .plugins.sources //= {} |
+ .plugins.sources.local //= [] |
+ .plugins.sources.local += [{"path": $path}]
+ ' "${QODER_CONFIG}" > "${TMP_CONFIG}"
+ mv "${TMP_CONFIG}" "${QODER_CONFIG}"
+ echo -e "${GREEN}โœ“ Plugin added to ${QODER_CONFIG}${NC}"
+ fi
+else
+ # Create new config
+ cat > "${QODER_CONFIG}" << EOF
+{
+ "plugins": {
+ "sources": {
+ "local": [{"path": "${PLUGIN_DIR}"}]
+ }
+ }
+}
+EOF
+ echo -e "${GREEN}โœ“ Created ${QODER_CONFIG} with plugin registered${NC}"
+fi
+
+echo ""
+echo -e "${GREEN}โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”${NC}"
+echo -e "${GREEN} Installation complete!${NC}"
+echo -e "${GREEN}โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”${NC}"
+echo ""
+echo "Start a new Qodercli session to use the plugin."
+echo ""
+echo "Available commands:"
+echo ""
+echo -e " ${BLUE}/cli-anything:cli-anything${NC} <path> - Build complete CLI harness"
+echo -e " ${BLUE}/cli-anything:refine${NC} <path> [focus] - Refine existing harness"
+echo -e " ${BLUE}/cli-anything:test${NC} <path> - Run tests"
+echo -e " ${BLUE}/cli-anything:validate${NC} <path> - Validate harness"
+echo -e " ${BLUE}/cli-anything:list${NC} - List CLI tools"
+echo ""