Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 2.07 KB

File metadata and controls

60 lines (44 loc) · 2.07 KB

do-code

do-code is an open-source terminal coding agent. It works inside an existing repository and supports multiple Chinese and international model providers.

Install

Node.js 20.19+ or 22.12+ is required.

npm install -g @tree201/do-code
do-code auth
cd /path/to/project
do-code

The installed launcher pins the active Node runtime for the full CLI process and prints a direct upgrade message if the runtime is unsupported.

First use

do-code auth opens a guided provider setup for Ark, Bailian, DeepSeek, MiniMax, Z.AI, ModelScope, OpenAI-compatible, Anthropic, and Gemini services. Your API key is stored in local user configuration with restricted permissions; it is not written into sessions, traces, or error reports.

do-code doctor
do-code --help

In chat, type / to browse commands and @ to attach workspace files. Use /resume to continue a prior session, /language zh or /language en to switch language, and /bug to create a redacted local error report.

Recent improvements

Queued prompts stay directly above the composer and can be recalled with . Large pasted text folds into a compact preview instead of displacing the input. Long inline code, URLs, unspaced CJK text, and emoji wrap safely for terminal display width. Each session also remembers its approval mode; use Ctrl+G to change it while working. Context compaction keeps a rolling summary plus recent complete task turns, and long-running work can use a task note for the current goal, progress, evidence, blockers, and next step, stored outside the workspace.

Safe automation

The default permission mode asks before risky operations. --yes enables full automation for trusted workspaces and CI:

printf '%s\n' "Fix the failing test and run it" | do-code --yes --output-format stream-json

Use do-code errors list and do-code errors show <error-id> to inspect a failure, and do-code sessions to search, export, or resume project sessions.

Source code, evaluation environment, contribution guide, and security policy: https://github.com/tree201/do-code