# Show HN: Termem, cross-agent memory and session management

> Source: <https://termem.com>
> Published: 2026-06-15 19:47:45+00:00



```
█████ █████ ████   █   █ █████ █   █
  █   █     █   █  ██ ██ █     ██ ██
  █   ████  ████   █ █ █ ████  █ █ █
  █   █     █  █   █   █ █     █   █
  █   █████ █   █  █   █ █████ █   █
```

# termem

Cross-agent memory and session management for your terminal.

Coding agents forget everything between sessions, and none of them can see what the others did. termem is the shared memory layer underneath them all. It indexes every Claude Code, Codex, Gemini, opencode, and shell session by the directory it ran in, so you can:

**Recall** prior work in a directory through the MCP server. An agent reads what happened there before, even sessions a different agent created, and picks up where you left off.**Resume** the exact past session in the right tool and directory.**Search** across everything by message content, not just titles.

termem never calls a model and never makes a network request. Your agents do the reasoning; termem does the retrieval and storage.

## Install

With Node:

```
npx @termem/cli
```

Or with a [Rust toolchain](https://rustup.rs):

```
cargo install termem
```

Or download a prebuilt macOS / Linux binary from the [releases page](https://github.com/leox255/termem/releases) and put `termem`

on your `PATH`

.

## Use

```
termem                       open the picker for the current directory and subfolders
termem --here                only sessions started exactly here
termem --all                 every session, any directory
termem ls                    print a table instead of opening the picker
termem ls --source codex     filter by tool: claude, codex, opencode, gemini, shell
termem ls -s "query"         search message content, title, prompt, and path
termem resume <id|text>      resume the best match
termem index                 rebuild the index now
```

In the picker: type to filter, arrow keys to move, Enter to resume, Esc to quit.
