lug

There are many agent harnesses, but this one has a slug.

A terminal coding agent built for people who want to decide how their tools work.

$ curl -fsSL https://hjkl.ug/install.sh | sh

## Features

## Stock lug experience

Lug with slug does everything you'd expect from a coding agent.

## Everything is a plugin, EVERYTHING is replaceable

The stock experience is just a starting point. During installation lug will ask if you want the default package manager (haul) and the default distro (slug), which together give you a complete agent out of the box. But these are optional: keep them, fork them, or start from nothing.

It's Lua all the way down. Keymaps, themes, the layout, the statusline and how Lug talks to agents are all plugins too, and you can replace any of them.

The goal is not to build the perfect coding-agent interface. The goal is to let you build yours, and to see what everyone else builds with theirs.

## Why Lug?

If you spend all day with a coding agent, it should be fast, look good, and behave exactly how you want it to.

Not how a product team guessed you might want it to. Or what a team of highly paid psychoanalysts decided would give you a dopamine hit.

Change the keymaps. Replace the UI. Add commands. Write plugins. Make the agent control Lug itself. Build a virtual office for some reason.

If you don’t like how something works, replace it. Then show someone.

## Fast. For a slug.

Lug is still 0.x, and I’m still cleaning up a lot of the prototype.

Some sharp edges are still sharp. Tools currently run unsandboxed, and where to draw the line between “this should be a plugin” and “this belongs in Lug” is still being figured out.

It is MIT licensed and developed in the open, so come and poke at it.

The thing in the logo is the Lug Slug.

It doesn’t do anything.

Neither do most mascots.

## Why not a Neovim plugin?

If you've used Neovim, the attitude will feel familiar. Lug just points it at coding agents.

I still use Neovim every day. Neovim edits files. Lug gets agents to edit files.

People have pushed Neovim pretty far trying to turn it into an agent harness. At some point it was easier to build the thing I actually wanted. Shout-out to avante.nvim, though. It’s awesome.

Lug is Lug, Neovim is Neovim, and they get along fine.

## Bare bones, on purpose

So by now it might sound like Lug basically gives you nothing.

The core of Lug is bare bones, and it's built that way on purpose. Lug exposes a whole lot of Lua bindings so you can compose an agentic TUI in any shape or form you want it to take.

Although slug is made to look like the standard coding TUI you know from Pi, Claude Code, Codex, GitHub Copilot and the rest, that's only the start. Those projects are great, and they do great things. But they don't have a community, and that's what I want to build here.

install · lua api · architecture