lastlight-server

lastlight-server is a skill for Claude Code, Codex from nearform/lastlight. It costs 109 tokens per session (2,103 once invoked), scanned B, original, MIT.

A deployment guide for running a Last Light server, which hosts the GitHub maintenance agent and its supporting Docker services. Docker is a tool for running applications in isolated containers.

In plain words
What is it for?
Check prerequisites, configure the GitHub App and model provider, choose managed repositories, and launch the server with Docker Compose.
Why use it?
It organizes the setup requirements and configuration needed before the agent can manage selected GitHub repositories.

Skill for Claude CodeCodex

Part of the lastlight plugin — 7 skills shipped together

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.

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

Made for: Claude Code, Codex.

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-server

README.md
[![agentmods](https://agentmods.dev/badge/skills/nearform/lastlight/lastlight-server.svg)](https://agentmods.dev/skills/nearform/lastlight/lastlight-server)
Your own site
<a href="https://agentmods.dev/skills/nearform/lastlight/lastlight-server"><img src="https://agentmods.dev/badge/skills/nearform/lastlight/lastlight-server.svg" alt="Measured on agentmods" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,103 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
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 $0.00109 $0.02103
Opus 5 $0.00055 $0.01052
Sonnet 5 $0.00022 $0.00421
Haiku 4.5 $0.00011 $0.00210

Measured 5d ago against content hash 8fc6124786f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

lastlight-server scanned grade B with 2 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 5d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

1. `mkdir -p instance/secrets && chmod 700 instance/secrets`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsS http://127.0.0.1:8644/health && echo " ← healthy"
plugins/lastlight/skills/lastlight-server/SKILL.md · 160 lines

How it starts

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

Install & configure a Last Light server

A Last Light server runs the agent and a docker-compose stack on a host. It needs: Docker, a GitHub App (so it can act on repos), a model provider API key, and a list of repos it's allowed to manage. Configuration lives in a private overlay at instance/ (a config.yaml plus secrets/.env + secrets/app.pem).

Your job: gather the inputs, get the working directory in place, write the config, then build and launch. Prefer the deterministic file-writing path below (fully automatable) over the interactive wizard.

1. Check prerequisites

Run these and report anything missing before continuing:

docker info >/dev/null 2>&1 && echo "docker: ok" || echo "docker: NOT running"
git --version; node --version
command -v lastlight >/dev/null && lastlight --help >/dev/null 2>&1 && echo "lastlight: installed" || echo "lastlight: missing"
  • Docker must be running.
  • If lastlight is missing: npm i -g lastlight.

2. Gather inputs from the user

Ask for each of these (don't guess). Group the questions; explain what each is for.

Required

  • GitHub App — App ID, Installation ID, and the path to the App's private key .pem file. (If they don't have a GitHub App yet, point them at GitHub → Settings → Developer settings → GitHub Apps; it needs webhook + repo contents/issues/pull-requests/checks permissions, plus workflows (read & write) so it can merge/push PRs that touch .github/workflows/ — e.g. dependency PRs bumping GitHub Actions versions. Recommend actions (read) too — a different permission from workflows: it lets the fix workflow read the actual Actions job logs instead of only check annotations. It is optional, so an app without it still works; the CI evidence is just weaker, and the prompt says so. Recommend commit statuses (read) as well — again distinct from checks: it covers the classic statuses external CI posts (CircleCI, Jenkins), and without it CI is judged on check runs alone. They install it on their repos to get the Installation ID.)
  • Domain — the public hostname for webhooks/dashboard, e.g. lastlight.example.com. Ask whether to use the bundled Caddy for automatic TLS (default yes). The GitHub App webhook URL will be https://<domain>/webhook.
  • Managed repos — one or more owner/repo the bot is allowed to act on. The bot ignores any repo not listed.
  • State databaseSQLite (recommended, the default) or an external Postgres. SQLite is a file in the agent-data volume with nothing to run; answering it writes no config at all, which is deliberate (the slot resolving by absence is what lets STATE_DIR move the file). Choose Postgres only if the user already has a server — then they supply a postgres://user:pass@host:port/db URL, which the wizard writes to the gitignored instance/secrets/.env and never to instance/config.yaml (that file becomes a GitHub repo at the end of setup). The driver is detected from the host, not asked (*.neon.tech → Neon's serverless driver, else node-postgres). The wizard only TCP-probes the host; run lastlight server db check after the build for the full credential check. An existing SQLite deployment can move across later with lastlight server db migrate — no need to decide now.
  • Model — a provider/model string (default anthropic/claude-sonnet-4-6), plus the matching provider's API key. Last Light is multi-provider: the provider/ prefix picks the provider and the model id follows, e.g. anthropic/claude-sonnet-4-6, openai/gpt-5.5, google/gemini-2.5-pro, openrouter/anthropic/claude-sonnet-4.5. Set only the one API-key env var that matches the provider you chose. Common ones:
    • anthropic/…ANTHROPIC_API_KEY (sk-ant-…)
    • openai/…OPENAI_API_KEY (sk-…)
    • openrouter/…OPENROUTER_API_KEY (sk-or-…) — aggregator, reaches Anthropic/Google/xAI/… models through one key
    • google/…GEMINI_API_KEY, mistral/…MISTRAL_API_KEY, groq/…GROQ_API_KEY, xai/…XAI_API_KEY, deepseek/…DEEPSEEK_API_KEY, and more (Cerebras, Hugging Face, Moonshot, NVIDIA, Fireworks, Together, Z.AI, Kimi, MiniMax).

Read the full file on GitHub · 160 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 160 lines · 109 tokens per session scan B 8fc6124786f5

Subscribe to this mod's changes

lastlight-server is a skill published in the GitHub repository nearform/lastlight (22 stars, last pushed 8d ago), licensed MIT. It adds 109 tokens to every session and 2,103 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories