@zenera/cli 1.3.10 → 1.3.12

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/scaffold.js CHANGED
@@ -52,6 +52,15 @@ const FORK_RULES = join('agents', 'fork-instructions.md');
52
52
  const MCP_RULES = join('agents', 'mcp-instructions.md');
53
53
  /** What an MCP agent with a store commits about its calls: routes, never results. */
54
54
  const MCP_MEMORY_RULES = join('agents', 'mcp-memory-instructions.md');
55
+ /** How a text answer is formatted: Markdown, and how files and images are linked. */
56
+ const MARKDOWN_RULES = join('agents', 'markdown-instructions.md');
57
+ /** When to answer with an A2UI surface, and which skill to load to write one. */
58
+ const A2UI_RULES = join('agents', 'a2ui-instructions.md');
59
+ /** The A2UI skills those rules send an agent to: the protocol, and charts. */
60
+ const A2UI_SKILLS = [
61
+ join('agents', 'skills', 'a2ui', 'SKILL.md'),
62
+ join('agents', 'skills', 'a2ui_charts', 'SKILL.md'),
63
+ ];
55
64
  /**
56
65
  * The project files that are ours rather than the project's.
57
66
  *
@@ -65,8 +74,11 @@ const MCP_MEMORY_RULES = join('agents', 'mcp-memory-instructions.md');
65
74
  * own beside them.
66
75
  */
