Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
a7ba71b
System prompt v process vieweri
join3r Oct 30, 2026
b205a69
Multi-tab Ask window with snapshots
join3r Oct 30, 2026
b88ab71
Update PI and vulnerable dependencies
join3r Oct 30, 2026
7fdcb28
Drafting emails as secretary
join3r Oct 30, 2026
e226a35
Kompaktnejší stavový riadok
join3r Oct 30, 2026
a26d3a2
Zmestiť sa a skrytie kontextu
join3r Oct 31, 2026
ce7908b
Composer: Note and Record back in the row when there is room
join3r Oct 31, 2026
1022e1c
Summary scope for imported projects
join3r Nov 1, 2026
043b3a6
Kontrola chatu a faktúry Cloudfarms
join3r Nov 2, 2026
873ade6
Kontrola Fio MCP a Node.js
join3r Nov 2, 2026
d34d984
Browser control: a stale native host no longer kicks the live one off
join3r Nov 2, 2026
15773bf
Pasted stem text not commands
join3r Nov 3, 2026
f197b39
Pamätanie faktov o kolegoch
join3r Nov 3, 2026
5517b2f
Kontrola dotácie na fotovoltiku
join3r Nov 3, 2026
e58bd0a
Dotácia na fotovoltiku
join3r Nov 3, 2026
3a4d738
Revízia dotácie na fotovoltiku
join3r Nov 3, 2026
a638d8f
Stem filesystem image reference
join3r Nov 3, 2026
15a03b1
Stem file linking
join3r Nov 3, 2026
a36a45f
Deploy stem task
join3r Nov 3, 2026
5076061
Create skills for email drafts
join3r Nov 4, 2026
d1c4764
Check ChatGPT remaining usage limits
join3r Nov 4, 2026
ef855cc
Check ChatGPT remaining usage limits
join3r Nov 4, 2026
ef64534
Stem stuck on working
join3r Nov 5, 2026
914bb58
Close mail window after sending
join3r Nov 5, 2026
62930a9
Bind child window to source window
join3r Nov 5, 2026
e9e3756
Archivovaný chat zostáva otvorený
join3r Nov 5, 2026
8401f01
Keyboard zoom shortcuts
join3r Nov 5, 2026
5135960
Ružová cukríková téma
join3r Nov 5, 2026
fe26d85
Disable ask window minimize animation
join3r Nov 6, 2026
6a43e94
Parallel commands in stem
join3r Nov 6, 2026
5808863
Skill selection in similar tools
join3r Nov 7, 2026
1558600
Parent memories: broader memories over related facts, injected next t…
join3r Nov 7, 2026
d8b2c02
Deploy command not run here
join3r Nov 7, 2026
fad7a58
Fix long directory list layout
join3r Nov 7, 2026
0e64f0b
Audio playback in STEM images
join3r Nov 7, 2026
37018b5
Lepšie využiť miesto pre menšie monitory
join3r Nov 7, 2026
ee6c338
Automated deployment script
join3r Nov 7, 2026
f487aff
Unattended deployment with Stem app
join3r Nov 8, 2026
7850ac0
Stem diff viewing options
join3r Nov 9, 2026
2016484
Browser control issue recurring
join3r Nov 9, 2026
1ce581a
Routing /media a registračné QR
join3r Nov 9, 2026
d7d2493
Settings search feature
join3r Nov 9, 2026
e73fb34
Restrict sharing to one person
join3r Nov 9, 2026
004df30
Check stem deploy logs
join3r Nov 9, 2026
0ec3a6a
Origin of wrong skill messages
join3r Nov 9, 2026
5e11ef4
Enlarge uploaded image thumbnail
join3r Nov 10, 2026
74e8b18
Pictures missing in Bond cast list
join3r Nov 10, 2026
c56ff42
Effort dots overlap hover popup
join3r Nov 10, 2026
2e10429
Shared chat images
join3r Nov 10, 2026
620d3a2
Fix Agel confirmation print path
join3r Nov 10, 2026
090fc0e
Analýza produktu Venus PRO
join3r Nov 10, 2026
ef90736
Zmenšiť okno na tabletu
join3r Nov 11, 2026
f3d8f34
Ask about a floating window in front
join3r Nov 11, 2026
bbb0879
Ověření zdroje grafu o sandbaggingu
join3r Nov 11, 2026
f395220
Stem discussion
join3r Nov 11, 2026
2975c7c
Greeting message
join3r Nov 11, 2026
a1795e3
SOTA
join3r Nov 13, 2026
0b4a861
Overenie zmeny teploty po Paralene
join3r Nov 13, 2026
c115557
Refine new mail visual design
join3r Nov 15, 2026
c4a29d4
Email account missing on devices
join3r Nov 16, 2026
389429d
Riešenie chýbajúceho MDX v Datadogu
join3r Nov 16, 2026
5bafcc8
Code mode for stem
join3r Nov 16, 2026
25f3be0
Mail o obväze a infekcii
join3r Nov 16, 2026
422ef16
Predupload príloh pri písaní mailu
join3r Nov 17, 2026
1b4faa0
Zlé dátumy vo WhatsApp správe
join3r Nov 17, 2026
e30d228
Chyba MCP servera v Fio
join3r Nov 17, 2026
339d2d8
Kontrola počtu skillov
join3r Nov 17, 2026
b0efd8f
Assess 0.8.0 release readiness
join3r Nov 17, 2026
f1fd2bb
Astra-5.2 a sol-5.2 v Steame
join3r Nov 17, 2026
8ac7f96
Príprava vydania 0.8.0
join3r Nov 18, 2026
704dc7a
Mailu: pridanie persóny nefunguje
join3r Nov 18, 2026
6a317b0
Stratený chat s PDF
join3r Nov 18, 2026
3256000
Pomalé prepínanie chatov
join3r Nov 18, 2026
e0bb79a
Duplicitné názvy chatov
join3r Nov 18, 2026
f11d0ad
Chat sync not updating
join3r Nov 18, 2026
802ba65
Fix persona collapse in mail
join3r Nov 18, 2026
22a8e6b
Fix persona collapse in mail
join3r Nov 18, 2026
614f394
Bezpečnostné chyby v zdieľaní
join3r Nov 18, 2026
5d27bde
Bezpečnostné chyby v zdieľaní
join3r Nov 18, 2026
593ffa1
Čistenie MDX tagov pri kopírovaní
join3r Nov 18, 2026
238d3c8
Bezpečnostné chyby v zdieľaní
join3r Nov 18, 2026
104eb1d
Bezpečnostné chyby v zdieľaní
join3r Nov 18, 2026
b0d7f94
Overenie kvality taskov projektu
join3r Nov 18, 2026
d72594d
Why stem is marked private
join3r Nov 19, 2026
bf09166
Verify reranker model claims
join3r Nov 19, 2026
2c5d55a
Vyhľadávanie vo faktoch pomaly
join3r Nov 19, 2026
9b2f0dd
WebSocket vs SSE: test rýchlosti
join3r Nov 20, 2026
b0525a5
Upgrade knižníc používajúcich stem
join3r Nov 20, 2026
386942a
Improve scheduled job names
join3r Nov 20, 2026
c1e6be8
Slow email sending with no images
join3r Nov 21, 2026
056a43f
Mail status check
join3r Nov 21, 2026
cae964f
Stem pill misplaced in Ask
join3r Nov 21, 2026
81887c2
Demo pre App Review
join3r Nov 22, 2026
da9c52c
Cross-platform test execution
join3r Nov 22, 2026
a6cbff6
Release 0.8.0 prerequisites
join3r Nov 23, 2026
29807fd
Release 0.8.0 prerequisites
join3r Nov 23, 2026
957f429
Release 0.8.0 prerequisites
join3r Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,42 @@ jobs:
- name: Unit tests (Vitest, Windows-relevant subset)
run: npm run test:win

