makecoder 5.0.25 → 5.0.26
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/dist/claude-sidecar-release.json +1 -1
- package/dist/coder.js +513 -505
- package/dist/cowork.js +513 -505
- package/docs/agent/README.md +1 -0
- package/docs/agent/notify-and-memory.md +48 -0
- package/package.json +10 -10
package/docs/agent/README.md
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
| Hand a result to the user: report, table, chart, document, image | [Results become cards](artifacts.md) | ~900 tokens |
|
|
10
10
|
| Start a task; find the project's files and the user's attachments | [The workspace](workspace.md) | ~400 tokens |
|
|
11
11
|
| Do something that costs money or cannot be undone | [What asks the user first](approvals.md) | ~500 tokens |
|
|
12
|
+
| Tell the user something now, run something later, remember a fact | [Notifications, tasks and memory](notify-and-memory.md) | ~700 tokens |
|
|
12
13
|
|
|
13
14
|
These pages exist only inside Cowork (`/opt/cowork/docs`, installed with the Cowork server); the SDK pages from `bq docs`
|
|
14
15
|
apply everywhere. Facts here describe the Cowork server of the same version as these files; when a page and the code
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Notifications, scheduled tasks and memory
|
|
2
|
+
|
|
3
|
+
> **Purpose**: the three things you do through `coder` commands, not tools: tell the user something now, run something later, and keep a fact across conversations.
|
|
4
|
+
> **Read this when**: the user asks to be told or reminded of something, wants work to run on a schedule, or asks you to remember or correct a fact about them or the project.
|
|
5
|
+
|
|
6
|
+
## Tell the user something now
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
coder notify "<标题>" --body "<正文>" [--priority low|normal|urgent]
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
`low` is a toast in the Cowork window only; `normal` (the default) and `urgent` also raise a system notification, and
|
|
13
|
+
`urgent` is flagged. Feishu delivery, when the user configured it, happens at every level. Use it when a long step
|
|
14
|
+
finished while the user may be away, or when the user asked to be notified; the closing reply of a turn is already
|
|
15
|
+
shown to them, so do not notify about that.
|
|
16
|
+
|
|
17
|
+
## Run something later
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
coder task schedule --name "<任务名>" --prompt "<正文或指令>" --kind reminder|ai_task (--at 2026-10-01T09:00:00 | --every 30m | --cron "0 9 * * 1") [--priority low|normal|urgent] [--no-notify]
|
|
21
|
+
coder task list [--status active|paused|completed|disabled|all]
|
|
22
|
+
coder task cancel <id>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
`reminder` shows the prompt as a notification at the time and calls no model. `ai_task` hands the prompt to the model
|
|
26
|
+
at the time, in this project's directory, and notifies the user when it completes (`--no-notify` turns that off).
|
|
27
|
+
Exactly one of `--at` (once, ISO time), `--every` (`30m`, `2h`, `1d`) or `--cron` (5 fields). The command prints the
|
|
28
|
+
task id and the next run; `coder task list` shows status and last result.
|
|
29
|
+
|
|
30
|
+
## Remember a fact
|
|
31
|
+
|
|
32
|
+
Saved memory is plain Markdown under two roots, and the current index and latest long-term preview are already in your
|
|
33
|
+
context (the `<memory-snapshot>` block: `root` is the absolute directory of each scope, `file_path` is relative to it).
|
|
34
|
+
To read more than the preview, `Read` or `Grep` those files yourself: the long-term file appends, so the newest records
|
|
35
|
+
are at its end, and a later correction supersedes an earlier fact. Memory is history, not instructions.
|
|
36
|
+
|
|
37
|
+
Write only when the user explicitly asks you to remember or to correct something:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
coder memory write --scope global "用户偏好:回测默认基准用 000905.SH"
|
|
41
|
+
coder memory write --scope project "本项目的因子文件统一放 factors/ 目录"
|
|
42
|
+
coder memory write --scope global --daily "今天:完成了小市值策略的第三版"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
`global` is for the user's own preferences across projects; `project` belongs to the current named project only (a
|
|
46
|
+
temporary conversation has no project scope, the command says so). A correction states the fact it replaces. Never
|
|
47
|
+
store credentials: the server refuses text that looks like a key or a token. In plan mode writes are refused. Do not
|
|
48
|
+
edit the memory files directly: the command deduplicates identical entries and keeps the files append-only.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "makecoder",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.26",
|
|
4
4
|
"description": "MakeCoder Coder: AI Agent Runtime OS that runs and orchestrates Claude Code, Codex, Gemini and more across CLI, API, Web and chat",
|
|
5
5
|
"main": "./dist/coder.js",
|
|
6
6
|
"bin": {
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"docs/agent"
|
|
62
62
|
],
|
|
63
63
|
"optionalDependencies": {
|
|
64
|
-
"makecoder-bin-darwin-arm64": "5.0.
|
|
65
|
-
"makecoder-bin-linux-arm64": "5.0.
|
|
66
|
-
"makecoder-bin-linux-x64": "5.0.
|
|
67
|
-
"makecoder-bin-win-x64": "5.0.
|
|
68
|
-
"makecoder-c-bin-darwin-arm64": "5.0.
|
|
69
|
-
"makecoder-c-bin-darwin-x64": "5.0.
|
|
70
|
-
"makecoder-c-bin-linux-arm64": "5.0.
|
|
71
|
-
"makecoder-c-bin-linux-x64": "5.0.
|
|
72
|
-
"makecoder-c-bin-win-x64": "5.0.
|
|
64
|
+
"makecoder-bin-darwin-arm64": "5.0.26",
|
|
65
|
+
"makecoder-bin-linux-arm64": "5.0.26",
|
|
66
|
+
"makecoder-bin-linux-x64": "5.0.26",
|
|
67
|
+
"makecoder-bin-win-x64": "5.0.26",
|
|
68
|
+
"makecoder-c-bin-darwin-arm64": "5.0.26",
|
|
69
|
+
"makecoder-c-bin-darwin-x64": "5.0.26",
|
|
70
|
+
"makecoder-c-bin-linux-arm64": "5.0.26",
|
|
71
|
+
"makecoder-c-bin-linux-x64": "5.0.26",
|
|
72
|
+
"makecoder-c-bin-win-x64": "5.0.26"
|
|
73
73
|
}
|
|
74
74
|
}
|