0xeb

Lldb Agent — AI skill for Claude Code

AI community

LLDB MCP/HTTP server - drive LLDB from an external AI agent via a dbg_exec tool.

How to install Lldb Agent

This entry records only its repository, not the path inside it, so there is no exact command to give. Open 0xeb/lldb-agent and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Lldb Agent does

LLDB MCP/HTTP server - drive LLDB from an external AI agent via a dbg_exec tool.

Alternatives in AI

  • Claudish CLI — for external AI models) 679 ★
  • UnityMCP — Drive the Unity Editor from an AI agent or the terminal 346 ★
  • OpenTor — Tor/Dark Web access skill for AI agents (OpenCode & Claude Code) 85 ★

README

LLDB Agent

An LLDB plugin that exposes the debugger over **MCP** (Model Context Protocol) and plain **HTTP**, so an external AI agent (Claude Code, Claude Desktop, etc.) can drive your debug session through a single `dbg_exec` tool.

The plugin embeds **no AI**. It is a thin bridge: it runs LLDB commands on request and returns their output. Bring your own agent.

Requirements

  • LLDB 16+ with development headers
  • CMake 3.20+
  • C++17 compiler

Platform-specific requirements

**Linux:**

sudo apt install liblldb-dev lldb

**macOS:**

xcode-select --install

**Windows:**

winget install LLVM.LLVM

Note: The winget package requires Python 3.10 at runtime (see [Windows Setup](#windows-setup) below).

Build

**Linux/macOS:**

cmake --preset default
cmake --build --preset default

**Windows:**

cmake --preset windows
cmake --build --preset windows

Output:

  • Linux: build/lldb_agent.so
  • macOS: build/lldb_agent.dylib
  • Windows: build-windows/Release/lldb_agent.dll

The plugin depends on [fastmcpp](https://github.com/0xeb/fastmcpp) (vendored as a submodule under `external/fastmcpp`), which provides the MCP server, cpp-httplib and nlohmann_json.

Usage

# Start LLDB with your program
lldb ./myprogram

# Load the plugin
(lldb) plugin load /path/to/lldb_agent.so

# Start the MCP (SSE) server - blocks until Ctrl+C
(lldb) agent mcp

# ...or a plain HTTP server
(lldb) agent http

When a server starts it prints its URL and endpoints (and copies them to the clipboard on Windows). Point your MCP client at the SSE endpoint, or POST commands to the HTTP endpoint, and press **Ctrl+C** in LLDB to stop the server.

Commands

Command Description
agent help Show help
agent version Show version
agent mcp [bind_addr] Start the MCP (SSE) server, block until Ctrl+C
agent http [bind_addr] Start the plain HTTP server, block until Ctrl+C