# The fact and skill gates compare a quantized model's score against a fixed
# floor, and that score has moved before without the weights changing: with a
# runtime upgrade, and between platforms (src/server/recall/gate-canary.ts).
# This scores a small set of synthetic pairs with the released model and
# compares them with the scores recorded where the floors were measured.
#
# Not required to pass. A hosted Linux runner may have a CPU whose kernels
# differ from the server the reference was taken on, and that reads as drift
# with nothing changed in the repo. What it is for: the job going from green
# to red in the pull request that upgrades transformers.js or onnxruntime.
gate-canary:
continue-on-error: true
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '24'
cache: npm

- run: npm ci

# 342 MB, pinned by revision and checksum in gte-model-artifact.ts.
- uses: actions/cache@v4
with:
path: .embed-smoke-cache
key: gate-model-${{ hashFiles('src/server/recall/gte-model-artifact.ts') }}

- name: Gate model scores as when its floors were measured
run: npm run eval:gate-canary

relay:
runs-on: ubuntu-latest
defaults:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ build/native/

# Skill retrieval eval build output (embed-catalog, compiled to CJS)
.skills-build/
.gate-canary-build/

# Playwright E2E artifacts
test-results/
Expand Down
39 changes: 39 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Stem: rules for coding agents

## Done means verified where the user will see it

