
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
AI coding agent for the terminal. Multi-session TUI, 24+ LLM providers, built-in tools, MCP/ACP support.
npm install -g @dimcode/cli
dim
进入交互模式后,你可以直接输入问题或任务,DimCode 会帮你完成。
dim "帮我创建一个 React 组件"
适合快速完成单个任务,执行完后自动退出。
在交互模式下,你可以使用以下命令:
| 命令 | 说明 |
|---|---|
/help | 显示帮助信息 |
/model | 查看或切换当前模型 |
/history | 显示对话历史 |
/clear | 清空当前对话 |
/exit 或 Ctrl+C | 退出程序 |
> 帮我写一个 Python 函数,计算斐波那契数列
> 把这个函数改成递归实现
> 给这个函数加上类型注解
> 写个单元测试
> 读取 src/utils.js 文件
> 在 main.py 第 10 行后面添加日志
> 搜索项目中所有使用 axios 的地方
> 运行 npm test
> 查看当前目录下的文件
> 检查 git 状态
配置文件位于 ~/.dimcode/config.json:
{
"model": "gpt-4",
"apiKey": "your-api-key",
"theme": "dark"
}
也可以通过环境变量配置:
| 变量 | 说明 |
|---|---|
DIMCODE_MODEL | 默认模型 |
DIMCODE_API_KEY | API 密钥 |
DIMCODE_BASE_URL | API 基础 URL |
dim [选项] [命令]
选项:
-m, --model <model> 指定使用的模型
-c, --config <path> 指定配置文件路径
-v, --version 显示版本号
-h, --help 显示帮助信息
| 快捷键 | 功能 |
|---|---|
Ctrl+C | 取消当前操作 / 退出 |
Tab | 自动补全 |
↑/↓ | 浏览历史输入 |
遇到问题?
/helpFAQs
AI coding agent CLI and terminal coding assistant with an interactive TUI (beta channel)
The npm package dimcode receives a total of 2,176 weekly downloads. As such, dimcode popularity was classified as popular.
We found that dimcode demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.