AgentsActive2026
Lanthorn
A coding agent that runs in your terminal, shows every step, and keeps your network scope inside a file.
A Python terminal agent with its own tool loop, seven enforced modes, seventeen selectable model upstreams and a two-file scope guard that blocks a denied host before the command runs.
- Licence
- GPL-3.0
- Version
- 1.2.0
- Primary language
- Python
- Status
- Active
- 17Wired upstreams
- 7Enforced modes
- 264Wrapper test suite
- 38Payload extensions
The loop you can watch
Lanthorn is a coding agent you drive from a terminal. You describe a task; a turn begins. Your prompt goes to the configured upstream, the model returns a tool call, Lanthorn runs it, and the result goes back to the model until the turn ends. Every tool call appears in the transcript as it happens: a header, a caption and a framed preview of the output. An edit arrives as a unified diff before it lands. A test run shows its result inline. Nothing is hidden behind a spinner.
That visibility is the point. An agent that changes your files should let you see it deciding, not only report what it did.
Modes enforced by removal
/mode switches the session between seven behaviours, from a plain plan to an armed blackhat posture. The enforcement is mechanical rather than rhetorical: a tool a mode disallows is removed from the session’s tool list, so plan mode has no way to write a file. The armed modes turn the header red and change how the harness handles a refusal.
The same principle runs through the workspace limits. Filesystem access is constrained by a sandbox module, and network targets are constrained by two YAML files: allow.yaml declares what a session is authorised to reach, and out-of-scope.yaml is enforced, so a command aimed at a denied host is blocked before it executes. Deny always beats allow. Both files are read from the working directory first, then from a user-level directory, which lets a project carry its own boundary.
Seventeen upstreams, one loop
Lanthorn is not tied to one vendor. Seventeen sources are wired up and switched with a command, and the choice is remembered between sessions. Each endpoint declares its own protocol, so a provider that speaks the Anthropic Messages shape natively is called directly, while an OpenAI-compatible one goes through the translation layer. The model API is a detail of the upstream, not of the agent.
It also speaks the Model Context Protocol over both transports, standard input and streamable HTTP, so external tools can be attached to a session. A broken server does not take the others down, and every MCP call asks before it runs.
The guard is in the harness
The security work is the part of the project I would point at first. The osint workflow runs recon playbooks and archives a report. The payload workflow covers thirty-eight extensions and pins the generator’s known failure modes rather than hoping. The crack rate table was measured on the hardware of the day instead of copied from a tool’s optimistic figure, and the README says which is which.
The honest edge is where the README spends its careful sentences. The allow-list is an arming mechanism, not a wall. The deny-list is a check on a command as written, not a sandbox. Free proxies see traffic in the clear. Those statements are in the documentation because an agent that touches a network has to be clear about exactly what it bounds.
What it ships with
The installer also provides zynu-claude, a wrapper around the claude command that points it at alternative providers, with its own suite of 264 tests. Lanthorn itself is GPL-3.0, and the terminal interface, the tool registry and the mode system are written in Python and Shell.
- 01
Its own agent loop, every step visible
Your prompt goes to the upstream, the returned tool call is executed, and the result is fed back until the turn ends. Each call renders as a header, a caption and a framed output preview, and edits arrive as a unified diff before they land.
- 02
Seven modes enforced by tool removal
A tool a mode disallows stops existing for that session, so plan mode has no way to write a file. The armed modes turn the header red and change how a refusal is handled, with the mode shown in the interface.
- 03
A two-file network scope guard
One file declares the targets a session is authorised to reach and the other is enforced, so a command aimed at a denied host is blocked before it runs. Deny always beats allow, and both are picked up from the project first.
- 04
Seventeen upstreams, chosen per endpoint
The model provider is switched with a command and remembered. Each endpoint declares its own protocol, so a natively shaped provider is called directly and an OpenAI-compatible one is translated by the harness.
- 05
MCP over both transports
External tools attach over standard input and streamable HTTP, tools are namespaced by server, every call asks first, and one broken server does not take the others down.
- 06
Security workflows with mechanical guards
Recon playbooks archive a report, the credential workflow enforces an attempt interlock, and the payload workflow pins its generator's known failures rather than hoping they do not happen.

- Python
- Shell
- PowerShell
- Batchfile
Taken from the repository. These are the things the project says it does not do, or the places it can fail.
- The allow-list arms a session and stops repeated prompts. It is not a safety control on its own; the deny-list is what stands between the agent and an arbitrary host.
- The deny-list reads a command as written. A target assembled at runtime, or reached through an unlisted redirect, is not seen.
- It pulls and runs code from the configured origin by default, which is only as safe as the remote you point it at. The update can be turned off.
- It ships no provider key. Every key-gated route needs your own credential before the first turn.
- The wording of the blackhat prompt is not the enforcement. The scope guard and the harness are the bounds.
- README.md
- LICENSE
- pyproject.toml
- lanthorn/agent.py
- lanthorn/sandbox.py
- lanthorn/scope.py
- CHANGELOG.md
Counts, versions and licences on this page were read from the repository at the date of writing. If a page and the repository disagree, the repository is correct. Found an error? Open an issue.