/lastlight:lastlight-overlayfrom Last Light
Scaffolds and customizes a Last Light deployment overlay — fork workflows, prompts, skills, or agent persona without forking the whole codebase.
Ships in Last Light. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Last Light keeps per-deployment customization in a private overlay at
instance/, layered over the packaged defaults at startup. The overlay can hold
config.yaml, secrets/, and overrides of any asset — workflows/,
workflows/prompts/, skills/, agent-context/. An overlay copy shadows the
built-in by logical name, so you only fork what you want to change.
These are host-local file operations on the working directory (resolved from
--home → LASTLIGHT_HOME → saved serverHome → ~/lastlight).
lastlight server setup
This scaffolds/adopts the working directory: clones the core repo if needed, then
creates a fresh overlay (scaffold + optional private gh repo create) or
clones an existing overlay repo — your choice at the prompt. It also symlinks
instance/docker-compose.override.yml and saves the working dir for later
lastlight server … commands.
Read references/overlay-layout.md for the full directory shape and how the
layering/merge rules work (arrays replace, maps deep-merge, overlay wins by
name).
Edit instance/config.yaml to set managedRepos, and optionally override
models, variants, routes, approvals, disabled.*. Secrets stay in
instance/secrets/.env (never in config.yaml).
Two halves — the credential (env) and the model choice (config):
Provider API key → instance/secrets/.env. Set the key matching the
provider you'll use, e.g. ANTHROPIC_API_KEY=… (or OPENAI_API_KEY,
OPENROUTER_API_KEY, … — see the repo's src/providers.ts for the full
registry). Keys are env-only, never in config.yaml.
Model choice → config.yaml models: map. default is the model every
agent phase uses unless overridden; add per-task keys to override individual
phases or the cheap helpers:
models:
default: anthropic/claude-sonnet-5-5 # every phase, provider/model form
architect: anthropic/claude-opus-4-8 # a specific phase
classifier: anthropic/claude-haiku-5-5 # the intent-routing helper
screener: anthropic/claude-haiku-5-5 # the prompt-injection screener
Keys are provider/model strings. A per-task entry wins over default.
classifier / screener are the cheap one-shot helpers — when unset they
fall back to the first configured provider's fast model (Anthropic Haiku when
ANTHROPIC_API_KEY is set), not default, so routing stays cheap unless
you deliberately pin it. variants: sets reasoning effort per task the same
way. See references/overlay-layout.md.
Use lastlight fork — it copies a built-in into instance/ so your edited copy
shadows the default. Read references/forking.md for exactly what each fork
copies and the editing workflow.
No core checkout needed. The defaults it forks from ship inside the
lastlightpackage, so this works from any overlay — including a Last Light Evals workspace (run it from the workspace root to target./instance, or from inside./instance). You only needlastlight server setup(which clones core) when you're standing up a deployment, not to fork into an existing overlay.
lastlight fork # list forkable workflows + agent-context + classifier (marks what's already forked)
lastlight fork <workflow> # copy a workflow YAML + every prompt & skill its phases reference
lastlight fork agent-context # copy soul.md / rules.md / security.md (the persona)
lastlight fork agent-context soul.md # just one persona file
lastlight fork classifier # copy the base intent-classifier prompts (classifier.md + classify-adds-info.md)
# add --force to overwrite an existing overlay copy; --home <dir> to target a specific working dir
Routing / the intent classifier. The classifier prompt is composed from a forkable base (
workflows/prompts/classifier.md) plus aclassification:block in each workflow YAML. To retune how free-text is routed, eitherfork classifierand edit the base, or edit a forked workflow'sclassification:block. A new overlay workflow that declares its ownclassification.intentbecomes routable with no core change — the classifier learns the category and the router routes it. Seereferences/forking.md.
Then edit the copied files under instance/….
lastlight server restart agent — no image rebuild.lastlight server status # shows forked/overridden assets + version drift
lastlight server restart agent
The overlay exists with the intended config.yaml and any forked assets under
instance/, lastlight server status lists the overrides, and the agent has
been restarted to apply them. Report which assets were forked and where they live.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nearform/lastlight --plugin lastlight7 skills in this plugin
/lastlight-clientInstall the `lastlight` CLI and connect it as a CLIENT to an existing Last Light server — log in, save the token, and verify the connection. Use when the user wants to "connect / point my lastlight CLI at a server", "log in to Last Light", "set up the lastlight client", or run lastlight commands against a remote instance. For standing up the server itself use lastlight-server; for editing a deployment's config use lastlight-overlay./lastlight-debugDebug a running Last Light instance over its admin API with the `lastlight` CLI — no SSH. Use when the user wants to "look at / debug a failed or stuck workflow", "why didn't the bot do X", "check a bad agent run / phase error on <instance>", "tail a session", "search the logs", "read the server/docker logs", "list/trigger a cron", "resolve an approval", or "check stats/cost" against a deployed server. Needs a CLI already connected (see lastlight-client to log in). For standing up the server use lastlight-server; for editing config/workflows use lastlight-overlay./lastlight-evalsScaffold, configure and run a Last Light EVALS workspace — the harness that runs Last Light's real workflows against a mocked GitHub and grades them deterministically. Use when the user wants to "set up / scaffold Last Light Evals", "create an evals workspace or instance", "run evals", "compare models", or author new eval cases — including "create an eval dataset/case from this PR/issue <github url>" and "create a PR-review eval dataset from these gold PRs" (triage / code-fix / pr-review instances, via `add-case --pr <url> --review|--code-fix` / `--issue`). GitHub is mocked when running, so no real GitHub token is needed — only a model provider API key (the one exception is `add-case`, which reads real PRs/issues via `gh`)./lastlight-evals-loopDrive a Last Light EVAL toward a target score with a disciplined, anti-gaming improvement loop — run → mine failures → propose candidate fix(es) → re-measure → keep the best or revert → repeat. Use when the user wants to "improve / raise the pr-review F1", "make the reviewer better against the eval", "close the loop on evals", "iterate on prompts/skills to pass more cases", or "tune the workflow to hit a score target". The loop diagnoses on a TRAIN split and validates on a BLIND held-out split so fixes must generalize, not overfit; it prefers generic overlay prompt/skill edits, and stops for human sign-off before editing any gold answer. For a one-off run/compare use lastlight-evals; to hand-fork a workflow/prompt use lastlight-overlay. Needs an already-scaffolded evals workspace (lastlight-evals) with a pr-review dataset./lastlight-guideOrientation & router for the Last Light skills. Use ONLY when the user has NOT named a concrete Last Light task — i.e. they're unsure which skill/flow they need, ask "what can Last Light do / where do I start", say "help me with Last Light" with no specific goal, or want a guided tour across server / client / overlay / debug / evals. Do NOT use when the ask already names a task — "set up/deploy a server" → lastlight-server, "connect/log in my CLI" → lastlight-client, "customize a workflow/prompt/persona/config" → lastlight-overlay, "debug a failed/stuck workflow or run on an instance" → lastlight-debug, "run evals / compare models / author a case / build a PR-review dataset" → lastlight-evals, "iteratively improve an eval toward a target score" → lastlight-evals-loop: invoke that skill directly. This skill only routes and, when the goal is ambiguous, asks. Also invocable as /lastlight-guide./lastlight-serverInstall and configure a Last Light SERVER — the GitHub maintenance agent plus its docker-compose stack — on a host. Use when the user wants to "set up / install / deploy / stand up a Last Light server or instance", configure its GitHub App, models, managed repos, or domain, or get the agent running for the first time. Drives the `lastlight` CLI; for connecting an existing CLI to a server use lastlight-client instead, and for editing a running deployment's config use lastlight-overlay.Other plugins' skills for the same job