lastlight-debug

lastlight-debug is a skill for Claude Code from nearform/lastlight. It costs 138 tokens per session (1,637 once invoked), scanned A, original, MIT.

A troubleshooting guide for a running Last Light server, using the Last Light command-line client to inspect workflows and logs through the server's admin interface.

In plain words
What is it for?
Check server health, list active or failed workflows, inspect run details, search logs, and investigate why an automated task did not complete.
Why use it?
It helps find failed, paused, or stuck agent runs without logging in to the server host or reading its internal files directly.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the lastlight plugin — 7 skills shipped together

Good fit Check server health, list active or failed workflows, inspect run details, search logs, and investigate why an automated task did not complete.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nearform/lastlight/lastlight-debug
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nearform/lastlight --skill lastlight-debug
Clone the repo
git clone --depth 1 https://github.com/nearform/lastlight

Made for: Claude Code.

Or install lastlight, the plugin that ships this one along with the rest of its 7 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lastlight-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/nearform/lastlight/lastlight-debug/github.svg)](https://agentmods.dev/skills/nearform/lastlight/lastlight-debug)
Your own site
<a href="https://agentmods.dev/skills/nearform/lastlight/lastlight-debug"><img src="https://agentmods.dev/badge/skills/nearform/lastlight/lastlight-debug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lastlight-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/nearform/lastlight/lastlight-debug"><img src="https://agentmods.dev/badge/skills/nearform/lastlight/lastlight-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 138 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,637 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00138 $0.01637
Opus 5.5 $0.00055 $0.00655
Sonnet 5.5 $0.00028 $0.00327
Haiku 4.5 $0.00014 $0.00164

Measured 3mo ago against content hash 84bae860139d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lastlight-debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/lastlight/skills/lastlight-debug/SKILL.md · 150 lines

How it starts

The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Debug a Last Light instance via the CLI

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.

1. Connect

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).

2. Find the broken run

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).

3. Inspect the run's phases

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:

Read the full file on GitHub · 150 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 150 lines · 138 tokens per session scan A 84bae860139d

Subscribe to this mod's changes

lastlight-debug is a skill published in the GitHub repository nearform/lastlight (51 stars, last pushed today), licensed MIT. It adds 138 tokens to every session and 1,637 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

lastlight-debug compared with skills from other repositories

lastlight-debug next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lastlight-debugnearform/lastlightSkill51todayMITA138Claude Code
shapsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A109Claude Code, Codex
torch-geometricsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A41Claude Code, Codex
pymc-bayesian-modelingsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A48Claude Code, Codex
umap-learnsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A43Claude Code, Codex
rowansynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A115Claude Code, Codex
arboretosynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A66Claude Code, Codex