Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/TheLobbi/claudenpx agentmods add commands/thelobbi/claude/nodeWrote 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.
[](https://agentmods.dev/commands/thelobbi/claude/node)<a href="https://agentmods.dev/commands/thelobbi/claude/node"><img src="https://agentmods.dev/badge/commands/thelobbi/claude/node/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.
<a href="https://agentmods.dev/commands/thelobbi/claude/node"><img src="https://agentmods.dev/badge/commands/thelobbi/claude/node.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.04136 |
| Opus 5.5 | $0.00014 | $0.01654 |
| Sonnet 5.5 | $0.00007 | $0.00827 |
| Haiku 4.5 | $0.00003 | $0.00414 |
Grade A, and why
lg:node 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 731 lines — stays where its author put it; the contents beside it link to each section on GitHub.
lg:node - Node Management
Manage nodes in LangGraph graphs including creation, connection, and modification of various node types.
Workflow Steps
Add Node
-
Validate Input
- Check project structure
- Verify node name is unique
- Validate node type
-
Generate Node Code
- Create node function/class
- Setup node configuration
- Add error handling
- Configure retries (if enabled)
-
Update Graph
- Add node to graph
- Configure interrupts (if specified)
- Update state schema (if needed)
-
Generate Tests
- Create node test file
- Add unit tests
- Add integration tests
-
Update Documentation
- Add node to README
- Document node behavior
- Update architecture diagram
Connect Nodes
-
Validate Connection
- Check source and target exist
- Verify no circular dependencies (for non-conditional edges)
- Validate edge type
-
Add Edge
- Add regular edge or conditional edge
- Update routing logic
- Configure edge conditions
-
Update Tests
- Add edge tests
- Test routing logic
-
Update Documentation
- Update graph visualization
- Document flow
Remove Node
-
Analyze Dependencies
- Find all edges to/from node
- Check for dependent nodes
- Identify routing impacts
-
Remove Components
- Remove edges
- Remove node from graph
- Remove node file
- Clean up routing
-
Update Tests
- Remove node tests
- Update integration tests
-
Update Documentation
- Remove from README
- Update diagrams
Node Types
LLM Node
Language model processing node.
from langchain_anthropic import ChatAnthropic
from langchain_core.messages import SystemMessage
def llm_node(state: State):
"""LLM processing node."""
llm = ChatAnthropic(model="claude-sonnet-5")
system_prompt = "You are a helpful assistant."
messages = [SystemMessage(content=system_prompt)] + state["messages"]
response = llm.invoke(messages)
return {"messages": [response]}
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.
- 1mo ago First seen · 731 lines · 34 tokens per session scan A c95551c8b370
lg:node is a command published in the GitHub repository TheLobbi/claude (21 stars, last pushed 6d ago), licensed MIT. It adds 34 tokens to every session and 4,136 once invoked, about $0.0001 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-09-05.
Other commands, from other repositories
verify
Grade work that already exists and decide whether it can merge. Runs the project's current unit, integration, and E2E suites plus security scanning and type checking, scores every dimension 0-10, and returns a merge verdict with a VERIFIED-vs-CLAIMED evidence manifest. Writes no test files and edits no source. Use…
cover
Generate tests that do not exist yet. Analyzes coverage gaps, then writes and runs new test files across three tiers (unit, integration via testcontainers, Playwright E2E), one test-generator agent per tier, healing failures for up to 3 iterations. Use when code has no tests or when raising coverage after…
session
Complete guide to managing pair programming sessions.
test-tdd
Run when user calls /test-tdd. Scans modified files, locates their corresponding unit/integration test suites, and runs them.
kill-mutants
Analyze surviving mutants from a mutation testing run and write targeted unit tests to kill them. Re-runs mutations to confirm kills.
story-and-test
For the component(s) in scope.