Agent skill

Memmesh SDK

by ThinkfleetAI in ThinkfleetAI/memmesh

MemMesh TypeScript SDK reference (@thinkfleet/memory-sdk) for the hosted platform at app.memmesh.ai.

Apache-2.0Auto-check passedKnowledge Management

Install Memmesh SDK

skills CLI
$ npx skills add ThinkfleetAI/memmesh --skill memmesh-sdk -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ThinkfleetAI/memmesh memmesh-sdk --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ThinkfleetAI/memmesh.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/memmesh-sdk .claude/skills/memmesh-sdk && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
memmesh-sdk
GitHub stars
420
Token cost
~1.6k tokens
SKILL.md length
317 words
Files
1
Skills in repo
24
Repo updated
First seen
Licence
Apache-2.0

At a glance

MemMesh TypeScript SDK reference (@thinkfleet/memory-sdk) for the hosted platform at app.memmesh.ai.

  • Works in 3 steps: install and authenticate → initialize → the core loop: observe → retrieve →…
  • : user is writing code that calls the MemMesh SDK
  • SKILL.md covers Step 1 — install and…, Step 2 — initialize, Step 3 — the core loop:… and The moat — predict anything,…, plus 8 more sections
  • Calls npm; needs MEMMESH_API_KEY

What it does

Memmesh SDK is an agent skill from ThinkfleetAI/memmesh. MemMesh TypeScript SDK reference (@thinkfleet/memory-sdk) for the hosted platform at app.memmesh.ai. Covers the ThinkFleetMemory client — observe / search / list, the predict + lattice prediction surface, closed-loop learning (recordDecision / recordOutcome), emergent behavior discovery, and the health / financial vertical packs. TRIGGER when: user is writing code that calls the MemMesh SDK, mentions "@thinkfleet/memory-sdk", "ThinkFleetMemory", "memmesh sdk", "lattice.predict", "predictTarget", or wants to add…

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Requires Node.js 18+. npm install @thinkfleet/memory-sdk. A MEMMESHAPIKEY (hosted) or a Cognito JWT. For a no-key local setup use the memmesh CLI + MCP instead.

It sits in Knowledge Management. It works with Model Context Protocol and TypeScript. The repository describes itself as: Persistent, self-improving memory for AI agents. Local-first Rust memory engine with MCP support. The licence is Apache-2.0.

When your agent uses it

  • : user is writing code that calls the MemMesh SDK
  • Mentions @thinkfleet/memory-sdk
  • ThinkFleetMemory
  • Lattice.predict

Example prompts

  • “@thinkfleet/memory-sdk”
  • “ThinkFleetMemory”
  • “memmesh sdk”
  • “/memmesh-sdk”

Requirements

  • Python 3
  • Node.js
  • A credential in MEMMESH_API_KEY
  • Compatibility (from SKILL.md): Requires Node.js 18+. npm install @thinkfleet/memory-sdk. A MEMMESH_API_KEY (hosted) or a Cognito JWT. For a no-key local setup use the memmesh CLI + MCP instead.

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. install and authenticate
  2. initialize
  3. the core loop: observe → retrieve → (predict)

What it can do on your machine

Read from SKILL.md and the folder at commit bba48f8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.memmesh.ai

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • MEMMESH_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires Node.js 18+. npm install @thinkfleet/memory-sdk. A MEMMESH_API_KEY (hosted) or a Cognito JWT. For a no-key local setup use the memmesh CLI + MCP instead.

    From compatibility in the SKILL.md frontmatter.

Context cost

Memmesh SDK loads about 1.6k tokens when it runs. Until then it costs about 187 tokens; SKILL.md has 317 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~187
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ThinkfleetAI/memmesh at commit bba48f8, republished under its Apache-2.0 licence (© ThinkfleetAI). 317 words, ~1,645 tokens.

