neuron-explorer
Qwen3.5‑4B 전용 조향형 뉴런 탐색기, 모든 MLP 뉴런을 밀어 결과를 보관·탐색
A coding agent that runs entirely on your own machine: open-weight models, up to 256K context, NVIDIA GPU or Apple Silicon Mac, via Ollama.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
A coding agent that runs entirely on your own machine.
Open-weight models · up to 256K tokens of context · your NVIDIA GPU or Apple Silicon Mac · your code stays local
Point lcode at a repository and talk to it in your terminal. It explores the code, answers
questions with file:line references, writes and edits files, runs your scripts and tests, and
keeps going until the task is done, asking before it changes anything. The model runs locally
through Ollama, and when it needs current information it can search the web.README 전문 보기 ↗Point lcode at a repository and talk to it in your terminal. It explores the code, answers
questions with file:line references, writes and edits files, runs your scripts and tests, and
keeps going until the task is done, asking before it changes anything. The model runs locally
through Ollama, and when it needs current information it can search the web.
lcode setup does it in one step. lcode bench compares models on
real coding tasks on your machine.auto-edit and yolo modes when you want speed.lcode --sandbox runs the model's shell commands in a container (Docker or
Podman) that only sees your project, without network access unless you allow it.lcode index)./commands as prompt templates, and skills in the
Agent Skills format that the model loads only when a task needs them.yolo mode./plan <request> or Shift+Tab: the model explores read-only and presents a plan;
you approve, edit or send it back before anything changes./undo takes back the last
request's edits, new files and shell-command changes, without touching your git history..lcode/agents/./remember) or by a quick check at the end
of a session. Not whole conversations, and never secrets./commit writes messages in your repository's style, /review checks the
changes with file:line findings, /pr opens the pull request, each after you approve it, and
lcode --worktree runs parallel sessions on one repository.lcode acp, with diffs and approvals in the editor./mode image, describe a picture, and FLUX.2 klein 4B makes it on your
GPU in seconds; edit it, extend it, upscale it or cut it out. /mode video makes clips with
Wan 2.2, from a description or a start image. lcode drives ComfyUI itself
(modes).lcode -p --output json for scripts and CI, a Python API (from lcode import Session), and a GitHub Action that answers @lcode in issues and pull requests on your own
self-hosted runner.lcode mcp add atlassian), or any other MCP server. Browser sign-in (OAuth) is built in.@path and lcode looks at it, using the
vision part of your model./mode image) make pictures, edits, clips and short films with local models run by ComfyUI
(FLUX.2 klein, Wan 2.2, installed on demand), or with xAI's Grok Imagine and your own key, after
showing what it costs./help how do I make a clip from two pictures?, or just the question in image and
video mode: lcode answers from its own manual, which ships with it, with the command to type,
checked by lcode's own parsers and typed into the prompt for you.ask or off.Ubuntu / Linux (NVIDIA GPU recommended) and macOS on Apple Silicon (M1–M4):
curl -fsSL https://nasser1941.github.io/lcode/install.sh | bash
The installer sets up lcode with its own Python via uv, checks for
Ollama (0.30+) and runs lcode setup, which picks a model for your hardware
and downloads it. Prefer manual steps? lcode is on PyPI as
lcode-cli:
uv tool install lcode-cli # or: pipx install lcode-cli
lcode setup
On a Mac with Homebrew:
brew install nasser1941/tap/lcode
lcode setup
See the installation guide for details.
cd ~/code/your-project
lcode
❯ /init # study the repo and write AGENTS.md for future sessions
❯ How does authentication work here? Cite files.
❯ Write scripts/dedupe.py that removes duplicate rows from @data/users.csv by email, and run it
❯ The tests in tests/test_parser.py fail. Find out why and fix it.
lcode -p "…" | one request, no interaction (scripts, hooks) |
lcode -c / lcode --resume | continue the last session here / pick a saved session from a list |
lcode --model qwen3.5-9b --context 128k | pick a model and context window for this session |
lcode models / lcode doctor | what fits this machine / check the installation |
lcode bench qwen3.6-35b qwen3.5-9b | compare models on small coding tasks on this machine |
/undo, /rewind | take back the last request's file changes, or go back further |
lcode mcp catalog / lcode mcp add github | ready-made MCP servers / add one |
/rename, /resume | name the current session, resume a saved one |
/model, /context, /compact, /help | switch model, resize the context window (pick from a list), summarize, list commands |
/help how do I …? | ask lcode how to do something: the answer comes from its manual, with the command to type |
| Key | Model | Download | Max context | |
|---|---|---|---|---|
qwen3.6-35b | Qwen3.6 35B-A3B Coding (MoE, 3B active) | 22.6 GB | 256K | default, tested |
qwen3.8-27b | Qwen3.8 27B (dense) | 17.7 GB | 256K | tested |
qwen3.6-27b | Qwen3.6 27B Coding (dense) | 17.8 GB | 256K | tested |
laguna-xs-2.1 | Poolside Laguna XS 2.1 (MoE, 3B active) | 20.3 GB | 256K | tested |
nemotron-3.5-lightning | NVIDIA Nemotron 3.5 Lightning (hybrid MoE) | 25.4 GB | 1M | tested |
qwen3.5-9b | Qwen3.5 9B (dense) | 6.6 GB | 256K | tested |
gpt-oss-20b | OpenAI gpt-oss 20B (MoE) | 13.8 GB | 128K | tested |
qwen3.5-4b | Qwen3.5 4B (dense) | 3.4 GB | 256K | tested |
What lcode setup picks for common machines:
| Machine | Model | Context |
|---|---|---|
| Mac with M4, 16 GB | qwen3.5-9b | 64K |
| Mac with M4 / M4 Pro, 24 GB | qwen3.5-9b | 256K |
| Mac with M4 Pro / M4 Max, 36 GB | qwen3.6-35b | 64K |
| Mac with M4 Pro, 48 GB · M4 Max, 64 GB+ | qwen3.6-35b | 256K |
| NVIDIA 8–24 GB + 32 GB RAM | qwen3.6-35b | 256K |
| NVIDIA 8 GB + 16 GB RAM | gpt-oss-20b | 64K |
At 256K context the default model generates 50–55 tokens/s on an RTX 4080 Laptop GPU (12 GB) and 45 tokens/s on an M4 Pro Mac with 48 GB. See Models & context windows for memory estimates and tuning.
lcode sends your request, the repository layout and a set of tool definitions to the model; runs the tools the model calls (read, edit, grep, glob, bash, todo); feeds the results back; and repeats until the model answers. It sizes models to your memory from each model's KV-cache footprint, uses text-only model variants to free GPU memory, and summarizes the conversation when the context window fills up. Details: How it works.
See the pinned Roadmap issue. Next up:
Contributions are welcome: bug reports, model test results, docs and code. See CONTRIBUTING.md. Please follow the code of conduct, and report security issues privately as described in SECURITY.md.
lcode stands on Ollama and llama.cpp, the open-weight models from Qwen, Poolside, NVIDIA and OpenAI, Rich and prompt_toolkit.
MIT © 2026 Naser Derakhshan