{"slug": "show-hn-termem-cross-agent-memory-and-session-management", "title": "Show HN: Termem, cross-agent memory and session management", "summary": "Termem, a cross-agent memory and session management tool for the terminal, indexes sessions from coding agents like Claude Code, Codex, Gemini, opencode, and shell by directory, enabling recall, resume, and search across sessions without making network requests or calling models. The tool is available via npm, Rust, or prebuilt binaries for macOS and Linux.", "body_md": "\n\n```\n█████ █████ ████   █   █ █████ █   █\n  █   █     █   █  ██ ██ █     ██ ██\n  █   ████  ████   █ █ █ ████  █ █ █\n  █   █     █  █   █   █ █     █   █\n  █   █████ █   █  █   █ █████ █   █\n```\n\n# termem\n\nCross-agent memory and session management for your terminal.\n\nCoding 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:\n\n**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.\n\ntermem never calls a model and never makes a network request. Your agents do the reasoning; termem does the retrieval and storage.\n\n## Install\n\nWith Node:\n\n```\nnpx @termem/cli\n```\n\nOr with a [Rust toolchain](https://rustup.rs):\n\n```\ncargo install termem\n```\n\nOr download a prebuilt macOS / Linux binary from the [releases page](https://github.com/leox255/termem/releases) and put `termem`\n\non your `PATH`\n\n.\n\n## Use\n\n```\ntermem                       open the picker for the current directory and subfolders\ntermem --here                only sessions started exactly here\ntermem --all                 every session, any directory\ntermem ls                    print a table instead of opening the picker\ntermem ls --source codex     filter by tool: claude, codex, opencode, gemini, shell\ntermem ls -s \"query\"         search message content, title, prompt, and path\ntermem resume <id|text>      resume the best match\ntermem index                 rebuild the index now\n```\n\nIn the picker: type to filter, arrow keys to move, Enter to resume, Esc to quit.", "url": "https://wpnews.pro/news/show-hn-termem-cross-agent-memory-and-session-management", "canonical_source": "https://termem.com", "published_at": "2026-06-15 19:47:45+00:00", "updated_at": "2026-06-15 20:04:54.286259+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools", "ai-agents"], "entities": ["Termem", "Claude Code", "Codex", "Gemini", "opencode"], "alternates": {"html": "https://wpnews.pro/news/show-hn-termem-cross-agent-memory-and-session-management", "markdown": "https://wpnews.pro/news/show-hn-termem-cross-agent-memory-and-session-management.md", "text": "https://wpnews.pro/news/show-hn-termem-cross-agent-memory-and-session-management.txt", "jsonld": "https://wpnews.pro/news/show-hn-termem-cross-agent-memory-and-session-management.jsonld"}}