Lisa
Lisa turns a repository into a set of software factories — agent-operated production lines (Research → Plan → Implement → Verify) that build, verify, and ship software with as few humans as possible. Underneath the factories, Lisa is governance-as-code for AI-assisted software development: one set of standards, workflows, and quality gates applies identically whether the work is done by a human, by an AI agent on a laptop, or by a scheduled job — distributed to every project as a versioned dependency, and to every major coding agent platform (Claude Code, Codex, Cursor, OpenCode, Antigravity, Copilot, Devin) from one source.
How to read this README
Lisa changes frequently, so this file stays deliberately conceptual. It teaches the mental model, which is stable, and avoids the specifics that drift — exact command names, flags, file paths, supported stacks, and version-dependent behavior. Wherever you need a current, concrete answer, you'll find a Prompt for your coding agent: a question to ask Claude Code (or whichever agent you use) that reads the live repository and answers from source.
- Humans — paste the prompt into your agent instead of trusting a hard-coded list that may be stale.
- Agents — treat these prompts as instructions. Prefer discovering the current answer from the repository over asserting it from memory, and verify against source before stating it as fact. That habit is the same one Lisa enforces on all work: prove it, don't assume it.
What Lisa is
Lisa wears four faces from a single package:
- A factory operator. Scheduled intake agents watch queues of ready work, adversarially gate what enters the pipeline, and run each item through Research → Plan → Implement → Verify without a human in the loop.
- A standards engine. It applies a curated set of configs, CI workflows, git hooks, and project rules into a target repository and keeps them current as the package updates.
- An operating system for coding agents. It ships the skills, commands, agent roles, rules, and hooks that define how an AI agent investigates, builds, reviews, ships, and verifies work — and it delivers that same content to every supported agent runtime from one source.
- A configuration library. Projects can consume Lisa's linting, testing, and TypeScript presets directly, per technology stack, without adopting the rest.
All four are versioned together, so "how we build software here" upgrades by bumping one dependency.
Prompt for your coding agent
"Give me a one-paragraph tour of this repository's top-level layout: where the apply/template engine lives, where the agent plugin content is authored, and where the shared config presets are exported. Read the source and cite paths."
The factory model
Lisa's purpose is to run four factories in your project — production lines operated by agents, not people — so that non-technical people can create scalable software by describing outcomes while the factories supply the engineering discipline. Research creates PRDs. Plan turns a PRD into ordered work units. Implement turns work units into quality software — tests, code, UI, APIs, infrastructure. Verify issues a go/no-go by using the software the way a human would, and files any failures straight back into Implement as build-ready tickets, so the loop heals itself.
Humans don't work inside a factory. Handoff happens outside, at the gates: agents, humans, and automations submit inputs, and an intake agent adversarially evaluates each one — is it high-quality and unambiguous, and does the factory have the tooling and provable access to that tooling to execute it? The intake agent tries to resolve gaps itself first; what it genuinely can't resolve, it rejects and raises to a human rather than guessing.
Three loops keep the pipeline fed without anyone asking: QA explores the product like a first-time user and files bugs, Product Planning ideates PRDs, and Monitoring audits observability signals and files regressions. Everything runs on the coding agent's native scheduler, and by default the loops' outputs enter the gates pickup-ready — the adversarial intake is the quality control, not a human triager. Executed properly, end users have zero direct contact with coding agents: they see the tracker, the PRDs, and the shipped software.
Prompt for your coding agent
"Explain how this project's factory pipeline is wired right now: which automations exist and on what cadence, what each gate checks before admitting work, and where a human is still required. Read the installed automations and intake skills — don't guess."
Core principles
These are the durable ideas. Everything concrete descends from them.
Single source, many destinations. Agent instructions are authored once and compiled into runtime-specific artifacts and into each project. You never hand-edit the generated output — you edit the source and rebuild.
Prompt for your coding agent
"In this repo, which directory is the source of truth for plugin/agent content, which directories are generated artifacts, and what command rebuilds them? Show me the guard that fails CI if the artifacts drift from source."
Location-agnostic. The same rules and gates hold on a developer's workstation, in a scheduled improvement job, and in a CI workflow reacting to a PR. Only the plumbing adapts — local integrations versus REST in CI — the standards do not.
Layered quality gates. Rules load into every agent session as context; git hooks are hard stops on commit and push; agent hooks bridge an agent's actions to the project's real tooling so linting, tests, and checks actually run.
Prompt for your coding agent
"List the quality gates that would run against a change in this project — session rules, git hooks, and agent hooks — and for each, tell me whether it blocks or only warns, and how you can tell from the code."
Evidence-based verification. A task is not "done" because an agent says so. Lisa requires work to be proven with reproducible, empirical evidence — the change is exercised, the behavior observed, the proof attached to the ticket and the PR — and it enforces this with gates that are not meant to be bypassed. If you take one idea from Lisa, take this one.
For DOM-web empirical verification, projects may explicitly opt into the guarded
Kane CLI provider. It supplies a normalized live-browser result and
evidence pack while Lisa retains environment policy, the final verdict, durable evidence, and
native Playwright/Maestro regression authority.
Prompt for your coding agent
"Walk me through how this project verifies that a change actually works before it is considered complete. What evidence is required, where is it recorded, and which gate refuses to let unverified work ship?"
Governed templates. Every file Lisa distributes carries a governance intent: some are enforced and overwritten on every update, some are seeded once and then owned by the project, and some are merged so the project and Lisa both contribute. Knowing which is which tells you what you can safely edit.
Prompt for your coding agent
"For the file I want to change in my project, is it enforced by Lisa (overwritten on update), created-once (mine to edit), or merged? Read the template source and explain what will happen to my edits on the next Lisa update."
One repository per unit of work. Planning artifacts may span repositories, but anything actually built and shipped targets exactly one repository. This keeps ownership and review unambiguous.
Getting started
Setup has three layers, and conflating them is the usual mistake:
vault → machine → each repo → each other surface
Two commands do the machine-and-surface work, and neither needs a checkout —
that matters, because the surfaces most in need of setup are the ones with no
repository attached.
| Command |
Answers |
Scope |
workstation |
what binaries does this machine have |
once per machine |
environment <surface> |
which tenant, and where do its credentials go |
once per machine, and once per other surface |
environment runs where Lisa can execute and prints what to paste where it
cannot:
environment local prepares this machine
environment container an image definition and a run command
environment claude-web text for the Claude environment dialog
environment codex-cloud text for the Codex environment settings
1. The vault, once per tenant
Create the secrets, then a machine account granted only the projects agents
may read — that grant is what scopes every headless session. Annotate a secret's
note with tool: <name> where a CLI is implied (sonar, aws, gh); a session
with no checkout installs exactly what the notes name, and the whole catalogue
if they name nothing.
Issue each place its own access token, at the moment you set that place up. One
token shared across five places makes any compromise a five-place outage, and
makes every access in the audit log anonymous.
2. The machine
npx -y @codyswann/lisa@latest workstation --install --provider=bitwarden
exec $SHELL -l # ~/.local/bin on PATH
npx -y @codyswann/lisa@latest environment local --tenant=<name>
Node is the only prerequisite. workstation is the one entry point that works
before any agent or repository exists — invoking a skill needs an installed
agent, and Lisa is a devDependency so it needs a clone; both are what this
creates.
environment local prompts for the token, stores it in the OS keychain (a
0600 file where there is no keychain), materializes the credentials, and
installs the per-environment AWS profiles. Re-run it to rotate — it is not
an installer, so it will not reinstall six coding agents to replace one token.
--tenant is required because every namespace is a directory: guessing would
put one tenant's credentials where another tenant's sessions read.
Then authenticate the things that are you rather than the machine account —
gh auth login, aws configure sso, and each agent's own login.
3. Each repository
git clone … && cd …
npx -y @codyswann/lisa@latest apply # templates, hooks, workflows, agent plugins
bun install # project dependencies
npx -y @codyswann/lisa@latest sync # then set secrets.namespace
A repository only needs to say which tenant it belongs to. The credentials are
already on the machine.
Brownfield repositories then converge — see below.
4. Each other surface
Cloud environments are account-scoped and shared across every repository, so
this is once per environment rather than once per repository:
npx -y @codyswann/lisa@latest environment claude-web --tenant=<name>
Paste what it prints. Give that environment its own access token: those
dialogs store values in plain text, readable by everyone who can use the
environment.
A repository becomes usable from a cloud surface with
lisa remote-env --install, which writes two entrypoints to commit. They are
inert locally — a container that has just cloned the repository has never seen
the plugin they came from, so they have to be part of the clone.
Install Lisa as a development dependency in each project that uses it:
bun add --dev --trust @codyswann/lisa
Installing or updating the dependency changes the package and lockfile, but
leaves Lisa templates, migrations and agent configuration alone. Apply those
updates explicitly, then review and commit the resulting project changes:
lisa apply .
lisa doctor
An incompatible dependency override can stop Lisa, including doctor, from
loading. For the known minimatch / brace-expansion import failure, the CLI
reports the parent's declared range, the version Node actually resolves, and
any direct override in the current directory's package.json. It preserves the
original error and does not change dependencies. Nested selectors and unreadable
manifests remain unverified; this diagnostic is not a full lockfile audit.
Dependency-audit exceptions can be restricted to a package, affected versions,
and the lockfile paths whose risk was accepted. Prefer path scope when the
vulnerable copy belongs only to a development tool: a new vulnerable production
copy must still block delivery. Hooks, CI, and project audit commands use the
same matcher. See dependency-audit exclusions
for the file format, lockfile keys, diagnostics, and shared helper.
Clean TypeScript and CDK hosts receive the shared Node 24.21.0 LTS baseline,
Vitest and coverage-v8 5.1.0 minimums, and a Vite 8.3.3 minimum within Vite 8.
Lisa retains the TypeScript 6, ESLint 9, Knip 5, Husky 8 and Vitest 5 families.
Vitest 5 is required for npm 10: any Vitest 4 dependency crashes npm 10.9.9's
installer with Cannot read properties of null (reading 'edgesOut').
CDK applies force constructs ^10.7.2 and default aws-cdk-lib, which satisfy
the peers of aws-cdk-github-oidc 5.2.0. Lisa does not add opt-in construct
libraries such as aws-cdk-github-oidc or @aws-cdk/aws-amplify-alpha: an app
that imports one declares it, and a host that removes an unused one keeps it
removed on the next apply. Existing declarations stay host-owned, including
exact 5.2.0 and legacy v2 OIDC pins. Before migrating a v2 host, review the vendor’s
versioned API
and update its application trust configuration deliberately. Lisa generates no
OIDC constructs and does not migrate application IAM policies.
CDK applies also preserve existing package executables and advertise none for
a fresh source-only app; Lisa does not generate bin/infrastructure.js.
Applying twice with the same Lisa version keeps managed content unchanged.
Install dependencies after applying, then verify the installed versions and
lockfile alongside the host's test, typecheck and offline synth commands.
Package template ownership still applies. Explicit TypeScript Node and test-tool
defaults survive an apply, while CDK's force test tools advance to the shared
patch floor. Existing create-only workflow and Expo EAS files stay host-owned.
The managed .nvmrc supplies the shared Node runtime. Known older Lisa copies
advance with historical hash protection; unknown or newer custom bytes remain
protected. .lisaignore keeps an intentional runtime override outside Lisa
management. Review older explicit
pins and create-only workflow inputs before adopting this baseline in an
existing host. Maintainers can run bun run update-node-version after changing
the root .nvmrc to update current tracked runtime surfaces without rewriting
historical plans or generic test fixtures. The npm updater has a separately
qualified Node22.23.3 runtime, which this shared-default updater leaves alone.
Keeping generated artifacts out of Expo typechecking
New Expo projects exclude the root evidence, test-results, playwright-report,
blob-report, and coverage directories from ordinary TypeScript checks.
Existing tsconfig.local.json files stay project-owned. To adopt these
exclusions in an existing Expo project, append those five directory names to
its exclude array and retain your existing entries. Run your project's usual
typecheck after saving.
Moving an existing host to Node24
Review explicit engines.node and existing create-only workflow/EAS inputs;
Lisa seeds missing values and preserves those existing host-owned choices.
Remove .nvmrc from .lisaignore only when adopting Lisa's managed baseline.
If an unknown custom .nvmrc is preserved, deliberately select that exact file
with lisa apply . --refresh-templates=.nvmrc, then review the result. Run the
host's install, typecheck, build and tests on the selected runtime before deploy.