gmem
v1.1.0Persistent, Solana-aware project memory for AI coding agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
gmem.recall
Retrieve memory entries relevant to a natural-language query for the active Solana project. Ranked by BM25 over entity fields with a recency boost.
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural-language description of what you want to recall |
kinds | array | Optional filter to specific entity kinds |
limit | integer |
gmem.write
Persist a typed memory entry (Program / Account / Instruction / Decision / Finding / Integration). Append-only: re-writing the same logical entity creates a new version, never overwrites.
| Parameter | Type | Description |
|---|---|---|
entity * | object | |
kind * | string |
gmem.diff
Show how memory state changed between two points in time. Accepts ISO 8601 timestamps OR git commit refs (HEAD, HEAD~3, branch names, full or short SHAs) — refs are resolved via `git show -s --format=%cI` in the active project root. v0.5 milestone.
| Parameter | Type | Description |
|---|---|---|
from * | string | ISO 8601 timestamp or git commit ref (e.g. 'HEAD~5', 'main', 'abc1234') |
to * | string | ISO 8601 timestamp or git commit ref (e.g. 'HEAD') |
gmem.list_decisions
List all Decision entries for the active project, newest first.
| Parameter | Type | Description |
|---|---|---|
limit | integer |
gmem.ingest_anchor
Auto-ingest an Anchor workspace: parses `Anchor.toml`, captures the IDL SHA-256 for each program from `target/idl/<name>.json`, and records the current git HEAD as the source commit. Writes one Program entity per (program, cluster) pair. v0.3 milestone.
| Parameter | Type | Description |
|---|---|---|
projectRoot | string | Optional path to the Anchor workspace root. Defaults to the active project root (resolved from cwd). |
gmem.solana_context
Read the active Solana CLI context (`~/.config/solana/cli/config.yml`) and return the configured cluster, RPC URL, and the public address of the active keypair. Used to auto-attribute Decision writes to a developer wallet. v0.4 milestone. Does not return the secret key.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Optional path to the Solana CLI config.yml. Defaults to ~/.config/solana/cli/config.yml. |
gmem.ingest_hardhat
Auto-ingest a Hardhat (EVM) workspace: walks up to the nearest hardhat.config.{ts,js,cjs,mjs}, reads every deployment artifact under deployments/<network>/<Contract>.json (hardhat-deploy convention), classifies the network into a canonical chain id, computes a stable ABI sha256, records git HEAD as sourceCommit. Writes one Contract entity per (chain, address). v1.1 milestone. Companion to gmem.ingest_anchor for Solana.
| Parameter | Type | Description |
|---|---|---|
projectRoot | string | Optional path to the Hardhat workspace root. Defaults to the active project root (resolved from cwd). |