Download SKILL.mdSave it as .claude/skills/memmesh-sdk/SKILL.md (or your agent's skills folder).
name
memmesh-sdk
description
MemMesh TypeScript SDK reference (@thinkfleet/memory-sdk) for the hosted platform at app.memmesh.ai. Covers the ThinkFleetMemory client — observe / search / list, the predict + lattice prediction surface, closed-loop learning (recordDecision / recordOutcome), emergent behavior discovery, and the health / financial vertical packs. TRIGGER when: user is writing code that calls the MemMesh SDK, mentions "@thinkfleet/memory-sdk", "ThinkFleetMemory", "memmesh sdk", "lattice.predict", "predictTarget", or wants to add memory OR prediction to a TS/JS app. DO NOT TRIGGER for: the local MCP observe/recall loop (that's the always-on `memmesh` skill), CLI usage (use `memmesh-cli`), or wiring into an existing repo (use `memmesh-integrate`).
compatibility
Requires Node.js 18+. npm install @thinkfleet/memory-sdk. A MEMMESH_API_KEY (hosted) or a Cognito JWT. For a no-key local setup use the memmesh CLI + MCP instead.
license
Apache-2.0
metadata.author
thinkfleet
metadata.category
ai-memory
metadata.tags
memory, prediction, calibration, typescript, knowledge-graph

MemMesh TypeScript SDK

MemMesh is not just a store-and-recall memory layer. It is a memory + calibrated-prediction + behavior-discovery engine over a bi-temporal knowledge graph. The SDK talks to the hosted platform (app.memmesh.ai) over REST; for a zero-infra local setup, drive the same engine through the CLI + MCP server instead (see memmesh-cli).

Mental model: observe (feed raw text — the engine decides what to save) → search / buildContext (retrieve) → predict (forecast the subject's next move, with a calibrated confidence and provenance).

Step 1 — install and authenticate

bash
npm install @thinkfleet/memory-sdk
export MEMMESH_API_KEY="mm-your-api-key"   # from app.memmesh.ai

Step 2 — initialize

ts
import { ThinkFleetMemory } from "@thinkfleet/memory-sdk";

const memory = new ThinkFleetMemory({
  apiKey: process.env.MEMMESH_API_KEY,      // or a Cognito JWT via `token`
  // baseUrl defaults to https://app.memmesh.ai
});

Step 3 — the core loop: observe → retrieve → (predict)

Observe — the engine decides what to save

Unlike layers where you judge "is this worth saving?", you feed MemMesh raw text and its extractor (regex + structural rules + optional LLM refinement) decides. Cheap, idempotent, silent on filler.

ts
await memory.memory.observe({
  text: "Alice is vegetarian and allergic to nuts. She books gym classes on Mondays.",
  userId: "alice",
  projectId: "myapp",
});

There are also typed intake helpers: observeImage, observeVoice, observeDocument, ingestMedia.

Retrieve — search or a full context bundle
ts
const hits = await memory.memory.search({ query: "dietary restrictions", userId: "alice" });

// Or the synthesized, token-budgeted bundle (profile + patterns + predictions + top memories):
const ctx = await memory.context.build({ subjectKind: "user", subjectId: "alice", maxTokens: 2000 });

The moat — predict anything, with calibration + abstention

This is what a vector-recall layer cannot do. Predictions carry a calibrated confidence ("80% means 80%"), provenance (evidenceMemoryIds), and a first-class abstention ("I don't know yet" is a valid, honest answer).

ts
// Forward behavior prediction — what will this subject do next?
const preds = await memory.lattice.predict({ subjectKind: "user", subjectId: "alice", horizonDays: 30 });

// Declarative "predict ANY target" — no code change to add a new prediction:
const p = await memory.lattice.predictTarget({
  subject: { kind: "user", externalId: "alice" },
  target: { kind: "event_occurrence", name: "churn" },   // or numeric | event_time | anomaly
});
if (p.abstained) {
  console.log("abstained:", p.abstentionReason);         // honest "not enough evidence"
} else {
  console.log(p.probability, "±", p.calibration, "because", p.evidenceMemoryIds);
}

// Is the model actually calibrated? Check the reliability curve:
const cal = await memory.lattice.getCalibration({ subjectKind: "user" });

Closed-loop learning — make predictions get better

Record the decision you made and the outcome that followed; the engine feeds that back into calibration and effectiveness reporting.

ts
const d = await memory.learning.recordDecision({ subjectId: "alice", decision: "sent_winback_offer" });
await memory.learning.recordOutcome({ decisionId: d.id, outcome: "converted", value: 49.0 });
const eff = await memory.learning.getEffectiveness({ subjectKind: "user" });

Emergent behavior discovery — patterns nobody predefined

ts
const behaviors = await memory.behaviors.discover({ projectId: "myapp" });
// each carries prevalence, stability, and the evidence memories behind it

Knowledge graph (bi-temporal)

ts
const g = await memory.context.queryGraph({ subjectId: "alice", asOf: "2026-01-01T00:00:00Z" });
// "what did we believe about Alice on Jan 1" — every edge has valid_from / valid_to

Vertical packs

ts
// Health
await memory.health.recordBiomarker({ subjectId: "alice", marker: "hba1c", value: 5.4 });
const risk = await memory.health.getCohortRisk({ condition: "prediabetes" });

// Financial
await memory.financial.ingestPrices({ symbol: "AAPL", bars: [...] });
const f = await memory.financial.predict({ symbol: "AAPL", target: { kind: "numeric", name: "close_5d" } });
ts
await memory.consent.optOut({ subjectId: "alice" });
await memory.compliance.hardDeleteSubject({ subjectId: "alice" });   // GDPR right-to-forget
const audit = await memory.compliance.listAuditEvents({ subjectId: "alice" });

Scoping model

Six-level hierarchy: platform › project › location › agent › user › session. Pass projectId / userId / agentId / sessionId to scope any call. Lifecycle: pending → confirmed → superseded → rejected (the engine supersedes on contradiction — you don't hand-manage it).

Language support

TypeScript/JavaScript is the shipping distributed SDK today. For non-TS stacks, use the MCP server (any MCP-capable agent) or the REST API directly (llms.txt / OpenAPI at docs.memmesh.ai). A Python SDK is on the roadmap.

Ground truth (fetch before relying on ambient knowledge)

  • Docs index (agent-ready): https://docs.memmesh.ai/llms.txt
  • SDK examples: predict-anything.ts, financial-demo.ts, next-best-offer.ts
  • Related skills: memmesh (MCP loop), memmesh-cli, memmesh-integrate

© ThinkfleetAI, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/memmesh-sdk of ThinkfleetAI/memmesh.

Open the folder on GitHubat commit bba48f8

Compare with similar skills

Memmesh SDK next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Memmesh SDK compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Memmesh SDK this skillThinkfleetAI/memmesh420—~1.6kAutomated safety check: PassApache-2.0
Notebooklmroomi-fields/notebooklm-mcp189—~1.1kAutomated safety check: PassMIT
Gnogmickel/gno1151 repos~1.6kAutomated safety check: PassMIT
Agentopology Skillagentopology/agentopology103—~3.8kAutomated safety check: PassApache-2.0
Docsmint Document ManagerHiAi-gg/docsmint118—~584Automated safety check: PassApache-2.0
Gnogmickel/gno115—~11kAutomated safety check: PassMIT

Similar skills

  • Notebooklm

    roomi-fields/notebooklm-mcp

    This skill should be used when the user wants to query their Google NotebookLM notebooks for citation-backed, source-grounded answers, or manage notebooks, sources, and Studio content (audio…

    189 GitHub stars~1.1k tokensUpdated 1 mo ago
    Knowledge ManagementAuto-check passed
  • Gno

    gmickel/gno

    Search local documents, files, notes, and knowledge bases. An agent skill from gmickel/gno.

    115 GitHub starsUsed in 1 repo~1.6k tokens
    Knowledge ManagementAuto-check passed
  • Agentopology Skill

    agentopology/agentopology

    Design, validate, scaffold, and visualize multi-agent topologies using the .at language

    103 GitHub stars~3.8k tokensUpdated 10 days ago
    Agent WorkflowsAuto-check passed
  • Manage and research DocsMint documents through its scoped MCP tools, including categories, folders, hybrid search, GraphRAG, rerank, and index refresh.

    118 GitHub stars~584 tokensUpdated 9 days ago
    Knowledge ManagementAuto-check passed
  • Gno

    gmickel/gno

    Search local documents, files, notes, and knowledge bases. An agent skill from gmickel/gno.

    115 GitHub stars~11k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Parser Dev

    agentopology/agentopology

    Parser development — grammar, bindings, tests, CLI, and docs

    103 GitHub stars~401 tokensUpdated 10 days ago
    Knowledge ManagementAuto-check passed

More from ThinkfleetAI/memmesh

All 24 skills in this repo
  • Behaviors

    ThinkfleetAI/memmesh

    Surface emergent behavior patterns MemMesh has mined from a subject's history — recurring habits nobody predefined, each with prevalence, stability, and the evidence behind it.

    420 GitHub stars~519 tokensUpdated 1 mo ago
    Auto-check passed
  • Benchmark

    ThinkfleetAI/memmesh

    Run MemMesh's competitive benchmark harness (LOCOMO / BEAM) to compare retrieval quality, tokens, latency, and cost against Mem0, Zep, full-context, and naive-RAG baselines.

    420 GitHub stars~460 tokensUpdated 1 mo ago
    Auto-check passed
  • Context Loader

    ThinkfleetAI/memmesh

    Load relevant MemMesh context before starting work — searches memory and, for a specific subject, assembles a token-budgeted bundle (profile + behavior patterns + forward predictions + top memories)…

    420 GitHub stars~530 tokensUpdated 1 mo ago
    Auto-check passed
  • Graph

    ThinkfleetAI/memmesh

    Query MemMesh's bi-temporal knowledge graph — multi-hop reasoning across entities, point-in-time "what did we believe on date X", and anticipatory retrieval via spreading activation.

    420 GitHub stars~611 tokensUpdated 1 mo ago
    Auto-check passed
  • Memmesh CLI

    ThinkfleetAI/memmesh

    MemMesh CLI + local MCP server — the zero-infra, no-API-key path to the same engine as the hosted SDK.

    420 GitHub stars~855 tokensUpdated 1 mo ago
    Auto-check passed
  • Predict

    ThinkfleetAI/memmesh

    Forecast what a subject will do next from their mined behavior patterns — with a calibrated, horizon-decayed confidence and provenance.

    420 GitHub stars~619 tokensUpdated 1 mo ago
    Auto-check passed

Questions about Memmesh SDK

What does Memmesh SDK do?

MemMesh TypeScript SDK reference (@thinkfleet/memory-sdk) for the hosted platform at app.memmesh.ai. Memmesh SDK is an agent skill from ThinkfleetAI/memmesh.ai.

When should I use Memmesh SDK?

Memmesh SDK fits situations like: : user is writing code that calls the MemMesh SDK; mentions @thinkfleet/memory-sdk; thinkFleetMemory; lattice.predict.

How do I install Memmesh SDK in Claude Code?

Run `npx skills add ThinkfleetAI/memmesh --skill memmesh-sdk -a claude-code`. Or copy the skill folder (skills/memmesh-sdk in ThinkfleetAI/memmesh) into .claude/skills/memmesh-sdk in your project. Claude Code loads it when a task matches its description.

How do I install Memmesh SDK in Codex?

Run `npx skills add ThinkfleetAI/memmesh --skill memmesh-sdk -a codex`. Or copy the skill folder (skills/memmesh-sdk in ThinkfleetAI/memmesh) into .agents/skills/memmesh-sdk in your project. Codex loads it when a task matches its description.

Can I use Memmesh SDK in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ThinkfleetAI/memmesh --skill memmesh-sdk -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/memmesh-sdk, .gemini/skills/memmesh-sdk, .github/skills/memmesh-sdk and .opencode/skills/memmesh-sdk in your project.

What does Memmesh SDK need to run?

Going by SKILL.md and its folder, Memmesh SDK needs the command-line tools its instructions call (npm) and credentials named MEMMESH_API_KEY. Our summary lists: Python 3; Node.js; A credential in MEMMESH_API_KEY. Compatibility (from SKILL.md): Requires Node.js 18+. npm install @thinkfleet/memory-sdk. A MEMMESH_API_KEY (hosted) or a Cognito JWT. For a no-key local setup use the memmesh CLI + MCP instead..

Does Memmesh SDK access the network?

SKILL.md names 1 domain. As links in the text: docs.memmesh.ai. This is read from the text; nothing was executed.

Is Memmesh SDK safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Memmesh SDK use?

Memmesh SDK is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Memmesh SDK use?

About 1.6k tokens (SKILL.md is roughly 6.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Memmesh SDK?

Skills that share tags, products or a category with Memmesh SDK: Notebooklm (roomi-fields/notebooklm-mcp, 189 stars), Gno (gmickel/gno, 115 stars), Agentopology Skill (agentopology/agentopology, 103 stars) and Docsmint Document Manager (HiAi-gg/docsmint, 118 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Memmesh SDK?

ThinkfleetAI (a GitHub organization) maintains it in ThinkfleetAI/memmesh, which has 420 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on August 25, 2026.

Source: ThinkfleetAI/memmesh on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.