
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
opencode-fast-apply
Advanced tools
OpenCode plugin for Fast Apply - High-performance code editing with OpenAI-compatible APIs (LM Studio, Ollama)
OpenCode plugin for Fast Apply - High-performance code editing with OpenAI-compatible APIs.
// ... existing code ... for unchanged sectionsnpm install -g opencode-fast-apply
Configure your API endpoint:
# LM Studio (default)
export FAST_APPLY_URL="http://localhost:1234"
export FAST_APPLY_MODEL="fastapply-1.5b"
export FAST_APPLY_API_KEY="optional-api-key"
# Ollama
export FAST_APPLY_URL="http://localhost:11434"
export FAST_APPLY_MODEL="codellama:7b"
# OpenAI
export FAST_APPLY_URL="https://api.openai.com"
export FAST_APPLY_MODEL="gpt-4"
export FAST_APPLY_API_KEY="sk-your-key"
Add to OpenCode config (~/.config/opencode/opencode.json):
{
"plugin": ["opencode-fast-apply"]
}
Restart OpenCode. The fast_apply_edit tool is now available.
// 1. Read relevant section (not entire file)
const content = await read("src/app.ts", { offset: 100, limit: 50 })
// 2. Edit with partial context
fast_apply_edit({
target_filepath: "src/app.ts",
original_code: content, // Just 50 lines!
code_edit: `// ... existing code ...
function updated() {
return "modified";
}
// ... existing code ...`
})
Key points:
| Variable | Default | Description |
|---|---|---|
FAST_APPLY_API_KEY | optional-api-key | API key (optional for local) |
FAST_APPLY_URL | http://localhost:1234 | API endpoint |
FAST_APPLY_MODEL | fastapply-1.5b | Model name |
original_code (partial context) and code_editoriginal_code appears in full file| File Size | Before (Full) | After (Partial) | Savings |
|---|---|---|---|
| 100 lines | 2,500 tokens | 500 tokens | -80% |
| 500 lines | 12,500 tokens | 1,000 tokens | -92% |
| 1000 lines | 25,000 tokens | 1,500 tokens | -94% |
| 5000 lines | 125,000 tokens | 2,000 tokens | -98% |
"Cannot locate original_code in file"
API connection issues
curl -X POST http://localhost:1234/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"fastapply-1.5b","messages":[{"role":"user","content":"test"}]}'
MIT
FAQs
OpenCode plugin for Fast Apply - High-performance code editing with OpenAI-compatible APIs (LM Studio, Ollama)
We found that opencode-fast-apply demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.