Lgcode — Design skill for Claude Code
A Claude Code-style terminal coding agent built as a LangGraph StateGraph.
How to install Lgcode
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open krishanr/lgcode and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Lgcode does
A Claude Code-style terminal coding agent built as a LangGraph StateGraph.
Alternatives in Design
- Poco Claw — A more beautiful and easier-to-use alternative to OpenClaw 1.3k ★
- UI Skills — A growing set of skills to polish interfaces built by agents 1k ★
- Scaffold Project — Scaffold a new design-product project that matches the recommended Claude Code layout (the reference structure 781 ★
README
lgcode — a Claude Code-style coding agent on LangGraph
A terminal coding agent built as a LangGraph `StateGraph`: Claude reads, searches and edits your code, runs shell commands with your permission, tracks a todo list, and delegates broad searches to a read-only sub-agent.
START ─► agent ──(tool calls?)──► tools ─┐
▲ │ no │
│ ▼ │
│ END │
└────────────────────────────┘
Install & run
pip install -e .
export ANTHROPIC_API_KEY=sk-ant-...
lgcode # interactive REPL in the current directory
lgcode "add type hints to utils.py" # start with a prompt
lgcode -p "summarize this repo" # one-shot, prints the answer (no prompts; auto mode)
lgcode --mode plan -C ~/proj # read-only mode in another directory
Model: `-m ` or `$LGCODE_MODEL` (default `claude-sonnet-5-5`).
What maps to what
| Claude Code feature | Here |
|---|---|
| Agent loop | agent node (model with bound tools) ⇄ tools node, conditional edge on tool_calls |
| Read / Write / Edit / Bash / Glob / Grep | lgcode/tools.py — exact-string edits, unique-match rule, output truncation, ripgrep |
| "Read before edit" | read_files in graph state; edits to unread existing files are refused |
| Permission prompts | interrupt() in the tools node → CLI asks → Command(resume=...) |
| Permission modes | /mode ask (default), auto (no prompts), plan (read-only) |
| "Always allow", deny with feedback | answer a, or type instructions instead of n |
| TodoWrite | todo_write tool → todos in state, re-shown to the model every turn |
| Task / sub-agents | task tool runs a separate read-only graph and returns its report |
| CLAUDE.md | AGENTS.md, CLAUDE.md or LGCODE.md in the project root goes into the system prompt |
| /compact, /clear | summary carried into a fresh thread / new thread |
| Streaming | `stream_m |
Related Skills
Langstage CLI
The terminal stage for your LangGraph agent — a Claude Code-style CLI for any CompiledGraph
AyhanX Agent
🧠🤖 A premium Claude Code–style terminal client for DeepSeek — streaming, agent mode, built-in tools, and zer
Swift Claude Code
A Swift reimplementation of a Claude Code-style coding agent, built stage by stage to explore what makes codin
Verilog Generator
Claude Code skill for generating synthesizable Verilog-2005 modules from natural language, with built-in self-
Summonbar
Raycast-style macOS launcher with coding agents (Claude Code, Codex, …) built in
Facode
FA Code is a Claude Code–style CLI coding agent with [REA (Reverse Engineering Anything)].it's an autonomous t
Related Agents
10x
10x is a terminal-based CLI coding agent (installed via npm install -g 10x-cli) built around the observation t
Crush
The glamourous AI coding agent for your favourite terminal.
Oh My Pi
AI coding agent for terminal with hash-anchored edits, LSP, subagents and more