An audit of the history (2026-11-18) found that about 40 % of non-chore commits fix
work built shortly before, with a median of 2 days between the bug going in and the fix.
In nearly every case the broken work had been checked only by unit tests, a dry run, or
an e2e test that skipped the real interaction. The agent often said so, and the task was
closed anyway.

A task is not done until the change has run the way the user will use it:

- **Desktop UI** (renderer, Quick Chat / Ask about this window, composer, mail, settings):
run a separate dev instance with its own profile (`STEM_PROFILE=<name>
STEM_DEVTOOLS_PORT=<free port> npx electron-vite dev`), drive it over CDP
(`agent-browser connect <port>`), do the user's actual clicks and keys, and take a
screenshot. Never test against the user's running Stem.app or the real profile.
- **iOS**: build, install and screenshot in the Simulator against a separate server
(`STEM_STATE_DIR=…`), never the VPS.
- **Prompts, recall gates, skill or tool gating, anything a model reads**: run at least
one real-model turn on the case that prompted the change, plus one that used to work,
so a regression shows up.
- **Deploy and release scripts**: a dry run is not a test. Run the real thing, or leave
the task open.
- **Integrations** (browser extension / jbrow, computer control, MCP, relay, LM Studio):
exercise the real connection end to end once.
- **Bug fixes**: reproduce the bug first and confirm it is gone afterwards in the same
place. A new e2e test must click and type through the visible UI like a person, not
set hidden inputs or call handlers directly.

If you cannot verify it (no GUI access, needs the user's device, costs real quota they
did not approve), do not call the task done. Say plainly "built, not verified", what
remains to check, and how. "Tests pass" alone is never the closing line for a UI,
prompt or integration change.

## Before you start a fix

Search `git log` for earlier fixes to the same area. If this is the second or later
attempt, read why the earlier ones failed and say so in your reply before changing code.
18 changes: 5 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ FROM ${NODE_IMAGE} AS build
WORKDIR /app
ENV ELECTRON_SKIP_BINARY_DOWNLOAD=1 \
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
# patches/ and scripts/ensure-electron.mjs are named by `postinstall`, so they
# have to exist before `npm ci` rather than with the rest of the source.
# scripts/ensure-electron.mjs is named by `postinstall`, so it has to exist
# before `npm ci` rather than with the rest of the source.
COPY package.json package-lock.json ./
COPY patches ./patches
COPY scripts/ensure-electron.mjs ./scripts/ensure-electron.mjs
RUN npm ci --no-audit --no-fund
COPY tsconfig.json electron.vite.config.ts ./
Expand Down Expand Up @@ -80,16 +79,9 @@ FROM ${NODE_IMAGE} AS deps
WORKDIR /app
ENV ELECTRON_SKIP_BINARY_DOWNLOAD=1
COPY package.json package-lock.json ./
COPY patches ./patches
COPY scripts/ensure-electron.mjs ./scripts/ensure-electron.mjs
# `postinstall` runs patch-package, which is a devDependency and so is not
# installed by --omit=dev — the bare `npm ci` dies with `patch-package: not
# found`. Skip scripts and apply the patches with a fetched patch-package
# instead: pi-web-access is a production dependency and must ship patched.
# (ensure-electron.mjs is the other postinstall step; it exits 0 immediately
# when electron is absent, which with --omit=dev it always is.)
RUN npm ci --omit=dev --no-audit --no-fund --ignore-scripts \
&& npx --yes patch-package@8.0.1
# No install scripts: `postinstall` is only ensure-electron.mjs, which has
# nothing to do without electron, and --omit=dev never installs it.
RUN npm ci --omit=dev --no-audit --no-fund --ignore-scripts

