/lastlight:lastlight-debugfrom Last Light
Debugs a running Last Light instance via its admin API using the `lastlight` CLI. Inspects workflows, logs, sessions, crons, approvals, and stats without SSH.
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.
None: SKILL.md is the whole skill.
Read a running instance's state over its admin API with the lastlight CLI — no
SSH, no poking SQLite or jsonl files on the box. Every command takes --json
for machine-parseable output; prefer it when you need to extract fields.
This is the operator counterpart to lastlight-client (which logs the CLI
in). If lastlight status errors with no saved config, run lastlight-client
first.
The CLI talks to whatever instance you logged into (saved in
~/.lastlight/config.json). Confirm you're pointed at the right one and the
token is valid:
lastlight status # instance URL, server health, token validity
If the token is missing/expired, log in (lastlight login https://<instance>,
or --password for headless) — that's the lastlight-client flow. For
one-off targeting without saving, pass --url / --token on any command, or
set LASTLIGHT_URL / LASTLIGHT_TOKEN (env wins over the saved config).
lastlight workflow list --status failed # recent failures
lastlight workflow list --status active # running + paused now
lastlight workflow list --workflow pr-review --limit 50
Copy the run ID from the table. The PHASE column names the phase the run is
at (or failed on).
lastlight workflow log <run-id> # run header + per-phase table (✓/✗/…, duration, session id, error)
lastlight workflow log <run-id> --follow # then tail the current phase live
The phase table shows which phase failed, its error snippet, and the SESSION
id you need for the transcript. A phase stuck at … never finished (still
started); a ✗ finished failed.
If it failed on a transient/infra hiccup, re-run from the failed phase:
lastlight workflow retry <run-id> # resumes from the phase that failed (same workspace/context)
Not the same thing as pr retry. workflow retry resumes one FAILED run.
When the bot correctly gave up on a pull request — requires-human applied,
one comment explaining what it tried, no failed run to resume — the budgets are
what stand in the way, and moving them is pr retry:
lastlight pr retry <owner/repo#N> # re-arm the attempt counter AND the cost window
lastlight pr retry <owner/repo#N> arm64 was flaky # the reason reaches the next attempt as a note
Same act as commenting @<bot> retry on the PR or removing requires-human.
It exits non-zero (and does nothing) if the PR carries the lastlight-ignore
hold label, if a run already owns the PR, or if the PR could not be read.
lastlight session list # recent sandbox sessions (TYPE, MODEL, LIVE)
lastlight session log <session-id> # full transcript
lastlight session log <session-id> --follow # live tail (SSE) of an in-flight phase
lastlight logs search "ECONNREFUSED" # errors ledger (default)
lastlight logs search "rate limit" --scope all # errors + transcript content
lastlight logs search "could not clone" --scope messages --limit 20
--scope errors (default) matches the executions ledger (error/skill/repo);
messages greps recent session transcripts; all does both.
When the workflow + session views aren't enough — a crash before any session was
written, a sidecar misbehaving, harness boot errors — read the actual container
logs (docker logs) over the API:
lastlight server list # the lastlight-* containers + status
lastlight server logs # the agent harness (default), last 200 lines
lastlight server logs --tail 500 --since 10m
lastlight server logs --follow # live tail (Ctrl-C to stop)
lastlight server logs coredns-strict # a specific sidecar by service or container name
Scheduled workflows (health scans, PR-review fanout, dependabot merge, …):
lastlight cron list # schedule, next/last run, status
lastlight cron trigger <name> # run one now (fire-and-forget; handy for repro)
lastlight cron disable <name> # pause a noisy/broken job (idempotent)
lastlight cron enable <name> # re-enable it
lastlight approvals list # paused gates waiting on a human
lastlight approvals approve <id> --reason "looks good"
lastlight approvals reject <id> --reason "wrong approach"
lastlight stats # totals + per-skill success/fail
lastlight stats --daily 14 # last 14 days of cost/tokens
lastlight stats --hourly 24 # last 24 hours (spot a spike / stuck loop)
--json to any command to pipe into jq (e.g.
lastlight workflow list --status failed --json | jq -r '.workflowRuns[].id').lastlight <cmd> help (e.g.
lastlight cron help); the bare lastlight --help is a compact index.workflow list --status failed → workflow log <id> → grab the
failed phase's session → session log <session-id> → if it's a recurring
symptom, logs search "<error text>" to see how often it happens.approvals approve/reject, cron enable/disable/trigger, workflow retry, pr retry, and the trigger commands
(build/triage/review/…) — plain debugging never mutates the box.You've located the failing run/phase and its cause — named the phase, quoted the
error, and pointed at the session transcript (or server log) that shows it — and,
if asked, kicked off a workflow retry or resolved the approval. Report findings
concisely; don't dump whole transcripts.
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-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-overlayCreate or customize a Last Light deployment OVERLAY (the private instance/ repo) — scaffold it, then fork built-in workflows, prompts, skills, or the agent persona (agent-context) so a deployment can override them. Use when the user wants to "create a Last Light overlay / instance repo", "customize / fork a workflow", "override a prompt or skill", "change the agent's persona/soul/rules", or tune a deployment's config without forking the whole codebase. For first-time server install use lastlight-server./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