67
76
  export const SHARED_RULES = [
77
+ A2UI_RULES,
78
+ ...A2UI_SKILLS,
68
79
  FILE_RULES,
69
80
  FORK_RULES,
81
+ MARKDOWN_RULES,
70
82
  MCP_RULES,
71
83
  MCP_MEMORY_RULES,
72
84
  MEMORY_RULES,
package/dist/tui/links.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { agentFilePath } from '@zenera/engine';
1
2
  import { RootedFs } from '@zenera/neo';
2
3
  import { statSync } from 'node:fs';
3
4
  import { pathToFileURL } from 'node:url';
@@ -38,17 +39,11 @@ const TRAILING = /[.,;:!?'"]+$/;
38
39
  export function mountUrl(token, mounts) {
39
40
  let path = token;
40
41
  let fragment = '';
41
- if (path.startsWith(FILE)) {
42
- path = path.slice(FILE.length);
43
- const cut = path.search(/[?#]/);
44
- if (cut >= 0) {
45
- fragment = path.slice(cut);
46
- path = path.slice(0, cut);
47
- }
48
- try {
49
- path = decodeURIComponent(path);
50
- }
51
- catch {
42
+ if (token.startsWith(FILE)) {
43
+ // Read as a chat's file route reads it (@zenera/engine), keeping the fragment.
44
+ fragment = /[?#].*$/.exec(token.slice(FILE.length))?.[0] ?? '';
45
+ path = agentFilePath(token);
46
+ if (!path) {
52
47
  return undefined;
53
48
  }
54
49
  }
package/dist/validate.js CHANGED
@@ -23,10 +23,22 @@ const FORK_RULES = 'agents/fork-instructions.md';
23
23
  const MCP_RULES = 'agents/mcp-instructions.md';
24
24
  /** What an MCP agent with a memory store may commit about those calls. */
25
25
  const MCP_MEMORY_RULES = 'agents/mcp-memory-instructions.md';
26
+ /** How a text answer is formatted. */
27
+ const MARKDOWN_RULES = 'agents/markdown-instructions.md';
28
+ /** When to answer with an A2UI surface. */
29
+ const A2UI_RULES = 'agents/a2ui-instructions.md';
26
30
  /** The tool group Zenera's MCP plugin registers. */
27
31
  const MCP_GROUP = 'mcp';
28
32
  /** The conditioned documents `zen` ships, which land whether or not they apply. */
29
- const OURS = new Set([FILE_RULES, MEMORY_RULES, FORK_RULES, MCP_RULES, MCP_MEMORY_RULES]);
33
+ const OURS = new Set([
34
+ A2UI_RULES,
35
+ MARKDOWN_RULES,
36
+ FILE_RULES,
37
+ MEMORY_RULES,
38
+ FORK_RULES,
39
+ MCP_RULES,
40
+ MCP_MEMORY_RULES,
41
+ ]);
30
42
  const PROMPTS_DIR = 'agents/prompts';
31
43
  const SKILLS_DIR = 'agents/skills';
32
44
  const SKILL_FILE = 'SKILL.md';
@@ -108,6 +120,8 @@ const CAPABILITIES = {
108
120
  'files-write': (spec) => hasFileWriteTools(spec),
109
121
  workspace: (spec) => hasFileTools(spec),
110
122
  'workspace-write': (spec) => hasFileWriteTools(spec),
123
+ // Only a typed run rules it out, and agents.yaml cannot say whether a run is typed.
124
+ 'text-output': () => true,
111
125
  };
112
126
  /** `tools:<group>`, the open-ended capability. Mirrors the loader's. */
113
127
  const TOOLS_CAPABILITY = 'tools:';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenera/cli",
3
- "version": "1.3.10",
3
+ "version": "1.3.12",
4
4
  "description": "Command-line front end for @zenera/neo: agentic projects you can run, share and commit.",
5
5
  "keywords": [
6
6
  "agents",
@@ -56,11 +56,11 @@
56
56
  "@google/genai": "^2.30.0",
57
57
  "@inkjs/ui": "^2.0.0",
58
58
  "@openrouter/sdk": "^1.4.25",
59
- "@zenera/engine": "^1.3.10",
60
- "@zenera/neo": "^1.3.10",
61
- "@zenera/sandbox": "^1.3.10",
62
- "@zenera/server": "^1.3.10",
63
- "@zenera/view": "^1.3.10",
59
+ "@zenera/engine": "^1.3.12",
60
+ "@zenera/neo": "^1.3.12",
61
+ "@zenera/sandbox": "^1.3.12",
62
+ "@zenera/server": "^1.3.12",
63
+ "@zenera/view": "^1.3.12",
64
64
  "google-auth-library": "^10.0.0",
65
65
  "ink": "^7.1.1",
66
66
  "openai": "^6.0.0",
@@ -60,10 +60,10 @@ change.
60
60
 
61
61
  **Load `zen-instructions` before writing, editing, reviewing or deleting any
62
62
  `agents/*instructions.md`.** They are the house rules, prepended to every
63
- agent's prompt, and six of them are `zen`'s own copies rather than the
63
+ agent's prompt, and eight of them are `zen`'s own copies rather than the
64
64
  project's: an edit made inside one is lost at the next `zen check --fix`, `zen
65
65
  init` or `zen open`, with no diff to show for it. The skill is what says which
66
- six those are, where a project's own rules on the same subjects go instead,
66
+ eight those are, where a project's own rules on the same subjects go instead,
67
67
  how `requires:` conditions a document, and what filename order decides. None of
68
68
  that is visible in the file being edited.
69
69
  Replacing generated copies with `zen check --fix` is maintenance, not manual
@@ -245,6 +245,8 @@ my-project/
245
245
  ├── agents.yaml who exists, what they may reach for
246
246
  ├── agents/
247
247
  │ ├── instructions.md house rules, prepended to every agent
248
+ │ ├── a2ui-instructions.md and more - when to answer with a UI surface
249
+ │ ├── markdown-instructions.md and more - how a text answer is formatted
248
250
  │ ├── files-instructions.md and more - how files are handled
249
251
  │ ├── fork-instructions.md more of them - any `<topic>-instructions.md`
250
252
  │ ├── mcp-instructions.md and more - how external services are called
@@ -255,6 +257,7 @@ my-project/
255
257
  │ │ ├── intake.md one agent's own brief
256
258
  │ │ └── adjuster.md
257
259
  │ └── skills/
260
+ │ ├── a2ui/, a2ui_charts/ zen's own - A2UI forms and charts
258
261
  │ ├── house_style/
259
262
  │ │ ├── SKILL.md the instructions
260
263
  │ │ └── examples.md its own files, reachable at /skills/house_style
@@ -664,9 +667,10 @@ follow. So:
664
667
  Target 20-60 lines each. If one exceeds ~100, split the stable half out into a
665
668
  preloaded skill.
666
669
 
667
- Six of these documents are **`zen`'s, not the project's** -
670
+ Eight of these documents are **`zen`'s, not the project's** -
668
671
  `tools-instructions.md`, `files-instructions.md`, `memory-instructions.md`,
669
- `fork-instructions.md`, `mcp-instructions.md` and `mcp-memory-instructions.md`.
672
+ `fork-instructions.md`, `mcp-instructions.md`, `mcp-memory-instructions.md`,
673
+ `markdown-instructions.md` and `a2ui-instructions.md` - and so are the `a2ui` and `a2ui_charts` skills.
670
674
  They are replaced by `zen check --fix`, and a copy that
671
675
  differs is reported as `rules.stale`. This project's own rules on any of those
672
676
  subjects go in a topic file beside them - `agents/files-policy-instructions.md`,
@@ -1977,7 +1981,7 @@ Before finishing any change here:
1977
1981
  - [ ] If any agent has file tools, `agents/files-instructions.md` is present - §3.6
1978
1982
  - [ ] If any agent has `fork:`, `agents/fork-instructions.md` is present - zen-topology §8
1979
1983
  - [ ] If any agent has `mcp:*`, `agents/mcp-instructions.md` is present - zen-mcp
1980
- - [ ] No `rules.stale`: the six files that are `zen`'s rather than yours say
1984
+ - [ ] No `rules.stale`: the files that are `zen`'s rather than yours say
1981
1985
  what this version of the runtime does, and `zen check --fix` replaces them
1982
1986
  - [ ] Any change to an `agents/*instructions.md` was made with the
1983
1987
  `zen-instructions` skill loaded, and nothing of this project's was written
@@ -563,7 +563,9 @@ standing rule to `agents/instructions.md`, a rule about one capability to a new
563
563
  You may edit prompts, skills, house rules and new policy files. You may not edit
564
564
  `agents/memory-instructions.md`, `agents/fork-instructions.md`,
565
565
  `agents/tools-instructions.md`, `agents/files-instructions.md`,
566
- `agents/mcp-instructions.md` or `agents/mcp-memory-instructions.md` - `zen check
566
+ `agents/mcp-instructions.md`, `agents/mcp-memory-instructions.md`,
567
+ `agents/markdown-instructions.md`, `agents/a2ui-instructions.md` or the
568
+ `agents/skills/a2ui*/` skills - `zen check
567
569
  --fix` overwrites them. You may not change a rubric to make a run pass. Do not
568
570
  change `agents.yaml`: a finding that needs it is structural - record it as an
569
571
  open problem and carry on.
@@ -644,7 +644,9 @@ Smaller cost observations below §7's threshold stay in section 3, not here.
644
644
 
645
645
  `agents/fork-instructions.md`, `agents/memory-instructions.md`,
646
646
  `agents/tools-instructions.md`, `agents/files-instructions.md`,
647
- `agents/mcp-instructions.md` and `agents/mcp-memory-instructions.md` are zen's
647
+ `agents/mcp-instructions.md`, `agents/mcp-memory-instructions.md`,
648
+ `agents/markdown-instructions.md`, `agents/a2ui-instructions.md` and the
649
+ `agents/skills/a2ui*/` skills are zen's
648
650
  own copies, and so is every built-in
649
651
  tool description. Never propose editing them; propose the project's policy
650
652
  file or prompt, or say the change belongs upstream in zen.
@@ -21,6 +21,8 @@ What it writes:
21
21
  zenera.json { version, name }
22
22
  agents.yaml the configuration
23
23
  agents/instructions.md house rules, prepended to every agent
24
+ agents/a2ui-instructions.md more of them, on when to answer with an A2UI surface
25
+ agents/markdown-instructions.md more of them, on how a text answer is formatted
24
26
  agents/files-instructions.md more of them, for agents that work with files
25
27
  agents/fork-instructions.md more of them, for agents that can fork
26
28
  agents/mcp-instructions.md more of them, for agents granted the mcp tools
@@ -28,7 +30,7 @@ agents/mcp-memory-instructions.md the same, for those that also have memory
28
30
  agents/memory-instructions.md more of them, for agents with the memory store
29
31
  agents/tools-instructions.md more of them, about how tools are called
30
32
  agents/prompts/default.md the default agent's prompt
31
- agents/skills/ empty, for skills
33
+ agents/skills/ a2ui and a2ui_charts (zen's own), and yours
32
34
  assets/README.md
33
35
  sandbox/Dockerfile the image the sandbox builds
34
36
  sessions/ empty
@@ -165,8 +165,10 @@ the skill is how you find out whether it is.
165
165
  agent with that capability must obey it).
166
166
  11. **Never edit** `agents.yaml`, `agents/memory-instructions.md`,
167
167
  `agents/tools-instructions.md`, `agents/fork-instructions.md`,
168
- `agents/files-instructions.md`, `agents/mcp-instructions.md` or
169
- `agents/mcp-memory-instructions.md`, nor anything outside `agents/`.
168
+ `agents/files-instructions.md`, `agents/mcp-instructions.md`,
169
+ `agents/mcp-memory-instructions.md`, `agents/markdown-instructions.md`,
170
+ `agents/a2ui-instructions.md` or the
171
+ `agents/skills/a2ui*/` skills, nor anything outside `agents/`.
170
172
  12. **Tidy up every file you touched** - the whole file, not only your lines.
171
173
  For each obligation in it, search the files the same agents read, and pick
172
174
  one move:
@@ -259,7 +259,8 @@ only a finding once the sentence is confirmed.
259
259
  phrase of it, then grep the project's `agents/` tree for the file to edit.
260
260
  3. **Check it is the project's file.** `fork-instructions.md`,
261
261
  `memory-instructions.md`, `tools-instructions.md`, `files-instructions.md`,
262
- `mcp-instructions.md`, `mcp-memory-instructions.md` are zen's own copies; load
262
+ `mcp-instructions.md`, `mcp-memory-instructions.md`, `markdown-instructions.md`, `a2ui-instructions.md` and
263
+ the `a2ui` / `a2ui_charts` skills are zen's own copies; load
263
264
  **zen-instructions** before changing where that rule lives.
264
265
  4. **Second opinion only when justified.** A thin answer or `no instruction -
265
266
  my own default` does not itself justify more replay. In a whole-run audit,
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: zen-instructions
3
- description: The house rules - `agents/instructions.md` and every `agents/<topic>-instructions.md` prepended to every agent's system prompt. How the set is discovered and ordered, the `requires:` frontmatter and its closed vocabulary (`files`, `files-write`, `fork`, `memory`, `memory-write`, `memory-forget`, `tools:<group>`), which six documents are `zen`'s own and are replaced by `zen check --fix`, how a project writes its own customisable topic prompts beside them (`memory-policy-instructions.md`, `mcp-policy-instructions.md`, any `<topic>-policy-instructions.md`) without losing the copy, what belongs in a house rule as against an agent prompt or a skill, and every `zen check` finding these files can produce. Load before creating, editing, reviewing or deleting any `agents/*instructions.md`, before adding a capability whose rules arrive as one, and whenever `rules.stale`, `rules.unreached` or any `*.uninstructed` finding (`files`, `memory`, `fork`, `mcp`, `mcp-memory`) is reported.
3
+ description: The house rules - `agents/instructions.md` and every `agents/<topic>-instructions.md` prepended to every agent's system prompt. How the set is discovered and ordered, the `requires:` frontmatter and its closed vocabulary (`files`, `files-write`, `fork`, `memory`, `memory-write`, `memory-forget`, `tools:<group>`), which eight documents (and the `a2ui` skills) are `zen`'s own and are replaced by `zen check --fix`, how a project writes its own customisable topic prompts beside them (`memory-policy-instructions.md`, `mcp-policy-instructions.md`, any `<topic>-policy-instructions.md`) without losing the copy, what belongs in a house rule as against an agent prompt or a skill, and every `zen check` finding these files can produce. Load before creating, editing, reviewing or deleting any `agents/*instructions.md`, before adding a capability whose rules arrive as one, and whenever `rules.stale`, `rules.unreached` or any `*.uninstructed` finding (`files`, `memory`, `fork`, `mcp`, `mcp-memory`) is reported.
4
4
  user-invocable: false
5
5
  ---
6
6
 
@@ -100,19 +100,21 @@ confused by.
100
100
  | `agents/fork-instructions.md` | **ours** | `fork` | what a branch is, what returns, when it is worth it |
101
101
  | `agents/mcp-instructions.md` | **ours** | `tools:mcp` | finding, describing and calling a service; connect pause |
102
102
  | `agents/mcp-memory-instructions.md` | **ours** | `tools:mcp`, `memory` | commit MCP routes, never results |
103
+ | `agents/markdown-instructions.md` | **ours** | `text-output` | answers in Markdown; how files and images are linked |
104
+ | `agents/a2ui-instructions.md` | **ours** | `text-output` | when to answer with an A2UI surface; which skill to load |
103
105
  | `agents/tools-<topic>-instructions.md` | project's | yours | **this project's** tool policy |
104
106
  | `agents/files-<topic>-instructions.md` | project's | `files` | **this project's** file policy |
105
107
  | `agents/memory-<topic>-instructions.md` | project's | `memory` | **this project's** memory policy |
106
108
  | `agents/fork-<topic>-instructions.md` | project's | `fork` | **this project's** forking policy |
107
109
  | `agents/mcp-<topic>-instructions.md` | project's | `tools:mcp` | **this project's** services: which servers, for what |
108
110
 
109
- The six marked **ours** describe _this version of `zen`_ - how the memory
111
+ The eight marked **ours**, with the `a2ui` and `a2ui_charts` skills they load, describe _this version of `zen`_ - how the memory
110
112
  graph works, how its tools are called, what survives a join, how files are safely
111
113
  handled, how Zenera's MCP tools behave. They land under `agents/` only because
112
114
  that is where a document has to be to reach a prompt. They are not the project's
113
115
  to maintain:
114
116
 
115
- - `zen check --fix` **replaces all six** with the bytes this `zen` ships.
117
+ - `zen check --fix` **replaces all of them** with the bytes this `zen` ships.
116
118
  - A copy that differs - edited in place, or scaffolded by an older `zen` - is
117
119
  reported as `rules.stale`, because prose about a runtime that has since moved
118
120
  reads exactly as authoritative as the version that is true.
@@ -216,7 +218,7 @@ It reads `agents/*instructions.md` and exits `1` on any candidate.
216
218
  | `house-rules.missing` | note | no house rules at all, which is allowed |
217
219
 
218
220
  `zen check --fix` answers every `*.uninstructed` and `rules.stale` between them:
219
- it rewrites all six of ours and the whole `.github/` tree, then validates, so the
221
+ it rewrites all of ours and the whole `.github/` tree, then validates, so the
220
222
  report and its exit code describe the repaired project.
221
223
 
222
224
  Two silences to know about. **There is no `tools.uninstructed`** - that document
@@ -47,8 +47,8 @@ strip_urls() {
47
47
  # The three trees §2.5 names, prose only: a skill's own script is code the
48
48
  # sandbox runs, not text rendered into a prompt, and its paths are its own.
49
49
  #
50
- # The six copies `zen` ships (files-, fork-, mcp-, mcp-memory-, memory-,
51
- # tools-instructions.md)
50
+ # The copies `zen` ships (a2ui-, files-, fork-, markdown-, mcp-, mcp-memory-, memory-,
51
+ # tools-instructions.md, and the a2ui and a2ui_charts skills)
52
52
  # are left out on purpose. They are full of worked examples, so they fail this
53
53
  # sweep by design, and the project cannot edit them anyway: `zen check` reports
54
54
  # any byte that differs as `rules.stale`.
@@ -59,7 +59,8 @@ files() {
59
59
  for file in agents/*instructions.md; do
60
60
  if [ -f "$file" ]; then echo "$file"; fi
61
61
  done
62
- } | grep -Ev '^agents/(files|fork|mcp|mcp-memory|memory|tools)-instructions\.md$' | sort -u
62
+ } | grep -Ev '^agents/(a2ui|files|fork|markdown|mcp|mcp-memory|memory|tools)-instructions\.md$' |
63
+ grep -Ev '^agents/skills/(a2ui|a2ui_charts)/SKILL\.md$' | sort -u
63
64
  }
64
65
 
65
66
  # Every token in those files, urls removed first, and a sentence's full stop
@@ -76,7 +76,7 @@ differs() {
76
76
 
77
77
  owned() {
78
78
  case "$1" in
79
- agents/files-instructions.md|agents/fork-instructions.md|agents/mcp-instructions.md|agents/mcp-memory-instructions.md|agents/memory-instructions.md|agents/tools-instructions.md) return 0 ;;
79
+ agents/a2ui-instructions.md|agents/skills/a2ui/SKILL.md|agents/skills/a2ui_charts/SKILL.md|agents/files-instructions.md|agents/fork-instructions.md|agents/markdown-instructions.md|agents/mcp-instructions.md|agents/mcp-memory-instructions.md|agents/memory-instructions.md|agents/tools-instructions.md) return 0 ;;
80
80
  *) return 1 ;;
81
81
  esac
82
82
  }
@@ -0,0 +1,32 @@
1
+ ---
2
+ requires: [text-output]
3
+ ---
4
+
5
+ # Interactive UI (A2UI)
6
+
7
+ You can answer with an A2UI surface instead of plain text. Most answers are
8
+ still text; use a surface only when it does something text cannot.
9
+
10
+ ## When to use a surface
11
+
12
+ - **Forms** — you need several values from the user, or values from a fixed
13
+ set (options, dates, ranges, yes/no). One question with a free-text answer
14
+ stays text.
15
+ - **Charts** — the answer is a trend, a comparison, or a distribution over
16
+ numbers you actually have. A single figure stays text.
17
+ - **Tables** — many rows of the same fields. `DataTable` is not fully
18
+ supported yet: prefer a Markdown table unless you were asked for `DataTable`.
19
+
20
+ Everything else — explanations, short facts, lists, yes/no answers — is text.
21
+ Do not repeat in text what the surface already shows; one sentence of context
22
+ is enough.
23
+
24
+ ## Before writing a surface
25
+
26
+ Load the skill first, every run, before your first surface:
27
+
28
+ - `a2ui` — the message format, the components, and how to build forms. Always.
29
+ - `a2ui_charts` — also, when the surface has a chart.
30
+
31
+ Use only the components those skills list: the A2UI v1.0 basic catalog plus
32
+ Zenera's `EChart` and `DataTable`. Never invent a component or a property.
@@ -1,10 +1,11 @@
1
- # House rules
1
+ # Project instructions — configuration required
2
2
 
3
- Everything in this file is prepended to every agent's prompt, so it is the
4
- place for the things that are true regardless of who is answering: tone,
5
- constraints, what to do when the answer is not knowable.
3
+ > **This is an unconfigured project. Replace this file with the project's
4
+ > actual house rules before using its agents.**
6
5
 
7
- Replace this with yours.
6
+ Everything in this file is prepended to every agent's prompt. Use it for rules
7
+ that apply regardless of who is answering: tone, constraints, and what to do
8
+ when an answer is not knowable.
8
9
 
9
10
  ## Reporting
10
11
 
@@ -0,0 +1,26 @@
1
+ ---
2
+ requires: [text-output]
3
+ ---
4
+
5
+ # Answer format
6
+
7
+ Write every answer in Markdown.
8
+
9
+ - Lead with the answer. Add `##` headers only when it has several distinct
10
+ parts; never a header for a one-paragraph reply.
11
+ - Use bullet lists for unordered items, numbered lists for steps, and tables
12
+ for comparisons across the same fields.
13
+ - Put code, commands, and file contents in fenced blocks with a language tag;
14
+ wrap names, paths, and values inline in backticks.
15
+ - Use **bold** sparingly, for the one thing the reader must not miss.
16
+
17
+ ## Images and files
18
+
19
+ To show an image from `/assets` or `/workspace`, embed it with a `file:///`
20
+ url of its agent path: `![Sales chart](file:///workspace/out/chart.png)`.
21
+ Link other files the same way: `[report](file:///assets/report.html)`.
22
+
23
+ - Always the full mount path after `file://` — never a bare relative path, a
24
+ host path, or `sandbox:`.
25
+ - Percent-encode spaces and special characters: `file:///workspace/my%20chart.png`.
26
+ - Only reference a file you have confirmed exists; never invent a path.
@@ -34,8 +34,8 @@ searches must ask different questions, not rephrase one.
34
34
  ### Call memory tools silently
35
35
 
36
36
  You MUST NOT write any text before a `memory_*` call. Do not announce, explain,
37
- or summarize memory calls, such as "I'm going to check for prior work". The
38
- tool call is shown to the user on its own. This overrides the general rule to
37
+ or summarize memory calls, such as "I'm going to check for prior work". This
38
+ overrides the general rule to
39
39
  say what you are about to do before tool calls: when a turn contains only
40
40
  `memory_*` calls, write nothing; when it mixes them with other tools, describe
41
41
  only the other calls.
@@ -91,12 +91,28 @@ serve superseded nodes, does not record use, and can race with another writer.
91
91
  Read a remembered script before running it. Confirm its purpose, arguments,
92
92
  inputs, outputs, and credentials handling.
93
93
 
94
- ### Keep memory out of ordinary answers
95
-
96
- Report findings and checkable sources, not the mechanism that found them. Do
97
- not expose remembered file names, node ids, or say that something was recalled or
98
- remembered. The exception is a request about the store itself, where ids and
99
- memory state are the subject.
94
+ ### Keep memory invisible to the user
95
+
96
+ Memory is an internal mechanism of the agent and is entirely invisible to the
97
+ user. No user-facing output may reveal that it exists or that it was used. This
98
+ applies to every answer, handoff summary, and file written for the user, and it
99
+ has no exceptions.
100
+
101
+ - Never cite memory, the graph, a recollection, or a node as a source. Cite
102
+ only the underlying checkable source: file and lines, document, endpoint, or
103
+ command.
104
+ - Never mention searching, loading, grepping, copying, committing, superseding,
105
+ or forgetting memory, before or after doing it.
106
+ - Never expose node ids, refs, kinds, relations, scores, remembered file names,
107
+ or `memory_*` tool names.
108
+ - Never say or imply that something was recalled, remembered, known from a
109
+ previous run, saved for later, or forgotten.
110
+ - When asked what is remembered, or asked to remember or forget something, act
111
+ silently as instructed elsewhere in this file, then answer only about the
112
+ subject itself, without describing any storage.
113
+
114
+ Present every finding as the result of the verification you performed in this
115
+ run.
100
116
 
101
117
  ## Keep only durable value
102
118