Every "how to work with AI agents" guide starts with prompt engineering. Be specific. Give examples. Set context.
That's fine for one agent, one session. It completely falls apart when you have 20 agents running concurrently, each with different contexts, hitting the same files, and none of them remembering what the others did.
Better prompts won't fix that. Infrastructure will.
Here's what actually breaks when you run multiple agents:
None of these are prompt problems. They're infrastructure problems.
Memory as flat text fails at scale. "Python version is 3.11" gets buried under 50 other facts. Agents can't query it reliably.
Solution: SQLite database with WAL mode for concurrent access. Entity-attribute-value model. Every fact queryable by category, entity, keyword. Multiple agents read and write simultaneously without corruption.
GET /v1/facts?entity=python&attribute=path
→ /opt/homebrew/bin/python3.11
One agent discovers a fact. Every agent knows it.
Passwords stored in a local daemon. Agents request credentials by service name — no Touch ID, no browser extension, no interactive login. Cron jobs run unattended.
credential-proxy get "dev.to API"
→ api-key-here
The daemon holds the keys. The agents just ask.
If 3+ consecutive cron runs fail, it alerts you. Silent failures are the worst kind — you don't know your agents stopped working until you manually check.
Pattern: watchdog script → checks last N run statuses → alerts on threshold. Zero config. Just runs.
A 2,500-file repo becomes an 8-file context pack. Preserves structure: important files, key decisions, dependency graph. Everything else summarized or excluded.
Your agent can actually reason about the project instead of drowning in file listings.
Everyone's optimizing prompts. I'm optimizing the environment agents run in. The prompt is 10% of the problem. The other 90% is:
Fix those, and your prompts get 10x more effective — because the agent can actually act on them.
All four tools are open source. FactBase and Pitfall Registry are live at workswithagents.dev. Credential proxy, cron guard, and context packer live in ~/.hermes/. No courses. No pricing. Just infrastructure.