longhaul
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LONGHAUL_HOME | No | Where memory is stored. | ~/.longhaul |
| LONGHAUL_MODEL | No | Model that does the summarizing. Defaults to the first model the endpoint reports. | |
| LONGHAUL_API_KEY | No | Sent as a bearer token. | local |
| LONGHAUL_SESSION | No | Name this session; separate memory per name. | default |
| LONGHAUL_TIMEOUT | No | Seconds to wait for a summary. | 900 |
| LONGHAUL_BASE_URL | No | OpenAI-compatible endpoint used to summarize. | http://localhost:1234/v1 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| compactA | Compact the conversation when the context window is filling up (call around 70% full, before turns scroll away). Summarizes the session into a dense STATE block, saves it to permanent memory, and returns it. Continue from the returned block and treat earlier turns as discarded - nothing is lost, |
| recallA | Search everything ever compacted or remembered, across all past sessions. Use when the user refers to earlier work, asks what was decided, or mentions something not in the current window. Call with an empty query to get the most recent compaction. |
| rememberA | Pin a fact to permanent memory immediately - a user preference, a decision, a path, a credential location. Survives every future compaction and session. |
| timelineB | List all sessions on record with their memory counts. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
Each tool serves a distinct, non-overlapping function: compact summarizes the current session, recall searches past memory, timeline lists sessions, and remember stores a fact. No two tools could be confused for one another.
All tool names are single lowercase words using a command-like style (compact, recall, timeline, remember). The naming pattern is uniform and intuitive, with no mixed conventions or confusing prefixed/suffixed variations.
Four tools is the right size for a memory-management server. The scope is narrow and each tool covers a necessary function without bloat or redundancy, making the set easy to learn and use.
The core memory lifecycle is covered: remember (write), compact (state saving), recall (read/search), and timeline (audit). A possible gap is a delete/forget operation, but for a persistent-memory system this may be intentionally omitted, so the surface is nearly complete.