# ---- stage 3: what actually ships --------------------------------------------
FROM ${UV_IMAGE} AS uv
Expand Down
63 changes: 63 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,69 @@ Maintainer notes:
date, tag.
-->

## 0.8.0 — 2026-11-23

### Added

- **People.** Memory learns about the people in your life. See them under Personas & people →
People.
- **Skills learn how you like things done**, such as how to sign your mail drafts, and get better
each time you correct them.
- **Skill history.** Restore an earlier version of a skill, and set how often its task comes up.
- **Tabs in Ask about this window.** ⌘T opens another conversation; ⌘M shrinks the panel to a pill.
- **Keep with its window** (Mac setting) keeps the Ask panel with its window.
- **Share links for chosen people.** Only the people you pick can open them, and you see who did.
- **Stem's own file viewer.** Files linked in replies open in a safe Stem window.
- **Change who's in a mail conversation** from the reply's To row, and pick who leads.
- **Stem can edit your scheduled tasks** from any chat, and you can undo its edits.
- **Pictures from your files** can be the starting point for a generated image.
- **Stem can change an MCP server** without losing its sign-in.
- **Current situation** at the top of your summary, such as a hospital stay or a trip.
- **Search in Settings.**
- **ChatGPT usage left**, shown in Settings → Models.
- **GPT-6.2 Astra and Sol** in the model list.
- **Zoom** with ⌘+, ⌘- and ⌘0.
- **Diff view** for code changes, **sounds** in replies, and the **Cotton Candy** theme.
- **Demo on the iPhone**, from the pair screen.

### Changed

- **Faster replies with ChatGPT.** Stem now talks to ChatGPT over WebSocket, so replies after a
tool call start about 1.5 s sooner.
- **Mail sends fast** and closes after sending. Attachments upload while you write.
- **New mail is simpler**: one card on the desktop, one page on the iPhone.
- **Chats open faster**, and memory lookups before a reply are faster.
- **Better recall.** Stem also remembers short overviews of related facts.
- **Stem GTE Memory** no longer needs the Qwen3 reranker: one download fewer.
- **Shared links show what the chat shows**, including pictures and sounds.
- **Scheduled tasks get short names** instead of the first line of their prompt.
- **Up to eight commands** run at once, instead of two.
- **Skills save automatically** by default.
- **New installs start on GPT-6.2 Sol.**
- **More room for chats**: the composer fits on one row and messages use the full width.
- **Dropping files on the window** shows your folders as tiles that always fit.
- **Your own mail always gets a reply**, even if just a short one.
- **A short "yes"** to a blocked command now gets you an approval card instead of a refusal.
- **Welcome screen** says where your data goes. New users aren't offered Claude sign-in.

### Fixed

