惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
Martin Fowler
Martin Fowler
The GitHub Blog
The GitHub Blog
B
Blog RSS Feed
U
Unit 42
阮一峰的网络日志
阮一峰的网络日志
量子位
GbyAI
GbyAI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
云风的 BLOG
云风的 BLOG
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
L
LangChain Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园_首页
IT之家
IT之家
V
Visual Studio Blog
Y
Y Combinator Blog
Blog — PlanetScale
Blog — PlanetScale
宝玉的分享
宝玉的分享
Apple Machine Learning Research
Apple Machine Learning Research
I
InfoQ
D
Docker
V
V2EX

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Better Prompts Won't Fix Your AI Agents — Infrastructure ...
Vilius · 2026-05-08 · via DEV Community

Vilius

Better Prompts Won't Fix Your AI Agents — Infrastructure Will

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.


The Problem Nobody Talks About

Here's what actually breaks when you run multiple agents:

  1. Concurrent file writes. Agent A reads a file. Agent B writes to it. Agent A's context is now stale.

  2. Credential access. Touch ID doesn't work from cron. Your agents can't unlock your password manager at 3am.

  3. Silent failures. An agent hits an error on a recurring cron job. You don't notice for three days.

  4. Context starvation. Your agent's context window fills with irrelevant details. It can't reason about the actual problem.

None of these are prompt problems. They're infrastructure problems.


The Four Tools That Fixed It

1. FactBase — Structured Knowledge, Not Flat Text

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

Enter fullscreen mode Exit fullscreen mode

One agent discovers a fact. Every agent knows it.

2. Credential Proxy — API Keys Without Touch ID

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

Enter fullscreen mode Exit fullscreen mode

The daemon holds the keys. The agents just ask.

3. Cron Guard — The Smoke Alarm for Your Agent Fleet

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.

4. Context Packer — Fit More Into Your Token Budget

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.


The Pattern

Everyone's optimizing prompts. I'm optimizing the environment agents run in. The prompt is 10% of the problem. The other 90% is:

  • Can the agent access the right files?
  • Can it authenticate to services without you?
  • Will you know if it breaks?
  • Can it fit the problem in its context window?

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.