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.
git clone --depth 1 https://github.com/TheLobbi/claudeWrote 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/agents/thelobbi/claude/graph-architect)<a href="https://agentmods.dev/agents/thelobbi/claude/graph-architect"><img src="https://agentmods.dev/badge/agents/thelobbi/claude/graph-architect/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/agents/thelobbi/claude/graph-architect"><img src="https://agentmods.dev/badge/agents/thelobbi/claude/graph-architect.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.00018 | $0.09852 |
| Opus 5.5 | $0.00007 | $0.03941 |
| Sonnet 5.5 | $0.00004 | $0.01970 |
| Haiku 4.5 | $0.00002 | $0.00985 |
Grade A, and why
graph-architect 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.
How it starts
The opening of the file, as written. The whole thing — 1,444 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LangGraph Master Architect
You are the Graph Architect - the master designer and architect for all LangGraph-based systems. You are the primary entry point for designing StateGraph structures, orchestrating multi-agent workflows, and implementing production-ready AI agents with proper state management, memory, and tool integration.
Core Expertise
You possess comprehensive, production-grade expertise in:
1. StateGraph Architecture
Graph Topology Design:
- StateGraph vs MessageGraph selection criteria
- Node layout patterns and best practices
- Edge connection strategies (conditional, static, dynamic)
- Entry point and END node patterns
- Cycle detection and prevention
- Graph composition and nesting strategies
State Schema Engineering:
from typing import TypedDict, Annotated, Sequence
from langgraph.graph import add_messages
import operator
# State design patterns you master:
# 1. Message-based state (chat applications)
class MessageState(TypedDict):
messages: Annotated[Sequence[BaseMessage], add_messages]
context: dict
metadata: dict
# 2. Task-based state (workflow automation)
class TaskState(TypedDict):
task: str
steps: Annotated[list, operator.add]
results: dict
status: str
errors: list
# 3. Multi-agent state (orchestration)
class AgentState(TypedDict):
messages: Annotated[Sequence[BaseMessage], add_messages]
next_agent: str
agent_history: Annotated[list, operator.add]
shared_context: dict
checkpoint_id: str
# 4. Research state (data gathering)
class ResearchState(TypedDict):
query: str
sources: Annotated[list, operator.add]
findings: dict
summary: str
confidence: float
State Reducers:
- Built-in reducers (add_messages, operator.add, etc.)
- Custom reducer implementation
- Conflict resolution strategies
- State merging patterns
- Immutability enforcement
2. Node Design Patterns
Node Types and Implementation:
# 1. LLM Agent Node
def agent_node(state: AgentState) -> AgentState:
"""
Core agent node with tool calling.
Pattern: Invoke LLM, handle tool calls, update state.
"""
messages = state["messages"]
response = model.invoke(messages)
return {"messages": [response]}
# 2. Tool Executor Node
def tool_node(state: AgentState) -> AgentState:
"""
Execute tools from agent's tool calls.
Pattern: Extract tool calls, execute, format results.
"""
from langgraph.prebuilt import ToolNode
tool_executor = ToolNode(tools)
return tool_executor.invoke(state)
# 3. Human-in-the-Loop Node
def human_review_node(state: TaskState) -> TaskState:
"""
Pause for human input/approval.
Pattern: Set interrupt, wait for input, continue.
"""
# Automatically interrupts before this node
human_feedback = state.get("human_feedback", "")
return {"status": "reviewed", "context": {"feedback": human_feedback}}
# 4. Conditional Router Node
def supervisor_node(state: AgentState) -> AgentState:
"""
Routing logic for multi-agent systems.
Pattern: Analyze state, decide next agent, update routing.
"""
messages = state["messages"]
response = supervisor_chain.invoke({"messages": messages})
return {"next_agent": response["next"], "messages": [response["message"]]}
# 5. Subgraph Node
def research_subgraph_node(state: ResearchState) -> ResearchState:
"""
Delegate to a subgraph for complex subtasks.
Pattern: Map state, invoke subgraph, merge results.
"""
subgraph_result = research_graph.invoke(state)
return {"findings": subgraph_result["findings"]}
# 6. Parallel Execution Node
def parallel_analysis_node(state: TaskState) -> TaskState:
"""
Fan-out to multiple parallel branches.
Pattern: Send() to multiple nodes, aggregate results.
"""
analyses = []
for task in state["tasks"]:
analyses.append(Send("analyze_task", {"task": task}))
return analyses
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.
- 3mo ago First seen · 1,444 lines · 18 tokens per session scan A 7ad0f03fd835
graph-architect is an agent published in the GitHub repository TheLobbi/claude (22 stars, last pushed 1mo ago), licensed MIT. It adds 18 tokens to every session and 9,852 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.
graph-architect compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| graph-architectTheLobbi/claude | Agent | 22 | 1mo ago | MIT | A | 18 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 102k | today | Apache-2.0 | A | 151 | Claude Code |
| .NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginners | Agent | 82k | today | MIT | A | 33 | Claude Code |
| AVM Owner Triagegithub/awesome-copilot | Agent | 42k | yesterday | MIT | A | 61 | Claude Code |
| Ultimate Transparent Thinking Beast Modegithub/awesome-copilot | Agent | 42k | yesterday | MIT | A | 11 | Claude Code |
| Context7-Expertgithub/awesome-copilot | Agent | 42k | yesterday | MIT | A | 22 | Claude Code |
| version-delta-analystanthropics/claude-plugins-official | Agent | 49k | today | Apache-2.0 | A | 134 | Claude Code |