Add session persistence and improve terminal ergonomics

This commit is contained in:
Adolfo Reyna
2026-05-15 14:25:49 -04:00
parent a04fc0a0b5
commit 2e806c97a0
6 changed files with 180 additions and 23 deletions

View File

@@ -32,7 +32,16 @@ you>
```
Interactive responses stream into the terminal as they are generated, and the
session keeps conversation history until you reset or exit.
session keeps conversation history until you reset it. The current session is
saved to `.harness/session.json` and reloaded the next time the app starts.
For multiline input, end a line with `\` and keep typing:
```text
you> summarize this:\
...> line two\
...> line three
```
You can also keep using one-shot mode when scripting:
@@ -81,8 +90,11 @@ npm run dev -- "/tools"
The core provides:
- `/help` — show available commands
- `/history` — show how many conversation items are currently in memory
- `/history` — show current session details
- `/new` — start a fresh empty conversation
- `/reset` — clear the current conversation history
- `/save` — persist the current conversation immediately
- `/logs [on|off]` — toggle lifecycle traces
- `/exit` — leave the interactive session
Extensions can register their own commands.