- **A new chat no longer vanishes** while a big file uploads.
- **Chats no longer get stuck on Working**, including in Ask about this window.
- **Browser control stays connected** when the browser restarts the extension.
- **Charts and tables the model left open** no longer turn the reply into plain text.
- **Skills no longer get in the way** of unrelated browser or computer-control work.
- **Share links** publish exactly the preview you saw.
- **New mail on the iPhone** is no longer lost while photos upload.
- **MCP servers Stem installs** no longer break when a chat is deleted.
- **Archiving the open chat** now closes it and opens the next one.
- **Copy message** copies clean text, on the desktop and the iPhone.
- **Pasted text** starting with / is no longer taken as a command.
- **Web pictures from some sites** now show.
- **Numbered lists** keep their numbers.
- **Popups** are no longer hidden behind the composer.
- **Quitting Stem** no longer hangs.

## 0.7.5 — 2026-10-30

### Added
Expand Down
50 changes: 50 additions & 0 deletions SKILLS-UPKEEP.md
Original file line number Diff line number Diff line change
Expand Up @@ -578,3 +578,53 @@ arXiv 2408.01875); admission by verified re-run (ASI).
that drifted from the user's last save gets one model call that moves other
jobs out as `approved` skills; an import is restored to what was installed.
Backups in `.curator-history/<run>-relabel`; marker `.skills-provenance.json`.

## Addendum 2026-11-11 — skills learn from how their uses ended

Until this change Stem knew that a skill was used (the tool-overlap proxy in
`grade.ts`) and, rarely, that the model called a step wrong (17 reports in 527
loads on the server). It did not know whether the user accepted the result. Each
patch was judged on one turn, written without a check, and overwrote the file.
Hermes has the same gap in its loop; its GEPA tool, which does check, is a separate
manual run. Published results say the check matters more than the patch: 55 of 388
automatic rewrites set a new best, a check against stored cases picked a better
skill in 9 of 14 settings, and every useful rewrite was built from failures
(arXiv 2608.02636). The methods that improve skills reliably also read many uses at
once and keep the diagnosis apart from the rewrite (survey, arXiv 2606.11435).

What was built:

1. **Case file** (`skills/cases.ts`, `.skills-cases.json`). One case per skill the
turn followed or reported: request, tool calls, start of the reply, skill version.
Written in the turn-settled hook, before the next message can be captured. Only
where memory would keep the turn (memory on, not private, not tainted, not
scheduled, not a persona without memory). Twelve cases per skill. Deleting a chat
drops its cases.
2. **Outcome on the distill call** (`recall/distill.ts`). A pending case whose next
user message is in the segment is listed in an extra block, and the reply gains
`skillOutcomes`: accepted, corrected (with feedback), redone, unclear. No extra
model call. `DISTILL_INSTRUCTIONS` is unchanged, and a segment with no case sends
the old prompt byte for byte. Each case closes exactly once, also when the segment
is abandoned, so it can never pair with a later message.
3. **Correction pass** (`startup/skills.ts`). A corrected or redone use patches its
skill, with the conversation from the use to the end as evidence and
`SKILL_CORRECTION_INSTRUCTIONS`. Imports are never patched. Same privacy refusals
as the convention pass.
4. **Check before every automatic change** (`skills/review.ts`, in `bridge.ts`). Old
text, new text, the reason, and the graded cases; the model answers keep or reject.
A rejected change is not written in Auto and gets no card in Ask. A change the check
cannot judge is not written in Auto; in Ask the card still shows. The user's own
requests and new skills are not checked.
5. **Rewrite from all cases** (`skills/rewrite.ts`). Three failed uses since the last
rewrite start a diagnosis call (what failed and what the accepted uses relied on,
no skill text) and then a rewrite call; the result goes through the check. Only
for Stem's own ideas (`CURATED_ORIGINS`). The failures are spent whatever the
outcome.
6. **Kept versions** (`skills/store.ts`). Every update copies the old SKILL.md to
`.skill-versions/<slug>/v<N>.md` (ten kept) and the new one carries a `change`
line. Manage → Skills lists them and restores one as a new version. Writes are
atomic now.

