Skip to content

Persist sessions and give tomo a memory#2

Merged
tamnd merged 1 commit into
mainfrom
m1-state
Jul 6, 2026
Merged

Persist sessions and give tomo a memory#2
tamnd merged 1 commit into
mainfrom
m1-state

Conversation

@tamnd

@tamnd tamnd commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Conversations and learned facts now survive restarts.

  • pkg/store: sqlite ledger (modernc, no CGO) with sessions and messages; append per turn, replay on resume
  • tomo chat --session continues in the ledger, tomo sessions lists it
  • pkg/memory: MEMORY.md index in the system prompt, one markdown topic file per fact, memory_write/memory_read tools for the agent
  • tomo onboard writes ~/.tomo and a commented starter config

Round-trip tests for the ledger (tool blocks included) and the memory index.

pkg/store is a sqlite ledger (pure Go driver, still no CGO): sessions
and their messages, appended per turn and replayed on resume. tomo chat
--session <name> picks a conversation back up, and tomo sessions lists
what the ledger holds.

pkg/memory is long-term memory as plain markdown: MEMORY.md carries one
line per fact into the system prompt, each fact's detail lives in its
own topic file, and the agent maintains it through memory_write and
memory_read tools. Files on purpose, so you can read and edit what your
agent knows about you.

tomo onboard writes the starter config and the data dirs.
@tamnd tamnd merged commit e9d1e42 into main Jul 6, 2026
@tamnd tamnd deleted the m1-state branch July 6, 2026 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant