Skip to content

Lingma cookbook

For readers who can already sign in and accept a completion. Install is in the tutorial. Keys are in the cheatsheet.

Pick the chat mode

JobModeOfficial reason
Explain this React componentAsk"Does not edit project files"
Change a named set of files and review the diffEditPrecise, faster than Agent
Add a feature: edit + install + testAgentCan plan, use the terminal, call MCP
Multi-file edits in Lingma IDE / JetBrainsAgent (there is no Edit)Official: those clients do not support Edit
Visual StudioAskOfficial: Ask-only for now

If you can spot a wrong edit at a glance, use Agent. Otherwise start in Ask.

Sources: Chat overview, Edit, Agent.

Write the task the way the docs ask

Official text (Chat overview):

结构化地描述需求:首先需要澄清我们需要通义灵码帮我们做什么,建议包含一个明确的目标,并通过步骤式的结构化描述,详细地描述您期望完成的编码任务和要求。

给出相关的上下文:可以选择代码文件、图片、codebase、codeChanges 等上下文。

明确生成要求:告诉通义灵码您期望它遵循的要求,比如语言、规范、格式、变更目标等,如“生成变更时,同时为每个方法生成英文注释”。

多多互动,逐步迭代。

Template (structure from those four bullets):

text
Goal: add lastActiveAt sorting to src/components/UserTable.tsx.

Steps:
1. Change the existing component only
2. Default descending; click the header to toggle
3. Add TypeScript types; no any

Requirements:
- Add English comments for every method you change
- Do not touch the API layer

Then attach files / images / codebase. Lingma IDE context does not support the knowledge base yet (same official page).

Agent mode can expand a draft prompt via the optimize-input control (Agent). Read the expanded prompt before you send it.

Run an Agent task that has side effects

  1. Switch to Agent.
  2. State the goal and the hard boundary.
  3. For a complex task, wait for a plan or send /plan.
  4. When a terminal command appears, click Run only if you understand it.
  5. Accept or reject each file in the diff.

Official auto-run allowlist (Agent):

具体配置路径为插件 Chat 设置页面的 Auto-Run 区域,在 Terminal in Agent Mode 下方的输入框中添加允许自动运行的命令。如需添加多个命令,可以使用英文逗号分隔。

Do not put rm, git push, or npm publish on that list in week one.

If Agent cannot start a terminal in VS Code, read Terminal exceptions: the VS Code plugin needs the Shell Integration API, VS Code > 1.93, and a supported default shell. That is a different floor from the 1.68.0 install requirement.

Attach MCP

Official boundary (MCP guide):

MCP(Model Context Protocol)是一种开放标准协议,使其智能体的能力和场景得到拓展。

Markets: ModelScope MCP, Higress MCP.

Example jobs: database schemas / DAO, online docs, design-to-code.

Official path into the MCP page in IntelliJ (MasterGo recipe):

  1. Open chat from the sidebar icon.
  2. Open MCP: the MCP tools link on the welcome line, or avatar → Personal settingsMCP.
  3. Switch to Agent, then write the prompt.
  4. Confirm each MCP call. The result becomes later context.

Do not paste third-party JSON from blog posts as if it were official config. Copy only what the MCP guide shows.

Turn on Next Edit Suggestion (NES)

Official definition (NES): predict the next change from full-file context, recent edits, and the caret. Tab accepts, Esc rejects.

Same page: open personal settings with ⌘ ⇧ , (macOS) or Ctrl Shift , (Windows) and enable NES. Qoder CN IDE only supports Auto mode.

IDE changelogs later rename NES to NEXT. Trust the label in your installed client.

Pitfalls

SymptomCheckSource
Marketplace search misses the pluginOld page says TONGYI Lingma; Help Center says Qoder CNDownload, Install
No VS Code sidebar iconRight-click the activity bar, enable Qoder CNInstall
No Edit mode in JetBrains / Lingma IDEUse AgentChat overview
Agent cannot run the terminal in VS CodeVS Code > 1.93 + supported shell integrationTerminal exceptions
Old Lingma IDE missing new featuresUninstall Lingma IDE, install Qoder CN IDEBilling
Using it as Qwen chatWrong product. See the mapqianwen.com

Built for frontend engineers · Powered by VitePress