Local Qwen Coding Agent on MacBook: Tackling Context & Output Bottlenecks
Techngro · reddit · 2026-08-08
The author shares severe bottlenecks encountered when using oMLX to run Qwen3.6-35B-A3B-4bit with the Pi coding agent to process a large TypeScript repository on a 32GB MacBook Air.
Core Problems:
- Insufficient Context: System, tool, and repository instruction overhead consumes 10.2K tokens. With a 19.5K context window limit, only 5K tokens of working room are left, frequently triggering auto-compaction and interrupting tasks.
- Output Limit: The 4K max output token limit is too tight for Qwen with thinking enabled, causing incomplete responses.
Optimization Ideas:
- Reduce system instruction overhead and lower post-compaction retained tokens (e.g., decrease keepRecentTokens from 4096 to 1024-2048).
- Disable or reduce thinking mode during tool-heavy repository investigation to save output budget.
- Use different profiles for different tasks (investigation vs. deep coding).
- Explore reliably expanding the effective context window on 32GB Apple Silicon.
More from coding & agent
- Rollikey: open-source proxy adds pre-flight snapshots and LIFO rollback for production AI agents — Rollikey · 2026-11-30
- Open-source LoRA restyles MiniMax H3 video from a single reference image — linoy_tsaban · 2026-11-30
- Dev shares Avi home AI companion internals: device control, memory and full system prompt — aloncarmel · 2026-11-30
- Microsoft exec explains AI governance with a 4-step closet-cleaning method — donasarkar · 2026-11-30
- Catching steps your AI agent silently skipped: declare required actions per task — Ok-Machine7983 · 2026-11-30
- MoonBit 1.0 RC Ships with Stable Compiler, Targeting February 2027 Release — harryshum · 2026-11-30