Skip to content

feat(connect): add Qoder CLI CN adapter#920

Open
fu827707013 wants to merge 3 commits into
rohitg00:mainfrom
fu827707013:feat/qoder-clicn-support
Open

feat(connect): add Qoder CLI CN adapter#920
fu827707013 wants to merge 3 commits into
rohitg00:mainfrom
fu827707013:feat/qoder-clicn-support

Conversation

@fu827707013

@fu827707013 fu827707013 commented Jun 12, 2026

Copy link
Copy Markdown

feat(connect): 添加对 Qoder CLI CN 的支持

添加了 Qoder CLI CN (Qwen 衍生版) 的适配器支持,包括:

  • 在 INSTALL_FOR_AGENTS.md 中更新支持的代理列表
  • 在 README.md 中添加 Qoder CLI CN 的集成说明
  • 实现 qoder-clicn 适配器并将其添加到连接器列表中
  • 允许在 Windows 上使用 qoder-clicn 适配器
  • 提供完整的钩子注册片段和 Windows 路径说明

## Summary
    - Add `qoder-clicn` connect adapter that writes the standard `mcpServers` block to `~/.qoder-cn/settings.json`
    - Allow `qoder-clicn` on Windows (alongside `copilot-cli`) in the connect CLI
    - Add `QODER-COMPAT.md` with full integration guide (hooks, skills, plugin install, Windows notes)
    - Update `README.md` and `INSTALL_FOR_AGENTS.md` to list the new agent

    ## Test plan
    - [ ] `agentmemory connect qoder-clicn --dry-run` produces correct output
    - [ ] `agentmemory connect qoder-clicn` writes mcpServers to `~/.qoder-cn/settings.json`
    - [ ] Windows is not blocked for `qoder-clicn`
    - [ ] `npx tsc --noEmit` has no new type errors in `src/cli/connect/`

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

* **New Features**
  * Added support for Qoder CLI CN (qoder-clicn) in the agent connect flow, including Windows automated-connect allowlist.

* **Documentation**
  * Added a comprehensive Qoder CLI CN compatibility guide covering hooks, MCP setup, hook payloads, lifecycle events not fired, installation/cleanup steps, and known Windows caveats.
  * Updated README agent table and install/run instructions to reference Qoder CLI CN and the compatibility guide.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

```
feat(connect): 添加对 Qoder CLI CN 的支持

添加了 Qoder CLI CN (Qwen 衍生版) 的适配器支持,包括:

- 在 INSTALL_FOR_AGENTS.md 中更新支持的代理列表
- 在 README.md 中添加 Qoder CLI CN 的集成说明
- 实现 qoder-clicn 适配器并将其添加到连接器列表中
- 允许在 Windows 上使用 qoder-clicn 适配器
- 提供完整的钩子注册片段和 Windows 路径说明
```
@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the rohitg00's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d2d6738c-969d-479b-b968-7d3f0336fc73

📥 Commits

Reviewing files that changed from the base of the PR and between ab98d74 and 5253961.

📒 Files selected for processing (3)
  • INSTALL_FOR_AGENTS.md
  • src/cli/connect/index.ts
  • src/cli/connect/qoder-clicn.ts
💤 Files with no reviewable changes (1)
  • src/cli/connect/qoder-clicn.ts

📝 Walkthrough

Walkthrough

Adds support for Qoder CLI CN by introducing a new qoder-clicn JSON-MCP adapter, registering it in the connect adapters list, permitting it in Windows automated connect, and adding comprehensive compatibility and installation documentation (QODER-COMPAT.md, README, install runbook).

Changes

Qoder CLI CN Agent Integration

Layer / File(s) Summary
Adapter implementation and registration
src/cli/connect/qoder-clicn.ts, src/cli/connect/index.ts
Adds a qoder-clicn adapter (JSON-MCP targeting ~/.qoder-cn / ~/.qoder-cn/settings.json), imports and registers it in ADAPTERS, and extends the Windows runConnect allowlist to accept qoder-clicn.
Documentation and compatibility guide
QODER-COMPAT.md, README.md, INSTALL_FOR_AGENTS.md
Adds QODER-COMPAT.md with MCP registration examples, hooks/events/payload details, plugin install and fallback flows, skills layout, Windows caveats, differences vs Claude/Qwen Code, and test logs. Updates README and install runbook to document qoder-clicn and link to the compatibility guide.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Poem

🐰 I hopped through docs and code tonight,
Planted qoder-clicn where adapters light—
Settings, hooks, and skills now in view,
Windows and CN paths stitched through,
A little rabbit cheers the connect flight.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat(connect): add Qoder CLI CN adapter' clearly and concisely summarizes the main change—adding a new Qoder CLI CN adapter to the connect functionality.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/cli/connect/index.ts (1)

