-
Notifications
You must be signed in to change notification settings - Fork 0
Home zh
andershsueh edited this page Feb 10, 2026
·
1 revision
ALICE (AI Language Command-line Interface & Executive) 是一个现代化的 AI 驱动的 CLI 助手,完整支持函数调用功能。
- 配置文件 - 完整的 settings.jsonc 参考
ALICE 现在支持完整的函数调用功能:
- ✅ 7 个内置工具 - 文件操作、系统信息、命令执行
- ✅ 智能工具选择 - AI 自动选择合适的工具
- ✅ 实时状态 - 查看工具执行进度
- ✅ 安全优先 - 危险命令需要确认
- ✅ 跨平台 - 支持 Windows、macOS 和 Linux
> You: 现在几点了?
[⏰ getCurrentDateTime] 执行中...
[✅ getCurrentDateTime] 成功
Alice: 现在是 2026 年 2 月 10 日,星期二,下午 3:15。
时区:Asia/Shanghai (UTC+8)
> You: 这个项目有多少个 TypeScript 文件?
[🔍 searchFiles] 搜索 **/*.ts
[✅ searchFiles] 找到 25 个文件
Alice: 这个项目包含 25 个 TypeScript 文件,包括:
- src/index.ts
- src/cli/app.tsx
- src/core/llm.ts
...- 🤖 对话式 AI - 自然语言交互界面
- 🔧 函数调用 - 执行真实世界的任务
- 🛠️ 7 个内置工具 - 文件系统、Git、命令等
- 🛡️ 安全执行 - 危险命令保护
- ⚡ 流式响应 - 实时渲染响应
- 🌐 跨平台 - Windows、macOS、Linux
- 🏠 本地 LLM 支持 - 支持 LM Studio 离线运行
npm install -g alice-cli
alicegit clone https://github.com/AndersHsueh/Alice.git
cd Alice
npm install
npm run devALICE 内置 7 个跨平台工具:
| 工具 | 类别 | 描述 |
|---|---|---|
| readFile | 文件系统 | 读取文件内容 |
| listFiles | 文件系统 | 列出目录内容 |
| searchFiles | 文件系统 | 按模式搜索文件 |
| getCurrentDirectory | 工作区 | 获取当前工作目录 |
| getGitInfo | 工作区 | 获取 Git 仓库信息 |
| getCurrentDateTime | 系统 | 获取当前日期和时间 |
| executeCommand | 系统 | 执行 shell 命令 |
- 常见问题 - 常见问题解答
- 故障排除 - 常见错误和解决方案
- GitHub Issues - 报告 bug
- GitHub: https://github.com/AndersHsueh/Alice
- 问题反馈: https://github.com/AndersHsueh/Alice/issues
- 讨论区: https://github.com/AndersHsueh/Alice/discussions
- 最新版本: v0.2.0
MIT 许可证 - 详见 LICENSE