Open: no real-model run yet. Measure on the server after deploy: how often a case
gets a verdict other than unclear, how often the check rejects, and whether skills
with corrections then collect more accepted uses.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Pick the feature you see in Stem.
| [Memory](user/memory/README.md) | Learn useful context and recall earlier chats |
| └ [Facts](user/memory/facts.md) | Durable details: preferences, people, projects |
| └ [Past chats](user/memory/recall.md) | Recall: find relevant parts of past conversations |
| └ [People](user/memory/README.md#people) | Who is who in your life, and what Stem knows about each |
| [Tools](user/tools/README.md) | Give Stem more capabilities |
| └ [MCP servers](user/tools/mcp-servers.md) | Connect services and tools, on this Stem or on your own computer |
| └ [Skills](user/tools/skills.md) | Reuse procedures that work |
Expand Down
4 changes: 3 additions & 1 deletion docs/assistant/assistant-mcp.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Managing your own MCP servers

You can extend your own capabilities by managing MCP servers with your tools: `list_mcp_servers`, `add_mcp_server`, and `remove_mcp_server`. When the user asks to connect a service (Home Assistant, a database, an API, etc.), do it yourself with these tools rather than telling them to edit MCP config by hand. First gather everything the server needs from the user — for a local (stdio) server the command and args (e.g. `uvx ha-mcp@latest`) and any required env vars/tokens; for a remote (http) server the URL (the user signs into those separately via OAuth in the app). Adds and removes require the user's approval: a confirm card appears in the app, and the change only applies — and your new tools only become usable — after they approve and Stem reloads, so don't claim a server is connected until then. Note for the user that any token they share is written into your local configuration and kept in this chat's history, so they may want to rotate it later if that's a concern.
You can extend your own capabilities by managing MCP servers with your tools: `list_mcp_servers`, `add_mcp_server`, `edit_mcp_server`, and `remove_mcp_server`. When the user asks to connect a service (Home Assistant, a database, an API, etc.), do it yourself with these tools rather than telling them to edit MCP config by hand. First gather everything the server needs from the user — for a local (stdio) server the command and args (e.g. `uvx ha-mcp@latest`) and any required env vars/tokens; for a remote (http) server the URL (the user signs into those separately via OAuth in the app). To change a server that already exists — a new command, path, argument, URL or one env var — use `edit_mcp_server` with only what changes: it keeps the token and headers stored with the server, which you cannot read back, while `add_mcp_server` under the same name replaces the whole entry and drops them. Never send the user to the settings panel for a change `edit_mcp_server` can make. Adds, edits and removes require the user's approval: a confirm card appears in the app, and the change only applies — and your new tools only become usable — after they approve and Stem reloads, so don't claim a server is connected until then. Note for the user that any token they share is written into your local configuration and kept in this chat's history, so they may want to rotate it later if that's a concern.

**Which machine a server runs on.** An MCP server runs on the same machine you do unless the user has pinned it to one of their own computers, and `list_mcp_servers` says which is which — check it before guessing, especially when one is failing. A command-started (stdio) server can only start if its command exists on the machine that runs it, so `failed to start: spawn uvx ENOENT` means that machine has no `uvx`; a URL server can only connect if that machine can reach the URL, so an address on the user's home network is unreachable from a server elsewhere. Either install what is missing where the server runs, or — when the server is only meaningful on the user's own computer (its files, its apps, its network) — tell them to move it: Tools → MCP servers, open the server, pick that computer on its **Runs on** tab and **Save**, then approve it on that computer (**Approve and start**). Only they can do that; `add_mcp_server` always adds a server that runs where you do. Read the `mcp-servers` guide page before you explain any of this.

**Where a server you install yourself lives.** When you build, clone or download an MCP server (rather than run a published package through `uvx`/`npx`), put the finished copy in a folder of its own under Stem's tools folder — the `add_mcp_server` description names it — and point `command` and `args` there. Never point a server at this chat's scratch folder or at `files/`: scratch is deleted with the chat and the user tidies Files by hand, and the server would stop working the moment either goes. Build in scratch if you like, then copy the result over with `run_command`; `add_mcp_server` and `edit_mcp_server` refuse a path in either place.
Loading
Loading