A local eve agent on a 4B model that keeps its pending approval through kill -9
- Hardware
- Linux machine with 8 CPU cores, 15 GiB RAM, no GPU
- Models & engines
- llama.cpp build b12531 (prebuilt ubuntu-x64) serving Qwen3.5-4B Q4_K_M (2.74 GB) with a 64K context and thinking turned off
- Key gotcha
- eve dev needs --resume after a crash; a plain restart leaves earlier runs dormant.
What they built
eve is an Apache-2.0 framework for building agents. Its local mode stores sessions in SQLite, and any OpenAI-compatible server can supply the model, so the author tested it fully locally instead of using Vercel's AI Gateway and hosting.
The agent has one tool, post_update, which needs a human yes before it runs and writes to a local outbox.jsonl file instead of Slack, so one approved post should produce exactly one line.
He sent a request, waited for the approval prompt, killed every eve process with kill -9, and tried to approve after a restart, both under eve dev and under the production eve start server.
Setup
- Linux machine with 8 CPU cores, 15 GiB RAM, no GPU
- eve 1.1.0 on Node.js 24.22.1
- llama.cpp build b12531 (prebuilt ubuntu-x64) serving Qwen3.5-4B Q4_K_M (2.74 GB) with a 64K context and thinking turned off
- @ai-sdk/openai-compatible provider pointed at http://127.0.0.1:8080/v1
How it works
- agent/agent.ts uses createOpenAICompatible with includeUsage: true and sets modelContextWindowTokens to the 65,536 tokens the server allocates.
- The tool file in agent/tools/ uses always() approval, so the call pauses before it starts; eve saves a checkpoint before waiting.
- For eve start he replaced the auth placeholder with HTTP Basic auth and bound it to 127.0.0.1.
Results & numbers
- After kill -9, a plain eve dev restart rejected the approval with HTTP 500; restarting with --resume accepted it with HTTP 202 and the tool ran once.
- The model did not redo the 3,462-token tool-selection call: the only new request processed 23 fresh tokens.
- eve start recovered on its own after a plain restart, and returned HTTP 401 without credentials.
- On this CPU the model wrote about 10 tokens per second; the first approval prompt took 22 to 30 seconds to appear. First-call input was 3,462 tokens under eve dev and 2,803 under eve start.
Gotchas
- eve dev needs --resume after a crash; a plain restart leaves earlier runs dormant.
- eve start binds every network interface by default, so keep the --host 127.0.0.1 flag.
- When he denied a call with a note, the 4B model ignored the note and asked to post the identical text again, though the gate held and nothing was written.
- Recovery is not exactly-once (per eve's docs); he did not test a crash while a tool was running. Give irreversible tools a stable operation ID.
“Put the approval on the tool before you put the agent in front of users.”— @VarunChopr17597
Do it yourself
- Install Node.js 24+ and start llama-server with a model that has native tool calling and at least a 64K context.
- Scaffold with npx eve@latest init my-agent --non-interactive and install @ai-sdk/openai-compatible.
- Point agent/agent.ts at the local server and set modelContextWindowTokens to the context you allocated.
- Add a tool under agent/tools/ with always() approval that writes to a countable local file first.
- Run npx eve dev --no-ui; after a crash restart with --resume.
- Before eve start, replace the production auth placeholder and pass --host 127.0.0.1.
./llama-server -hf unsloth/Qwen3.5-4B-GGUF:Q4_K_M \
--port 8080 -c 65536 \
--chat-template-kwargs '{"enable_thinking":false}' \
--alias qwen3.5-4bSimilar setups
Running 80 GB MoE models on two 16 GB GPUs with llama.cpp 1.0
Gancho Stoychev measured five llama.cpp 1.0 settings one at a time on his homelab box with two RTX 5060 Ti 16 GB cards, running Qwen3.8-Flash-Next and DeepSeek V4 Flash, each about 80 GiB.
A Baroque music events calendar fed by a local Qwen agent on a home llama.cpp server
A data scientist serves small models with llama.cpp from a 16 GB RTX 4060 Ti box on his home network, and a LangChain agent on it finds upcoming concerts for his wife's Bavarian Baroque events calendar.
Selective MoE offloading in llama.cpp on a 16 GB laptop GPU: faster for some models, much slower for others
Jessica Doering benchmarked five Mixture-of-Experts models too big for her 16 GB RTX 4090 laptop GPU, comparing llama.cpp's --n-cpu-moe expert offloading against plain layer offloading.
Faster local Qwen on an AMD eGPU with the llama-cpp-rdna-boosts patches
A developer running a Qwen3.8-27B fine-tune on an AMD R9700 eGPU swapped vanilla llama.cpp for a small set of AMD-specific patches in a Podman image and roughly doubled prefill speed.