Myelin

Quickstart

Get Myelin running with your AI agent in under 5 minutes. Myelin gives agents procedural memory — search finds a matching workflow, record begins a recording session, and finish finalizes the session and queues evaluation.

1. Create an account

Sign up at myelin.vercel.app/signup. The free tier includes 50 sessions per month.

2. Get your API key

Go to your dashboard and create an API key. Copy it — it won't be shown again.

3. Set up your agent

Install the SDK and follow the guide for your framework:

  • Claude Code — Install the SDK (uv tool install myelin-sdk or pip install myelin-sdk), add the MCP server, and configure the PostToolUse hook. No code changes to your agent. Follow the guide →
  • LangChain — Install the SDK (pip install myelin-sdk[langchain]) and add the callback handler or toolkit to your agent. Follow the guide →

4. Use the tools

Your agent now has access to three tools:

  • search — Search for a matching workflow. With no arguments, lists available procedures.
  • record — Begin a recording session for a task.
  • finish — Call after completing the task. Finalizes the session and queues server-side evaluation.

Example flow:

  1. Agent calls search("reset user password")
  2. Myelin returns a matching workflow with procedure content, or no matches
  3. Agent calls record() with the matched workflow ID (or just a task description) to begin recording
  4. Agent completes the task, following the workflow if one was found
  5. The PostToolUse hook captures every tool call automatically
  6. Agent calls finish(session_id) to finalize

5. Watch the flywheel turn

After each session, Myelin evaluates task completion automatically. Successful freestyle sessions are distilled into new workflows — these appear in the Workflows dashboard for review. For sessions that followed an existing workflow, step-level adherence is tracked. Observations are clustered across sessions, and Myelin proposes concrete revisions when patterns emerge. Each workflow tracks its success rate, and agents get better over time as proven procedures are surfaced for matching tasks.

Next steps

  • SDK Overview — Install the Python SDK and choose an integration path
  • Claude Code — MCP server and PostToolUse hook setup
  • LangChain — Callback handler and toolkit for LangChain agents