lm-assist

Claude Code Mission Control -- Monitor sessions, track costs, manage knowledge, from anywhere.

lm-assist is a knowledge management and session inspection tool for Claude Code. It captures what you learn from every coding session and automatically injects that knowledge into future prompts -- so Claude never re-explores the same codebase twice.

Key Capabilities

Capability What It Does
Session Browser View all Claude Code sessions across projects with token counts, costs, and model info
13 Insight Tabs Deep-dive into any session: Chat, Thinking, Agents, Tasks, Plans, Team, Files, Git, Console, Summary, Meta, JSON, DB
Web Terminal Access running Claude Code terminals from any browser, on any device
Knowledge Base Auto-generated searchable knowledge from session history
MCP Tools search, detail, feedback tools available in Claude Code and any MCP-compatible IDE
Context Injection Automatically injects relevant knowledge before Claude responds to prompts
Task Kanban Aggregated task board from all active sessions
Cloud Access Optional remote access via LangMart for managing sessions from anywhere

How It Works

Claude Code Session
       |
       v
  lm-assist captures session data
       |
       +----> Knowledge Base (auto-extracted facts)
       |           |
       |           v
       |      MCP Tools (search, detail, feedback)
       |           |
       |           v
       |      Context Injection Hook
       |           |
       |           v
       +----> Next Claude Code Session (knowledge pre-loaded)

Without lm-assist: Each new session starts from scratch, re-exploring the same codebase (~85k tokens, ~3 minutes of overhead).

With lm-assist: Knowledge from previous sessions is automatically injected (~3k tokens, < 1 second). 95%+ reduction in exploration overhead.

Quick Start

In Claude Code:

# Add the LangMart marketplace
/plugin add-marketplace langmartai/claude-plugins-official

# Install lm-assist
/plugin install lm-assist

# Open dashboard
/assist

See Installation for alternative install methods (npm, from source).

Screenshots

Session Browser

Session Browser

Browse all Claude Code sessions with token counts, costs, and model information.

Session Detail (13 Tabs)

Session Detail

Full conversation timeline with syntax-highlighted code blocks.

Agent Tree

Agent Tree

Visualize subagent hierarchy -- Explore, Plan, Bash, and custom agents.

Knowledge Base

Knowledge Base

Browse, search, and manage auto-extracted knowledge entries.

Task Kanban

Task Kanban

Aggregated task board from all active sessions.

Web Terminal

Web Terminal

Live terminal access to running Claude Code sessions from any browser.

Architecture -- Local / LAN / Cloud Hybrid

lm-assist operates in three access modes that work simultaneously. Your data always stays on your machine -- cloud mode only relays API requests, never stores your session data.

Local Components

Component Port Purpose
Core API 3100 REST API, knowledge index, vector search, session parsing
Web UI 3848 Next.js dashboard (browser interface)
Web Terminals 5900+ One ttyd process per active Claude Code terminal
MCP Server -- Registers tools in Claude Code (search, detail, feedback)
Context Hook -- Fires on every prompt, injects relevant knowledge

Three Access Modes

                     +-----------------------+
                     |   Your Dev Machine    |
                     |                       |
                     |  Claude Code          |
                     |    |                  |
                     |    v                  |
                     |  lm-assist            |
                     |   Core API (:3100)    |
                     |   Web UI   (:3848)    |
                     |   Terminals (:5900+)  |
                     +-----------+-----------+
                                 |
              +------------------+------------------+
              |                  |                  |
              v                  v                  v
        LOCAL MODE          LAN MODE          CLOUD MODE
     localhost:3848      192.168.x.x:3848    langmart.ai
     No auth needed      Optional LAN auth   API key auth
     Same machine        Same network         Any device,
                         Phone, tablet        anywhere

Local Mode -- Access the dashboard at http://localhost:3848. No authentication required. This is the default.

LAN Mode -- Access from other devices on your local network (e.g., http://192.168.1.100:3848 from your phone or tablet). Optional LAN authentication can be enabled to require a token for network access.

Cloud Mode -- Connect to the LangMart Hub to access your dashboard from anywhere via https://langmart.ai/assist-dashboard. All requests are relayed through the Hub WebSocket connection -- your data never leaves your machine.

Cloud Mode: Remote Terminal Access

The most powerful feature of cloud mode is remote terminal access -- control your Claude Code sessions from any browser, anywhere in the world.

  Browser (anywhere)
       |
       v
  langmart.ai (Hub)
       |
       | WebSocket relay
       | (binary frames)
       |
       v
  lm-assist (your machine)
       |
       v
  ttyd (local terminal)
       |
       v
  Claude Code session

How it works:

  1. lm-assist maintains a persistent WebSocket connection to the LangMart Hub
  2. When you open a terminal in the cloud dashboard, the Hub sends a console_start_relay request
  3. lm-assist starts a local ttyd process for the Claude Code session
  4. Binary terminal frames are relayed between your browser and the local ttyd process through the Hub WebSocket
  5. The relay uses efficient binary framing with SHA256 hash-based session multiplexing for concurrent sessions

This means you can start a Claude Code session on your desktop, then monitor and interact with it from your phone during your commute -- no VPN or port forwarding required.

Cloud Mode: Multi-Machine Knowledge

When multiple machines connect to the Hub, knowledge is shared across all of them:

  Machine A (Linux server)          Machine B (MacBook)
       |                                 |
       |  lm-assist                      |  lm-assist
       |  Knowledge Base A               |  Knowledge Base B
       |                                 |
       +--------- LangMart Hub ---------+
                       |
                       v
              Unified Knowledge
              (search across all machines)
  • Session browsing shows sessions from all connected machines
  • Context injection pulls knowledge from your entire fleet
  • The Machines page shows online/offline status of all connected instances

Setting Up Cloud Mode

lm-assist setup --key YOUR_LANGMART_API_KEY

Or configure manually:

TIER_AGENT_HUB_URL=wss://api.langmart.ai
TIER_AGENT_API_KEY=sk-your-key-here

Get an API key at langmart.ai/api-keys or use the guided setup at langmart.ai/assist.

Verify with /assist-status in Claude Code -- you should see "Hub: connected".

Access Mode Comparison

Feature Local LAN Cloud
Dashboard access localhost only Same network Anywhere
Terminal access Same machine Same network Any browser, anywhere
Authentication None Optional token API key required
Data storage On machine On machine On machine (relayed, not stored)
Multi-machine knowledge No No Yes
Latency Instant ~1ms Depends on connection
Setup required None None API key

Next Steps

  • API Keys -- Create API keys for lm-assist cloud connection
  • Integrations -- Other tool integrations