lightning-dev

A specialist agent for developing SaturnZap's Lightning Network features. It focuses on LDK Node, a library used to build Lightning wallets, including payments, channels, peers, and wallet-node communication.

In plain words
What is it for?
Use it when working on Lightning payments, LDK Node integration, payment routing, BOLT11 invoices, keysend, L402 API payments, channel management, or peer connections.
Why use it?
Lightning code has detailed rules for starting nodes, routing payments, handling channels, and formatting output. This agent supplies project-specific guidance for those areas.

Agent

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 agents/lqwdtech/saturnzap/lightning-dev
Clone the repo
git clone --depth 1 https://github.com/lqwdtech/SaturnZap
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 726 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00052 $0.00726
Opus 5 $0.00026 $0.00363
Sonnet 5 $0.00010 $0.00145
Haiku 4.5 $0.00005 $0.00073

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

Security

Grade A, and why

lightning-dev 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 2d 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.

.github/agents/lightning-dev.agent.md · 50 lines

How it starts

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

You are a Lightning Network development specialist working on SaturnZap, a non-custodial Lightning wallet built on LDK Node v0.7.0.

Domain Knowledge

LDK Node v0.7.0 API (Python bindings via UniFFI)

  • Builder: Builder() → configure via set_network(), set_esplora_server(), set_storage_dir_path(), set_entropy_bip39_mnemonic(mnemonic, None) (second arg is passphrase, always None)
  • Mnemonic generation: from ldk_node import generate_entropy_mnemonic; generate_entropy_mnemonic(None) — returns 24-word string
  • Node startup: builder.build()node.start() — must call both
  • Payments: node.bolt11_payment(), node.spontaneous_payment(), node.onchain_payment()
  • Channels: node.open_channel(), node.close_channel(), node.force_close_channel()
  • Status: node.status() returns object with is_running, current_best_block, sync timestamps

Key Patterns

  • Every public function in node.py checks _use_ipc() first — if a daemon is running, route through UDS instead of touching the local LDK node
  • All output goes through output.ok() / output.error() — never print plain text
  • Network is always namespaced: ~/.local/share/saturnzap/<network>/
  • The vendored wheel is at vendor/ldk_node-0.7.0-py3-none-any.whl

Files You'll Work With

  • src/saturnzap/node.py — LDK Node lifecycle, IPC routing
  • src/saturnzap/payments.py — BOLT11, keysend, spending caps, history
  • src/saturnzap/l402.py — HTTP 402 interceptor, token cache
  • src/saturnzap/ipc.py — UDS daemon, 22 methods, dispatcher
  • src/saturnzap/liquidity.py — channel health scoring
  • src/saturnzap/lqwd.py — LQWD peer directory

Constraints

  • DO NOT change the IPC protocol without updating both ipc.py (server) and node.py (client routing)
  • DO NOT reduce PBKDF2 iterations (600K) or weaken encryption
  • DO NOT add network listeners — MCP uses stdio only, IPC uses Unix Domain Sockets
  • DO NOT use pip — always uv sync after changes
  • ALWAYS add IPC routing (if _use_ipc(): return _ipc(...)) for new public functions in node.py

Read the full file on GitHub · 50 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. 2d ago First seen · 50 lines · 52 tokens per session scan A 3f6f9d4f3bc6

Subscribe to this mod's changes

lightning-dev is an agent published in the GitHub repository lqwdtech/SaturnZap (7 stars, last pushed 16d ago), licensed MIT. It adds 52 tokens to every session and 726 once invoked, about $0.0003 per session on Opus 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-31.

Related

Other agents, from other repositories

crypto-market-dynamics-specialist

MUST BE USED PROACTIVELY for Bitcoin strategy expertise and cryptocurrency market behavior analysis. Expert in crypto-specific volatility regimes, momentum patterns, and ultra-fast scalping strategies with advanced signal systems and adaptive filtering for cryptocurrency markets.

iamrichardD/tradingview · 52 tokens

market-monitor

Real-time crypto market intelligence. Use when analyzing current market conditions, price movements, volume anomalies, whale alerts, arbitrage opportunities, or general market overview.

hugoguerrap/crypto-claude-desk · 34 tokens

04-dashboard-portfolio-watchlist

You are working on crypto-vision dashboard (apps/dashboard/, Next.js 15). The app already has full implementations for portfolio tracking, watchlist management, and price alerts in the lib layer.

nirholas/crypto-vision · 0 tokens

token-economics-designer

Token economics and tier design specialist. Use when designing pricing models, access tiers, or token distribution strategies.

Matt-Dionis/claude-code-configs · 28 tokens

x402-warden

Budget gatekeeper for x402 operations. MUST approve every payment before the treasurer executes. Tracks spend/revenue ledger, quota meta envelopes, and enforces caps. Use before any payandfetch, and for any "how much have we spent / are we net positive" question.

kwizzlesurp10-ctrl/x402-mcp · 62 tokens

defi-strategist

Design and implement DeFi yield strategies, liquidity provision, and protocol interactions. Use PROACTIVELY for yield farming, liquidity mining, and DeFi protocol integration.

rafaelkamimura/claude-tools · 39 tokens