@shawnstack/quickforge 1.5.6 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +450 -450
- package/dist/assets/{AgentProfilesPage-DFUA4KiP.js → AgentProfilesPage-wpt1cJV0.js} +1 -1
- package/dist/assets/{ChatPanelHost-CBoFtBvB.js → ChatPanelHost-CnQoAfxW.js} +2 -2
- package/dist/assets/{PluginsPage-CKOP-P02.js → PluginsPage-0wwQydcP.js} +1 -1
- package/dist/assets/ScheduledTasksPage-qGHyGkjw.js +2 -0
- package/dist/assets/{SettingsWorkspacePage-Csr6xu0M.js → SettingsWorkspacePage-CeYg_VJl.js} +306 -306
- package/dist/assets/{SharedConversationPage-7I9MiMcj.js → SharedConversationPage-D97o9Ycp.js} +1 -1
- package/dist/assets/TerminalDock-D4zLoahb.js +2 -0
- package/dist/assets/WorkspaceInspector-Bn-am8g6.js +3 -0
- package/dist/assets/{WorkspaceReaderDialog-Dli8GgAq.js → WorkspaceReaderDialog-B2WEMVuF.js} +1 -1
- package/dist/assets/{diff-line-counts-Dvz3MNk2.js → diff-line-counts-B60LmPZX.js} +1 -1
- package/dist/assets/{icons-DXrzz0RO.js → icons-BlAm_pUr.js} +1 -1
- package/dist/assets/{index-BDNDRaPf.css → index-C3bhHGO4.css} +1 -1
- package/dist/assets/index-C_DXqhW8.js +69 -0
- package/dist/assets/{mcp-servers-dialog-DXR3fnZY.js → mcp-servers-dialog-DEyq3gmP.js} +3 -3
- package/dist/assets/{monaco-k8av2MY0.js → monaco-C5Lhy6-h.js} +1 -1
- package/dist/assets/{react-vendor-xMa3TUTb.js → react-vendor--m65aOgw.js} +1 -1
- package/dist/assets/{skills-dialog-Dax-_Ze5.js → skills-dialog-CZ3CuVtQ.js} +1 -1
- package/dist/assets/{useAppTheme-BzB8Q6AC.js → useAppTheme-ChXh3B2c.js} +1 -1
- package/dist/index.html +6 -6
- package/package.json +4 -1
- package/dist/assets/ScheduledTasksPage-CRPvyfmE.js +0 -2
- package/dist/assets/TerminalDock-DWZAOy7v.js +0 -2
- package/dist/assets/WorkspaceInspector-D4k8zQ4s.js +0 -3
- package/dist/assets/index-BIslkXQt.js +0 -69
package/README.md
CHANGED
|
@@ -1,450 +1,450 @@
|
|
|
1
|
-
# 速构 QuickForge
|
|
2
|
-
|
|
3
|
-
<p align="center">
|
|
4
|
-
<img alt="Version" src="https://img.shields.io/badge/version-1.
|
|
5
|
-
<img alt="License" src="https://img.shields.io/badge/license-MIT-green" />
|
|
6
|
-
<img alt="Node" src="https://img.shields.io/badge/node-%3E%
|
|
7
|
-
<img alt="React" src="https://img.shields.io/badge/react-19-61DAFB?logo=react" />
|
|
8
|
-
<img alt="Vite" src="https://img.shields.io/badge/vite-8-646CFF?logo=vite" />
|
|
9
|
-
</p>
|
|
10
|
-
|
|
11
|
-
<p align="center">
|
|
12
|
-
<strong>本地优先的 AI 工作台:聊天、项目上下文、本地工具、MCP、Skills 与定时任务。</strong><br />
|
|
13
|
-
<strong>A local-first AI workspace for chat, project context, local tools, MCP, Skills, and scheduled tasks.</strong>
|
|
14
|
-
</p>
|
|
15
|
-
|
|
16
|
-
<p align="center">
|
|
17
|
-
<a href="#中文">中文</a> · <a href="#english">English</a> · <a href="./docs/user-guide.zh-CN.md">中文教程</a> · <a href="./docs/user-guide.en-US.md">User Guide</a>
|
|
18
|
-
</p>
|
|
19
|
-
|
|
20
|
-
<p align="center">
|
|
21
|
-
<img src="./welcome.png" alt="QuickForge welcome screen" width="900" />
|
|
22
|
-
</p>
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
## 中文
|
|
27
|
-
|
|
28
|
-
QuickForge 是一个运行在本机的 AI 对话与研发辅助工具。它保留 ChatGPT 类产品的对话体验,同时把会话、项目目录、模型配置和工具调用放在本地服务中管理。你可以用它做普通问答,也可以把它绑定到一个代码仓库,让模型在明确授权后阅读文件、搜索代码、编辑内容并运行命令。
|
|
29
|
-
|
|
30
|
-
同一套核心服务支持三种入口:`qf` / `quickforge` CLI、npm 包 `import` 的 SDK 入口,以及用于本地构建 Windows/macOS/Linux 桌面应用的 Electron 入口。
|
|
31
|
-
|
|
32
|
-
它的目标不是替代 IDE,也不是承诺“全自动开发”,而是提供一个可控的本地 AI 工作流入口:先理解项目,再制定计划,最后在你信任的范围内执行改动和验证。
|
|
33
|
-
|
|
34
|
-
### 适合用来做什么
|
|
35
|
-
|
|
36
|
-
- **理解项目**:查看目录结构、搜索调用链、解释模块职责、梳理新人接手路径。
|
|
37
|
-
- **小步修改代码**:让模型在项目目录内读写文件,完成文案、配置、Bug 修复或局部功能改动。
|
|
38
|
-
- **运行验证命令**:在项目工作区执行 lint、build、test、grep 等命令,并把结果带回对话。
|
|
39
|
-
- **沉淀可复用流程**:用 Agent Skills 和项目自定义命令保存团队常用提示词、Runbook 和操作步骤。
|
|
40
|
-
- **连接外部工具**:通过 MCP 接入文件系统、数据库、浏览器、内部服务等工具能力(取决于你配置的 MCP Server)。
|
|
41
|
-
- **异步/周期任务**:创建一次性、每日、每周、每月、间隔或 cron 任务,让模型按计划运行指定工作。
|
|
42
|
-
|
|
43
|
-
### 核心特性
|
|
44
|
-
|
|
45
|
-
| 特性 | 说明 |
|
|
46
|
-
|---|---|
|
|
47
|
-
| 本地优先 | 配置、API Key、会话、项目列表、缓存和日志默认保存在 `~/.quickforge/`。QuickForge 不提供云同步,也不内置遥测。 |
|
|
48
|
-
| 多模型提供商 | 支持 OpenAI-compatible `/v1/chat/completions` 与 Anthropic Messages API。可配置 LiteLLM、OpenRouter、DeepSeek、Qwen、Ollama 等兼容服务。 |
|
|
49
|
-
| 普通对话与项目对话 | 普通对话适合问答;项目对话绑定本地目录,开启授权后可使用工作区工具。 |
|
|
50
|
-
| YOLO 本地工具 | 授权模型在项目目录内读取、搜索、创建、覆盖、精确编辑文件,并从工作区运行 shell 命令。 |
|
|
51
|
-
| MCP 集成 | 支持 stdio、SSE、Streamable HTTP (`http`) MCP Server,并将外部工具以命名空间形式注入到 Agent。 |
|
|
52
|
-
| 自定义指令 | 自动合并 `~/.claude/CLAUDE.md`、`~/.opencode/AGENTS.md`、`~/.quickforge/AGENTS.md` 以及项目 `CLAUDE.md`、`AGENTS.md`、`.opencode/AGENTS.md`、`.quickforge/AGENTS.md`。 |
|
|
53
|
-
| Agent Skills | 支持 Claude、opencode、共享、QuickForge 项目级和内置 Skills,用于加载专门的工作流说明、参考资料和工具使用规范。 |
|
|
54
|
-
| 自定义命令 | 支持 `/plan`、`/review`、`/summary`、`/compact`、`/clear`、`/help` 等内置命令,也可从用户级 `~/.quickforge/commands/` 或项目 `.claude/commands/`、`.opencode/commands/`、`.ai/commands/` 加载自定义命令。`/summary` 基于当前对话创建总结后的新对话;`/compact` 在当前对话内执行与自动压缩一致的滚动上下文压缩。`/help` 一键查看全部可用命令;`/plan <任务>` 只生成执行计划,本轮禁止写文件、改文件和运行命令,可调用受同样只读边界约束的 subagent 辅助调研;`/review [范围]` 用于提交前自检待提交代码,本轮禁止编辑文件。同名命令优先级:项目目录 > 用户级目录 > 插件命令。 |
|
|
55
|
-
| 会话工作流 | 支持流式回复、复制、回滚、分支、草稿恢复、会话搜索、上下文用量提示和长对话压缩。 |
|
|
56
|
-
| 定时任务 | 支持创建、编辑、手动触发、查看历史,并为任务选择模型与参数。 |
|
|
57
|
-
| 对话分享 | 支持创建分享链接、只读/可操作权限、可选密码保护,以及撤销分享。 |
|
|
58
|
-
| CLI、SDK 与离线包 | 提供 `qf` / `quickforge` 命令、npm `import` 启动 API、版本检查、更新命令和离线 tarball 安装。 |
|
|
59
|
-
| 桌面端构建入口 | 提供 Electron 桌面壳入口,可在本仓库内构建 Windows/macOS/Linux 桌面应用;Electron 仅作为开发依赖,不进入 npm runtime 包。 |
|
|
60
|
-
|
|
61
|
-
### 安全边界
|
|
62
|
-
|
|
63
|
-
QuickForge 的工具能力很直接,因此也需要谨慎使用:
|
|
64
|
-
|
|
65
|
-
- 文件工具限制在绑定的项目根目录内。
|
|
66
|
-
- `run_command` 会从项目目录启动命令,但它不是系统级沙箱,命令会以当前 OS 用户权限运行。
|
|
67
|
-
- YOLO 模式不会为每次工具调用弹出确认;只建议在可信模型和可信项目中开启。
|
|
68
|
-
- API Key 保存在本机配置文件中,请不要提交或分享 `~/.quickforge/`。
|
|
69
|
-
- 重要仓库建议先提交 Git 或备份,再让模型执行修改。
|
|
70
|
-
|
|
71
|
-
### 安装
|
|
72
|
-
|
|
73
|
-
#### 从 npm 安装
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
npm install -g @shawnstack/quickforge@1.
|
|
77
|
-
qf
|
|
78
|
-
|
|
79
|
-
# CLI 工具
|
|
80
|
-
qf --version
|
|
81
|
-
qf check-update
|
|
82
|
-
qf update
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
#### SDK 入口
|
|
86
|
-
|
|
87
|
-
QuickForge 也可以作为 npm 包在 Node.js 项目中启动本地服务:
|
|
88
|
-
|
|
89
|
-
```js
|
|
90
|
-
import { startQuickForge } from '@shawnstack/quickforge'
|
|
91
|
-
|
|
92
|
-
const app = await startQuickForge({
|
|
93
|
-
host: '127.0.0.1',
|
|
94
|
-
port: 5176,
|
|
95
|
-
})
|
|
96
|
-
|
|
97
|
-
console.log(app.url)
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
该入口使用 `package.json` 的 `main` 字段提供,不会改变 `qf` / `quickforge` CLI 发布方式。
|
|
101
|
-
|
|
102
|
-
#### 离线安装
|
|
103
|
-
|
|
104
|
-
当前版本的离线包:
|
|
105
|
-
|
|
106
|
-
```text
|
|
107
|
-
package-offline/shawnstack-quickforge-1.
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
在安装了 Node.js
|
|
111
|
-
|
|
112
|
-
```bash
|
|
113
|
-
npm install -g ./package-offline/shawnstack-quickforge-1.
|
|
114
|
-
qf
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
该包由 `v1.
|
|
118
|
-
|
|
119
|
-
### 本地开发
|
|
120
|
-
|
|
121
|
-
```bash
|
|
122
|
-
# 安装依赖
|
|
123
|
-
npm install
|
|
124
|
-
|
|
125
|
-
# 开发模式:本地服务 + Vite,默认端口 5176
|
|
126
|
-
npm run dev
|
|
127
|
-
|
|
128
|
-
# 生产构建与启动
|
|
129
|
-
npm run build
|
|
130
|
-
npm start
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
打开 [http://localhost:5176](http://localhost:5176)。
|
|
134
|
-
|
|
135
|
-
Windows 用户也可以双击:
|
|
136
|
-
|
|
137
|
-
- `dev-quickforge.bat`:开发模式
|
|
138
|
-
- `start-quickforge.bat`:生产模式
|
|
139
|
-
|
|
140
|
-
#### 桌面端开发与构建
|
|
141
|
-
|
|
142
|
-
桌面端入口位于 `desktop/electron-main.mjs`,复用同一套本地服务和前端构建产物。
|
|
143
|
-
|
|
144
|
-
```bash
|
|
145
|
-
# 桌面端开发启动
|
|
146
|
-
npm run desktop:dev
|
|
147
|
-
|
|
148
|
-
# 构建当前平台桌面包
|
|
149
|
-
npm run desktop:build
|
|
150
|
-
|
|
151
|
-
# 分别构建三端桌面包
|
|
152
|
-
npm run desktop:build:win
|
|
153
|
-
npm run desktop:build:mac
|
|
154
|
-
npm run desktop:build:linux
|
|
155
|
-
|
|
156
|
-
# 本地尝试一键构建三端包(跨平台构建受本机环境限制)
|
|
157
|
-
npm run desktop:build:all
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
桌面构建产物输出到 `desktop-dist/`。该目录和 Electron 相关依赖只用于本地桌面包构建,不包含在 npm runtime 发布白名单中。
|
|
161
|
-
|
|
162
|
-
桌面端支持系统托盘:Windows 会显示在右下角系统托盘,macOS 会显示在顶部菜单栏。关闭窗口默认隐藏到托盘,使用托盘菜单中的退出操作才会真正退出并停止桌面端启动的本地服务。托盘菜单文案会优先跟随 QuickForge 设置中的界面语言(中文/英文),读取不到时回退系统语言。
|
|
163
|
-
|
|
164
|
-
GitHub Actions 提供 `Desktop Build` 工作流,可手动触发或在推送 `v*` 标签时按 Windows/macOS/Linux runner 分别构建桌面包,并上传为 workflow artifacts
|
|
165
|
-
|
|
166
|
-
### 首次配置模型
|
|
167
|
-
|
|
168
|
-
QuickForge 不内置默认模型。首次打开时,如果没有配置任何模型,聊天区会显示配置引导。
|
|
169
|
-
|
|
170
|
-
你可以在设置中添加任意兼容提供商,例如:
|
|
171
|
-
|
|
172
|
-
```text
|
|
173
|
-
Provider name: LiteLLM
|
|
174
|
-
Protocol type: OpenAI Compatible
|
|
175
|
-
Base URL: http://localhost:4000/v1
|
|
176
|
-
Model ID: anthropic/claude-sonnet-4
|
|
177
|
-
API Key: 按你的 LiteLLM 配置填写,可为空
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
也可以配置 OpenRouter、DeepSeek、Ollama 或其他 OpenAI-compatible / Anthropic-compatible 服务。模型请求会发送到你配置的提供商;QuickForge 只负责本地界面、存储、会话和工具编排。
|
|
181
|
-
|
|
182
|
-
### 常用环境变量
|
|
183
|
-
|
|
184
|
-
| 变量 | 默认值 | 说明 |
|
|
185
|
-
|---|---|---|
|
|
186
|
-
| `QUICKFORGE_DATA_DIR` | `~/.quickforge` | 数据目录 |
|
|
187
|
-
| `QUICKFORGE_WORKSPACE_DIR` | 项目根目录 | YOLO 工具默认工作区 |
|
|
188
|
-
| `QUICKFORGE_HOST` | `127.0.0.1` | 服务绑定地址 |
|
|
189
|
-
| `QUICKFORGE_PORT` | `32176`(dev)/ `5176`(prod) | 后端服务端口 |
|
|
190
|
-
| `QUICKFORGE_VITE_PORT` | `5176` | Vite 开发服务器端口 |
|
|
191
|
-
| `QUICKFORGE_MAX_BODY_BYTES` | `52428800` (50MB) | 请求体大小上限 |
|
|
192
|
-
|
|
193
|
-
### 数据位置
|
|
194
|
-
|
|
195
|
-
默认位于 `~/.quickforge/`(Windows 通常为 `%USERPROFILE%\.quickforge`):
|
|
196
|
-
|
|
197
|
-
- `config/config.json` — 统一本地配置,包含应用设置、自定义 Provider、Provider API Key 和项目列表。该文件可能包含密钥,请勿分享。
|
|
198
|
-
- `storage/` — 会话、会话索引、分享数据等持久化数据。
|
|
199
|
-
- `cache/` — 可删除缓存。
|
|
200
|
-
- `logs/` — 本地日志。
|
|
201
|
-
|
|
202
|
-
### 技术栈
|
|
203
|
-
|
|
204
|
-
| 层级 | 技术 |
|
|
205
|
-
|---|---|
|
|
206
|
-
| 前端 | React 19, Vite 8, Tailwind CSS 4, TypeScript |
|
|
207
|
-
| UI | shadcn-style primitives, Lucide icons, `@earendil-works/pi-web-ui` |
|
|
208
|
-
| Agent / 模型编排 | `@earendil-works/pi-agent-core`, `@earendil-works/pi-ai`, MCP SDK |
|
|
209
|
-
| 后端 | Node.js ESM,原生 `http` 模块 |
|
|
210
|
-
| 存储 | 本地 JSON 文件,默认在 `~/.quickforge/` |
|
|
211
|
-
|
|
212
|
-
### 项目结构
|
|
213
|
-
|
|
214
|
-
```text
|
|
215
|
-
├── bin/quickforge.mjs # CLI 入口
|
|
216
|
-
├── desktop/ # Electron 桌面端入口(构建 Windows/macOS/Linux 桌面包)
|
|
217
|
-
├── server/ # 本地 API、存储、Agent、工具、MCP、分享与任务服务
|
|
218
|
-
│ └── public-api.mjs # npm import / Desktop 复用的启动 API
|
|
219
|
-
├── src/ # React 前端
|
|
220
|
-
├── skills/ # 内置 Agent Skills
|
|
221
|
-
├── scripts/ # 打包与发布辅助脚本
|
|
222
|
-
├── public/ # 静态资源
|
|
223
|
-
├── index.html # HTML 入口
|
|
224
|
-
├── vite.config.ts # Vite + Tailwind 配置
|
|
225
|
-
└── package.json
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
### 文档
|
|
229
|
-
|
|
230
|
-
- [中文使用教程](./docs/user-guide.zh-CN.md)
|
|
231
|
-
- [English User Guide](./docs/user-guide.en-US.md)
|
|
232
|
-
- [项目 Wiki](./docs/wiki/README.md)
|
|
233
|
-
- [贡献指南](./CONTRIBUTING.md)
|
|
234
|
-
- [安全策略](./SECURITY.md)
|
|
235
|
-
|
|
236
|
-
---
|
|
237
|
-
|
|
238
|
-
## English
|
|
239
|
-
|
|
240
|
-
QuickForge is a local-first AI chat and development workspace. It keeps the familiar chat experience, but connects it to local projects, local storage, configurable model providers, workspace tools, MCP servers, Agent Skills, and scheduled tasks.
|
|
241
|
-
|
|
242
|
-
The same core runtime now supports three entry points: the `qf` / `quickforge` CLI, an npm-importable SDK entry, and an Electron entry for building Windows/macOS/Linux desktop apps locally. Desktop builds include their own QuickForge runtime and do not require users to install Node.js, npm, or the global `qf` command; an already-running local service is reused only when its version matches the desktop runtime.
|
|
243
|
-
|
|
244
|
-
It is not meant to replace your IDE or promise fully autonomous software development. The practical goal is narrower: give you a controllable place where an AI assistant can understand a project, propose a plan, make focused changes when authorized, and run the checks you ask for.
|
|
245
|
-
|
|
246
|
-
### What it is good for
|
|
247
|
-
|
|
248
|
-
- **Understanding a codebase**: inspect folders, search call chains, explain modules, and prepare onboarding notes.
|
|
249
|
-
- **Focused edits**: let the model read, search, create, overwrite, or precisely edit files inside an attached project directory.
|
|
250
|
-
- **Running verification commands**: run lint, build, tests, grep, and other shell commands from the project workspace.
|
|
251
|
-
- **Reusable workflows**: keep team prompts, runbooks, and operating procedures as Agent Skills or project commands.
|
|
252
|
-
- **External tools through MCP**: connect MCP servers for additional tools such as filesystem, database, browser, or internal service integrations, depending on your configuration.
|
|
253
|
-
- **Async and recurring work**: create once, daily, weekly, monthly, interval, or cron-based tasks and review their run history.
|
|
254
|
-
|
|
255
|
-
### Key features
|
|
256
|
-
|
|
257
|
-
| Feature | Details |
|
|
258
|
-
|---|---|
|
|
259
|
-
| Local-first storage | Settings, API keys, conversations, project list, caches, and logs are stored under `~/.quickforge/` by default. No built-in cloud sync or telemetry. |
|
|
260
|
-
| Bring your own model | Supports OpenAI-compatible `/v1/chat/completions` and Anthropic Messages API. Works with compatible providers such as LiteLLM, OpenRouter, DeepSeek, Qwen, Ollama, and others. |
|
|
261
|
-
| Regular and project chats | Regular chats are for general questions. Project chats attach to a local directory and can use workspace tools when authorized. |
|
|
262
|
-
| YOLO workspace tools | Allows the agent to read, search, create, overwrite, precisely edit files, and run shell commands from the attached workspace. |
|
|
263
|
-
| MCP integration | Supports stdio, SSE, and Streamable HTTP (`http`) MCP servers. External tools are injected with namespaced tool names. |
|
|
264
|
-
| Custom instructions | Automatically merges `~/.claude/CLAUDE.md`, `~/.opencode/AGENTS.md`, `~/.quickforge/AGENTS.md`, and project `CLAUDE.md`, `AGENTS.md`, `.opencode/AGENTS.md`, `.quickforge/AGENTS.md`. |
|
|
265
|
-
| Agent Skills | Supports Claude, opencode, shared, QuickForge project-level, and bundled Skills for specialized workflows, references, and tool-use instructions. |
|
|
266
|
-
| Custom commands | Includes built-in commands such as `/plan`, `/review`, `/summary`, `/compact`, `/clear`, and `/help`, and can load custom commands from user-level `~/.quickforge/commands/` or project `.claude/commands/`, `.opencode/commands/`, `.ai/commands/`, or configured directories. `/summary` creates a new summarized chat from the current conversation; `/compact` compacts context in the current chat using the same rolling summary behavior as auto-compaction. `/help` lists all available commands; `/plan <task>` drafts an implementation plan without edits or commands, and may call subagents under the same read-only boundary; `/review [scope]` performs a pre-commit self-review without editing files. Precedence: project directories > user-level > plugins. |
|
|
267
|
-
| Conversation workflow | Streaming responses, copy, rollback, fork, draft recovery, search, context usage indicator, and conversation compaction. |
|
|
268
|
-
| Scheduled tasks | Create, edit, manually trigger, and inspect tasks, with model and parameter selection per task. |
|
|
269
|
-
| Conversation sharing | Share conversations with read-only or operate permissions, optional password protection, and revocation support. |
|
|
270
|
-
| CLI, SDK, and offline package | Provides `qf` / `quickforge` commands, an npm-importable startup API, update checks, update command, and offline tarball installation. |
|
|
271
|
-
| Desktop build entry | Provides an Electron desktop wrapper for building Windows/macOS/Linux desktop apps from this repository. Electron stays in dev dependencies and is not included in the npm runtime package. |
|
|
272
|
-
|
|
273
|
-
### Safety model
|
|
274
|
-
|
|
275
|
-
QuickForge intentionally exposes powerful local capabilities, so the boundaries matter:
|
|
276
|
-
|
|
277
|
-
- File tools are restricted to the attached project root.
|
|
278
|
-
- `run_command` starts in the project directory, but it is not an OS-level sandbox. Commands run with the current OS user's permissions.
|
|
279
|
-
- YOLO mode does not ask for confirmation before every tool call. Use it only with trusted models and trusted workspaces.
|
|
280
|
-
- API keys are stored locally. Do not commit or share your `~/.quickforge/` directory.
|
|
281
|
-
- Commit to Git or make a backup before asking the model to change important repositories.
|
|
282
|
-
|
|
283
|
-
### Installation
|
|
284
|
-
|
|
285
|
-
#### npm
|
|
286
|
-
|
|
287
|
-
```bash
|
|
288
|
-
npm install -g @shawnstack/quickforge@1.
|
|
289
|
-
qf
|
|
290
|
-
|
|
291
|
-
# CLI utilities
|
|
292
|
-
qf --version
|
|
293
|
-
qf check-update
|
|
294
|
-
qf update
|
|
295
|
-
```
|
|
296
|
-
|
|
297
|
-
#### SDK entry
|
|
298
|
-
|
|
299
|
-
QuickForge can also be started from a Node.js project as an npm package:
|
|
300
|
-
|
|
301
|
-
```js
|
|
302
|
-
import { startQuickForge } from '@shawnstack/quickforge'
|
|
303
|
-
|
|
304
|
-
const app = await startQuickForge({
|
|
305
|
-
host: '127.0.0.1',
|
|
306
|
-
port: 5176,
|
|
307
|
-
})
|
|
308
|
-
|
|
309
|
-
console.log(app.url)
|
|
310
|
-
```
|
|
311
|
-
|
|
312
|
-
This entry is exposed through the `main` field in `package.json` and does not change the `qf` / `quickforge` CLI publishing path.
|
|
313
|
-
|
|
314
|
-
#### Offline tarball
|
|
315
|
-
|
|
316
|
-
The offline release package for `v1.
|
|
317
|
-
|
|
318
|
-
```text
|
|
319
|
-
package-offline/shawnstack-quickforge-1.
|
|
320
|
-
```
|
|
321
|
-
|
|
322
|
-
Install it on a machine with Node.js
|
|
323
|
-
|
|
324
|
-
```bash
|
|
325
|
-
npm install -g ./package-offline/shawnstack-quickforge-1.
|
|
326
|
-
qf
|
|
327
|
-
```
|
|
328
|
-
|
|
329
|
-
The package was generated from tag `v1.
|
|
330
|
-
|
|
331
|
-
### Local development
|
|
332
|
-
|
|
333
|
-
```bash
|
|
334
|
-
# Install dependencies
|
|
335
|
-
npm install
|
|
336
|
-
|
|
337
|
-
# Development: local service + Vite, default port 5176
|
|
338
|
-
npm run dev
|
|
339
|
-
|
|
340
|
-
# Production
|
|
341
|
-
npm run build
|
|
342
|
-
npm start
|
|
343
|
-
```
|
|
344
|
-
|
|
345
|
-
Open [http://localhost:5176](http://localhost:5176).
|
|
346
|
-
|
|
347
|
-
On Windows, you can also double-click:
|
|
348
|
-
|
|
349
|
-
- `dev-quickforge.bat` for development mode
|
|
350
|
-
- `start-quickforge.bat` for production mode
|
|
351
|
-
|
|
352
|
-
#### Desktop development and builds
|
|
353
|
-
|
|
354
|
-
The desktop entry lives at `desktop/electron-main.mjs` and reuses the same local service and frontend build output.
|
|
355
|
-
|
|
356
|
-
```bash
|
|
357
|
-
# Start desktop app in development
|
|
358
|
-
npm run desktop:dev
|
|
359
|
-
|
|
360
|
-
# Build a desktop package for the current platform
|
|
361
|
-
npm run desktop:build
|
|
362
|
-
|
|
363
|
-
# Build desktop packages by platform
|
|
364
|
-
npm run desktop:build:win
|
|
365
|
-
npm run desktop:build:mac
|
|
366
|
-
npm run desktop:build:linux
|
|
367
|
-
|
|
368
|
-
# Try to build all desktop targets locally (cross-platform builds depend on local tooling)
|
|
369
|
-
npm run desktop:build:all
|
|
370
|
-
```
|
|
371
|
-
|
|
372
|
-
Desktop artifacts are written to `desktop-dist/`. This directory and Electron dependencies are only for local desktop builds and are not part of the npm runtime publish whitelist.
|
|
373
|
-
|
|
374
|
-
The desktop app supports a system tray: Windows uses the bottom-right system tray and macOS uses the top menu bar. Closing the window hides it to the tray; use the quit action from the tray menu to fully exit and stop the local service started by the desktop app. Tray menu labels follow the QuickForge display language setting when available, and fall back to the system language.
|
|
375
|
-
|
|
376
|
-
GitHub Actions provides a `Desktop Build` workflow. It can be run manually or by pushing a `v*` tag, builds on Windows/macOS/Linux runners, and uploads workflow artifacts.
|
|
377
|
-
|
|
378
|
-
### First model setup
|
|
379
|
-
|
|
380
|
-
QuickForge does not ship with a default model. If no model is configured on first launch, the chat area shows a setup guide.
|
|
381
|
-
|
|
382
|
-
You can add any compatible provider in Settings, for example:
|
|
383
|
-
|
|
384
|
-
```text
|
|
385
|
-
Provider name: LiteLLM
|
|
386
|
-
Protocol type: OpenAI Compatible
|
|
387
|
-
Base URL: http://localhost:4000/v1
|
|
388
|
-
Model ID: anthropic/claude-sonnet-4
|
|
389
|
-
API Key: optional, depending on your LiteLLM configuration
|
|
390
|
-
```
|
|
391
|
-
|
|
392
|
-
You can also configure OpenRouter, DeepSeek, Ollama, or any other OpenAI-compatible / Anthropic-compatible service. Model requests are sent to the provider you configure; QuickForge provides the local UI, storage, conversation management, and tool orchestration.
|
|
393
|
-
|
|
394
|
-
### Common environment variables
|
|
395
|
-
|
|
396
|
-
| Variable | Default | Description |
|
|
397
|
-
|---|---|---|
|
|
398
|
-
| `QUICKFORGE_DATA_DIR` | `~/.quickforge` | Data directory |
|
|
399
|
-
| `QUICKFORGE_WORKSPACE_DIR` | project root | Default workspace for YOLO tools |
|
|
400
|
-
| `QUICKFORGE_HOST` | `127.0.0.1` | Server bind address |
|
|
401
|
-
| `QUICKFORGE_PORT` | `32176` (dev) / `5176` (prod) | Backend server port |
|
|
402
|
-
| `QUICKFORGE_VITE_PORT` | `5176` | Vite dev server port |
|
|
403
|
-
| `QUICKFORGE_MAX_BODY_BYTES` | `52428800` (50MB) | Max request body size |
|
|
404
|
-
|
|
405
|
-
### Data location
|
|
406
|
-
|
|
407
|
-
Located under `~/.quickforge/` by default (`%USERPROFILE%\.quickforge` on Windows):
|
|
408
|
-
|
|
409
|
-
- `config/config.json` — unified local config, including app settings, custom providers, provider API keys, and project list. This file may contain secrets; do not share it.
|
|
410
|
-
- `storage/` — persistent conversations, indexes, shares, and related data.
|
|
411
|
-
- `cache/` — removable cache files.
|
|
412
|
-
- `logs/` — local logs.
|
|
413
|
-
|
|
414
|
-
### Tech stack
|
|
415
|
-
|
|
416
|
-
| Layer | Technology |
|
|
417
|
-
|---|---|
|
|
418
|
-
| Frontend | React 19, Vite 8, Tailwind CSS 4, TypeScript |
|
|
419
|
-
| UI | shadcn-style primitives, Lucide icons, `@earendil-works/pi-web-ui` |
|
|
420
|
-
| Agent / model orchestration | `@earendil-works/pi-agent-core`, `@earendil-works/pi-ai`, MCP SDK |
|
|
421
|
-
| Server | Node.js ESM, plain `http` module |
|
|
422
|
-
| Storage | Local JSON files under `~/.quickforge/` by default |
|
|
423
|
-
|
|
424
|
-
### Project structure
|
|
425
|
-
|
|
426
|
-
```text
|
|
427
|
-
├── bin/quickforge.mjs # CLI entry point
|
|
428
|
-
├── desktop/ # Electron desktop entry for Windows/macOS/Linux builds
|
|
429
|
-
├── server/ # Local API, storage, agents, tools, MCP, sharing, and task service
|
|
430
|
-
│ └── public-api.mjs # startup API reused by npm import and Desktop
|
|
431
|
-
├── src/ # React frontend
|
|
432
|
-
├── skills/ # Bundled Agent Skills
|
|
433
|
-
├── scripts/ # Build and packaging helpers
|
|
434
|
-
├── public/ # Static assets
|
|
435
|
-
├── index.html # HTML entry
|
|
436
|
-
├── vite.config.ts # Vite + Tailwind config
|
|
437
|
-
└── package.json
|
|
438
|
-
```
|
|
439
|
-
|
|
440
|
-
### Documentation
|
|
441
|
-
|
|
442
|
-
- [中文使用教程](./docs/user-guide.zh-CN.md)
|
|
443
|
-
- [English User Guide](./docs/user-guide.en-US.md)
|
|
444
|
-
- [Project Wiki](./docs/wiki/README.md)
|
|
445
|
-
- [Contributing Guide](./CONTRIBUTING.md)
|
|
446
|
-
- [Security Policy](./SECURITY.md)
|
|
447
|
-
|
|
448
|
-
## License
|
|
449
|
-
|
|
450
|
-
[MIT](LICENSE)
|
|
1
|
+
# 速构 QuickForge
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img alt="Version" src="https://img.shields.io/badge/version-1.6.2-blue" />
|
|
5
|
+
<img alt="License" src="https://img.shields.io/badge/license-MIT-green" />
|
|
6
|
+
<img alt="Node" src="https://img.shields.io/badge/node-%3E%3D22.19-brightgreen" />
|
|
7
|
+
<img alt="React" src="https://img.shields.io/badge/react-19-61DAFB?logo=react" />
|
|
8
|
+
<img alt="Vite" src="https://img.shields.io/badge/vite-8-646CFF?logo=vite" />
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<strong>本地优先的 AI 工作台:聊天、项目上下文、本地工具、MCP、Skills 与定时任务。</strong><br />
|
|
13
|
+
<strong>A local-first AI workspace for chat, project context, local tools, MCP, Skills, and scheduled tasks.</strong>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
<p align="center">
|
|
17
|
+
<a href="#中文">中文</a> · <a href="#english">English</a> · <a href="./docs/user-guide.zh-CN.md">中文教程</a> · <a href="./docs/user-guide.en-US.md">User Guide</a>
|
|
18
|
+
</p>
|
|
19
|
+
|
|
20
|
+
<p align="center">
|
|
21
|
+
<img src="./welcome.png" alt="QuickForge welcome screen" width="900" />
|
|
22
|
+
</p>
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 中文
|
|
27
|
+
|
|
28
|
+
QuickForge 是一个运行在本机的 AI 对话与研发辅助工具。它保留 ChatGPT 类产品的对话体验,同时把会话、项目目录、模型配置和工具调用放在本地服务中管理。你可以用它做普通问答,也可以把它绑定到一个代码仓库,让模型在明确授权后阅读文件、搜索代码、编辑内容并运行命令。
|
|
29
|
+
|
|
30
|
+
同一套核心服务支持三种入口:`qf` / `quickforge` CLI、npm 包 `import` 的 SDK 入口,以及用于本地构建 Windows/macOS/Linux 桌面应用的 Electron 入口。
|
|
31
|
+
|
|
32
|
+
它的目标不是替代 IDE,也不是承诺“全自动开发”,而是提供一个可控的本地 AI 工作流入口:先理解项目,再制定计划,最后在你信任的范围内执行改动和验证。
|
|
33
|
+
|
|
34
|
+
### 适合用来做什么
|
|
35
|
+
|
|
36
|
+
- **理解项目**:查看目录结构、搜索调用链、解释模块职责、梳理新人接手路径。
|
|
37
|
+
- **小步修改代码**:让模型在项目目录内读写文件,完成文案、配置、Bug 修复或局部功能改动。
|
|
38
|
+
- **运行验证命令**:在项目工作区执行 lint、build、test、grep 等命令,并把结果带回对话。
|
|
39
|
+
- **沉淀可复用流程**:用 Agent Skills 和项目自定义命令保存团队常用提示词、Runbook 和操作步骤。
|
|
40
|
+
- **连接外部工具**:通过 MCP 接入文件系统、数据库、浏览器、内部服务等工具能力(取决于你配置的 MCP Server)。
|
|
41
|
+
- **异步/周期任务**:创建一次性、每日、每周、每月、间隔或 cron 任务,让模型按计划运行指定工作。
|
|
42
|
+
|
|
43
|
+
### 核心特性
|
|
44
|
+
|
|
45
|
+
| 特性 | 说明 |
|
|
46
|
+
|---|---|
|
|
47
|
+
| 本地优先 | 配置、API Key、会话、项目列表、缓存和日志默认保存在 `~/.quickforge/`。QuickForge 不提供云同步,也不内置遥测。 |
|
|
48
|
+
| 多模型提供商 | 支持 OpenAI-compatible `/v1/chat/completions` 与 Anthropic Messages API。可配置 LiteLLM、OpenRouter、DeepSeek、Qwen、Ollama 等兼容服务。 |
|
|
49
|
+
| 普通对话与项目对话 | 普通对话适合问答;项目对话绑定本地目录,开启授权后可使用工作区工具。 |
|
|
50
|
+
| YOLO 本地工具 | 授权模型在项目目录内读取、搜索、创建、覆盖、精确编辑文件,并从工作区运行 shell 命令。 |
|
|
51
|
+
| MCP 集成 | 支持 stdio、SSE、Streamable HTTP (`http`) MCP Server,并将外部工具以命名空间形式注入到 Agent。 |
|
|
52
|
+
| 自定义指令 | 自动合并 `~/.claude/CLAUDE.md`、`~/.opencode/AGENTS.md`、`~/.quickforge/AGENTS.md` 以及项目 `CLAUDE.md`、`AGENTS.md`、`.opencode/AGENTS.md`、`.quickforge/AGENTS.md`。 |
|
|
53
|
+
| Agent Skills | 支持 Claude、opencode、共享、QuickForge 项目级和内置 Skills,用于加载专门的工作流说明、参考资料和工具使用规范。 |
|
|
54
|
+
| 自定义命令 | 支持 `/plan`、`/review`、`/summary`、`/compact`、`/clear`、`/help` 等内置命令,也可从用户级 `~/.quickforge/commands/` 或项目 `.claude/commands/`、`.opencode/commands/`、`.ai/commands/` 加载自定义命令。`/summary` 基于当前对话创建总结后的新对话;`/compact` 在当前对话内执行与自动压缩一致的滚动上下文压缩。`/help` 一键查看全部可用命令;`/plan <任务>` 只生成执行计划,本轮禁止写文件、改文件和运行命令,可调用受同样只读边界约束的 subagent 辅助调研;`/review [范围]` 用于提交前自检待提交代码,本轮禁止编辑文件。同名命令优先级:项目目录 > 用户级目录 > 插件命令。 |
|
|
55
|
+
| 会话工作流 | 支持流式回复、复制、回滚、分支、草稿恢复、会话搜索、上下文用量提示和长对话压缩。 |
|
|
56
|
+
| 定时任务 | 支持创建、编辑、手动触发、查看历史,并为任务选择模型与参数。 |
|
|
57
|
+
| 对话分享 | 支持创建分享链接、只读/可操作权限、可选密码保护,以及撤销分享。 |
|
|
58
|
+
| CLI、SDK 与离线包 | 提供 `qf` / `quickforge` 命令、npm `import` 启动 API、版本检查、更新命令和离线 tarball 安装。 |
|
|
59
|
+
| 桌面端构建入口 | 提供 Electron 桌面壳入口,可在本仓库内构建 Windows/macOS/Linux 桌面应用;Electron 仅作为开发依赖,不进入 npm runtime 包。 |
|
|
60
|
+
|
|
61
|
+
### 安全边界
|
|
62
|
+
|
|
63
|
+
QuickForge 的工具能力很直接,因此也需要谨慎使用:
|
|
64
|
+
|
|
65
|
+
- 文件工具限制在绑定的项目根目录内。
|
|
66
|
+
- `run_command` 会从项目目录启动命令,但它不是系统级沙箱,命令会以当前 OS 用户权限运行。
|
|
67
|
+
- YOLO 模式不会为每次工具调用弹出确认;只建议在可信模型和可信项目中开启。
|
|
68
|
+
- API Key 保存在本机配置文件中,请不要提交或分享 `~/.quickforge/`。
|
|
69
|
+
- 重要仓库建议先提交 Git 或备份,再让模型执行修改。
|
|
70
|
+
|
|
71
|
+
### 安装
|
|
72
|
+
|
|
73
|
+
#### 从 npm 安装
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
npm install -g @shawnstack/quickforge@1.6.2
|
|
77
|
+
qf
|
|
78
|
+
|
|
79
|
+
# CLI 工具
|
|
80
|
+
qf --version
|
|
81
|
+
qf check-update
|
|
82
|
+
qf update
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
#### SDK 入口
|
|
86
|
+
|
|
87
|
+
QuickForge 也可以作为 npm 包在 Node.js 项目中启动本地服务:
|
|
88
|
+
|
|
89
|
+
```js
|
|
90
|
+
import { startQuickForge } from '@shawnstack/quickforge'
|
|
91
|
+
|
|
92
|
+
const app = await startQuickForge({
|
|
93
|
+
host: '127.0.0.1',
|
|
94
|
+
port: 5176,
|
|
95
|
+
})
|
|
96
|
+
|
|
97
|
+
console.log(app.url)
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
该入口使用 `package.json` 的 `main` 字段提供,不会改变 `qf` / `quickforge` CLI 发布方式。
|
|
101
|
+
|
|
102
|
+
#### 离线安装
|
|
103
|
+
|
|
104
|
+
当前版本的离线包:
|
|
105
|
+
|
|
106
|
+
```text
|
|
107
|
+
package-offline/shawnstack-quickforge-1.6.2.tgz
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
在安装了 Node.js 22.19+ 和 npm 的机器上执行:
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
npm install -g ./package-offline/shawnstack-quickforge-1.6.2.tgz
|
|
114
|
+
qf
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
该包由 `v1.6.2` 标签生成,包含 QuickForge 运行时资源,依赖由 npm 安装。
|
|
118
|
+
|
|
119
|
+
### 本地开发
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
# 安装依赖
|
|
123
|
+
npm install
|
|
124
|
+
|
|
125
|
+
# 开发模式:本地服务 + Vite,默认端口 5176
|
|
126
|
+
npm run dev
|
|
127
|
+
|
|
128
|
+
# 生产构建与启动
|
|
129
|
+
npm run build
|
|
130
|
+
npm start
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
打开 [http://localhost:5176](http://localhost:5176)。
|
|
134
|
+
|
|
135
|
+
Windows 用户也可以双击:
|
|
136
|
+
|
|
137
|
+
- `dev-quickforge.bat`:开发模式
|
|
138
|
+
- `start-quickforge.bat`:生产模式
|
|
139
|
+
|
|
140
|
+
#### 桌面端开发与构建
|
|
141
|
+
|
|
142
|
+
桌面端入口位于 `desktop/electron-main.mjs`,复用同一套本地服务和前端构建产物。
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
# 桌面端开发启动
|
|
146
|
+
npm run desktop:dev
|
|
147
|
+
|
|
148
|
+
# 构建当前平台桌面包
|
|
149
|
+
npm run desktop:build
|
|
150
|
+
|
|
151
|
+
# 分别构建三端桌面包
|
|
152
|
+
npm run desktop:build:win
|
|
153
|
+
npm run desktop:build:mac
|
|
154
|
+
npm run desktop:build:linux
|
|
155
|
+
|
|
156
|
+
# 本地尝试一键构建三端包(跨平台构建受本机环境限制)
|
|
157
|
+
npm run desktop:build:all
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
桌面构建产物输出到 `desktop-dist/`。该目录和 Electron 相关依赖只用于本地桌面包构建,不包含在 npm runtime 发布白名单中。
|
|
161
|
+
|
|
162
|
+
桌面端支持系统托盘:Windows 会显示在右下角系统托盘,macOS 会显示在顶部菜单栏。关闭窗口默认隐藏到托盘,使用托盘菜单中的退出操作才会真正退出并停止桌面端启动的本地服务。托盘菜单文案会优先跟随 QuickForge 设置中的界面语言(中文/英文),读取不到时回退系统语言。
|
|
163
|
+
|
|
164
|
+
GitHub Actions 提供 `Desktop Build` 工作流,可手动触发或在推送 `v*` 标签时按 Windows/macOS/Linux runner 分别构建桌面包,并上传为 workflow artifacts;推送 `v*` 标签触发时,构建成功后会自动创建 GitHub Release 并上传桌面构建产物,但不会发布 npm。
|
|
165
|
+
|
|
166
|
+
### 首次配置模型
|
|
167
|
+
|
|
168
|
+
QuickForge 不内置默认模型。首次打开时,如果没有配置任何模型,聊天区会显示配置引导。
|
|
169
|
+
|
|
170
|
+
你可以在设置中添加任意兼容提供商,例如:
|
|
171
|
+
|
|
172
|
+
```text
|
|
173
|
+
Provider name: LiteLLM
|
|
174
|
+
Protocol type: OpenAI Compatible
|
|
175
|
+
Base URL: http://localhost:4000/v1
|
|
176
|
+
Model ID: anthropic/claude-sonnet-4
|
|
177
|
+
API Key: 按你的 LiteLLM 配置填写,可为空
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
也可以配置 OpenRouter、DeepSeek、Ollama 或其他 OpenAI-compatible / Anthropic-compatible 服务。模型请求会发送到你配置的提供商;QuickForge 只负责本地界面、存储、会话和工具编排。
|
|
181
|
+
|
|
182
|
+
### 常用环境变量
|
|
183
|
+
|
|
184
|
+
| 变量 | 默认值 | 说明 |
|
|
185
|
+
|---|---|---|
|
|
186
|
+
| `QUICKFORGE_DATA_DIR` | `~/.quickforge` | 数据目录 |
|
|
187
|
+
| `QUICKFORGE_WORKSPACE_DIR` | 项目根目录 | YOLO 工具默认工作区 |
|
|
188
|
+
| `QUICKFORGE_HOST` | `127.0.0.1` | 服务绑定地址 |
|
|
189
|
+
| `QUICKFORGE_PORT` | `32176`(dev)/ `5176`(prod) | 后端服务端口 |
|
|
190
|
+
| `QUICKFORGE_VITE_PORT` | `5176` | Vite 开发服务器端口 |
|
|
191
|
+
| `QUICKFORGE_MAX_BODY_BYTES` | `52428800` (50MB) | 请求体大小上限 |
|
|
192
|
+
|
|
193
|
+
### 数据位置
|
|
194
|
+
|
|
195
|
+
默认位于 `~/.quickforge/`(Windows 通常为 `%USERPROFILE%\.quickforge`):
|
|
196
|
+
|
|
197
|
+
- `config/config.json` — 统一本地配置,包含应用设置、自定义 Provider、Provider API Key 和项目列表。该文件可能包含密钥,请勿分享。
|
|
198
|
+
- `storage/` — 会话、会话索引、分享数据等持久化数据。
|
|
199
|
+
- `cache/` — 可删除缓存。
|
|
200
|
+
- `logs/` — 本地日志。
|
|
201
|
+
|
|
202
|
+
### 技术栈
|
|
203
|
+
|
|
204
|
+
| 层级 | 技术 |
|
|
205
|
+
|---|---|
|
|
206
|
+
| 前端 | React 19, Vite 8, Tailwind CSS 4, TypeScript |
|
|
207
|
+
| UI | shadcn-style primitives, Lucide icons, `@earendil-works/pi-web-ui` |
|
|
208
|
+
| Agent / 模型编排 | `@earendil-works/pi-agent-core`, `@earendil-works/pi-ai`, MCP SDK |
|
|
209
|
+
| 后端 | Node.js ESM,原生 `http` 模块 |
|
|
210
|
+
| 存储 | 本地 JSON 文件,默认在 `~/.quickforge/` |
|
|
211
|
+
|
|
212
|
+
### 项目结构
|
|
213
|
+
|
|
214
|
+
```text
|
|
215
|
+
├── bin/quickforge.mjs # CLI 入口
|
|
216
|
+
├── desktop/ # Electron 桌面端入口(构建 Windows/macOS/Linux 桌面包)
|
|
217
|
+
├── server/ # 本地 API、存储、Agent、工具、MCP、分享与任务服务
|
|
218
|
+
│ └── public-api.mjs # npm import / Desktop 复用的启动 API
|
|
219
|
+
├── src/ # React 前端
|
|
220
|
+
├── skills/ # 内置 Agent Skills
|
|
221
|
+
├── scripts/ # 打包与发布辅助脚本
|
|
222
|
+
├── public/ # 静态资源
|
|
223
|
+
├── index.html # HTML 入口
|
|
224
|
+
├── vite.config.ts # Vite + Tailwind 配置
|
|
225
|
+
└── package.json
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
### 文档
|
|
229
|
+
|
|
230
|
+
- [中文使用教程](./docs/user-guide.zh-CN.md)
|
|
231
|
+
- [English User Guide](./docs/user-guide.en-US.md)
|
|
232
|
+
- [项目 Wiki](./docs/wiki/README.md)
|
|
233
|
+
- [贡献指南](./CONTRIBUTING.md)
|
|
234
|
+
- [安全策略](./SECURITY.md)
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
## English
|
|
239
|
+
|
|
240
|
+
QuickForge is a local-first AI chat and development workspace. It keeps the familiar chat experience, but connects it to local projects, local storage, configurable model providers, workspace tools, MCP servers, Agent Skills, and scheduled tasks.
|
|
241
|
+
|
|
242
|
+
The same core runtime now supports three entry points: the `qf` / `quickforge` CLI, an npm-importable SDK entry, and an Electron entry for building Windows/macOS/Linux desktop apps locally. Desktop builds include their own QuickForge runtime and do not require users to install Node.js, npm, or the global `qf` command; an already-running local service is reused only when its version matches the desktop runtime.
|
|
243
|
+
|
|
244
|
+
It is not meant to replace your IDE or promise fully autonomous software development. The practical goal is narrower: give you a controllable place where an AI assistant can understand a project, propose a plan, make focused changes when authorized, and run the checks you ask for.
|
|
245
|
+
|
|
246
|
+
### What it is good for
|
|
247
|
+
|
|
248
|
+
- **Understanding a codebase**: inspect folders, search call chains, explain modules, and prepare onboarding notes.
|
|
249
|
+
- **Focused edits**: let the model read, search, create, overwrite, or precisely edit files inside an attached project directory.
|
|
250
|
+
- **Running verification commands**: run lint, build, tests, grep, and other shell commands from the project workspace.
|
|
251
|
+
- **Reusable workflows**: keep team prompts, runbooks, and operating procedures as Agent Skills or project commands.
|
|
252
|
+
- **External tools through MCP**: connect MCP servers for additional tools such as filesystem, database, browser, or internal service integrations, depending on your configuration.
|
|
253
|
+
- **Async and recurring work**: create once, daily, weekly, monthly, interval, or cron-based tasks and review their run history.
|
|
254
|
+
|
|
255
|
+
### Key features
|
|
256
|
+
|
|
257
|
+
| Feature | Details |
|
|
258
|
+
|---|---|
|
|
259
|
+
| Local-first storage | Settings, API keys, conversations, project list, caches, and logs are stored under `~/.quickforge/` by default. No built-in cloud sync or telemetry. |
|
|
260
|
+
| Bring your own model | Supports OpenAI-compatible `/v1/chat/completions` and Anthropic Messages API. Works with compatible providers such as LiteLLM, OpenRouter, DeepSeek, Qwen, Ollama, and others. |
|
|
261
|
+
| Regular and project chats | Regular chats are for general questions. Project chats attach to a local directory and can use workspace tools when authorized. |
|
|
262
|
+
| YOLO workspace tools | Allows the agent to read, search, create, overwrite, precisely edit files, and run shell commands from the attached workspace. |
|
|
263
|
+
| MCP integration | Supports stdio, SSE, and Streamable HTTP (`http`) MCP servers. External tools are injected with namespaced tool names. |
|
|
264
|
+
| Custom instructions | Automatically merges `~/.claude/CLAUDE.md`, `~/.opencode/AGENTS.md`, `~/.quickforge/AGENTS.md`, and project `CLAUDE.md`, `AGENTS.md`, `.opencode/AGENTS.md`, `.quickforge/AGENTS.md`. |
|
|
265
|
+
| Agent Skills | Supports Claude, opencode, shared, QuickForge project-level, and bundled Skills for specialized workflows, references, and tool-use instructions. |
|
|
266
|
+
| Custom commands | Includes built-in commands such as `/plan`, `/review`, `/summary`, `/compact`, `/clear`, and `/help`, and can load custom commands from user-level `~/.quickforge/commands/` or project `.claude/commands/`, `.opencode/commands/`, `.ai/commands/`, or configured directories. `/summary` creates a new summarized chat from the current conversation; `/compact` compacts context in the current chat using the same rolling summary behavior as auto-compaction. `/help` lists all available commands; `/plan <task>` drafts an implementation plan without edits or commands, and may call subagents under the same read-only boundary; `/review [scope]` performs a pre-commit self-review without editing files. Precedence: project directories > user-level > plugins. |
|
|
267
|
+
| Conversation workflow | Streaming responses, copy, rollback, fork, draft recovery, search, context usage indicator, and conversation compaction. |
|
|
268
|
+
| Scheduled tasks | Create, edit, manually trigger, and inspect tasks, with model and parameter selection per task. |
|
|
269
|
+
| Conversation sharing | Share conversations with read-only or operate permissions, optional password protection, and revocation support. |
|
|
270
|
+
| CLI, SDK, and offline package | Provides `qf` / `quickforge` commands, an npm-importable startup API, update checks, update command, and offline tarball installation. |
|
|
271
|
+
| Desktop build entry | Provides an Electron desktop wrapper for building Windows/macOS/Linux desktop apps from this repository. Electron stays in dev dependencies and is not included in the npm runtime package. |
|
|
272
|
+
|
|
273
|
+
### Safety model
|
|
274
|
+
|
|
275
|
+
QuickForge intentionally exposes powerful local capabilities, so the boundaries matter:
|
|
276
|
+
|
|
277
|
+
- File tools are restricted to the attached project root.
|
|
278
|
+
- `run_command` starts in the project directory, but it is not an OS-level sandbox. Commands run with the current OS user's permissions.
|
|
279
|
+
- YOLO mode does not ask for confirmation before every tool call. Use it only with trusted models and trusted workspaces.
|
|
280
|
+
- API keys are stored locally. Do not commit or share your `~/.quickforge/` directory.
|
|
281
|
+
- Commit to Git or make a backup before asking the model to change important repositories.
|
|
282
|
+
|
|
283
|
+
### Installation
|
|
284
|
+
|
|
285
|
+
#### npm
|
|
286
|
+
|
|
287
|
+
```bash
|
|
288
|
+
npm install -g @shawnstack/quickforge@1.6.2
|
|
289
|
+
qf
|
|
290
|
+
|
|
291
|
+
# CLI utilities
|
|
292
|
+
qf --version
|
|
293
|
+
qf check-update
|
|
294
|
+
qf update
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
#### SDK entry
|
|
298
|
+
|
|
299
|
+
QuickForge can also be started from a Node.js project as an npm package:
|
|
300
|
+
|
|
301
|
+
```js
|
|
302
|
+
import { startQuickForge } from '@shawnstack/quickforge'
|
|
303
|
+
|
|
304
|
+
const app = await startQuickForge({
|
|
305
|
+
host: '127.0.0.1',
|
|
306
|
+
port: 5176,
|
|
307
|
+
})
|
|
308
|
+
|
|
309
|
+
console.log(app.url)
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
This entry is exposed through the `main` field in `package.json` and does not change the `qf` / `quickforge` CLI publishing path.
|
|
313
|
+
|
|
314
|
+
#### Offline tarball
|
|
315
|
+
|
|
316
|
+
The offline release package for `v1.6.2` is:
|
|
317
|
+
|
|
318
|
+
```text
|
|
319
|
+
package-offline/shawnstack-quickforge-1.6.2.tgz
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
Install it on a machine with Node.js 22.19+ and npm:
|
|
323
|
+
|
|
324
|
+
```bash
|
|
325
|
+
npm install -g ./package-offline/shawnstack-quickforge-1.6.2.tgz
|
|
326
|
+
qf
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
The package was generated from tag `v1.6.2` and includes QuickForge runtime assets and installs dependencies with npm.
|
|
330
|
+
|
|
331
|
+
### Local development
|
|
332
|
+
|
|
333
|
+
```bash
|
|
334
|
+
# Install dependencies
|
|
335
|
+
npm install
|
|
336
|
+
|
|
337
|
+
# Development: local service + Vite, default port 5176
|
|
338
|
+
npm run dev
|
|
339
|
+
|
|
340
|
+
# Production
|
|
341
|
+
npm run build
|
|
342
|
+
npm start
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
Open [http://localhost:5176](http://localhost:5176).
|
|
346
|
+
|
|
347
|
+
On Windows, you can also double-click:
|
|
348
|
+
|
|
349
|
+
- `dev-quickforge.bat` for development mode
|
|
350
|
+
- `start-quickforge.bat` for production mode
|
|
351
|
+
|
|
352
|
+
#### Desktop development and builds
|
|
353
|
+
|
|
354
|
+
The desktop entry lives at `desktop/electron-main.mjs` and reuses the same local service and frontend build output.
|
|
355
|
+
|
|
356
|
+
```bash
|
|
357
|
+
# Start desktop app in development
|
|
358
|
+
npm run desktop:dev
|
|
359
|
+
|
|
360
|
+
# Build a desktop package for the current platform
|
|
361
|
+
npm run desktop:build
|
|
362
|
+
|
|
363
|
+
# Build desktop packages by platform
|
|
364
|
+
npm run desktop:build:win
|
|
365
|
+
npm run desktop:build:mac
|
|
366
|
+
npm run desktop:build:linux
|
|
367
|
+
|
|
368
|
+
# Try to build all desktop targets locally (cross-platform builds depend on local tooling)
|
|
369
|
+
npm run desktop:build:all
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
Desktop artifacts are written to `desktop-dist/`. This directory and Electron dependencies are only for local desktop builds and are not part of the npm runtime publish whitelist.
|
|
373
|
+
|
|
374
|
+
The desktop app supports a system tray: Windows uses the bottom-right system tray and macOS uses the top menu bar. Closing the window hides it to the tray; use the quit action from the tray menu to fully exit and stop the local service started by the desktop app. Tray menu labels follow the QuickForge display language setting when available, and fall back to the system language.
|
|
375
|
+
|
|
376
|
+
GitHub Actions provides a `Desktop Build` workflow. It can be run manually or by pushing a `v*` tag, builds on Windows/macOS/Linux runners, and uploads workflow artifacts. When triggered by a `v*` tag push, a successful build also creates a GitHub Release and uploads the desktop build assets, but it does not publish npm automatically.
|
|
377
|
+
|
|
378
|
+
### First model setup
|
|
379
|
+
|
|
380
|
+
QuickForge does not ship with a default model. If no model is configured on first launch, the chat area shows a setup guide.
|
|
381
|
+
|
|
382
|
+
You can add any compatible provider in Settings, for example:
|
|
383
|
+
|
|
384
|
+
```text
|
|
385
|
+
Provider name: LiteLLM
|
|
386
|
+
Protocol type: OpenAI Compatible
|
|
387
|
+
Base URL: http://localhost:4000/v1
|
|
388
|
+
Model ID: anthropic/claude-sonnet-4
|
|
389
|
+
API Key: optional, depending on your LiteLLM configuration
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
You can also configure OpenRouter, DeepSeek, Ollama, or any other OpenAI-compatible / Anthropic-compatible service. Model requests are sent to the provider you configure; QuickForge provides the local UI, storage, conversation management, and tool orchestration.
|
|
393
|
+
|
|
394
|
+
### Common environment variables
|
|
395
|
+
|
|
396
|
+
| Variable | Default | Description |
|
|
397
|
+
|---|---|---|
|
|
398
|
+
| `QUICKFORGE_DATA_DIR` | `~/.quickforge` | Data directory |
|
|
399
|
+
| `QUICKFORGE_WORKSPACE_DIR` | project root | Default workspace for YOLO tools |
|
|
400
|
+
| `QUICKFORGE_HOST` | `127.0.0.1` | Server bind address |
|
|
401
|
+
| `QUICKFORGE_PORT` | `32176` (dev) / `5176` (prod) | Backend server port |
|
|
402
|
+
| `QUICKFORGE_VITE_PORT` | `5176` | Vite dev server port |
|
|
403
|
+
| `QUICKFORGE_MAX_BODY_BYTES` | `52428800` (50MB) | Max request body size |
|
|
404
|
+
|
|
405
|
+
### Data location
|
|
406
|
+
|
|
407
|
+
Located under `~/.quickforge/` by default (`%USERPROFILE%\.quickforge` on Windows):
|
|
408
|
+
|
|
409
|
+
- `config/config.json` — unified local config, including app settings, custom providers, provider API keys, and project list. This file may contain secrets; do not share it.
|
|
410
|
+
- `storage/` — persistent conversations, indexes, shares, and related data.
|
|
411
|
+
- `cache/` — removable cache files.
|
|
412
|
+
- `logs/` — local logs.
|
|
413
|
+
|
|
414
|
+
### Tech stack
|
|
415
|
+
|
|
416
|
+
| Layer | Technology |
|
|
417
|
+
|---|---|
|
|
418
|
+
| Frontend | React 19, Vite 8, Tailwind CSS 4, TypeScript |
|
|
419
|
+
| UI | shadcn-style primitives, Lucide icons, `@earendil-works/pi-web-ui` |
|
|
420
|
+
| Agent / model orchestration | `@earendil-works/pi-agent-core`, `@earendil-works/pi-ai`, MCP SDK |
|
|
421
|
+
| Server | Node.js ESM, plain `http` module |
|
|
422
|
+
| Storage | Local JSON files under `~/.quickforge/` by default |
|
|
423
|
+
|
|
424
|
+
### Project structure
|
|
425
|
+
|
|
426
|
+
```text
|
|
427
|
+
├── bin/quickforge.mjs # CLI entry point
|
|
428
|
+
├── desktop/ # Electron desktop entry for Windows/macOS/Linux builds
|
|
429
|
+
├── server/ # Local API, storage, agents, tools, MCP, sharing, and task service
|
|
430
|
+
│ └── public-api.mjs # startup API reused by npm import and Desktop
|
|
431
|
+
├── src/ # React frontend
|
|
432
|
+
├── skills/ # Bundled Agent Skills
|
|
433
|
+
├── scripts/ # Build and packaging helpers
|
|
434
|
+
├── public/ # Static assets
|
|
435
|
+
├── index.html # HTML entry
|
|
436
|
+
├── vite.config.ts # Vite + Tailwind config
|
|
437
|
+
└── package.json
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
### Documentation
|
|
441
|
+
|
|
442
|
+
- [中文使用教程](./docs/user-guide.zh-CN.md)
|
|
443
|
+
- [English User Guide](./docs/user-guide.en-US.md)
|
|
444
|
+
- [Project Wiki](./docs/wiki/README.md)
|
|
445
|
+
- [Contributing Guide](./CONTRIBUTING.md)
|
|
446
|
+
- [Security Policy](./SECURITY.md)
|
|
447
|
+
|
|
448
|
+
## License
|
|
449
|
+
|
|
450
|
+
[MIT](LICENSE)
|