with one click
fastedit
Install + configure FastEdit — AST-scoped code edits via 1.7B model
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Install + configure FastEdit — AST-scoped code edits via 1.7B model
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | fastedit |
| description | Install + configure FastEdit — AST-scoped code edits via 1.7B model |
FastEdit 0.5.0+ adds cross-file caller-safety on deletes, AST-verified renames, signature-impact notes on edits, and a cross-file fast_move_to_file that rewrites importers.
Ask user: MCP server (recommended — tools appear in Claude Code) or CLI (standalone commands)?
# Mac (Apple Silicon)
pip install fastedits[mlx]
# Mac + MCP server
pip install fastedits[mlx,mcp]
# Linux GPU server
pip install fastedits[vllm]
fastedit pull
74% of edits resolve deterministically (0 tokens, <1ms). Model handles the remaining 26%.
Add to ~/.claude.json or project .claude.json:
{
"mcpServers": {
"fastedit": {
"command": "python3",
"args": ["-m", "fastedit.mcp_server"]
}
}
}
12 tools: fast_edit (replace=/after=), fast_batch_edit, fast_multi_edit, fast_read, fast_search, fast_delete, fast_move, fast_move_to_file, fast_rename, fast_rename_all, fast_diff, fast_undo
Optional — auto-redirect Edit → fast_edit (add to same .claude.json):
{
"hooks": {
"PreToolUse": [
{
"matcher": "Edit",
"hooks": [{"type": "command", "command": "fastedit-hook"}]
}
]
}
}
Key patterns:
replace='func_name' + context markers → AST-scoped edit (~1-2s)after='func_name' + new code → deterministic insert (0 tokens)fast_read first → learn symbol names → then editfastedit read src/app.py # structure map
fastedit edit src/app.py --replace fn --snippet '...' # edit function
fastedit edit src/app.py --after fn --snippet '...' # insert after
fastedit search "query" src/ # find symbols
fastedit delete src/app.py old_func # remove symbol
fastedit rename src/app.py old_name new_name # rename symbol
fastedit diff src/app.py # verify last edit
fastedit undo src/app.py # revert last edit
Any OpenAI-compatible server works: vLLM, LM Studio, llama.cpp, Ollama.
export FASTEDIT_BACKEND=llm
export FASTEDIT_LLM_API_BASE=http://localhost:1234/v1 # LM Studio default
| Server | Default URL |
|---|---|
| vLLM | http://localhost:8000/v1 |
| LM Studio | http://localhost:1234/v1 |
| llama.cpp | http://localhost:8080/v1 |
| Ollama | http://localhost:11434/v1 |
Load the FastEdit GGUF/MLX model in your server, set the URL, done.