gmem

v1.1.0
io.github.yksanjo/gmem Checked 2 days ago Published 6 months ago

Persistent, 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.

ParameterTypeDescription
query *stringNatural-language description of what you want to recall
kindsarrayOptional filter to specific entity kinds
limitinteger

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.

ParameterTypeDescription
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.

ParameterTypeDescription
from *stringISO 8601 timestamp or git commit ref (e.g. 'HEAD~5', 'main', 'abc1234')
to *stringISO 8601 timestamp or git commit ref (e.g. 'HEAD')

gmem.list_decisions

List all Decision entries for the active project, newest first.

ParameterTypeDescription
limitinteger

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.

ParameterTypeDescription
projectRootstringOptional 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.

ParameterTypeDescription
configPathstringOptional 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.

ParameterTypeDescription
projectRootstringOptional path to the Hardhat workspace root. Defaults to the active project root (resolved from cwd).