Memorylayer

Hosted memory runtime for agents

Agent integration
Hosted MCP bridge Starter skills Workspace API keys

Connect agents without building the glue yourself.

Every workspace gets a hosted memory surface for recall, remember, recent history, and higher-level Engram tools. The integration path stays simple: issue a workspace key, hit bootstrap, and start calling the service.

Bootstrap

One request returns the API surface, bridge URL, and skill download paths.

Bridge

60 hosted tool calls when the agent cannot run a local MCP server.

Skills

Starter markdown skills drop directly into Codex or Claude-style workflows.

key bootstrap tools skills
01 / Key
Issue access

Create one workspace key per agent so usage and revocation stay understandable.

02 / Bootstrap
Load service shape

Fetch URLs, auth shape, starter skills, and bridge metadata before the agent starts.

03 / Tools
Call memory tools

Use the hosted bridge for recall, project state, decisions, checkpoints, and curation.

04 / Skills
Teach the workflow

Install the starter skill so agents know when to recall and when to write handoffs.

Bootstrap endpoint Workspace-specific service URLs and integration metadata in one response
Bridge tools Focused hosted access to selected Engram methods over HTTP JSON
Skill downloads Plain markdown starter skills for fast memory/handoff setup

Integration recipes

Short paths for common agent and service wiring.

Codex-style handoff

Load bootstrap Recall recent context Work normally Remember outcome
curl -H "Authorization: Bearer $MEMORYLAYER_KEY" "$MEMORYLAYER_URL/api/workspaces/$SLUG/bootstrap"

Hosted MCP bridge

List bridge tools POST tool name and args Store audit trail
curl -X POST -H "Authorization: Bearer $MEMORYLAYER_KEY" -H "Content-Type: application/json" -d '{"tool":"recall_recent","args":{"limit":5}}' "$MEMORYLAYER_URL/api/workspaces/$SLUG/mcp"

Ingestion pipeline

Create a service key POST memories Watch usage events
curl -X POST -H "Authorization: Bearer $MEMORYLAYER_KEY" -H "Content-Type: application/json" -d '{"source_name":"handoff.md","items":["Deployment completed","Follow up on billing UI"],"layer":"episodic","memory_type":"fact"}' "$MEMORYLAYER_URL/api/workspaces/$SLUG/ingest"

Usage monitor

Poll usage endpoint Group by route Rotate quiet or noisy keys
curl -H "Authorization: Bearer $MEMORYLAYER_KEY" "$MEMORYLAYER_URL/api/workspaces/$SLUG/usage"

Compact prompt context

Call MCP bridge Fetch recall_context Inject result
curl -X POST -H "Authorization: Bearer $MEMORYLAYER_KEY" -H "Content-Type: application/json" -d '{"tool":"recall_context","args":{"query":"current project state","max_tokens":1200}}' "$MEMORYLAYER_URL/api/workspaces/$SLUG/mcp"

Session checkpoint

Summarize work Save checkpoint Resume later
curl -X POST -H "Authorization: Bearer $MEMORYLAYER_KEY" -H "Content-Type: application/json" -d '{"tool":"session_checkpoint","args":{"note":"Finished deploy; next check onboarding flow","limit":8}}' "$MEMORYLAYER_URL/api/workspaces/$SLUG/mcp"

Negative knowledge

Catch bad assumption Store exclusion Prevent repeat
curl -X POST -H "Authorization: Bearer $MEMORYLAYER_KEY" -H "Content-Type: application/json" -d '{"tool":"remember_negative","args":{"content":"Do not use local SQLite for production memory","scope":"deployment","context":"Postgres is required for hosted workspaces"}}' "$MEMORYLAYER_URL/api/workspaces/$SLUG/mcp"

Entity pivot

Find entity Load graph Follow related work
curl -X POST -H "Authorization: Bearer $MEMORYLAYER_KEY" -H "Content-Type: application/json" -d '{"tool":"entity_graph","args":{"name":"Memorylayer"}}' "$MEMORYLAYER_URL/api/workspaces/$SLUG/mcp"

Curation pass

Find duplicate cluster Deduplicate Check quality
curl -X POST -H "Authorization: Bearer $MEMORYLAYER_KEY" -H "Content-Type: application/json" -d '{"tool":"dedup","args":{"threshold":0.92,"max_merges":5}}' "$MEMORYLAYER_URL/api/workspaces/$SLUG/mcp"

Tool manifest

Fetch manifest Group tools Render client UI
curl "$MEMORYLAYER_URL/api/mcp/manifest"

Public capability sync

Fetch capabilities Cache counts Expose service map
curl "$MEMORYLAYER_URL/api/capabilities"

Workspace health check

Call health Read memory map Export recent
curl -X POST -H "Authorization: Bearer $MEMORYLAYER_KEY" -H "Content-Type: application/json" -d '{"tool":"health","args":{}}' "$MEMORYLAYER_URL/api/workspaces/$SLUG/mcp"

Agent capability groups

The service now covers bootstrap, retrieval, graph lookup, memory writes, session handoff, and curation.

Full index

Agent runtime

  • workspace bootstrap
  • HTTP MCP bridge
  • tool discovery
  • argument hints
  • starter skills

Retrieval

  • semantic recall
  • compact recall context
  • recognition hints
  • recent memory lookup
  • fact-only retrieval

Knowledge graph

  • entity search
  • entity graph export
  • entity timeline
  • related entity traversal
  • memory backlinks

Memory writes

  • narrative memory
  • fact memory
  • procedure memory
  • decision memory
  • error memory

Session continuity

  • session checkpoint
  • session handoff
  • resume context
  • session summary
  • recent activity

Curation

  • memory annotate
  • memory edit
  • memory invalidate
  • status transitions
  • status history

Tool groups

The MCP manifest groups tools so clients can show retrieval, graph, continuity, and curation as separate lanes.

MCP manifest

Runtime health

7 tools

Retrieval

10 tools

Entity graph

10 tools

Memory writes

8 tools

Continuity

7 tools

Curation

16 tools

Starter skills

Small, deliberate instructions that help agents use hosted memory well from the first run.

Workspace Memory

Use the hosted workspace memory service for project recall, remember, and recent context.

Session Handoff

Capture the minimum high-value handoff state before stopping work.