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
- Everything is a plugin. Replace everything, customise however you want. Running
lugwith no plugins or config gives you a blank screen. - Modal.
NORMAL,INSERT,VISUAL, and whatever modes your plugins bring, with motions, operators, text objects and counts. - It's fast. Boot time with stock is around 14 ms.
- No skills, no / commands. Everything is a
:command, a little bit like Neovim, and commands can be added via Lua. Anything you can use, agents can use. If you enjoy the traditional / skills, check out skills.lug. - Your own tools. Register a tool in a few lines of Lua. The built-in ones are
read,write,edit,grep,lsandbash, and a turn's tool calls run at once. - Any model. Anthropic, OpenAI, OpenRouter, Ollama, OpenCode Go, or your own provider behind a compatible API.
## Stock lug experience
Lug with slug does everything you'd expect from a coding agent.
- Reads your code, edits it, and runs your tests.
:qNow you can get stuck in your coding agent too.- Type
@to pull a file into the conversation. - Type
@to point at a directory. Watch it awkwardly keep autocompleting to files while you work out whether to press tab again. Realise it’s easier to just not use@at all. - Says “You’re absolutely right!” whether you are or not.
:compactWhen a conversation gets long, it summarises itself and carries on, on its own before the window fills. Prevents the model from tripping balls. Smaller bills, too.- Spend work hours tinkering with your config. Get paid by your boss to edit your
init.lua. - Shows you every edit as a diff.
- Reads your
AGENTS.md, so it knows the house rules. Following them is another matter. - Plan mode: it reads and plans, and touches nothing.
- Analyses load-bearing seams.
gfto open files, not for sale btw.- Ask it to fix one bug. Get a second bug to keep the first one company.
:sessionsSaved as you go. Pick up yesterday’s argument where you left it.- Press
qon any part of the transcript to quote it and reply. - “Holy sh*t, this thing will take my job.”
- “Wow, this thing is stupid.”
- Runs shell commands, so you never have to remember the flags for
taragain. - Knows its own docs and source, so you can ask it to change Lug itself.
:modelSwap brains mid-conversation.- Sends sub-agents off to do things while you make a coffee.
- Every tool call gets a card in the transcript, so you can see what it’s up to.
- Thinking levels, for deciding how hard it should think about it.
- A fuzzy launcher for every command and picker.
:cancelStop. Just stop.
## 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.