krishanr

Lgcode — Design skill for Claude Code

Design community

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