dsh-worklog-topics 0.0.0-stage → 0.1.3

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 jqlong17
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,96 @@
1
- # Temporary Holding Version
1
+ # dsh-worklog
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ DeepSeek Harness 的自动工作日志:每轮对话结束自动记一行,按天存 NDJSON,可按会话、按主题、按时间轴回看,也能被 Agent 直接检索。
4
+
5
+ > 插件内部 id 与侧栏标签是 `dsh-worklog`;npm 包名是 `dsh-worklog-topics`(`dsh-worklog` 已被他人占用)。
6
+
7
+ ![甘特视图](docs/screenshots/panel-gantt.webp)
8
+
9
+ ## 它解决什么问题
10
+
11
+ 聊完一天,想知道「今天到底做了什么、时间花在哪些事上」,靠翻会话记录几乎不可行。这个插件做三件事:
12
+
13
+ 1. **每轮自动落一行**——不用手动记,也不存对话正文;
14
+ 2. **两个模型各写一份摘要**——主摘要跟随你在 DSH 里选的模型,对比槽可以是另一个宿主模型或本地 Ollama;
15
+ 3. **判主题**——每轮再判一次「这一轮属于哪个主题」,于是日志多了一个可分组、可画时间轴的维度。
16
+
17
+ ## 功能
18
+
19
+ **记录**:一轮结束时写一条,包含时间、会话 id/标题、工作区、会话文件路径、摘要、两条模型摘要、工具名、`git status` 得到的相对路径、标签、主题 id/主题名。
20
+
21
+ **摘要**:主摘要走宿主 `llm` 服务(默认跟随你在 DSH 里选的模型,不写密钥);对比槽可以选另一个宿主模型,或本地 Ollama。两个模型失败互不影响,都失败则回落零成本截断。
22
+
23
+ **主题**:每轮多输出一行 `主题:`——沿用就写 id(`t2`),新主题就写 `新 <标签>`。id 由插件分配,标签去空格去标点归一,模型答「不确定」时保留上一轮主题。
24
+
25
+ **三种视图 + 日期导航**:
26
+
27
+ | 视图 | 用途 |
28
+ | --- | --- |
29
+ | 甘特 | 一天/一段时间的主题时间轴,会话为一级、主题为二级,横轴可滚动 |
30
+ | 按会话 | 今天的时间线,按会话分组 |
31
+ | 按主题 | 同一主题跨会话合并,按标签归一 |
32
+
33
+ 顶部支持 ‹ › 前后一天、「今日」、日期范围选择;跨天时甘特轴自动从"每小时"切到"每天"。
34
+
35
+ **Agent 工具**:`worklog_today`、`worklog_search`、`worklog_append`、`worklog_status`、`worklog_topics`。
36
+
37
+ **DSH Pocket**:只读的服务端直出页面,跟桌面面板同一份数据,每张卡带主题标签。
38
+
39
+ ## 安装
40
+
41
+ ```bash
42
+ dsh plugin --profile <profile> add dsh-worklog-topics
43
+ # 或在 DSH「插件 → 添加插件」里选这个包
44
+ ```
45
+
46
+ 装完重启一次 DeepSeek Harness。
47
+
48
+ ## 配置
49
+
50
+ | 字段 | 默认 | 说明 |
51
+ | --- | --- | --- |
52
+ | `storePath` | `~/.dsh/worklog` | 一天一个 `.jsonl` |
53
+ | `captureEnabled` | `true` | 关掉就完全不写 |
54
+ | `includeToolCalls` | `true` | 关掉则 `tools` 留空 |
55
+ | `maxSummaryChars` | `200` | 摘要长度上限 |
56
+ | `aiDeepseek` | `true` | 主摘要开关 |
57
+ | `aiProvider` / `aiModel` | 空 | 空 = 跟随宿主默认模型 |
58
+ | `aiCompareProvider` / `aiCompareModel` | 空 | 都填则对比槽用这个宿主模型 |
59
+ | `aiOllama` | `true` | 对比槽用本地 Ollama(未配对比宿主模型时生效) |
60
+ | `aiOllamaUrl` / `aiOllamaModel` | `http://127.0.0.1:11434` / `qwen3.5:9b-q4_K_M` | 本地模型 |
61
+ | `aiTimeoutMs` | `20000` | 单个摘要器超时 |
62
+ | `contextTurns` | `3` | 背景里带几条本会话的旧摘要 |
63
+ | `contextTopics` | `true` | 每轮判主题 |
64
+ | `contextOllama` | `false` | 是否把背景也给本地模型 |
65
+ | `promptPrimary` / `promptSecondary` | 空 | 空 = 内置提示词 |
66
+ | `gitSync` | 关闭 | 可选 `pull --ff-only` / `push`,不合并不提交 |
67
+
68
+ 面板右上角「设置」里可以直接选模型、改提示词,改完即时生效。
69
+
70
+ ## 数据
71
+
72
+ ```
73
+ ~/.dsh/worklog/2026-11-26.jsonl
74
+ ```
75
+
76
+ 一行一条。`summary` 是主摘要,`summaries` 存两份,`topicId`/`topic` 是主题,`answer` 是回答摘录。移动端页面只下发主题、摘要、工具,不下发原始回答与绝对路径。
77
+
78
+ ## 隐私
79
+
80
+ - 默认全部在本机:NDJSON 落盘、Ollama 本地推理、主题判定在本地拼接;
81
+ - 主摘要会调用你账户已登录的宿主模型,发送的是**该轮的用户输入与助手回复各最多 1200 字**;
82
+ - 插件不保存任何 API key,也不自建 token 表;Pocket 页面只校验 App 统一签发的 token 格式;
83
+ - 想完全不出机器:把 `aiDeepseek` 关掉,只留本地 Ollama,或全关走零成本截断。
84
+
85
+ ## 开发
86
+
87
+ ```bash
88
+ node scripts/self-test.mjs # 全部自测,不需要 DSH 进程
89
+ node scripts/self-check.mjs # 静态检查
90
+ ```
91
+
92
+ `scripts/bench-context.mjs` 可以拿真实会话日志回放,对比不同上下文策略下的摘要质量。
93
+
94
+ ## 许可
95
+
96
+ MIT
@@ -0,0 +1,3 @@
1
+ - insert:
2
+ - id: dsh-worklog
3
+ name: dsh-worklog-topics
package/docs/DETAIL.md ADDED
@@ -0,0 +1,58 @@
1
+ # Worklog
2
+
3
+ Worklog is an automatic memory for DeepSeek Harness. Every finished conversation turn appends exactly one line to a plain NDJSON file for that day, so you can look back later and see what you were actually doing — without writing notes by hand.
4
+
5
+ ## What it does
6
+
7
+ - **Automatic capture.** A Host plugin subscribes to the session event feed (`session/event`) and writes one record when a turn ends. Nothing is written per token, and nothing is written per tool call: one turn, one line.
8
+ - **One file per day, readable per session.** Records go to `~/.dsh/worklog/YYYY-MM-DD.jsonl` (append-only, changeable via `storePath`). Plain text: `grep`, `jq`, an editor, or a git repo all work on it.
9
+ - **Location fields.** Every record carries `workspace` (absolute) and `sessionPath` (the session's own `.jsonl(.zstd)` file, only when it really exists); **changed files stay relative**.
10
+ - **Sanitised records.** A record holds a timestamp, the local date, the hostname, the agent preset, the session id, the session title (`sessionTitle`: the `session/title` event first, then `sessionTitle.get()`, then the session's first prompt), the workspace (absolute `workspace`), the real on-disk session log file (`sessionPath`, derived from the JSONL persistence layout and confirmed with a directory read before it is written), a summary of at most `maxSummaryChars` characters, the tool names used in the turn, relative paths that changed (from `git status`) and tags. The full conversation body is never stored, and absolute paths are never stored.
11
+ - **Four tools for the agent.** `worklog_today`, `worklog_search`, `worklog_append` and `worklog_status` replace hand-written shell commands.
12
+ - **Sidebar panel.** Today's timeline is grouped by session (title, time span, count) beside the count, the capture switch and the store path.
13
+ - **Pocket mobile page.** Worklog appears in DSH Pocket's Plugins panel at `/dsh-worklog/mobile`. It renders today's entries on the server, follows the requested language, and provides category filters plus an expandable comparison of available DeepSeek and local-model summaries. It reports when capture is paused, accepts the shared App-issued token by format, and does not issue or keep plugin-local tokens. Mobile records omit raw assistant answers and absolute `workspace` and `sessionPath` values.
14
+ - **The file is not split per session.** One append-only file per day stays the single source of truth (easy to grep, replay, and ordered as it happened); the split happens in the view: every record carries `sessionId` and `sessionTitle`, and the panel and `worklog_today` group by session.
15
+
16
+ Nothing leaves the machine: no external server, no upload, no default git remote. Subagent sessions (`origin: subagent`) are not recorded, so delegated work does not flood the log.
17
+
18
+ ## Record shape
19
+
20
+ ```json
21
+ {"ts":"2026-11-26T01:34:12.000Z","date":"2026-11-26","node":"host","agent":"","sessionId":"session-…","kind":"turn","summary":"…","summaryBy":"deepseek","summaries":{"deepseek":"…","ollama":"…"},"answer":"…","tools":["bash"],"files":["lib/index.js"],"tags":["turn","human","tools","ai"]}
22
+ ```
23
+
24
+ ## Configuration
25
+
26
+ | Field | Default | Notes |
27
+ | --- | --- | --- |
28
+ | `storePath` | `~/.dsh/worklog` | Directory holding one `.jsonl` per day |
29
+ | `captureEnabled` | `true` | Off means the recorder writes nothing at all |
30
+ | `includeToolCalls` | `true` | Off leaves `tools` empty |
31
+ | `maxSummaryChars` | `200` | Upper bound for `summary` |
32
+ | `aiDeepseek` | `true` | Summarise through the Host `llm` service (no key is stored) |
33
+ | `aiProvider` / `aiModel` | `deepseek-account` / `deepseek-flash` (shown as DeepSeek-V4.1-Flash) | DeepSeek route |
34
+ | `aiOllama` | `true` | Summarise with a local Ollama model |
35
+ | `aiOllamaUrl` / `aiOllamaModel` | `http://127.0.0.1:11434` / `qwen3.5:9b-q4_K_M` | Local route |
36
+ | `aiOllamaStrictPrompt` | `true` | Strict instruction set for the small model (keep concrete nouns, ban vague verbs and invented conclusions); turn it off to A/B the wording |
37
+ | `aiTimeoutMs` | `20000` | Per-summariser deadline in milliseconds |
38
+ | `contextTurns` | `3` | Earlier summaries of the same session sent as background; `0` disables the window |
39
+ | `contextTopics` | `true` | Ask every turn which topic it belongs to, and keep that as a grouping dimension |
40
+ | `contextOllama` | `false` | Send the background to the local model too; on a 9B model it shortens summaries, drops concrete nouns and roughly doubles latency |
41
+ | `gitSync` | disabled | Optional `pull --ff-only` / `push`; never merges, never commits |
42
+
43
+ `storePath`, `captureEnabled`, `includeToolCalls` and `maxSummaryChars` are volatile fields, so they appear in the plugin's settings form and take effect without a restart. `gitSync` is edited in the profile patch.
44
+
45
+ ## Limitations
46
+
47
+ - A record covers the **whole turn**: the prompt plus the **final assistant reply**. Both summarisers receive both sides; with the models off, the zero-cost summary reads `问:…;答:…` and the final reply digest is kept separately in `answer`.
48
+ - Two summarisers run in parallel each turn: DeepSeek (through the Host `llm` service, using the route already signed in on this profile) and a local Ollama model. When both answer, `summary` is the DeepSeek line and both texts are kept in `summaries`; the panel shows them side by side.
49
+ - Privacy boundary: up to 1200 characters of the turn's prompt and of the assistant reply are sent to each selected model. Ollama stays on this machine; the DeepSeek call uses the model service your account already provides. Set `aiDeepseek` to false to keep everything local, or disable both for the zero-cost digest.
50
+ - A failing side never blocks the record: that side is skipped, the other is still used, and when both fail the record falls back to the zero-cost digest with `summaryBy: "digest"`; `worklog_status` reports the reason under `ai.*.last.error`.
51
+ - **The topic dimension.** Every summary carries a second line, `主题:`, and the model does one job: decide whether this turn continues an existing topic (answer with its id, e.g. `t2`) or starts a new one (`新 <label>`). It is briefed with this session's topic ids, labels, turn counts and a one-line gist, plus the last `contextTurns` summaries (3 by default). Ids are minted by the plugin (`t1`, `t2`, …) and never by the model; labels are compared with spacing and punctuation removed so one subject cannot fork into two; an answer of "不确定" keeps the previous topic instead of inventing one. A topic id is only unique inside its session, so grouping uses the normalised **label**: the same subject in two sessions becomes one group that lists its sessions, while untagged records stay split per session under "No topic" instead of collapsing into one pile. Records carry `topicId` and `topic`; `worklog_topics` reports turns, time span and sample summaries per topic, the panel switches between a session and a topic view, and the mobile page tags each card with its topic.
52
+ - **Background limits.** The briefing is filtered by `sessionId`, so sessions never leak into each other; turns tagged `reason:aborted` or `reason:error` are excluded, since half-finished work is not a dependable background. It lives in memory and is seeded from the newest three day files when a session is first seen, so a plugin reload or a resumed session does not start blank.
53
+ - **The local model gets no background by default** (`contextOllama: false`). Over the same 12 real turns, adding the thread plus 3 summaries to qwen3.5:9b dropped the average summary from 158 to 103 characters, cut checkable nouns from 6.6 to 3.9 and raised latency from 5.7 s to 12.2 s, with the thread sometimes freezing on an earlier turn. No such regression is established for DeepSeek (a standalone script cannot reach the Host `llm` service), so only that route gets the briefing.
54
+ - The two engines get different prompts: DeepSeek keeps the short one (it was already dense), the local model gets the strict one — on the same real inputs the strict set lifted checkable nouns (`dsh.mobile`, `registerMobile`, `sessionId`/`workspace`/`sessionPath`) from 0–1 to 3–5, the same band as DeepSeek's 2–4, at ~1–2 s extra and looser length compliance.
55
+ - The local call uses Ollama's native `/api/chat` with `think: false`: through the OpenAI-compatible route qwen3.5 spent the whole budget on reasoning and returned empty content after ~20 s, while disabling thinking answers in ~2 s.
56
+ - `files` comes from `git status` in the session's working directory; outside a git repository it stays empty, and it is capped at 30 entries.
57
+ - Only turn boundaries are recorded. A turn that produced no text at all is skipped.
58
+ - `gitSync` never commits and never merges: it only fast-forwards and pushes, so a dirty tree keeps failing until you commit yourself.
@@ -0,0 +1,58 @@
1
+ # 工作日志
2
+
3
+ 「工作日志」是 DeepSeek Harness 的自动记忆:每次对话结束,它往当天的纯文本日志里追加一行。你不用再手动记「刚才做了什么」,回头翻日志就能看到。
4
+
5
+ ## 它做什么
6
+
7
+ - **自动采集。** Host 插件订阅会话事件流(`session/event`),在一轮对话结束时写一条记录。不是每个 token 写一条,也不是每次工具调用写一条:一轮一行。
8
+ - **按天分文件,但按会话可读。** 默认写到 `~/.dsh/worklog/YYYY-MM-DD.jsonl`,append-only,路径可用 `storePath` 改。文件是纯文本,`grep`、`jq`、编辑器、git 仓库都能直接用。
9
+ - **位置字段。** 每条带 `workspace`(绝对路径)和 `sessionPath`(会话原始 `.jsonl(.zstd)` 文件,真实存在才写);**改动的文件仍是相对路径**,不写绝对路径。
10
+ - **脱敏记录。** 一条记录只有:时间戳、本地日期、主机名、agent preset、会话 id、会话标题(`sessionTitle`:先看 `session/title` 事件,再用 `sessionTitle.get()` 补读,最后用该会话第一句提问兜底)、**工作区**(`workspace`)、**会话日志的真实路径**(`sessionPath`,按 JSONL 持久化的真实目录结构算出来并 `readdir` 核实过才写)、最多 `maxSummaryChars` 字的摘要、本轮用过的工具名、`git status` 得到的相对路径、标签。不存对话正文,不存绝对路径。
11
+ - **四个工具。** `worklog_today`、`worklog_search`、`worklog_append`、`worklog_status`,agent 不用再手写 shell。
12
+ - **右侧栏面板。** 今天的时间线**按会话分组**(标题 · 时间跨度 · 条数)、今日条数、记录开关、存放路径。
13
+ - **Pocket 移动页。** Worklog 会出现在 DSH Pocket 的「插件」面板,路由为 `/dsh-worklog/mobile`。页面由服务端直出当天记录,按系统语言显示界面,并支持分类筛选和展开 DeepSeek / 本地模型摘要对比;记录暂停时会显示状态提示。它只校验 App 统一签发的 token 格式,不自行签发或保存插件私有 token。移动页不会发送原始回答,并会去掉 `workspace` 和 `sessionPath` 绝对路径。
14
+ - **文件不按会话拆。** 一天一个 append-only 文件仍是唯一事实源(好 grep、好回放、顺序就是发生顺序);「分开」发生在视图层:每条记录带 `sessionId` + `sessionTitle`,面板和 `worklog_today` 按会话归组。
15
+
16
+ 全程不联网:没有外部服务器,不上传,默认不开 git 同步。子会话(`origin: subagent`)不记录,避免子任务刷屏。
17
+
18
+ ## 记录格式
19
+
20
+ ```json
21
+ {"ts":"2026-11-26T01:34:12.000Z","date":"2026-11-26","node":"host","agent":"","sessionId":"session-…","kind":"turn","summary":"…","summaryBy":"deepseek","summaries":{"deepseek":"…","ollama":"…"},"answer":"…","tools":["bash"],"files":["lib/index.js"],"tags":["turn","human","tools","ai"]}
22
+ ```
23
+
24
+ ## 配置
25
+
26
+ | 字段 | 默认值 | 说明 |
27
+ | --- | --- | --- |
28
+ | `storePath` | `~/.dsh/worklog` | 放每日 `.jsonl` 的目录 |
29
+ | `captureEnabled` | `true` | 关掉就完全不写 |
30
+ | `includeToolCalls` | `true` | 关掉则 `tools` 留空 |
31
+ | `maxSummaryChars` | `200` | 摘要长度上限 |
32
+ | `aiDeepseek` | `true` | 用 DeepSeek 生成摘要(走 Host 的 `llm`,不写密钥) |
33
+ | `aiProvider` / `aiModel` | `deepseek-account` / `deepseek-flash`(显示名 DeepSeek-V4.1-Flash) | DeepSeek 侧的路由 |
34
+ | `aiOllama` | `true` | 用本地 ollama 生成摘要 |
35
+ | `aiOllamaUrl` / `aiOllamaModel` | `http://127.0.0.1:11434` / `qwen3.5:9b-q4_K_M` | 本地侧地址与模型 |
36
+ | `aiOllamaStrictPrompt` | `true` | 本地模型用严格提示词(保留具体名词、禁空泛动词、禁推断),关掉可做 A/B 对比 |
37
+ | `aiTimeoutMs` | `20000` | 每个摘要器的超时(毫秒) |
38
+ | `contextTurns` | `3` | 同会话最近几条摘要作为背景一起发送;填 `0` 关掉窗口 |
39
+ | `contextTopics` | `true` | 每轮判一次「主题」,沿用已有 id 或新建,作为分组维度 |
40
+ | `contextOllama` | `false` | 也给本地模型发背景;实测 9B 上会变短、丢具体名词、慢一倍 |
41
+ | `gitSync` | 关闭 | 可选的 `pull --ff-only` / `push`,不合并、不提交 |
42
+
43
+ `storePath`、`captureEnabled`、`includeToolCalls`、`maxSummaryChars` 是 volatile 字段,会出现在插件设置表单里,改完即时生效、不用重启。`gitSync` 在 profile 的 patch 里改。
44
+
45
+ ## 限制
46
+
47
+ - 记录的是**一整轮**:问题(本轮的人类输入)加**最终回答**(本轮最后一条助手文本)。两个摘要器都拿到这两段;不开模型时,零成本摘要会写成 `问:…;答:…`,并额外把最终回答的摘录存进 `answer`。
48
+ - 每轮会**并行**问两个摘要器:DeepSeek(走 Host 的 `llm` 服务,用你 profile 里已登录的路由)和本地 ollama(qwen)。两个都成功时,`summary` 取 DeepSeek 那条,两条原文都存进 `summaries`,面板里并排显示以便对比。
49
+ - 隐私边界要清楚:**用户输入与助手回复各最多 1200 字会被发给所选模型**。本地 ollama 不出这台机器;DeepSeek 那条会走你账户的模型服务。不想外发就把 `aiDeepseek` 关掉,只留本地或纯截断。
50
+ - 任何一侧失败(超时、模型不存在、ollama 没起)都不会影响写入:那一侧跳过,另一侧照用;两侧都失败则回落到零成本的本地截断,`summaryBy` 记为 `digest`,`worklog_status` 的 `ai.*.last.error` 会写清原因。
51
+ - **主题维度。** 每轮摘要多输出一行 `主题:`,模型只做一件事:判断这一轮属于哪个已有主题(写 id,如 `t2`),还是新主题(写 `新 <标签>`)。它拿到的背景是**该会话已有主题的 id、标签、轮数与一句 gist**,加上最近 `contextTurns` 条摘要(默认 3 条)。id 由插件分配(`t1`、`t2`…),不允许模型自己命名 id;标签会做去空格去标点归一,同一个标签不会被拆成两个主题;模型答「不确定」时保留上一轮主题,不会凭空造一条。主题 id 只在会话内唯一,所以**分组按主题标签归一后的结果**,同一主题在两个会话里会合并成一组并列出会话数;没有主题的旧记录按会话分开留在「未归主题」,不会糊成一条。记录里存 `topicId` 与 `topic`,`worklog_topics` 按主题给出轮次、时间跨度和样本摘要,面板可在「按会话 / 按主题」之间切换,移动页每张卡片带主题标签。
52
+ - **背景的边界。** 背景按 `sessionId` 过滤,会话之间不会串;带 `reason:aborted` / `reason:error` 的轮次被排除,因为做了一半的事不是可靠背景。它常驻内存,某个会话第一次出现时从最近三天的日文件补齐,插件重载或会话恢复后不会从空白开始。
53
+ - **本地模型默认不吃背景**(`contextOllama: false`)。同一批 12 轮真实会话实测,给 qwen3.5:9b 加「主线 + 3 条」后摘要从平均 158 字掉到 103 字、可核查名词从 6.6 个降到 3.9 个、耗时从 5.7 秒涨到 12.2 秒,还会出现主线卡在上一条不更新。DeepSeek 侧没有这个退化证据(脚本够不到 Host 的 `llm` 服务,未实测),所以默认只给它。
54
+ - 两个模型用不同的提示词:DeepSeek 用简短版(它本来就够密),本地 qwen 用严格版——同批真实输入实测,严格版把可核查名词(`dsh.mobile`、`registerMobile`、`sessionId`/`workspace`/`sessionPath`)从 0–1 个提到 3–5 个,与 DeepSeek 的 2–4 个同档;代价是慢 1–2 秒、长度指令遵循不严。
55
+ - 本地 ollama 走原生 `/api/chat` 且带 `think: false`:qwen3.5 走 OpenAI 兼容接口时会把 token 全花在思考上、约 20 秒返回空内容,关掉思考后约 2 秒出结果。
56
+ - `files` 来自会话工作目录下的 `git status`;不在 git 仓库里就是空,且最多 30 条。
57
+ - 只在轮次边界记录;一轮里完全没有文字则跳过。
58
+ - `gitSync` 不提交也不合并:只做快进和推送,工作区脏就一直失败,需要你自己提交。
package/icon.svg ADDED
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
2
+ <path d="M6.5 3.5h7L18 8v11.5a1 1 0 0 1-1 1H6.5a1 1 0 0 1-1-1V4.5a1 1 0 0 1 1-1Z"/>
3
+ <path d="M13.5 3.6V8H18"/>
4
+ <path d="M8.8 12.6h6.4"/>
5
+ <path d="M8.8 16.2h4.2"/>
6
+ </svg>