@aragon-agent/cli 0.6.53 → 0.6.55
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/CHANGELOG.md +64 -0
- package/README.md +135 -6
- package/dist/agent/controller.d.ts +98 -0
- package/dist/agent/controller.js +341 -1
- package/dist/agent/redteam-prompt.d.ts +47 -0
- package/dist/agent/redteam-prompt.js +161 -0
- package/dist/agent/redteam-wiring.d.ts +159 -0
- package/dist/agent/redteam-wiring.js +349 -0
- package/dist/agent/system-prompt.d.ts +27 -0
- package/dist/agent/system-prompt.js +10 -0
- package/dist/app/App.d.ts +17 -1
- package/dist/app/App.js +266 -26
- package/dist/app/use-redteam-mode.d.ts +56 -0
- package/dist/app/use-redteam-mode.js +121 -0
- package/dist/cli.js +78 -4
- package/dist/commands/builtins.js +49 -1
- package/dist/commands/catalog.js +5 -0
- package/dist/commands/index-build.js +2 -1
- package/dist/commands/redteam-command.d.ts +22 -0
- package/dist/commands/redteam-command.js +141 -0
- package/dist/commands/registry.d.ts +7 -0
- package/dist/compaction/compactor.d.ts +26 -0
- package/dist/compaction/compactor.js +81 -8
- package/dist/compaction/summarize-call.d.ts +22 -0
- package/dist/compaction/summarize-call.js +29 -0
- package/dist/compaction/wiring.js +22 -3
- package/dist/config/app-paths.d.ts +13 -0
- package/dist/config/app-paths.js +15 -0
- package/dist/config/cli-commands.d.ts +15 -0
- package/dist/config/cli-commands.js +32 -1
- package/dist/config/env.d.ts +3 -1
- package/dist/config/env.js +23 -1
- package/dist/config/load.d.ts +18 -0
- package/dist/config/load.js +19 -1
- package/dist/config/redteam-launch.d.ts +77 -0
- package/dist/config/redteam-launch.js +58 -0
- package/dist/config/store.js +20 -1
- package/dist/config/ui-state.d.ts +44 -0
- package/dist/config/ui-state.js +38 -0
- package/dist/exec/bridge/server.js +9 -2
- package/dist/exec/options.js +16 -2
- package/dist/governance/prompts/orchestrator-block.js +2 -2
- package/dist/host/controller-factory.d.ts +33 -0
- package/dist/host/controller-factory.js +14 -0
- package/dist/host/follow-up-seed.d.ts +109 -0
- package/dist/host/follow-up-seed.js +196 -0
- package/dist/host/follow-up.d.ts +73 -0
- package/dist/host/follow-up.js +123 -0
- package/dist/host/index.d.ts +3 -0
- package/dist/host/index.js +3 -0
- package/dist/host/memory.d.ts +21 -0
- package/dist/host/memory.js +17 -0
- package/dist/host/sessions.d.ts +32 -2
- package/dist/host/sessions.js +40 -2
- package/dist/logging/install.d.ts +1 -0
- package/dist/logging/install.js +4 -0
- package/dist/logging/logger.d.ts +1 -1
- package/dist/memory/block.d.ts +24 -0
- package/dist/memory/block.js +54 -0
- package/dist/memory/command.d.ts +31 -0
- package/dist/memory/command.js +350 -0
- package/dist/memory/format.d.ts +51 -0
- package/dist/memory/format.js +308 -0
- package/dist/memory/paths.d.ts +68 -0
- package/dist/memory/paths.js +172 -0
- package/dist/memory/plan.d.ts +37 -0
- package/dist/memory/plan.js +184 -0
- package/dist/memory/resolve.d.ts +45 -0
- package/dist/memory/resolve.js +54 -0
- package/dist/memory/secrets.d.ts +30 -0
- package/dist/memory/secrets.js +73 -0
- package/dist/memory/service.d.ts +175 -0
- package/dist/memory/service.js +576 -0
- package/dist/memory/store.d.ts +133 -0
- package/dist/memory/store.js +694 -0
- package/dist/memory/tools.d.ts +36 -0
- package/dist/memory/tools.js +527 -0
- package/dist/memory/transfer.d.ts +53 -0
- package/dist/memory/transfer.js +93 -0
- package/dist/session/checkpoint.d.ts +33 -0
- package/dist/session/checkpoint.js +52 -0
- package/dist/session/limits.d.ts +16 -0
- package/dist/session/limits.js +16 -0
- package/dist/session/persist.d.ts +68 -0
- package/dist/session/persist.js +11 -0
- package/dist/session/startup-session.d.ts +17 -2
- package/dist/session/startup-session.js +15 -2
- package/dist/session/store.d.ts +14 -0
- package/dist/session/store.js +18 -0
- package/dist/session/validate-session.js +129 -0
- package/dist/team/runtime.d.ts +11 -0
- package/dist/team/runtime.js +6 -0
- package/dist/team/subagent.d.ts +21 -0
- package/dist/team/subagent.js +7 -0
- package/dist/tools/index.d.ts +45 -2
- package/dist/tools/index.js +53 -3
- package/package.json +3 -3
- package/skills/project-indexer/SKILL.md +275 -147
- package/skills/project-indexer/templates/artifact-hygiene-template.md +14 -0
- package/skills/project-indexer/templates/config-template.md +12 -0
- package/skills/project-indexer/templates/index-template.md +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,70 @@ were written.
|
|
|
8
8
|
## Unreleased
|
|
9
9
|
|
|
10
10
|
### Added
|
|
11
|
+
- **Red team and security mode - `Ctrl+R`, `/redteam`, `aragon --redteam`.** A session posture for
|
|
12
|
+
authorized offensive-security work. Arming requires a versioned six-clause liability waiver (the
|
|
13
|
+
first `Ctrl+R` opens it; the cursor starts on *Decline*, and `Accept`/`y` are disabled on a terminal
|
|
14
|
+
too short to show the whole text). While armed the system prompt carries an English `<redteam_mode>`
|
|
15
|
+
block (authorization, what the mode really changes, rules of engagement, method, deliverable), the
|
|
16
|
+
status row shows `RT armed`, the composer border turns the red team colour, and a three-row banner
|
|
17
|
+
states the scope and how to leave. **The only permission effect is that the `--confirm` gate is
|
|
18
|
+
skipped** - and with the default `confirmTools: false` there is no gate to skip, so for most sessions
|
|
19
|
+
this mode changes no permissions at all (`/redteam status` says which of the three situations you are
|
|
20
|
+
in). Plan-mode refusals, governance's gate, the workspace boundary and the skill ceiling are
|
|
21
|
+
untouched. `/redteam scope <one line>` declares the engagement boundary (session-only, never written
|
|
22
|
+
to config, a session file or a log; refused above 200 characters or across lines) and the prompt is
|
|
23
|
+
explicit that it is a promise rather than a control. Under PLAN or GOVERN the mode is *paused*.
|
|
24
|
+
Subagents inherit the posture through an explicitly passed predicate. `--no-redteam` and
|
|
25
|
+
`ARAGON_REDTEAM=0` remove the chain entirely; `redteam.enabled` / `bypassConfirm` / `banner` /
|
|
26
|
+
`askEveryArm` are the four new config keys.
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
- **`Ctrl+R` is the red team switch now, and the frame repaint moved to `Alt+R`.** Same reason
|
|
30
|
+
`Ctrl+T` moved to `Alt+T`: legacy encodings deliver one byte for `Ctrl+R` and `Ctrl+Shift+R`, so a
|
|
31
|
+
Shift binding would exist only on the terminals least likely to need a recovery key. **The rebinding
|
|
32
|
+
is unconditional** - `Alt+R` repaints in every configuration, including `--no-redteam` and
|
|
33
|
+
`ARAGON_REDTEAM=0`, where `Ctrl+R` is a single explanatory toast. Both keys are listed in the
|
|
34
|
+
keyboard drawer, `/help` and the README, because this is the third meaning `Ctrl+R` has carried and a
|
|
35
|
+
user pressing it because their terminal is garbled has to be able to find out where that went.
|
|
36
|
+
|
|
37
|
+
- **Memory: notes you keep, search, edit and mount - `Ctrl+M` / `Alt+M` / `/memory`.** A new kind of
|
|
38
|
+
persistent context: notes **you** save (one Markdown file each under `~/.aragon-agent/memory/`, global or
|
|
39
|
+
per project), that you can search and edit by hand, and that the agent can use. Nothing is saved
|
|
40
|
+
automatically. `Space` in the manager mounts a note's full text into the session; auto-load (on by default)
|
|
41
|
+
puts a bounded catalog and your pinned notes in the system prompt, scaled to the model's window, with
|
|
42
|
+
everything else fetched on demand by three new tools - `memory_search` and `memory_read` (never more than ten
|
|
43
|
+
short rows / 6,000 characters per call) and `memory_write`, which by default shows you the complete text and
|
|
44
|
+
waits for your approval (`memory.agentWrites: ask|auto|off`). The status bar shows `mem N`, and the system
|
|
45
|
+
prompt block, tool descriptions and tool results are budgeted so memory cannot crowd out the conversation.
|
|
46
|
+
See [Memory](README.md#memory). New: `memory.*` config keys (six), `ARAGON_MEMORY=0` and `--no-memory` (kill
|
|
47
|
+
switches), `/memory` (alias `/mem`), Settings > Memory, the `memory` log scope, and a `memory` field
|
|
48
|
+
(ids only) in session files so `--resume` restores your mounts. Desktop: see the desktop changelog.
|
|
49
|
+
- **`Ctrl+M` is `Enter` on a terminal without keyboard enhancement**, which is every traditional encoding. On
|
|
50
|
+
Windows Terminal (win32-input-mode) and kitty / CSI-u terminals it opens the manager; elsewhere it still
|
|
51
|
+
submits the draft exactly as before and **`Alt+M` / `/memory` are the route**. xterm `modifyOtherKeys`
|
|
52
|
+
format 0 (`ESC [ 27 ; 5 ; 109 ~`) is not translated. The encodings were checked against the translators'
|
|
53
|
+
own fixtures, not against live terminals.
|
|
54
|
+
- Project notes are keyed by the **real path of the git root** and never stored in the repository, so a cloned
|
|
55
|
+
repository cannot preload memory into your agent. Different git worktrees are different projects.
|
|
56
|
+
- `memory_write` joins the plan-mode blocked set and the governed orchestrator's refused set (it writes to
|
|
57
|
+
disk; the governance block names it and its version is now `v1-2026-11-04`); `memory_search` /
|
|
58
|
+
`memory_read` join the skill tool floor. The `exec` bridge no longer treats the
|
|
59
|
+
three names as reserved, because a headless run never registers them (a caller tool named `memory_search`
|
|
60
|
+
is accepted); `--allow-tool` / `--deny-tool` naming them now warns.
|
|
61
|
+
- Fresh installs that never save a note are unchanged except for three more tools in the tool list
|
|
62
|
+
(about 300 tokens of definitions per request). `memory.enabled: false`, `ARAGON_MEMORY=0` and `--no-memory`
|
|
63
|
+
restore the previous prompt and tool list byte for byte.
|
|
64
|
+
- **A session file can never turn write approval off.** The memory part of a session file carries ids and
|
|
65
|
+
switches only, and the one switch that carries *authority*, `agentWrites: auto`, is no longer written (it is
|
|
66
|
+
saved as "follow the setting") nor restored: a hand-edited or foreign file passed to `--resume <path>` cannot
|
|
67
|
+
pre-approve the agent's memory writes. `ask` is still restored (it can only tighten the setting), so a resumed
|
|
68
|
+
session that was on `auto` asks again until you switch it - a deliberate, one-keystroke cost.
|
|
69
|
+
- `memory_write` refuses a `scope` that is not exactly `project` or `global` (it used to file any other spelling
|
|
70
|
+
under the project, which under `memory.agentWrites: auto` nobody would notice); an omitted scope is still
|
|
71
|
+
`project`.
|
|
72
|
+
- When keyboard enhancement is **off** (the case where `Ctrl+M` is `Enter`), the manager's list page and
|
|
73
|
+
Settings > Memory keep one line saying so and pointing at `Alt+M`; it is absent when `Ctrl+M` works.
|
|
74
|
+
|
|
11
75
|
- **Team mode is a switch you can see and flip: `Ctrl+T`, `Ctrl+Up` / `Ctrl+Down`, and a status-bar toggle.**
|
|
12
76
|
`Ctrl+T` turns team mode (the forced fan-out `/team` arms) on and off for the session; while it is on,
|
|
13
77
|
`Ctrl+Up` / `Ctrl+Down` change how many subagents each message fans out to, one at a time, between 1 and
|
package/README.md
CHANGED
|
@@ -780,6 +780,7 @@ below works there too, in either position — `aragon --model m exec "…"` and
|
|
|
780
780
|
| `--plan` / `--no-plan` | Start the session in PLAN mode (read-only research + review) or force BUILD |
|
|
781
781
|
| `--team` / `--no-team` | Enable or disable team subagents. `--no-team` does not register the `task` tool at all |
|
|
782
782
|
| `--team-max <n>` | Max subagents per dispatch for this run, clamped to `[1, 10]` |
|
|
783
|
+
| `--no-memory` | Turn agent memory off for this launch: no memory tools, no `<memory>` block in the system prompt, `Ctrl+M` / `Alt+M` do nothing. Not persisted; the same switch as `memory.enabled: false` and `ARAGON_MEMORY=0` |
|
|
783
784
|
| `--todo` / `--no-todo` | Enable or disable todo planning. `--no-todo` does not register the `todo_write` tool at all |
|
|
784
785
|
| `--todo-panel` / `--no-todo-panel` | Show or hide the right-hand todo rail. The tool stays registered either way |
|
|
785
786
|
| `--todo-follow <mode>` | What happens when a run ends with steps left: `notify` (default), `auto`, `off` |
|
|
@@ -957,6 +958,7 @@ ignores them rather than rejecting the library):
|
|
|
957
958
|
| `/session [copy\|pin]` | Report this session's id, file and branch parent; `copy` puts `aragon --resume <id>` on the clipboard; `pin` makes `sessions prune` skip the file forever |
|
|
958
959
|
| `/plan [on\|off\|status]` | Toggle plan mode (and leave governance) - the keyboard-free equivalent of `Shift+Tab` |
|
|
959
960
|
| `/gov [status\|on\|plan\|off\|board\|runs\|report [id]\|resume [id]\|pause [cancel]\|abort\|budget <n\|off>\|help]` | **Governance mode**: a governed engineering team (dev / review / test / inspector) with a GT scoring economy. `on` = GOVERN, `plan` = PLAN+GOVERN (interview first), `board` opens the full-screen overview, `runs` lists past runs with phase / health / tokens / cost, `report` re-reads a run's report, `pause` stops at the end of the running stage (nothing is killed), `abort` stops the running stage at once (the run is resumable). See [Governance mode](#governance-mode) |
|
|
961
|
+
| `/redteam [status\|on\|off\|scope <one line>]` | **Red team / security mode.** `/redteam status` prints four lines (effective state, scope, what the confirmation gate is doing, and what this mode does NOT lift) in any session, including `--no-redteam`. `on` needs the liability waiver accepted first (`Ctrl+R` opens it); a turn in flight defers the arming to its end, while `off` takes effect immediately and is never refused. `scope` declares the engagement boundary in one line (refused above 200 characters or across lines); no argument clears it. See [Red team and security mode](#red-team-and-security-mode) |
|
|
960
962
|
| `/team [on [n]\|off\|status]` / `/team [-n <n>] [--parts a,b,c] [--read-only] <brief>` | **Force team mode and start now.** `/team <brief>` arms forced team mode and submits that work as a normal turn: the lead analyses and plans it, then calls `task` — the directive, the `<forced_team_mode>` prompt block and a mechanical end-of-turn gate all say so. `/team on [n]` arms (optionally with a count) without submitting, `/team off` leaves - both take effect when the turn ends if one is running - and `/team` reports. The configuration it used to carry (team switch, width, concurrency, supervisor, subagent model) lives in `Settings > Team` |
|
|
961
963
|
| `/todo [on\|off\|panel on\|off\|follow <mode>\|acceptance on\|off\|reset\|clear\|continue]` | Todo planning: status, the on/off switch, the rail, follow-through, acceptance criteria, and picking an unfinished plan back up |
|
|
962
964
|
| `/retry [show\|on\|off\|max <n>]` | API retry: the effective ladder, the on/off switch, the retry count. Takes effect **in the running session**, children included |
|
|
@@ -966,6 +968,7 @@ ignores them rather than rejecting the library):
|
|
|
966
968
|
| `/bg [list\|logs <id> [n]\|stop <id\|all>\|status]` | Background jobs (services and tasks): what is running, its log tail, and how to stop it. `list` is the default |
|
|
967
969
|
| `/update [status\|now\|skip\|off]` | Auto-update: what is running, what is available, where it came from, when it looks again. `now` forces a check past the throttle; `skip` declines the offered version until a newer one appears |
|
|
968
970
|
| `/prompts [manage\|list\|show <n\|title>\|add [title :: body]\|edit <n\|title>\|rm <n\|title> [--yes]\|move <n\|title> <to>\|favorite <n\|title>\|sort name\|recent\|favorite]` | Quick prompt library: `/prompts` opens the picker (Enter fills the draft, `Ctrl+Enter` fills and sends), `add`/`edit` open the editor. `<n\|title>` accepts a 1-based index, an exact title, or a unique title prefix; a repeated title is refused **with its candidates** rather than guessed |
|
|
971
|
+
| `/memory [list [words]\|show <ref>\|save [--global] <text>\|add [text]\|rm <ref>\|restore [ref]\|mount\|unmount\|reset <ref>\|auto on\|off\|reset\|agent ask\|auto\|reset\|path\|help]` (alias `/mem`) | Memory: `/memory` opens the manager. `<ref>` is a number from `list`, an id, an exact title or a unique id prefix; an ambiguous one is refused **with its candidates**. `list` never prints a note body. `rm` moves to a 30-day trash and `restore` undoes it |
|
|
969
972
|
| `/kit [list\|use <name\|current>]` | Agent kits: what is in effect and where it came from, the whole library with each preset's three connections, or apply one for **this session**. `/kit use current` releases it. Never writes the config file |
|
|
970
973
|
| `/theme <auto\|warm\|cool\|light>` | Switch the color theme live (persisted) |
|
|
971
974
|
| `/expand [n]` | Expand / collapse the n-th-from-last (default last) tool card |
|
|
@@ -993,8 +996,9 @@ completes, `Up` / `Down` moves the selection, `Esc` closes it.
|
|
|
993
996
|
| `Shift+Tab` | Cycle the posture `BUILD` -> `PLAN` -> `GOVERN` -> `PLAN+GOVERN` -> `BUILD` (two states when governance is unavailable or `governance.shiftTab` is off). Equivalent: `/plan`, `/gov`. On Windows this needs a console flag Node < 22.17 does not set; aragon sets it at startup — see [Requirements](#requirements) |
|
|
994
997
|
| `Ctrl+N` | The same toggle, over a channel no Windows console can swallow. Use it if `Shift+Tab` does nothing. Written `Ctrl+N` everywhere, never `^N` - `^N` is the header's line-offset chip |
|
|
995
998
|
| `Ctrl+P` | **Quick prompt library**: the manager - create, edit, delete, favourite and reorder your own prompts. See [Quick prompt library](#quick-prompt-library) |
|
|
999
|
+
| `Ctrl+M` / `Alt+M` | **Memory manager**: save, edit, search and mount the notes AragonAgent remembers across sessions. `Ctrl+M` is the same byte as `Enter` on a terminal without keyboard enhancement (Windows Terminal, kitty, iTerm2 and WezTerm have it), where it still submits the draft exactly as before - use `Alt+M` or `/memory` there. See [Memory](#memory) |
|
|
996
1000
|
| `Ctrl+B` | **Agents board**: the details of a running dispatch. Left column lists every child (not just the five the roster fits), the right-hand sections show the selected child's state, turns, tools, tokens, files, mail, supervisor actions, retries, compaction, its current activity, its final answer or error, and the last 24 events. `Up` / `Down` change the child, `PgUp` / `PgDn` and the wheel page, `Esc` closes. The board survives the end of the dispatch - it freezes the last live snapshot and marks it `dispatch ended` - and opens after the fact from the session's own team card, where everything except the live-only sections (current activity, mail count, timeline) is still readable. Pressing `Ctrl+B` again, or `/agents`, opens and closes it |
|
|
997
|
-
| `Ctrl+I` | **Build the project index** (bundled `project-indexer` skill). Asks for confirmation, then
|
|
1001
|
+
| `Ctrl+I` | **Build the project index** (bundled `project-indexer` skill). Asks for confirmation, then writes `.claude-index/` and matching `CLAUDE.md` / `AGENTS.md`, including rules for results in `runs/` and temporary-file checks. On terminals without keyboard enhancement `Ctrl+I` is the Tab byte and completes input instead |
|
|
998
1002
|
| `Ctrl+K` | **Agent kits**: pick a model preset — main / subagent / fast profile in one choice — for **this session only**. Nothing is written to the config file. `Current setup` (the first row) releases the preset and returns to the file's bindings. See [Agent kits](#agent-kits) |
|
|
999
1003
|
| `Esc` | Close an overlay or popup; otherwise ask for interruption confirmation. While idle, cancel pending auto-continuation |
|
|
1000
1004
|
| `Esc` ×2 | Interrupt the run when pressed within 1.5 seconds. Other keys or closing a menu cancel the first press |
|
|
@@ -1002,7 +1006,8 @@ completes, `Up` / `Down` moves the selection, `Esc` closes it.
|
|
|
1002
1006
|
| `Ctrl+C` | **Copy the selection** when a drag-selection is waiting (release no longer copies by itself). Otherwise: stop the background **services** the agent started, when there are any. It does not arm exit |
|
|
1003
1007
|
| `Ctrl+C` ×2 | Exit (first press warns), once no services are running |
|
|
1004
1008
|
| `Ctrl+L` | **Branch this session into a new terminal**: opens a PowerShell (Windows) or bash (macOS/Linux) window at the current `/cwd` and runs `aragon --resume <id>` there, so the branch gets its own id and the session you branched from is untouched. Works while the agent is running - the child inherits the last settled turn. Same code path as `/branch` |
|
|
1005
|
-
| `Ctrl+R` |
|
|
1009
|
+
| `Ctrl+R` | **Red team / security mode on / off.** Arms only after the liability waiver is accepted (first press opens it); while armed the status bar shows `RT armed`, the composer border is drawn in the red team colour and the system prompt carries a `<redteam_mode>` block. Session state, never saved; the scope is never saved either. `Ctrl+R` no longer repaints - see the row below, and [Red team and security mode](#red-team-and-security-mode) |
|
|
1010
|
+
| `Alt+R` | Redraw the frame. This was `Ctrl+R` until red team mode took that key; the recovery key keeps working in every configuration, including `--no-redteam` |
|
|
1006
1011
|
| `Ctrl+T` | **Team mode on / off.** While on, every message fans out to subagents (the forced mode `/team` arms); the status bar shows the switch. Session state, never saved. See [The team mode switch](#the-team-mode-switch) |
|
|
1007
1012
|
| `Ctrl+Up` / `Ctrl+Down` | **Team size**: one more / one fewer subagent per message, between 1 and `team.maxSubagents` (no wrap). Only while team mode is on. Inside the prompt library overlay these keys reorder prompts instead |
|
|
1008
1013
|
| `Alt+T` | Show / hide thinking (**off by default**) for the entire session. This was `Ctrl+T`. On macOS Terminal.app turn on *Use Option as Meta key* or `Option+T` types `†` |
|
|
@@ -1146,6 +1151,63 @@ that you can drop into the composer instead of retyping.
|
|
|
1146
1151
|
|
|
1147
1152
|
`ARAGON_PROMPTS=0` is the same switch as `prompts.enabled: false`.
|
|
1148
1153
|
|
|
1154
|
+
## Memory
|
|
1155
|
+
|
|
1156
|
+
`AGENTS.md` / `CLAUDE.md` are files the agent reads; the prompt library is text you reuse; compaction
|
|
1157
|
+
summaries live inside one conversation. **Memory** is the fourth thing: notes **you** saved, that
|
|
1158
|
+
survive across sessions, that you can search, edit by hand and choose to put in the agent's context.
|
|
1159
|
+
|
|
1160
|
+
- **`Ctrl+M`** (or `Alt+M`, or `/memory`) opens the manager. `Space` mounts a note into this session -
|
|
1161
|
+
its **full text** goes into the agent's context - or takes it out again; `n` writes a new one, `Enter`
|
|
1162
|
+
opens it, `e` edits, `d` deletes (to a 30-day trash), `p` pins, `x` disables, `a` flips auto-load for
|
|
1163
|
+
this session, `/` filters, `Tab` switches between all / global / project. The header shows how many
|
|
1164
|
+
notes are in context and roughly how many tokens they cost. In the editor, `Ctrl+S` saves; `Tab` to the
|
|
1165
|
+
`Save` row then `Enter` does exactly the same thing. A second `Esc` is needed to discard an edited
|
|
1166
|
+
draft, and a half-typed note survives the agent asking you an unrelated question.
|
|
1167
|
+
- **Nothing is ever saved on its own.** A file appears only when you press Save, type `/memory save`, or
|
|
1168
|
+
tell the agent "remember ..." **and approve the preview** it shows you. Opening the manager, chatting,
|
|
1169
|
+
compacting, `/clear` and switching models write nothing.
|
|
1170
|
+
- **Two scopes.** *Global* notes follow you everywhere; *project* notes belong to the repository you are
|
|
1171
|
+
in (keyed by its path and kept in your home directory - never inside the repository, so cloning a repo
|
|
1172
|
+
cannot pre-load notes into your agent). Separate git worktrees are separate projects: put a note in
|
|
1173
|
+
*global* if it should apply to both.
|
|
1174
|
+
- **Auto-load is on by default and is bounded.** The agent sees a short catalog (one line per note) and the
|
|
1175
|
+
full text of your **pinned** notes, within a budget that shrinks with the model's context window (about
|
|
1176
|
+
3% of it, never more than your `memory.*` limits). Everything else it fetches on demand with
|
|
1177
|
+
`memory_search` and `memory_read`, which return at most ten short rows or 6,000 characters per call.
|
|
1178
|
+
A mounted note is always loaded in full; if the budget cannot hold it the manager says so rather than
|
|
1179
|
+
cutting silently. A model window under 16k tokens turns auto-load off (you can still mount).
|
|
1180
|
+
- **The agent can use memory, and it asks first.** `memory_search` / `memory_read` read; `memory_write`
|
|
1181
|
+
creates, updates or deletes ONE note and, by default (`memory.agentWrites: ask`), shows you the complete
|
|
1182
|
+
text it will write and waits. `auto` skips the question (never the checks); `off` removes the tool.
|
|
1183
|
+
Plan mode blocks `memory_write`; `Ctrl+M` still works there. The agent cannot save anything that looks
|
|
1184
|
+
like a credential, and notes are presented to it as **data, not instructions**.
|
|
1185
|
+
- **Plain files.** One Markdown file per note under `~/.aragon-agent/memory/` (`global/`, and
|
|
1186
|
+
`projects/<name>-<hash>/`), `0600` on POSIX, with a small frontmatter. Edit them in any editor; a file
|
|
1187
|
+
with no frontmatter is still read. Opening the manager never rewrites your files. Overwrites keep the
|
|
1188
|
+
last three versions and deletes keep the note for 30 days (`.trash/`). Two writers at once cannot
|
|
1189
|
+
silently overwrite each other: a stale save is reported as a conflict with the other writer's text.
|
|
1190
|
+
- **Privacy.** Notes are **plaintext**, and loaded notes are sent to the model provider you configured.
|
|
1191
|
+
There is no telemetry and no sync. Titles, summaries and bodies are never written to the logs. Do not
|
|
1192
|
+
store secrets: the manager asks you to confirm anything that looks like one, and the agent is refused.
|
|
1193
|
+
- **Where `Ctrl+M` cannot be delivered.** On a terminal without keyboard enhancement it **is** `Enter`
|
|
1194
|
+
and submits the draft, as it always did. `Alt+M` and `/memory` work everywhere (on macOS Terminal turn on
|
|
1195
|
+
"Use Option as Meta key"). tmux needs `extended-keys`. Run `/terminal-setup` to see which case you are in.
|
|
1196
|
+
- **Sessions.** Which notes you mounted, the auto-load switch and the write policy are part of the session
|
|
1197
|
+
file (ids only, never text), so `--resume` restores them. Notes that were deleted meanwhile are dropped.
|
|
1198
|
+
|
|
1199
|
+
| Config key | Default | Meaning |
|
|
1200
|
+
| --- | --- | --- |
|
|
1201
|
+
| `memory.enabled` | `true` | `false` removes the tools, the prompt block and the keys. `/memory` stays registered and reports that memory is off. Turning it **on** needs a restart (the tools are registered at launch) |
|
|
1202
|
+
| `memory.autoload` | `true` | Whether new sessions load the catalog and pinned notes. `/memory auto` and `a` change it for one session |
|
|
1203
|
+
| `memory.agentWrites` | `ask` | `ask` / `auto` / `off`. Anything else becomes `ask` - the safer direction |
|
|
1204
|
+
| `memory.indexMaxChars` | `3200` | Catalog budget (800-8000). Non-ASCII characters count three times: Chinese is not cheaper than English |
|
|
1205
|
+
| `memory.bodyBudgetChars` | `6000` | Auto-loaded text budget (0-16000); `0` loads no text automatically |
|
|
1206
|
+
| `memory.perBodyMaxChars` | `2000` | Longest note auto-load takes whole (200-8000); the rest is read on demand |
|
|
1207
|
+
|
|
1208
|
+
`ARAGON_MEMORY=0` (or `--no-memory`) is the kill switch; it can only turn memory **off**. The headless
|
|
1209
|
+
`aragon exec` / `-p` path and subagents never load memory and never register the tools.
|
|
1210
|
+
|
|
1149
1211
|
## Terminal setup for Shift+Enter
|
|
1150
1212
|
|
|
1151
1213
|
应用现在会主动请求终端区分修饰键:Windows 上推送 win32-input-mode(conhost 与
|
|
@@ -2880,14 +2942,15 @@ community skill directory works as-is.
|
|
|
2880
2942
|
Two skills ship **bundled** with the package (`<pkg>/skills`, read-only):
|
|
2881
2943
|
`skill-creator`, and `project-indexer` - a codebase indexer that generates a
|
|
2882
2944
|
`.claude-index/` navigation map (project overview, feature map, file index,
|
|
2883
|
-
exported symbols) and
|
|
2884
|
-
|
|
2885
|
-
|
|
2945
|
+
exported symbols) and synchronizes the full contents of `CLAUDE.md` and
|
|
2946
|
+
`AGENTS.md`. Both contain project navigation, optional Google-style **Clean Code
|
|
2947
|
+
Guidelines**, and required **Workspace Artifact Hygiene** rules.
|
|
2886
2948
|
|
|
2887
2949
|
`Ctrl+I` is its dedicated keybinding. The flow is deliberately boring:
|
|
2888
2950
|
|
|
2889
2951
|
1. A **Yes/No confirm** opens (what will be written is spelled out - the
|
|
2890
|
-
dialog names `.claude-index
|
|
2952
|
+
dialog names `.claude-index/index.md`, `.claude-index/config.md`, `CLAUDE.md`
|
|
2953
|
+
and `AGENTS.md` before anything happens).
|
|
2891
2954
|
2. Approving dispatches `/skill:project-indexer` through the ordinary command
|
|
2892
2955
|
path, so the run is a normal agent turn: every `glob` / `read_file` /
|
|
2893
2956
|
`write_file` streams into the transcript as a tool card, `Esc`
|
|
@@ -2901,6 +2964,23 @@ An existing `.claude-index/config.md` is reused on rebuild. While the agent is
|
|
|
2901
2964
|
running, `Ctrl+I` warns instead of queueing. `/skill:project-indexer` and
|
|
2902
2965
|
`/project-indexer` work as typed commands too.
|
|
2903
2966
|
|
|
2967
|
+
内置 1.2.0 的成功写入会生成全文相同的两份指导文件,并完整读回检查。
|
|
2968
|
+
实验、调试结果保存在当前工作区的 `runs/<run-id>/`,一次性中间文件放在其 `tmp/`
|
|
2969
|
+
子目录;任务结束前检查本轮文件(包括 Git 忽略的路径),只清理确认由本轮创建且
|
|
2970
|
+
不再需要的临时内容,保留有效结果、用户文件和其它任务改动。没有删除权限时报告
|
|
2971
|
+
残留及原因。产物规则不随 Clean Code 的 skip/disable/remove 关闭;单纯索引不创建空 runs。
|
|
2972
|
+
|
|
2973
|
+
重建保留旧配置、自定义规则、附加链接及备注。两份指导的私有规则实际冲突、结构损坏
|
|
2974
|
+
或无法完整读取时,技能在首次写入前停止并报告,不静默选择一份覆盖另一份。
|
|
2975
|
+
仅探索项目保持只读;写入失败或读回差异会报告部分完成,不自动覆盖修复。
|
|
2976
|
+
这是每次写入型调用的同步约定;两文件之后被独立编辑时,不会在后台自动同步。
|
|
2977
|
+
|
|
2978
|
+
技能解析优先级保持 `bundled < user < project < env`。升级 npm 包只更新内置副本,
|
|
2979
|
+
更高优先级的同名技能仍会覆盖它。若 Ctrl+I 仍表现为旧行为,运行
|
|
2980
|
+
`/skills info project-indexer`,核对实际生效路径、scope 和版本,并查看调用卡片;
|
|
2981
|
+
按既有技能管理流程更新自己的副本后重新加载。不要直接删除用户技能。
|
|
2982
|
+
确认窗口说明的是内置 1.2.0 的预期输出;成功提交调用并不等于文件已生成或读回通过。
|
|
2983
|
+
|
|
2904
2984
|
> **Terminal support:** `Ctrl+I` is the same byte as `Tab` in legacy terminal
|
|
2905
2985
|
> encoding. AragonAgent already asks for modified-key reporting at startup
|
|
2906
2986
|
> (win32-input-mode on Windows, kitty/modifyOtherKeys elsewhere - the same
|
|
@@ -3415,6 +3495,10 @@ env / `.env` → CLI flags**.
|
|
|
3415
3495
|
| `planModeHumanTimeoutMs` | `1800000` | Ceiling on a single question / plan wait, clamped to `[60000, 7200000]`. Thirty minutes is far outside "went to get coffee", but a ceiling has to exist so an unattended terminal cannot wedge a CI job forever. |
|
|
3416
3496
|
| `paste` | `true` | Recognise pasted text before Ink's key parser sees it: line breaks become buffer newlines instead of fifteen separate messages, escape SEQUENCES are removed whole (deleting only the introducer byte is what put `[38;2;18;52;86m` on screen and in the model's input) as are stray control bytes, and a paste above 6 lines or 400 characters collapses to a one-line placeholder that expands when you send. `false` treats pasted bytes as keystrokes, which is what 0.6.2 did. |
|
|
3417
3497
|
| `historyEnabled` | `true` | Record submitted prompts to `prompt-history.jsonl` for `↑` recall. Setting it to `false` stops new writes; it does not delete what is already stored (that is `aragon history clear --yes`) and does not stop reading. See [Prompt history](#prompt-history). |
|
|
3498
|
+
| `redteam.enabled` | `true` | Capability switch for red team / security mode. `false` (or `--no-redteam`, or `ARAGON_REDTEAM=0`) unregisters the whole chain: no chip, no prompt block, no bypass - read once at construction, so it needs a restart. |
|
|
3499
|
+
| `redteam.bypassConfirm` | `true` | While armed, skip the `--confirm` gate. With the default `confirmTools: false` there is no gate to skip, so this key changes nothing - the mode is honest about that in its waiver, its banner and `/redteam status`. |
|
|
3500
|
+
| `redteam.banner` | `true` | Push the three-row banner into the transcript when the mode arms. The status chip and the composer border are unaffected. |
|
|
3501
|
+
| `redteam.askEveryArm` | `false` | Re-show the waiver on every arm, ignoring the remembered version. For a cautious operator; the default remembers the accepted version. |
|
|
3418
3502
|
| `team.enabled` | `true` | Master switch for team subagents. `false` means the `task` tool is never registered. Written by the `Team mode` row in `Settings > Team` and nowhere else — `/team` never saves configuration. In a session already started with `--no-team` the row reads `on (next launch)`, rather than advertising a tool that is not there. |
|
|
3419
3503
|
| `team.maxSubagents` | `8` | Subagents per dispatch, clamped to `[1, 10]`. 8 is the default; 10 is the hard ceiling and is enforced twice — on the config value and again on what the model asks for — so hand-editing this file cannot raise it. A persisted `5`/`3` pair from an older install is migrated to `8`/`8` once (`fanoutMigrated` records that it happened, so moving back to 5/3 sticks). |
|
|
3420
3504
|
| `team.maxConcurrent` | `8` | Subagents in flight at once, clamped to `[1, 10]` and capped at `maxSubagents`. A separate knob because provider rate limits are a different constraint from context economics: lower this one if you collect 429s. |
|
|
@@ -3526,6 +3610,51 @@ greater than it, and the two are resolved together rather than left to collide.
|
|
|
3526
3610
|
These are additive: a config file written by an earlier version loads
|
|
3527
3611
|
unchanged, with no migration and no version bump.
|
|
3528
3612
|
|
|
3613
|
+
## Red team and security mode
|
|
3614
|
+
|
|
3615
|
+
A session posture for authorized offensive-security work: **Ctrl+R** (or `/redteam on`, or
|
|
3616
|
+
`aragon --redteam`) switches the agent from a general assistant into an offensive-security
|
|
3617
|
+
professional, with the authorization and the boundary stated in the system prompt itself.
|
|
3618
|
+
|
|
3619
|
+
**What it actually changes - first, because the honest answer is small.** The only permission
|
|
3620
|
+
effect is that the interactive confirmation gate (`--confirm`) is skipped while the mode is
|
|
3621
|
+
armed. `confirmTools` defaults to **false**, so for most sessions there is no gate to skip and
|
|
3622
|
+
this mode changes no permissions at all: its value is the prompt, the visibility and the declared
|
|
3623
|
+
scope. A session with `redteam.bypassConfirm: false` keeps the gate. Nothing else is loosened:
|
|
3624
|
+
plan-mode write refusals, the governed Orchestrator's gate, the workspace boundary and the skill
|
|
3625
|
+
tool-policy ceiling are untouched, and `/redteam status` says so in its fourth line.
|
|
3626
|
+
|
|
3627
|
+
**The waiver.** The first press of `Ctrl+R` opens a six-clause liability waiver and arms
|
|
3628
|
+
nothing. The cursor starts on **Decline**; `y` accepts; `Esc` declines. Acceptance is remembered
|
|
3629
|
+
per machine in `state.json` and per clause-set version, so raising the version asks everyone
|
|
3630
|
+
again - and `redteam.askEveryArm: true` asks on every arm. On a terminal too short for the whole
|
|
3631
|
+
text, **Accept and `y` are both disabled**: a shortcut that agrees to text you cannot see is
|
|
3632
|
+
worse than a button that does. Enlarging the terminal is enough - the overlay re-measures on
|
|
3633
|
+
resize.
|
|
3634
|
+
|
|
3635
|
+
**What you see.** An `RT armed` chip at the right end of the status row (at every width; it is
|
|
3636
|
+
never dropped for lack of space), a composer border in the red team colour, and a three-row
|
|
3637
|
+
banner in the transcript that states the scope and how to leave. Under PLAN or GOVERN the mode
|
|
3638
|
+
is **paused**: the chip reads `RT paused`, the border returns to the plan / govern colour, and
|
|
3639
|
+
the prompt says the authorization covers analysis and reporting only for that turn. Disarming is
|
|
3640
|
+
immediate in every state; arming during a turn waits for it to end, because that turn's prompt
|
|
3641
|
+
and tool array are already assembled.
|
|
3642
|
+
|
|
3643
|
+
**The scope** (`/redteam scope <one line>`) is what you declare you are authorized to test. It
|
|
3644
|
+
lives only in this session - never in `config.json`, never in a session file, never in a log -
|
|
3645
|
+
because a target name can itself be the sensitive half of an engagement. It is normalized before
|
|
3646
|
+
it reaches the prompt (control characters dropped, folded to one line, `<` / `>` neutralized, 200
|
|
3647
|
+
characters max, refused rather than truncated) and the prompt is explicit that **it is a promise,
|
|
3648
|
+
not a control**: nothing in this tool enforces it.
|
|
3649
|
+
|
|
3650
|
+
**Subagents inherit it.** A dispatched child gets its own trimmed `<redteam_mode>` block and the
|
|
3651
|
+
same bypass predicate, passed down explicitly (its confirmation closure is its own, so nothing
|
|
3652
|
+
inherits automatically). Leaving is one keystroke: `Ctrl+R` again, or `/redteam off`.
|
|
3653
|
+
|
|
3654
|
+
`aragon --redteam` starts armed - refused in print / exec mode and before the waiver is accepted,
|
|
3655
|
+
and refused by `--no-redteam` or `ARAGON_REDTEAM=0` (a kill switch that can only switch it off).
|
|
3656
|
+
`Alt+R` repaints the frame in every configuration, including the ones where this mode is off.
|
|
3657
|
+
|
|
3529
3658
|
## Auto-update
|
|
3530
3659
|
|
|
3531
3660
|
`aragon` checks npm for a newer release in the background, installs it silently
|
|
@@ -28,6 +28,11 @@ import { type ToolOutputListener } from '@aragon-agent/tui/model/tools/tool-outp
|
|
|
28
28
|
import type { FilePatch } from '@aragon-agent/tui/model/tools/patch';
|
|
29
29
|
import type { SubagentModelResolution } from '@aragon-agent/tui/model/team/model';
|
|
30
30
|
import { type ForcedTeamState } from '../team/forced-mode.js';
|
|
31
|
+
import type { RedTeamOutcome, RedTeamRequest } from '@aragon-agent/tui/model/redteam/redteam-mode';
|
|
32
|
+
import type { RedTeamView } from '@aragon-agent/tui/model/redteam/types';
|
|
33
|
+
import { MemoryService } from '../memory/service.js';
|
|
34
|
+
import type { MemorySessionView } from '@aragon-agent/tui/model/memory/types';
|
|
35
|
+
import type { MemoryConfig } from '@aragon-agent/tui/model/config/schema';
|
|
31
36
|
import type { TeamModeOutcome, TeamModeRequest, TeamModeView } from '@aragon-agent/tui/model/team/team-mode';
|
|
32
37
|
import type { TeamEvent, TeamSnapshot } from '@aragon-agent/tui/model/team/types';
|
|
33
38
|
import { ProcSupervisor } from '../proc/supervisor.js';
|
|
@@ -152,6 +157,15 @@ export interface ControllerDeps {
|
|
|
152
157
|
* once at construction and lost at the first `rebuildSystemPrompt()`.
|
|
153
158
|
*/
|
|
154
159
|
appendSystemPrompt?: string;
|
|
160
|
+
/**
|
|
161
|
+
* `--redteam`: start this session armed (red-team-security-mode 4.8 / D-15).
|
|
162
|
+
*
|
|
163
|
+
* RESOLVED BEFORE CONSTRUCTION, by `validateRedTeamLaunch`, which is the only place that can
|
|
164
|
+
* refuse it (headless, or no accepted waiver). Absent on every other path - the TUI without
|
|
165
|
+
* the flag, `-p`, `aragon exec`, every subagent - which is what keeps those sessions'
|
|
166
|
+
* prompts and tools byte-identical (I-1).
|
|
167
|
+
*/
|
|
168
|
+
redTeamArmed?: boolean;
|
|
155
169
|
/**
|
|
156
170
|
* `submit_result`, registered with the lead's toolset when the caller supplied
|
|
157
171
|
* `--result-schema` (headless-request-scope-and-typed-result section 2.3.9).
|
|
@@ -319,6 +333,8 @@ export declare class AgentController {
|
|
|
319
333
|
*/
|
|
320
334
|
private readonly governance;
|
|
321
335
|
private readonly teamMode;
|
|
336
|
+
private readonly redTeam;
|
|
337
|
+
private readonly memory;
|
|
322
338
|
private readonly todoRegistered;
|
|
323
339
|
private todoEnabled;
|
|
324
340
|
private readonly todos;
|
|
@@ -899,6 +915,88 @@ export declare class AgentController {
|
|
|
899
915
|
/** Tell `listener` whenever the switch's view changes. Returns the unsubscribe. */
|
|
900
916
|
subscribeTeamMode(listener: () => void): () => void;
|
|
901
917
|
getTeamConfig(): TeamConfig;
|
|
918
|
+
/** The mode as every surface renders it. Cached; cheap to call per render. */
|
|
919
|
+
getRedTeamView(): RedTeamView;
|
|
920
|
+
/**
|
|
921
|
+
* The ONE write entry: `Ctrl+R`, `/redteam on|off` and `--redteam` all arrive here.
|
|
922
|
+
*
|
|
923
|
+
* A `refusal: 'disclaimer'` is the caller's cue to open the waiver overlay - the command
|
|
924
|
+
* handler cannot (it has no overlay access) and App can.
|
|
925
|
+
*/
|
|
926
|
+
setRedTeam(req: RedTeamRequest): RedTeamOutcome;
|
|
927
|
+
/** Land a deferred change at `agent_end`. `null` = nothing was pending. */
|
|
928
|
+
applyPendingRedTeam(): RedTeamOutcome | null;
|
|
929
|
+
/** Tell `listener` whenever the view changes. Returns the unsubscribe. */
|
|
930
|
+
subscribeRedTeam(listener: () => void): () => void;
|
|
931
|
+
/** The engagement scope, or `null` when the user declared none. Never persisted. */
|
|
932
|
+
getRedTeamScope(): string | null;
|
|
933
|
+
/** Set or clear the scope; refuses rather than truncating (4.6 step 4). */
|
|
934
|
+
setRedTeamScope(line: string): {
|
|
935
|
+
ok: true;
|
|
936
|
+
scope: string | null;
|
|
937
|
+
} | {
|
|
938
|
+
ok: false;
|
|
939
|
+
reason: 'too-long' | 'multi-line';
|
|
940
|
+
};
|
|
941
|
+
/** Record the waiver acceptance and return the version that landed on disk. */
|
|
942
|
+
acceptRedTeamWaiver(): number;
|
|
943
|
+
/**
|
|
944
|
+
* The three banner rows for an armed session, or `null` when the banner is off in config.
|
|
945
|
+
*
|
|
946
|
+
* `bannerConfirmations` decides WHICH sentence the middle row carries, because this feature's
|
|
947
|
+
* only honest statement about permissions depends on two facts this class has: whether
|
|
948
|
+
* `confirmTools` is on for this session, and whether `bypassConfirm` is (RV-1 / D-19).
|
|
949
|
+
*/
|
|
950
|
+
getRedTeamBanner(): string[] | null;
|
|
951
|
+
/**
|
|
952
|
+
* The armed/disarmed pair for the session file (4.10), plus the waiver version it was armed
|
|
953
|
+
* under. `armed: false` with no version writes neither key, so an unarmed session's file is
|
|
954
|
+
* byte-identical to today's.
|
|
955
|
+
*/
|
|
956
|
+
getRedTeamSessionState(): {
|
|
957
|
+
armed: boolean;
|
|
958
|
+
waiverVersion?: number;
|
|
959
|
+
};
|
|
960
|
+
/**
|
|
961
|
+
* Adopt the state a saved session carried (`/resume`, `--resume`, a checkpoint replay).
|
|
962
|
+
*
|
|
963
|
+
* TOLERANT AT THIS BOUNDARY (4.10 / RV-5): anything that is not a boolean reads as disarmed,
|
|
964
|
+
* so a hand-edited file costs the mode and not the conversation. Returns the notice App should
|
|
965
|
+
* print, or `null`.
|
|
966
|
+
*/
|
|
967
|
+
restoreRedTeam(saved: {
|
|
968
|
+
armed?: boolean;
|
|
969
|
+
waiverVersion?: number;
|
|
970
|
+
} | undefined): string | null;
|
|
971
|
+
/** The posture changed (`Shift+Tab`, `/gov`): `paused` may have, so repaint. */
|
|
972
|
+
noteRedTeamPosture(): void;
|
|
973
|
+
/**
|
|
974
|
+
* One log record per mode event, and NONE of them carries a command, a target or a secret:
|
|
975
|
+
* `scope_set` records a length, `confirm_bypass` records a tool name (D-9 / R-12).
|
|
976
|
+
*/
|
|
977
|
+
private logRedTeam;
|
|
978
|
+
/** The memory service, or `undefined` when memory is off / headless / a subagent. */
|
|
979
|
+
getMemoryService(): MemoryService | undefined;
|
|
980
|
+
/**
|
|
981
|
+
* Adopt the memory state a saved session carried (mounts, switches). Tolerant: anything
|
|
982
|
+
* malformed is dropped by the service. The prompt is rebuilt so the restored mounts are in
|
|
983
|
+
* effect for the first turn.
|
|
984
|
+
*/
|
|
985
|
+
restoreMemory(state: unknown): void;
|
|
986
|
+
/** The whole session view; `available: false` when there is no service. */
|
|
987
|
+
getMemoryView(): MemorySessionView;
|
|
988
|
+
/** Subscribe to view changes; the returned function unsubscribes. */
|
|
989
|
+
subscribeMemory(listener: () => void): () => void;
|
|
990
|
+
/**
|
|
991
|
+
* Adopt a new memory config for this session (Settings > Memory), clamped here as well as
|
|
992
|
+
* on the persist path. Like `setTeamConfig` this does NOT persist: `persistConfig` writes
|
|
993
|
+
* the file, this updates the runtime.
|
|
994
|
+
*/
|
|
995
|
+
setMemoryConfig(patch: Partial<MemoryConfig>): MemoryConfig;
|
|
996
|
+
/** The window of the model `cfg` selects, or `undefined` when only a fallback is known. */
|
|
997
|
+
private memoryWindowTokens;
|
|
998
|
+
/** Configured API keys, so a note that contains one is refused by value. */
|
|
999
|
+
private memoryKnownSecrets;
|
|
902
1000
|
/**
|
|
903
1001
|
* Adopt a new team config for this session and re-render the prompt (the block
|
|
904
1002
|
* quotes the numbers). Clamped here as well as on the persist path, so a bad
|