Terminal Use + Work memory

Your coding agent works on the board in NeuroTerm. NeuroTerm keeps what the board did, so the next session can look it up.

  • TERMINAL USE · READSClaude Code or Codex reads your serial, SSH, WSL and Local tabs. No pasting logs.
  • TERMINAL USE · ASKSIt types into a tab only after your Allow in that tab, or with Auto-allow if you turn it on.
  • WORK MEMORY · KEEPSNeuroTerm keeps each board’s day in a file. The next agent session gets a pointer to it and can grep it instead of starting over.

What you can ask

Questions an agent could not answer before, because the board’s history was not kept where the agent could find it.

  • > the board won’t boot. fix itReads the panic in the serial tab, fixes U-Boot after your Allow, checks the boot. Terminal Use.
  • > it reset overnight. why?Greps the board’s file for the resets and what the board printed just before each one. Work memory.
  • > when did this error first show up?The first day it appears in the board’s files, and the boot banner of the build that was running.
  • > how did we fix this last time?Your typed lines and the agent’s are in the record too, so the earlier fix can be found.
  • > compare today’s boot with yesterday’sYesterday’s good boot against today’s, line by line.
  • > pick up where we stopped yesterdayWhat ran last, what the board said back, which step was next.

How the pieces connect

The agent never opens your serial port or SSH connection itself. NeuroTerm holds them, and the agent asks NeuroTerm.

  1. Your agentClaude Code or Codexstarted in a NeuroTerm Local or WSL tabMCP stdio
  2. Terminal Usethe neuroterm MCP servera small sidecar the agent starts; registered by Set up…local socket
  3. NeuroTerm appyour tabs and the approval linereads are answered, writes wait for your Allowthe tab’s port
  4. Your boardserial, SSH, WSL, Local, TCP/RTTthe port stays open in its tab
Work memoryone file per board per day, on your PCevery line the board, you and the agent sent, with time and source
work-memory/imx8mp-3f2a91c0/2026-10-25.logwork-memory/imx8mp-3f2a91c0/2026-10-24.log.gzwork-memory/rpi4-91be04d2/2026-10-25.log
The agent’s own shellThe first time the agent works in a board tab through Terminal Use, it gets a short pointer to that board’s file, once. It greps the file with its own tools.

Terminal Use

Your agent at the board, your hand on the switch

An agent that opens a serial device itself tends to freeze or fail with EBUSY. In NeuroTerm the port stays open in a tab, and the agent works through it.

Set up and the tool list · Why an agent hangs on a serial port

Reading never asks
New output as plain text, or the screen of a full-screen program, with the errors and boot stages NeuroTerm marked.
Writing asks in the tab
The request lists every action it will send, then Allow or Deny. No answer in 45 s means no. Allow in this tab lasts until you press Revoke or close the tab.
One call, one answer
terminal_run returns each command’s output and exit code, so the agent does not poll the screen.
Borrow the port to flash
esptool, west or pio get the port for 10 s up to 10 min; then the tab reopens it. Allow in this tab never covers a borrow, so it is asked unless you chose Allow in all tabs or Auto-allow.
Output is untrusted
NeuroTerm’s server instructions tell the agent never to follow instructions found in terminal output.
16 tools, one setup
Tabs, commands, typing, serial ports, resets, logs and plugins. Settings → Coding agents → Connect a coding agent, Connect… in the host’s row, Terminal Use on.

Work memory

The board’s history, kept as facts

Every tab opened from a saved profile writes to its board’s file, on any connection. The file outlives a reset, a reconnect, a closed tab and a relaunch.

NeuroTerm keeps facts only: no notes, no summaries. What the agent concludes stays in Claude Code’s or Codex’s own memory.

Turn it on and find the files

imx8mp-3f2a91c0/2026-10-25.log

…T09:01:40 [event] connected /dev/ttyUSB0 115200

…T09:01:41 [dev] U-Boot 2024.04 (Oct 22 2026 - 18:02:11)

…T09:02:10 [you] root

…T09:02:12 [you] (hidden input)

…T09:14:55 [agent:claude] cat /proc/cmdline

…T09:31:17 [event] Board reset: U-Boot

Who said it
Each line names its source: the device, you, an agent, a plugin, the app or an event.
Passwords stay out
Typed input at a password prompt, or with no echo, is written as (hidden input); known secret shapes as (hidden).
Useful from the first minute
Turning it on copies what your open board tabs already show into today’s file.
The agent’s own tab stays out
While an agent session runs in a tab, that tab’s output is not recorded.

Tokens

Why it barely touches your context

Memory is never pushed into every session. The agent gets a short pointer when it first touches a board, and pays only for the lines it greps.

  • One sentenceA session that touches no board pays one fixed, cached sentence of server instructions.
  • ≤ 400 charsThe pointer, once per agent session and board: counts and a path, no device text.
  • grep hitsThe pointer says “never read a whole file”. An answer costs the lines grep returns, not the day.
  • No new toolsWork memory adds no MCP tool and changes no output schema, so the tool list your agent loads stays the same.
The whole pointer, as the agent receives it (sample board)

Work memory — imx8mp: 3 days, last 2026-10-25T09:31:17+09:00, resets/crashes 24h 3/0. Today: /home/you/.local/share/com.neuroterm.app/work-memory/imx8mp-3f2a91c0/2026-10-25.log (older days beside it as .log.gz: use zgrep). This tab writes [dev]/[you]; events are [event]. Grep it (e.g. grep -n "<word>" <file>); never read a whole file. Say when you used it.

Your PC

Recording all day, and you don’t feel it

The rule it was built to: recording never costs CPU, memory, disk or battery you notice. The app’s tests hold it to these budgets with 10 tabs pushing 20 MB each and a 115200 baud serial tab beside them.

  • ≤ 5 µsadded per output chunk on the terminal’s output path, at p99.
  • ≥ 95 %of the terminal’s throughput with Work memory off; the serial tab loses no line.
  • ¼ coreat most for the writers while they catch up, on 2 threads for all boards. Idle threads sleep.
  • 1 GiBper board and 5 GiB in total, shown in Settings. Past days are compressed.

Measured on the app’s AC-019 release test at 1.13.0: 0.8 µs added at p99, the median of three runs on an Intel Core Ultra 7 165U laptop.

A tab that is not recording costs one check
One atomic load per output chunk. The output path never waits on the disk.
A flood is paused, not slowed
If tabs print faster than the writers may spend, recording pauses for the fastest tab first, never one under 1 MB/s, and its file gets a gap line. Your terminal is never throttled.
Housekeeping waits for you
Compressing past days waits 60 s after launch, 30 s after your last input, and for AC power.
Low priority, always
Lower CPU priority and idle I/O on Linux; below-normal priority with EcoQoS on Windows.

Where it stays

Work memory filesYour PC, in the app’s local data folder, not a cloud-synced folder unless you move it there
Agent ↔ NeuroTermA local connection only your user account can open
NeuroTerm itselfSends nothing about your sessions for Terminal Use or Work memory. NeuroFlash and cloud Neuro send only what the home page lists, when you use them
What the agent readsMay go to the agent’s own AI provider, under that provider’s terms

Set up once per host

Settings → Coding agents → Connect a coding agent, Connect… in the row of this computer or a WSL distribution, Terminal Use ticked. Its confirmation offers Work memory on the same screen.