23-42: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Keep the OpenCode adapter/docs in sync.

Removing opencode from ADAPTERS makes agentmemory connect opencode fail and removes it from onboarding, but INSTALL_FOR_AGENTS.md still advertises it as a supported target. Either restore the adapter entry or drop OpenCode from the runbook in the same change. Affected files: src/cli/connect/index.ts, INSTALL_FOR_AGENTS.md.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/cli/connect/index.ts` around lines 23 - 42, ADAPTERS no longer contains
the opencode adapter which breaks "agentmemory connect opencode" and leaves docs
out of sync; either re-add the opencode adapter entry to the ADAPTERS array (use
the exact exported adapter identifier name opencode so the CLI can resolve it)
in the same module where ADAPTERS is defined, or if you intentionally removed
support, remove or update the OpenCode reference in INSTALL_FOR_AGENTS.md so the
runbook matches the codebase. Ensure the adapter identifier you add matches the
adapter export name used elsewhere (opencode) and update tests or onboarding
lists that reference OpenCode.
🧹 Nitpick comments (1)
src/cli/connect/qoder-clicn.ts (1)

5-8: 💤 Low value

Remove the redundant WHAT-comment.

The adapter name, config paths, and protocolNote already communicate this context. As per coding guidelines, "In TypeScript source code, avoid code comments explaining WHAT — use clear naming instead."

♻️ Proposed cleanup
-import { createJsonMcpAdapter } from "./json-mcp-adapter.js";
-
-// Qoder CLI CN (qoderclicn) is a Qwen-derived coding-agent CLI whose
-// user config lives at ~/.qoder-cn/settings.json. Its mcpServers schema
-// matches the standard JSON shape, so the shared adapter handles the
-// wiring. Hooks are configured separately — see QODER-COMPAT.md.
+import { createJsonMcpAdapter } from "./json-mcp-adapter.js";
+
 export const adapter = createJsonMcpAdapter({
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/cli/connect/qoder-clicn.ts` around lines 5 - 8, Remove the redundant
WHAT-style header comment block that begins with "Qoder CLI CN (qoderclicn)..."
— the adapter name, config paths and existing protocolNote already convey this
context; simply delete that comment lines from the top of
src/cli/connect/qoder-clicn.ts and leave any remaining file-level metadata (like
protocolNote or TODOs) intact so naming and config live in code rather than
explained in a WHAT comment.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@src/cli/connect/index.ts`:
- Around line 23-42: ADAPTERS no longer contains the opencode adapter which
breaks "agentmemory connect opencode" and leaves docs out of sync; either re-add
the opencode adapter entry to the ADAPTERS array (use the exact exported adapter
identifier name opencode so the CLI can resolve it) in the same module where
ADAPTERS is defined, or if you intentionally removed support, remove or update
the OpenCode reference in INSTALL_FOR_AGENTS.md so the runbook matches the
codebase. Ensure the adapter identifier you add matches the adapter export name
used elsewhere (opencode) and update tests or onboarding lists that reference
OpenCode.

---

Nitpick comments:
In `@src/cli/connect/qoder-clicn.ts`:
- Around line 5-8: Remove the redundant WHAT-style header comment block that
begins with "Qoder CLI CN (qoderclicn)..." — the adapter name, config paths and
existing protocolNote already convey this context; simply delete that comment
lines from the top of src/cli/connect/qoder-clicn.ts and leave any remaining
file-level metadata (like protocolNote or TODOs) intact so naming and config
live in code rather than explained in a WHAT comment.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a4472b50-61bf-4a42-9dd6-708e0d48e592

📥 Commits

Reviewing files that changed from the base of the PR and between f6f9e3c and ab98d74.

📒 Files selected for processing (5)
  • INSTALL_FOR_AGENTS.md
  • QODER-COMPAT.md
  • README.md
  • src/cli/connect/index.ts
  • src/cli/connect/qoder-clicn.ts

yfu added 2 commits June 13, 2026 00:36
```
refactor(cli): 移除Qoder CLI CN的注释说明

移除了关于Qoder CLI CN的用户配置路径和MCP服务器模式匹配的注释说明,
保留了核心适配器功能代码
```
@fu827707013 fu827707013 reopened this Jun 12, 2026
@fu827707013 fu827707013 marked this pull request as draft June 12, 2026 16:50
@fu827707013 fu827707013 marked this pull request as ready for review June 12, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant