How ARIA Became My Prompt Engineer
Lire en françaisQuick context: ARIA is my AI second brain — Claude Code with a persistent memory system. Ollama lets you run open-source LLMs locally for free. This post is about what happens when you connect the two.
The Accidental Discovery
I wanted to save money. Claude is great, but every message costs tokens. So I thought: route simple tasks to local models instead.
I built an MCP server — a bridge that lets Claude talk to my Ollama instance — and started testing. The idea was simple: Claude decides what’s “simple enough” for local models, routes it, and I save on API costs.
Then I realized the flaw.
The cost-saving idea was dead. But while testing, something else clicked.
I asked ARIA to compare outputs across my local models. Same prompt, three different responses. Different quality, different speeds. And I thought: this isn’t about routing at all.
This is a prompt engineering lab.
The Problem with Small Models
Large models like Claude are forgiving. You can write a vague prompt, and they figure out what you meant.
That same prompt on a 7B local model? Chaos.
It summarized. It forgot the action items. No structure, no owners, no deadlines.
Small models need precision. Every word matters. The format matters. And finding the right prompt takes iteration — lots of it.
But here’s the thing: iterating against Claude’s API costs money. Iterating against local models? Free.
How ARIA Engineers Prompts
I connected ARIA to my Ollama server through MCP (Model Context Protocol — basically a way for AI tools to talk to external services). Now ARIA can send prompts to my local models and see exactly how they respond.
The workflow:
ARIA tests it:
The winning prompt:
Extract action items from the meeting notes below.
Rules:
- Only include EXPLICIT action items (someone agreed to do something)
- Format: "- [NAME]: [task] (due: [date or 'TBD'])"
- If no action items exist, respond only with "No action items found."
- Do NOT infer or assume — only extract what is explicitly stated
Meeting notes:
{notes}
That took 3 iterations and maybe 30 seconds of local compute. Zero API cost.
From Tested Prompt to Free Automation
Here’s where the cost optimization actually happens.
Once a prompt is battle-tested, it goes into production — n8n workflows, cron jobs, batch scripts. These run on local models, completely free.
Write a LinkedIn connection message for this person.
Context:
- Their name: {name}
- Their role: {role}
- One detail from their profile: {detail}
Rules:
- 2-3 sentences maximum
- Mention their role naturally
- Reference the specific detail (not generic)
- End with a soft question, not a hard ask
- Sound human, not like a template
Output only the message, nothing else.
That prompt now runs automatically when I get new connections. ARIA spent 10 minutes crafting it. Now it runs hundreds of times — all free, all local.
The pattern:
- I describe the task to ARIA
- ARIA drafts, tests, and refines the prompt on local models
- Once it works reliably, I deploy it to automation
- Claude did the thinking once. Local models do the work forever.
The Honest Limits
This isn’t magic:
- Complex reasoning stays on Claude — Local models handle well-defined, repeatable tasks. Nuanced thinking still needs the big model.
- Hardware matters — My server takes 6-10 seconds per response. Fine for batch jobs, too slow for interactive use.
- Prompts aren’t always portable — A prompt tuned for one model might need tweaking for another.
But for automation that runs the same prompt hundreds of times? The upfront investment in prompt engineering pays off massively.
The Real Value
ARIA didn’t become a cost-saving router. It became something better: a prompt engineer that works for free.
The workflow is simple:
- ARIA brings the expertise — It knows prompt patterns, failure modes, what works for different model sizes
- Local models are the test subjects — Free, fast, and demanding (if it works on a 7B model, it’ll work anywhere)
- Production runs locally — Once a prompt is solid, it costs nothing to run
I went from “manually tweaking prompts and hoping they work” to “describe what I need and get a tested solution.”
What This Unlocks
This setup is just the beginning. Here’s what I’m exploring next:
Self-Creating Subagents
ARIA designs specialized agents with tested prompts, deploys them as autonomous workers. Design once, run forever.
Local Reflection Layer
Before committing to an answer, local models brainstorm approaches. Cheap exploration, expensive reasoning only when needed.
Draft-Then-Refine
Local model writes first draft (free), Claude polishes (minimal tokens). 80% of work is free.
Prompt Library + Auto-Select
Tagged library of tested prompts. ARIA matches tasks to prompts automatically. Only use Claude when no prompt exists.
Multi-Model Consensus
Same prompt → multiple local models → compare. If they agree, high confidence. If not, escalate to Claude.
Automated Prompt Evolution
Track prompt performance. Identify failures. Generate and test variations. Deploy winners. Continuous improvement.
Memory-Augmented Prompts
Inject context from ARIA's memory into local prompts. Small models become context-aware without huge context windows.
Prompt Compiler
Write prompts in high-level format. ARIA compiles optimized versions for each target model. One prompt, many targets.
The meta-pattern: Claude is the architect, local models are the workers. Pay for design once, execution is free forever.
Sometimes the best use of AI is teaching it to work with other AI.
Crafted by ARIA. Tested locally. Now running automations that would’ve cost me hundreds in API calls.