lexi

lexi is a Claude Code mod by savinofiore that test-first workflow for coding agents, without the spec ceremony. A PreToolUse hook keeps source edits behind a mirror test and protects existing assertions; the flow drives one vertical.

Updated 2026-10-11

What is lexi?

lexi is a Claude Code mod by savinofiore that test-first workflow for coding agents, without the spec ceremony. A PreToolUse hook keeps source edits behind a mirror test and protects existing assertions; the flow drives one vertical. It is listed under Cost & usage and has 4 GitHub stars.

TypeClaude code mod
Authorsavinofiore
Repositorysavinofiore/lexi
Popularity4 GitHub stars
CategoryCost & usage
SecurityReview before installing (60/100)
Rank#754 of 5,272 Claude Code mods; #143 in Cost & usage
LicenseMIT
Last commit2026-10-11
Hooks11 events
Seescompaction, every prompt, every tool call, subagent spawns
Draws onAbovePrompt, Pane

Is lexi safe to install?

lexi scores 60/100 on the MCPMods security check: Review before installing. Things to review: sends data over the network; reads environment variables; watches every prompt or event. It passed 4 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
Sends data over the networkReview
Starts no processesPass
Writes no files or configPass
Reads environment variablesReview
Watches every prompt or eventReview
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.now
$.clock.sleep
$.command.register
$.env.getreads env vars
$.fs.readreads files
$.http.fetchnetwork requests
$.session.model
$.state.get
$.state.set
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install lexi?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/savinofiore/lexi
    claude plugin validate ./lexi/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add savinofiore/lexi && claude plugin install lexi@lexi

Or ask Claude to set it up

Paste this into Claude Code and it installs lexi for you:

Install the "lexi" Claude Code mod from https://github.com/savinofiore/lexi. Run claude plugin validate on it first and show me what it can access before you enable it.