Building "Devwrite": A Local, Agentic Writing Assistant with Ollama & Node.js
dev.to·23h·
Discuss: DEV
💧Elixir
Preview
Report Post

Here’s how I implemented a Planner-Executor-Critic loop to stop getting generic AI responses.

We’ve all been there: you ask an LLM to write a landing page or a blog post, and you get a generic, soulless wall of text. It lacks structure, it misses the nuance, and it usually takes 3-4 follow-up prompts to fix.

I decided to solve this by building Devwrite—a local, agentic writing assistant that mimics a human editorial process. Instead of one "generation," it uses a multi-agent loop to plan, draft, critique, and refine content, all running locally on my machine using gemma3:12b via Ollama.

Here’s a code-deep dive into how I built it.

The Architecture: 3 Agents, 1 Loop

The core is an orchestrator loop that manages three distinct agents.

1. The Planner Agent

This…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help