badlogic/lemmy

Wrapper around tool using LLMs for agentic workflows

TypeScript

1,647

337 commits

updated Aug 13, 2025

See the code

README

Lemmy Monorepo

A TypeScript ecosystem for building AI applications with unified LLM interfaces, terminal UIs, and practical tools.

Core Packages

@mariozechner/lemmy

TypeScript library for building AI applications with multiple LLM providers. Unified interface, manual tool handling, and conversation management across Anthropic Claude, OpenAI, and Google Gemini.

Key Features:

  • Multi-provider support (Anthropic, OpenAI, Google)
  • Manual tool execution with interception capabilities
  • Context serialization and conversation management
  • Streaming with thinking/reasoning support
  • Type-safe tool definitions with Zod schemas

@mariozechner/lemmy-tui

Terminal UI framework with differential rendering for building interactive CLI applications.

Key Features:

  • Differential rendering for performance
  • Text editing, autocomplete, and selection components
  • Markdown rendering and syntax highlighting
  • Composable component architecture

Applications

claude-bridge

Use OpenAI, Google, and other LLM providers with Claude Code by intercepting and transforming API requests.

lemmy-chat

Interactive chat application demonstrating lemmy and lemmy-tui integration. Work in progress.

red-teaming

Red teaming example. See BlueSky Thread

snap-happy

Screenshot capture MCP server.

claude-trace

Trace and analyze Claude Code conversations with rich visualization. See Twitter Thread, Simon Willison Blog Post

Development

Setup:

git clone https://github.com/mariozechner/lemmy
cd lemmy && npm install
npm run dev  # Starts compilation in watch mode for all packages

Commands:

npm run build     # Build all packages and apps
npm run clean     # Clean all dist folders
npm run typecheck # Type check all projects
npm run test      # Run all tests

See README.md of respective package or app you want to hack on for more infos.

Monorepo Structure:

  • Dependencies build in correct order (packages before apps)
  • Unified scripts run across all workspaces
  • TypeScript project references for incremental compilation

badlogic/lemmy

Wrapper around tool using LLMs for agentic workflows

TypeScript

1,647

337 commits

updated Aug 13, 2025

See the code

README

Lemmy Monorepo

A TypeScript ecosystem for building AI applications with unified LLM interfaces, terminal UIs, and practical tools.

Core Packages

@mariozechner/lemmy

TypeScript library for building AI applications with multiple LLM providers. Unified interface, manual tool handling, and conversation management across Anthropic Claude, OpenAI, and Google Gemini.

Key Features:

  • Multi-provider support (Anthropic, OpenAI, Google)
  • Manual tool execution with interception capabilities
  • Context serialization and conversation management
  • Streaming with thinking/reasoning support
  • Type-safe tool definitions with Zod schemas

@mariozechner/lemmy-tui

Terminal UI framework with differential rendering for building interactive CLI applications.

Key Features:

  • Differential rendering for performance
  • Text editing, autocomplete, and selection components
  • Markdown rendering and syntax highlighting
  • Composable component architecture

Applications

claude-bridge

Use OpenAI, Google, and other LLM providers with Claude Code by intercepting and transforming API requests.

lemmy-chat

Interactive chat application demonstrating lemmy and lemmy-tui integration. Work in progress.

red-teaming

Red teaming example. See BlueSky Thread

snap-happy

Screenshot capture MCP server.

claude-trace

Trace and analyze Claude Code conversations with rich visualization. See Twitter Thread, Simon Willison Blog Post

Development

Setup:

git clone https://github.com/mariozechner/lemmy
cd lemmy && npm install
npm run dev  # Starts compilation in watch mode for all packages

Commands:

npm run build     # Build all packages and apps
npm run clean     # Clean all dist folders
npm run typecheck # Type check all projects
npm run test      # Run all tests

See README.md of respective package or app you want to hack on for more infos.

Monorepo Structure:

  • Dependencies build in correct order (packages before apps)
  • Unified scripts run across all workspaces
  • TypeScript project references for incremental compilation

Significant stargazers

IKEDA Sho

664 followers · starred Jun 2025

杨朱 · Kiki

152 followers · starred Mar 2026

Dan Cline

686 followers · starred Jun 2025

Werner Robitza

335 followers · starred Jun 2025