yvsaicode 0.3.5 → 0.3.6

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.
Files changed (2) hide show
  1. package/README.md +705 -97
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,102 +1,710 @@
1
1
  # yvsai
2
2
 
3
- An agentic terminal client for local and hosted language models. It runs
4
- a local model through `llama-server` (llama.cpp) or talks to any
5
- OpenAI-compatible API, and around the model it puts the things an agent
6
- needs: tools, a permission gate with a kernel sandbox behind it, skills,
7
- memory, sub-agents, background jobs, scheduled tasks and a phone bridge.
8
-
9
- npm i -g yvsaicode
10
- yvsai
11
-
12
- Linux x86_64. The package is a compiled build: it needs no Python and
13
- installs nothing on your machine but itself. `bwrap` and `rg` ship
14
- inside it.
15
-
16
- ## What it does
17
-
18
- **Models.** A local `.gguf` through `llama-server`, started and managed
19
- for you (`/server install` fetches a llama.cpp build, Vulkan or CPU), or
20
- a hosted endpoint. Thirteen presets — Anthropic, OpenAI, OpenRouter,
21
- Groq, Fireworks, Together, DeepSeek, Mistral, xAI, Cerebras, Nous, Ollama
22
- and LM Studio — and any other API root that speaks the OpenAI shape. Keys
23
- live in the OS keyring, never on disk. Vision models take images with
24
- `/img`; thinking models take `/think off` through `max` without a
25
- restart.
26
-
27
- **Tools.** Shell, file read/write/edit, grep and glob, a safety-gated web
28
- fetch, web search, exact arithmetic and symbolic maths, a todo list,
29
- scratch space and about forty more. A core kit rides in every request;
30
- the rest load by name through `tool_search`, so a long tool list never
31
- crowds the context window. MCP servers plug in the same way.
32
-
33
- **A permission model with a floor nothing bypasses.** `manual` asks
34
- before every shell command; `yolo` does not. A hardline tier of
35
- unrecoverable acts and persistence — `~/.ssh`, shell rc files, force
36
- pushes, `shred` — is refused in both. `sudo` is never run by the model:
37
- it queues a request you run yourself. On Linux a Landlock and seccomp
38
- sandbox enforces the file and network bounds in the kernel, in
39
- `workspace` or `readonly` mode.
40
-
41
- **Skills.** Twenty ship with it and land in `~/.yvsai/skills` on first
42
- run: document handlers for `docx`, `pdf`, `pptx` and `xlsx`, and the
43
- Superpowers development workflow — brainstorming, writing and executing
44
- plans, test-driven development, systematic debugging, code review,
45
- git worktrees and more. Open Agent Skills format; `/skills install
46
- owner/repo` adds any from the ecosystem.
47
-
48
- **Memory.** Pages that persist across conversations, searched with full
49
- text and injected when a turn is about them. A nightly pass reads the
50
- sessions it has not seen and proposes what is worth keeping. Every write
51
- is announced. `/remember` records something in one line.
52
-
53
- **Agents and jobs.** Sub-agents run as their own processes, depth-bounded,
54
- reporting back through a mailbox. Two terminals in one directory see each
55
- other by name and can message. A slow command detaches into a background
56
- job with Ctrl-B and is announced exactly once when it finishes.
57
-
58
- **Automation.** `/loop` keeps working toward a goal while you are away.
59
- `/cron` schedules tasks and exports them to systemd, launchd or crontab.
60
- `/telegram` pairs a phone by QR to approve tool calls or chat from there.
61
-
62
- **Sessions.** Conversations are rows in SQLite. `/sessions`, `/resume`,
63
- `/search` across all of them, `/rewind` to an earlier message,
64
- `/compact` when the window fills, `/export` to a file.
65
-
66
- **Your subscription on the LAN.** `yvsai gateway` serves two model names
67
- to other devices on your network in front of a local CLIProxyAPI, with
68
- per-device tokens and a budget of a third of your own limits.
69
-
70
- ## First minutes
71
-
72
- yvsai
73
- /model # pick a local model, or
74
- /provider add openai # a preset, key asked in-app
75
- /provider use openai
76
- /help # 61 commands in one panel
77
-
78
- Type to chat. `Esc` interrupts, `Ctrl-B` backgrounds a running command,
79
- `/` opens the command palette, `?` shows every key.
80
-
81
- ## Where things live
82
-
83
- Everything is under `~/.yvsai` (`YVSAI_HOME` moves it). Nothing is ever
84
- written to the directory you run from. Config is JSON and survives being
85
- edited by hand: `settings.json`, `providers.json`, `allowlist.json`,
86
- `mcp.json`. An upgrade never overwrites `soul.md`, a memory page or a
87
- skill you have.
88
-
89
- ## Requirements
90
-
91
- - Linux, x86_64, glibc 2.28 or newer (any mainstream distro since 2019)
92
- - Node 18 or newer for the launcher
93
- - A keyring backend for API keys is used when one is reachable; without
94
- one, keys go to a file under `~/.yvsai` readable only by you
95
- - `llama-server` only if you run local models; `/server install` fetches
96
- one
3
+ **An agentic assistant for the terminal, for local models and hosted APIs
4
+ alike.**
5
+
6
+ yvsai runs a model on your own machine through llama.cpp, or connects to
7
+ any OpenAI-compatible API or to a subscription plan you already pay for.
8
+ Around the model it puts what an agent needs to do real work on your
9
+ machine, safely, and an interface built for reading what it did.
10
+
11
+ ```bash
12
+ npm install -g yvsaicode
13
+ yvsai
14
+ ```
15
+
16
+ Linux x86_64 · a compiled build, no Python required · nothing is ever
17
+ written to the directory you run it in
18
+
19
+ ---
20
+
21
+ ## Contents
22
+
23
+ - [Highlights](#highlights)
24
+ - [Install](#install)
25
+ - [Getting started](#getting-started)
26
+ - [Models and providers](#models-and-providers)
27
+ - [Tools](#tools)
28
+ - [Safety](#safety)
29
+ - [Agents](#agents)
30
+ - [Memory](#memory)
31
+ - [Planning and automation](#planning-and-automation)
32
+ - [Screen control](#screen-control)
33
+ - [Extending yvsai](#extending-yvsai)
34
+ - [Sessions](#sessions)
35
+ - [The interface](#the-interface)
36
+ - [Command reference](#command-reference)
37
+ - [Configuration and files](#configuration-and-files)
38
+ - [Third-party software](#third-party-software)
39
+ - [License](#license)
40
+
41
+ ## Highlights
42
+
43
+ - **Any model.**
44
+ - Local GGUF models on a llama.cpp build chosen for your hardware.
45
+ - Thirteen hosted presets, or any OpenAI-compatible endpoint.
46
+ - A subscription plan you already have.
47
+ - **Safe by construction.**
48
+ - Three permission modes.
49
+ - A floor of refusals that no mode can lift.
50
+ - An optional sandbox the Linux kernel enforces, for reads as well as
51
+ writes.
52
+ - An automated security review of the code the agent changes.
53
+ - **Memory that lasts.**
54
+ - Markdown pages, recalled by keyword and by meaning.
55
+ - A daily pass that reads past conversations into memory, and can be
56
+ undone.
57
+ - **A team, not a single agent.**
58
+ - Sub-agents with typed roles and structured briefs.
59
+ - A live board of everything running.
60
+ - Terminals in the same folder see each other and coordinate.
61
+ - **Works while you are away.**
62
+ - Goal loops and background jobs.
63
+ - Scheduled tasks installed as system timers.
64
+ - A Telegram bridge for approvals from your phone.
65
+ - **Operates desktop applications.** A private, fenced display the agent
66
+ can look at and act on, with a live view window for you.
67
+ - **Extensible.** Skills, MCP servers with OAuth sign-in, plugins in the
68
+ Claude Code and Codex formats, and event hooks.
69
+ - **Built for reading.**
70
+ - Diffs with line numbers and word-level highlights.
71
+ - Summarised test runs.
72
+ - Math, diagrams, charts and images drawn in the terminal.
73
+ - Select, copy and click anything in the transcript.
74
+ - Twenty-four themes.
75
+ - **Scriptable.** `yvsai -p` answers one prompt from the shell, with
76
+ anything you pipe into it.
77
+
78
+ ## Install
79
+
80
+ ```bash
81
+ npm install -g yvsaicode # installs the `yvsai` command
82
+ yvsai --version
83
+ ```
84
+
85
+ | Requirement | |
86
+ |---|---|
87
+ | System | Linux x86_64, glibc 2.28 or newer (any mainstream distribution since 2019) |
88
+ | Launcher | Node.js 18 or newer |
89
+ | Optional | a Secret Service keyring for API keys (without one, keys go to a file only you can read) |
90
+ | Optional | a kernel with Landlock (5.13+) and user namespaces, for the sandbox |
91
+
92
+ The package is a compiled build. `bwrap`, `rg`, the embedding model used
93
+ for memory recall with the `llama-server` that runs it, and an X server
94
+ for the private screen ship inside it.
95
+ `/deps` lists anything else a feature on this machine would need, and
96
+ `/deps install` offers to install it.
97
+
98
+ **Updates install themselves.** Once a day a terminal asks npm for the
99
+ newest release, installs it in the background and says to restart.
100
+ Where npm's folder needs sudo it says the command instead.
101
+ `/set updates notify` only tells you; `/set updates off` never asks.
102
+ **Upgrade by hand** with `npm install -g yvsaicode` again. **Uninstall** with
103
+ `npm uninstall -g yvsaicode`. Your state in `~/.yvsai` stays where it is:
104
+ an upgrade never overwrites your settings, your memory, your skills or
105
+ your personality file.
106
+
107
+ ## Getting started
108
+
109
+ On first start, yvsai asks how it should reach a model: a **subscription**
110
+ you already pay for, an **API key**, a **local model**, or **later**. Each
111
+ path ends with a model to pick, and `/setup` brings the same choices back
112
+ at any time.
113
+
114
+ ```text
115
+ /model pick a model: a local one, or provider:model
116
+ /provider add openai add a hosted preset; the key is asked for in-app
117
+ /subscription login sign in with a plan you already pay for
118
+ /model pull <huggingface> download a GGUF model from Hugging Face
119
+ /help every command, in one panel
120
+ ```
121
+
122
+ Type to chat:
123
+ - **Esc** stops the agent.
124
+ - **Shift+Tab** cycles the permission mode.
125
+ - **`/`** opens the command palette.
126
+ - **`?`** shows every key that applies right now.
127
+
128
+ ### One prompt from the shell
129
+
130
+ ```bash
131
+ yvsai -p "what does src/server.py do?"
132
+ git diff | yvsai -p "review this change"
133
+ yvsai -p - < prompt.txt
134
+ ```
135
+
136
+ - **Output.** The answer goes to stdout and everything else to stderr.
137
+ - **Exit status.** `0` means an answer came back, `1` means none did,
138
+ `2` means bad usage, and `130` means Ctrl-C.
139
+ - **Saved.** Every run is saved like any conversation and can be resumed
140
+ later.
141
+ - **Piped input is data.** Input piped alongside a prompt is passed to
142
+ the model as data, not as your instructions.
143
+ - **Nobody is there to approve.** The saved permission mode still
144
+ applies, and any approval a command would ask for counts as
145
+ unanswered.
146
+
147
+ ## Models and providers
148
+
149
+ ### Local models
150
+
151
+ - **`/model`** lists the GGUF models on this machine and loads one.
152
+ yvsai starts, manages and stops `llama-server` for you.
153
+ - **`/server install`** downloads the llama.cpp build that runs best
154
+ here: CUDA 13 or 12, ROCm, Vulkan, or CPU. It checks the build's
155
+ checksum and runs it on your hardware before keeping it, and steps
156
+ down to the next build if one does not run.
157
+ - **`/model pull <link>`** reads a Hugging Face link (`hf.co/owner/repo`
158
+ or `owner/repo:Q4_K_M`). It lists every quantisation with its size and
159
+ how it would fit your GPU and memory, then downloads and verifies the
160
+ one you choose. Gated repositories take a token.
161
+ - **Every sampler and server option is a parameter**, set with `/set`
162
+ and listed with `/params`:
163
+ - Samplers: temperature, top-k, top-p, min-p, typical-p, top-n-sigma,
164
+ XTC, DRY, mirostat and the rest.
165
+ - Server: context size, GPU layers, MoE offload to the CPU, flash
166
+ attention, KV cache types, speculative decoding with a draft model,
167
+ and a vision projector.
168
+ - **`/preset`** applies a tuned group of settings at once: `chat`,
169
+ `coding`, `precise`, `creative` or `anti-loop`.
170
+ - **`/bench`** measures decode and prefill speed, and **`/restart`**
171
+ applies server parameters.
172
+
173
+ ### Hosted APIs
174
+
175
+ - **Thirteen presets.** `/provider add` takes OpenAI, Anthropic,
176
+ OpenRouter, DeepSeek, Groq, Together, Mistral, xAI, Fireworks,
177
+ Cerebras, Nous, Ollama or LM Studio.
178
+ - **Any other endpoint.** Any endpoint that speaks the OpenAI shape
179
+ works, given its base URL.
180
+ - **Keys** are asked for inside the app and kept in the OS keyring.
181
+ - **`/provider models`** lists what an endpoint serves, and **`/provider
182
+ test`** checks the wiring before you rely on it.
183
+ - **`/provider route`** sets OpenRouter routing: provider order,
184
+ allow-lists, quantisations, data collection and zero data retention.
185
+
186
+ ### Subscription plans
187
+
188
+ `/subscription` lets you sign in with a plan you already pay for. yvsai
189
+ downloads, verifies and runs CLIProxyAPI on this machine for you, and you
190
+ never have to run it yourself. `/subscription` lists the accounts it
191
+ supports. Models then appear as `subscription · vendor · model`.
192
+
193
+ This connects through a client the vendor did not make. The vendor's
194
+ terms are yours to accept, and yvsai says so before every sign-in.
195
+
196
+ ### For every model
197
+
198
+ - **`/think`** changes reasoning effort, from `none` to `max`, with no
199
+ restart.
200
+ - **Images.** `/img <path>` or Ctrl-V attaches an image for a vision
201
+ model. Video frames are read with `ffmpeg` from your PATH.
202
+ - **`/advisor`** names a second model as a reviewer. The agent consults
203
+ it at the moments that call for one: after repeated failures, and
204
+ before it calls a large change done.
205
+ - **Context.** The status line shows how full the context window is, and
206
+ `/context` breaks down what is using it.
207
+ - **Compaction.** Older turns are summarised automatically at 80% of the
208
+ window, and the threshold is a setting. `/compact <instructions>`
209
+ compacts by hand and keeps what you name.
210
+
211
+ ## Tools
212
+
213
+ The model works through about sixty tools. A core kit rides in every
214
+ request; the rest are loaded by name when they are needed. That keeps the
215
+ prompt small, because tool choice degrades as the list grows.
216
+
217
+ | Area | Tools |
218
+ |---|---|
219
+ | Shell and files | `bash`, `read_file`, `write_file`, `edit_file`, `grep`, `glob`, `list_dir`, `view_media` |
220
+ | Research | `web_search`, `fetch`, `session_search`, `project_doc` |
221
+ | Thinking and planning | `compute`, `todo`, `goal`, scratch pad, `spec_write`, `plan_write` |
222
+ | Working with you | `ask_user`, `present_file`, `remote_message_user` |
223
+ | Memory | `memory_read`, `memory_write`, `memory_search` and the rest |
224
+ | Agents and peers | `subagent_spawn`, `subagent_wait`, `subagent_message`, `peer_message` and the rest |
225
+ | Scheduling and jobs | `cron_create`, `install_timer`, `job_status`, `job_kill` |
226
+ | Extending | `skill_load`, `skill_install`, `mcp_install`, `mcp_login`, `plugin_install` |
227
+ | Desktop | `screen_open`, `screen_look`, `screen_act` |
228
+ | Privilege | `sudo_request` |
229
+
230
+ A few in detail:
231
+ - **`bash`** — a command that outlives its timeout moves to a background
232
+ job instead of being killed, and Ctrl-B does the same by hand.
233
+ - **`edit_file`** — the approval card shows the exact diff the edit will
234
+ make, and asks again if the file changes while you decide.
235
+ - **`fetch`** — turns HTML and PDFs into text and pages long documents.
236
+ It checks every redirect, flags local and private addresses, and reads
237
+ a GitHub file page as the raw file.
238
+ - **`web_search`** — searches the web, and an answer built on the results
239
+ ends with its sources.
240
+ - **`compute`** — exact arithmetic, symbolic maths and physical
241
+ constants.
242
+
243
+ Every tool describes its own result, so the transcript says what a
244
+ search found, or how a build ended, instead of dumping output. `/tools
245
+ off` turns tools off for a session, and `/rag <folder>` adds retrieval
246
+ over a folder.
247
+
248
+ ## Safety
249
+
250
+ ### Permission modes
251
+
252
+ `/mode` or Shift+Tab switches between the three modes:
253
+
254
+ | Mode | Behaviour |
255
+ |---|---|
256
+ | `manual` | Every shell command and every write asks first. The card offers: once, this session, always for this target, always for every call of the tool, or deny. |
257
+ | `plan` | Nothing writes. The model writes a spec of what it understood; you `/approve` it; then it writes a plan. Reads run freely. |
258
+ | `yolo` | Runs without asking. This is the default; a project can pin `manual` for itself. |
259
+
260
+ A read-only safelist is available in `manual` mode
261
+ (`/set trust_read_only on`). It is off by default, because deciding which
262
+ commands cannot matter on your machine is your call.
263
+
264
+ ### What no mode can do
265
+
266
+ - **Unrecoverable acts are refused outright**:
267
+ - `shred`
268
+ - `mkfs`
269
+ - truncating a file to zero
270
+ - `git push --force`
271
+ - `docker system prune --volumes`
272
+ - **So is persistence**:
273
+ - writing to `~/.ssh`, shell startup files or your git config
274
+ - writing to yvsai's own permission and configuration files, from any
275
+ tool
276
+ - **`sudo` never runs from the model.**
277
+ - `sudo_request` queues the command with a reason.
278
+ - `/sudo` runs it after you enter your password in a graphical prompt.
279
+ - The credential is cleared after that one command.
280
+ - **Some acts always ask, even under `yolo`**, and can never be answered
281
+ with "always":
282
+ - installing a system timer, a skill, an MCP server or a plugin
283
+ - signing in to an MCP server
284
+
285
+ Each card names every file and every command involved.
286
+ - **Handing work to another process still asks under `yolo`**: `docker`,
287
+ `ssh` and similar commands, unless the sandbox has closed delegation.
288
+ - **Every tool result records how it was cleared**: approved by you, or
289
+ ran without asking. So the model never tells you that you approved
290
+ something you were never shown.
291
+
292
+ ### The sandbox
293
+
294
+ `/set sandbox workspace` or `readonly` turns on a fence the Linux kernel
295
+ enforces: Landlock, seccomp and bubblewrap namespaces. It is off by
296
+ default.
297
+
298
+ - **`workspace`**
299
+ - Writes go only to the working folder, the session's scratch folder
300
+ and folders you add (`sandbox_write`).
301
+ - Reads come only from an allowlist: system programs and libraries,
302
+ DNS and TLS files, yvsai's own logs, memory and skills, and what you
303
+ add (`sandbox_read`).
304
+ - Your home directory, `/etc` at large, and every file that holds a
305
+ key or configuration are out of reach.
306
+ - `/tmp` becomes the session's private scratch, and commands get their
307
+ own process table.
308
+ - **`readonly`** — reads anything except keys and configuration, and
309
+ writes only the session's scratch folder.
310
+ - **`sandbox_hide`** masks any path you name, in either mode.
311
+
312
+ ### Security review
313
+
314
+ `/security on` reviews the code each turn changed, when the turn ends. It
315
+ is off by default, and a project can turn it on for itself.
316
+
317
+ - **What is reviewed.** Only code and the configuration that decides
318
+ security: source files, shell scripts, SQL, Dockerfiles, CI workflows,
319
+ Terraform and the like. Documentation, lockfiles, images and data are
320
+ never sent, and anything that could not be reviewed is named on
321
+ screen.
322
+ - **Checks that need no model** run first:
323
+ - a secret written into the code
324
+ - a new dependency with no pinned version
325
+ - a new dependency with a known vulnerability
326
+ - **The reviewer.** By default it is the session's own model, reading
327
+ the turn it reviews. A model named with `/security model` sees only the
328
+ diff and the changed files, never the conversation. Code from a
329
+ conversation on this machine goes to a hosted reviewer only after you
330
+ agree on a card.
331
+ - **Findings are kept per project**, each with a status. The agent is
332
+ told what was found, so it fixes or dismisses each one.
333
+ - Bare `/security` lists the findings.
334
+ - `/security dismiss` closes one with your reason, and `reopen` opens
335
+ it again.
336
+ - **`/security review`** reviews a branch, a path, a commit or a range on
337
+ demand, even with the automatic review off.
338
+ - **Pattern notes.** While the review is on, a file write that contains
339
+ a risky call gets a short note beside it. The calls include `eval`,
340
+ `pickle`, `shell=True`, `yaml.load`, SQL built from strings, HTML
341
+ written from values, TLS verification turned off and `chmod 777`.
342
+
343
+ ### Untrusted content
344
+
345
+ Every text the model reads carries who wrote it and when. Web pages, tool
346
+ output, MCP results and messages from other agents are marked as outside
347
+ content. yvsai's own notes carry a tag minted for that one message, so a
348
+ page cannot forge one.
349
+
350
+ ## Agents
351
+
352
+ ### Sub-agents
353
+
354
+ `subagent_spawn` starts a child: this same program without a terminal,
355
+ in its own process.
356
+
357
+ - **Types.** Four ship with yvsai: `general` and `researcher` write;
358
+ `explorer` and `reviewer` read only. Add your own in
359
+ `~/.yvsai/agent-types/`, with a model, a reasoning effort and tools to
360
+ withhold.
361
+ - **Briefs are structured**: a role, a goal, conditions for done, and
362
+ the shape of the report are required; dos and don'ts are optional.
363
+ - **Access is enforced.** A read-only agent is refused writes at the
364
+ tool level. Nesting stops at depth two.
365
+ - **Reports carry facts the runtime observed**, beside the agent's own
366
+ account: status, call count, elapsed time and the files it wrote.
367
+ - **Agents persist.** One that has reported saves its state and wakes
368
+ when it is messaged, until it is told to finish.
369
+ - **Approvals are named.** An approval a child needs is asked of you
370
+ with that child's name on it.
371
+ - **The machine's load is shown.** The model sees cores, memory, GPU and
372
+ the local server's state, and judges how many agents to run.
373
+
374
+ ### The agent board
375
+
376
+ `/agents` shows every agent and terminal in the folder, grouped by what
377
+ each needs from you: needs you, working, waiting, done. The selected
378
+ one's brief and live calls are shown beside it, and Enter steps into its
379
+ conversation.
380
+
381
+ ### Terminals in the same folder
382
+
383
+ Two terminals in one folder get names, such as `alpha-polaris` and
384
+ `bravo-vega`.
385
+ - **They see each other**: each one's goal, and each one's file edits as
386
+ they happen.
387
+ - **They talk.** `peer_message` carries a message from one to the other,
388
+ and `/peers` lists who is there.
389
+ - **They avoid collisions.** Before both edit one checkout, they are
390
+ offered a branch, a worktree or a split of files.
391
+
392
+ ## Memory
393
+
394
+ - **Pages.** Memory is markdown pages: some about you, shared across
395
+ projects, and some about each project. A page says what is true, why,
396
+ and how to apply it. The prompt lists every page with a one-line
397
+ description, and the model opens a page when it bears on the task.
398
+ - **Recall by keyword and by meaning.** A full-text index, plus a small
399
+ local embedding model that runs on the CPU, bring a relevant page into
400
+ the turn without being asked.
401
+ - The model and the CPU `llama-server` that runs it ship with yvsai
402
+ (the server needs glibc 2.35; on an older system recall reads
403
+ words alone until `/server install`).
404
+ - **Corrections stick.** A correction or preference you type is saved in
405
+ your words as you type it. `/remember <text>` records anything in one
406
+ line, and every write is announced on screen.
407
+ - **The memory pass.** `/dream` reads past conversations in two stages:
408
+ 1. A reader extracts candidates. A claim that you said something has
409
+ to quote your actual words.
410
+ 2. A consolidator writes, edits, renames or forgets pages, within
411
+ guards: pinned pages are never touched, an edit cannot gut a page,
412
+ and a page about you needs your own words behind it.
413
+
414
+ Every page records the conversations it came from, and any of them can
415
+ be opened. Once a typed `/dream` has caught a project up, the pass
416
+ runs daily there. `/dream model` picks the model it uses, and
417
+ `/dream undo` reverts a pass.
418
+ - **Lessons.** Lessons are learned mechanically from commands that failed
419
+ and were then fixed (`/lessons`). The model never writes a lesson, and
420
+ a refused command teaches nothing.
421
+ - **Changes while you were away.** When you come back after a while,
422
+ yvsai tells the agent what changed in the folder: the branch, and the
423
+ files edited, added or deleted.
424
+
425
+ ## Planning and automation
426
+
427
+ - **Plan mode.** The agent writes a spec, then a plan, and nothing is
428
+ written until you approve.
429
+ - **`/goal`** sets what a conversation is working towards, with checks
430
+ the harness verifies before a goal counts as met. The todo list and
431
+ the goal appear in the side column.
432
+ - **`/loop :<want>`** keeps the agent working toward a goal while you
433
+ are away. `smart`, `endless`, a time limit and `yolo` are options. In
434
+ a smart loop, a separate checker has to agree the work is done before
435
+ the loop stops.
436
+ - **`/cron`** schedules tasks.
437
+ - Each task carries its own permission mode and sandbox.
438
+ - A task can be installed as a `systemd --user` timer or a launchd
439
+ agent, so it runs with yvsai closed.
440
+ - Results are told once, to the next terminal you type in.
441
+ - **Background jobs.** `bash` with `background=true`, or Ctrl-B on a
442
+ running command. `/jobs` lists them, and each is announced exactly
443
+ once when it finishes.
444
+ - **`/telegram`** pairs your phone by QR code. Approve commands, answer
445
+ questions and chat from it; the phone and the terminal share one
446
+ conversation.
447
+
448
+ ## Screen control
449
+
450
+ On Linux the agent can be given a **private screen**: an invisible X
451
+ display of its own, fenced by the sandbox whatever the sandbox setting
452
+ says.
453
+
454
+ - **Seeing and acting.**
455
+ - `screen_open` starts a program on the screen.
456
+ - `screen_look` reads its windows through the accessibility tree, or
457
+ as a picture.
458
+ - `screen_act` clicks, types, presses keys and drags.
459
+ - **Risky controls ask first.** Buttons that send, delete or pay put an
460
+ approval card up. A password is typed by you into a masked prompt and
461
+ never reaches the model.
462
+ - **`/screen watch`** opens a live view window. It opens by itself when
463
+ the agent starts using its screen, can be resized, and shows the
464
+ agent's pointer and clicks.
465
+ - **Sub-agents** can be given a screen of their own.
466
+ - **Hosted models need your consent** before they see a screen that is
467
+ not fully fenced.
468
+
469
+ The X server ships with yvsai. The screen also needs `dbus-daemon`, and
470
+ applications that expose accessibility (GTK, Qt with its accessibility
471
+ bridge, LibreOffice, Chromium with `--force-renderer-accessibility`).
472
+
473
+ ## Extending yvsai
474
+
475
+ ### Skills
476
+
477
+ A skill is a folder with a `SKILL.md`, in the open Agent Skills format.
478
+ The prompt carries one line per skill, and the body loads on demand.
479
+
480
+ - **Bundled.** Fourteen skills of the Superpowers development workflow
481
+ ship with yvsai: brainstorming, writing and executing plans,
482
+ test-driven development, systematic debugging, code review, git
483
+ worktrees and more.
484
+ - **`/skills install`** takes `owner/repo`, a GitHub link, a folder or an
485
+ archive. The skill's scripts are flagged, and they run only through
486
+ the permission gate.
487
+ - **Drafts.** The model may draft a skill; `/skills accept` is what makes
488
+ it live.
489
+
490
+ ### MCP servers
491
+
492
+ - **`/mcp install`** installs from the official MCP registry, npm, PyPI,
493
+ Docker or a remote URL. The launch command is pinned, and the card
494
+ shows exactly what will run before anything is saved.
495
+ - **Other routes in.** `/mcp add` adds a server by hand, and `/mcp paste`
496
+ takes another client's configuration as it is.
497
+ - **Sign-in.** Servers that sign in use OAuth 2.1 with PKCE (`/mcp
498
+ login`), and yvsai says when a sign-in has expired.
499
+ - **Tokens and keys** are kept in the OS keyring.
500
+ - **Large tool sets** are loaded on demand rather than sent with every
501
+ request.
502
+
503
+ ### Plugins
504
+
505
+ - **`/plugin install`** takes plugins in the Claude Code, Codex and Agent
506
+ Plugins layouts: skills, commands, agent types, themes, MCP servers,
507
+ hooks and programs.
508
+ - **Marketplaces.** Anthropic's and OpenAI's marketplaces are built in.
509
+ - **Pinned and fenced.** Every source is pinned to a commit or a
510
+ checksum, and a plugin's programs run fenced.
511
+ - **Updates ask when what runs changes.** An update that changes what
512
+ runs shows every change and waits for your approval.
513
+ - **`/plugin new`** and **`/plugin pack`** create and package your own.
514
+
515
+ ### Hooks
516
+
517
+ `~/.yvsai/hooks.json` runs your own programs on five events: `ask`,
518
+ `approval`, `turn_end`, `session_start` and `session_end`.
519
+ - **A hook can refuse an act, and can never approve one.**
520
+ - **Three chimes** (a question, a decision owed, and done) play by
521
+ default, and can be replaced or silenced.
522
+ - **`/hooks test <event>`** fires one by hand.
523
+
524
+ ### Personality and project instructions
525
+
526
+ - **`~/.yvsai/soul.md`** is who the assistant is. Edit it freely, or use
527
+ `/soul`.
528
+ - **Project instructions.** A repository's `AGENTS.md` or `CLAUDE.md` is
529
+ read as its conventions, and a nested one is noticed when the agent
530
+ works under it.
531
+ - **`/init`** writes one for a repository that has none.
532
+
533
+ ## Sessions
534
+
535
+ Conversations are stored in SQLite.
536
+
537
+ | | |
538
+ |---|---|
539
+ | `/resume` | reopen a past conversation |
540
+ | `/search <text>` | search across every past conversation |
541
+ | `/rewind` | go back to an earlier message; files can be restored too |
542
+ | `/compact` | summarise older turns, keeping what you name |
543
+ | `/qq <question>` | a side question that does not interrupt the turn or join the conversation |
544
+ | `/edit` | put your last message back in the composer |
545
+ | `/diff`, `/undo` | what the session changed on disk, and put the last file back |
546
+ | `/save`, `/export` | name a conversation, or write it to a file |
547
+ | `/new` | start fresh in this folder |
548
+
549
+ The terminal's title follows the conversation.
550
+
551
+ ## The interface
552
+
553
+ - **Themes.**
554
+ - Six skins at four times of day: twenty-four themes, each fitted for
555
+ contrast on every surface it is drawn on, readable without being
556
+ harsh (measured in both WCAG and APCA).
557
+ - `/skin` previews them live.
558
+ - By default the time of day follows your terminal's background
559
+ (`/skin auto`).
560
+ - Your own themes go in `~/.yvsai/themes/`.
561
+ - **The command palette** opens on `/` and filters as you type.
562
+ - **Select and copy.**
563
+ - A drag selects text in the transcript, and the release copies it to
564
+ the desktop clipboard.
565
+ - Code blocks copy as code, without their line numbers, and tables
566
+ copy aligned.
567
+ - Ctrl-C copies a selection, and Ctrl-V pastes the desktop's text or
568
+ an image.
569
+ - **Click to open.** A plain click opens a link or an existing file
570
+ path. A notice names the address first, host included, so a disguised
571
+ link cannot pass as another.
572
+ - **Command dialogs.** Bare commands such as `/set`, `/model`, `/mcp` and
573
+ `/cron` open an interactive dialog. Every change in one is the same
574
+ line you could type.
575
+ - **Find.** Ctrl-F finds text across the conversation, inside folded
576
+ tool output too.
577
+ - **Rewind.** Esc Esc lists your earlier prompts, each with how many
578
+ files were written since.
579
+ - **A shell of your own.** `/shell` opens one under the conversation, in
580
+ the same folder; Ctrl-` moves the keyboard between the two. Nothing it
581
+ prints reaches the model.
582
+ - **The side column** (Ctrl-\\) shows the goal, the todos, the agents,
583
+ the context meter, background jobs and MCP servers.
584
+ - **Notices** rise in the corner for finished jobs, scheduled runs and
585
+ messages from other terminals. Ctrl-G replies to one.
586
+ - **What the agent did reads as it is.**
587
+ - A turn is one compact band of rows.
588
+ - Every tool's row says what it did in words: a researcher spawned and
589
+ what for, a path with your home written `~`, a count with its noun.
590
+ - Each thought is its own row, where it was thought, between the calls
591
+ around it.
592
+ - A changed setting is a single row: `⚙ Set ctx 32,768 tokens →
593
+ 16,384 tokens`.
594
+ - Tool output folds; Ctrl-O or a click opens it.
595
+ - An edit is a diff, numbered as the file is, with the changed words
596
+ highlighted.
597
+ - A test run reads as passed and failed counts, with the failures
598
+ first.
599
+ - Web answers end with their sources, grouped by site.
600
+ - **Rich answers.**
601
+ - Code blocks are framed and numbered.
602
+ - Tables are aligned, and series of numbers become sparklines.
603
+ - Math is drawn in Unicode, and charts as bars.
604
+ - Mermaid flowcharts are drawn as box drawing, loops and returns
605
+ included, each way back routed around the boxes.
606
+ - Images are drawn in the terminal. Charts and screenshots are drawn
607
+ sharp, and photographs smooth.
608
+ - Links are clickable.
609
+ - **Accessible.** Nothing means something by colour alone. `NO_COLOR` is
610
+ honoured, and an ASCII fallback is available.
611
+
612
+ ### Keys
613
+
614
+ | Key | Action |
615
+ |---|---|
616
+ | Enter · Esc Enter | send · new line |
617
+ | Esc | stop the agent, or close what is open |
618
+ | Esc Esc | rewind to an earlier prompt |
619
+ | Ctrl-C · Ctrl-D | stop, then quit (copies a selection) · quit |
620
+ | Drag · Click | select and copy · open a link, a file or a fold |
621
+ | Shift+Tab | cycle the permission mode |
622
+ | Ctrl-B | send the running command to the background |
623
+ | Ctrl-O · Ctrl-R | expand tool output · show reasoning |
624
+ | Ctrl-F | find in the conversation |
625
+ | Ctrl-T | show the whole plan |
626
+ | Ctrl-V | paste text or an image |
627
+ | Ctrl-\\ | show or hide the side column |
628
+ | Ctrl-` | move between the conversation and the shell |
629
+ | Ctrl-P | parameters |
630
+ | `/` · `?` | command palette · every key that applies now |
631
+
632
+ ## Command reference
633
+
634
+ `/help` lists every command, and the palette offers each command's verbs
635
+ as you type.
636
+
637
+ | Area | Commands |
638
+ |---|---|
639
+ | Setup and models | `/setup` `/model` `/provider` `/subscription` `/server` `/restart` `/stop` `/bench` |
640
+ | Behaviour | `/set` `/params` `/preset` `/think` `/soul` `/advisor` `/tools` `/rag` |
641
+ | Safety | `/mode` `/yolo` `/perms` `/security` `/sudo` `/deferred` `/hooks` |
642
+ | Planning | `/goal` `/plan` `/spec` `/approve` `/reject` `/loop` `/cron` |
643
+ | Agents and peers | `/agents` `/peers` `/jobs` |
644
+ | Memory and learning | `/memory` `/remember` `/dream` `/lessons` `/auto-learn` `/scratch` |
645
+ | Sessions | `/new` `/resume` `/search` `/rewind` `/compact` `/context` `/qq` `/edit` `/save` `/export` `/img` `/diff` `/undo` `/sessions` |
646
+ | Extending | `/skills` `/mcp` `/plugin` `/init` |
647
+ | Desktop and phone | `/screen` `/telegram` `/shell` `/open` |
648
+ | Look and system | `/skin` `/config` `/health` `/deps` `/log` `/help` `/quit` |
649
+
650
+ ## Configuration and files
651
+
652
+ Everything yvsai keeps is under one folder:
653
+
654
+ ```text
655
+ ~/.yvsai/
656
+ ├── settings.json every parameter; edit by hand or with /set
657
+ ├── providers.json hosted endpoints (never an API key)
658
+ ├── allowlist.json what you approved with "always"
659
+ ├── mcp.json MCP servers
660
+ ├── hooks.json your hooks (absent until you write one)
661
+ ├── soul.md who the assistant is
662
+ ├── yvsai.db conversations
663
+ ├── memory/ pages about you
664
+ ├── projects/ per-project memory, sessions, schedules and traces
665
+ ├── skills/ bundled skills and yours
666
+ ├── agent-types/ your own sub-agent types
667
+ ├── themes/ your own themes
668
+ ├── plugins/ installed plugins, each pinned
669
+ ├── bin/ the llama.cpp build and other helpers yvsai installed
670
+ ├── logs/ server and tool logs
671
+ └── cache/ safe to delete
672
+ ```
673
+
674
+ - **Config is JSON**, and every value is checked against its declared
675
+ type when it is loaded. A value that cannot be read falls back to its
676
+ default and says so. Values equal to a default are not written, so a
677
+ better default reaches you on upgrade.
678
+ - **Environment variables.**
679
+ - `YVSAI_HOME` moves the whole folder.
680
+ - `YVSAI_NO_SETUP` skips the first-start choices.
681
+ - `YVSAI_NO_LINKS` turns clickable links off.
682
+ - `YVSAI_USER_AGENT` sets what `fetch` sends.
683
+ - `HF_TOKEN` is read for gated Hugging Face models.
684
+ - `NO_COLOR` is honoured.
685
+
686
+ ## Third-party software
687
+
688
+ These ship beside the compiled program:
689
+
690
+ | Component | License |
691
+ |---|---|
692
+ | bubblewrap (`bwrap`) | LGPL-2.0-or-later |
693
+ | ripgrep (`rg`) | MIT or Unlicense |
694
+ | pyte, as its own source in `yvsai.dist/pyte/` | LGPL-3.0 (replaceable; see its NOTICE) |
695
+ | mdbr-leaf-ir embedding model, converted to GGUF | Apache-2.0 |
696
+ | llama.cpp's `llama-server` (CPU build b12631), for the embedder | MIT; its LICENSE in `vendor/llama/` |
697
+ | X server bundle: Xvfb, xkbcomp, their libraries, keyboard data | MIT/X11, zlib, libpng, FreeType and BSD-style licences; library notices in `vendor/xserver/licenses/` |
698
+
699
+ The program itself is compiled together with open-source Python
700
+ libraries, among them prompt_toolkit, Rich, keyring, SymPy, Pygments,
701
+ lxml, Beautiful Soup and pypdf, each under its own licence. Downloaded on
702
+ request and not included: llama.cpp (MIT) through `/server install`, and
703
+ CLIProxyAPI (MIT) through `/subscription`. Pygments, SymPy and mpmath ship
704
+ as their own files in `yvsai.dist/`, each with its licence.
97
705
 
98
706
  ## License
99
707
 
100
- Proprietary. Copyright © 2026 reveredyvs. See the LICENSE in the
101
- repository. No licence to use, copy, modify or distribute is granted
102
- beyond running the published package.
708
+ Proprietary. Copyright © 2026 reveredyvs. All rights reserved. No licence
709
+ to use, copy, modify or distribute is granted beyond running the
710
+ published package. See `LICENSE`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yvsaicode",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Agentic terminal client for local and hosted models: tools, a kernel sandbox, bundled skills, memory, sub-agents, background jobs, scheduling and a phone bridge. Drives llama.cpp locally or any OpenAI-compatible API.",
5
5
  "keywords": [
6
6
  "ai",
@@ -30,7 +30,7 @@
30
30
  "node": ">=18"
31
31
  },
32
32
  "optionalDependencies": {
33
- "yvsai-linux-x64": "npm:yvsaicode@0.3.5-linux-x64"
33
+ "yvsai-linux-x64": "npm:yvsaicode@0.3.6-linux-x64"
34
34
  },
35
35
  "repository": {
36
36
  "type": "git",