← All posts
Blog

Your AI Agent Forgot the Form Pattern Again

Builders are teaching Cursor and Claude Code their project rules, then losing all of it when they switch tools. Here's what project memory really costs — and why forms are the pattern that keeps breaking.

Ask anyone running a codebase with Cursor or Claude Code for a few months, and the conversation stops being about generation speed. It’s about memory — the stuff the agent should already know but forgets every single session.

There’s a thread that captures it perfectly: a builder who spent three months teaching Cursor their project — architecture decisions, rejected approaches, naming conventions, “stuff that absolutely should not be touched” — all living in session history and rules files. The moment they switched to Claude Code for model availability or pricing, it was all gone. Not in a dramatic way. Quietly. The new agent had zero clue what the last one decided.

That’s not a niche complaint. Another thread from r/AI_Agents describes bouncing between Cursor, Claude Code, and Codex and losing half the project context on every hop. The manual fix — pasting key decisions into CLAUDE.md and AGENTS.md by hand — “lasted about a week” before the files went stale and the agents started acting on dead info.

Rules files are the new system prompt

The builders getting ahead are treating project memory as a first-class artifact, not an afterthought. The advice keeps converging on the same shape: give the agent a brief, a workspace, memory, and a review loop — “the same things you would give a person joining your company,” as Greg Isenberg’s breakdown of his Claude Code setup puts it. Optimize that one markdown file so it behaves more like an AI employee than a stateless shell.

The current tutorials hammer the same point. A rule of thumb floating around the newer walkthroughs: a tight, project-specific file “beats a 50-line file that tells Claude what it already knows” (The Ultimate Claude Code Tutorial). Cursor has the same obsession — rules, memory banks, and skills are how people get it to stop re-deriving your conventions (How to Setup Rules in Cursor).

There’s real energy behind this right now. Maximizing the value of your Claude Code sessions and How to organize Claude Code for product work both pulled heavy discussion on Hacker News this month. And there’s a time-limit kicker: Claude Code wipes your context history from the device after 30 days (data-usage docs), which quietly makes “just let it remember” a losing strategy for anything recurring.

Forms are the pattern that keeps breaking

Here’s where it gets specific. The recurring component that eats the most project memory is the form. It’s the same pattern on nearly every AI-built site — a contact form, a lead capture, a signup — and it’s the one piece that resists being remembered.

Why? Because a form isn’t just markup. It’s a submission target, an endpoint, a delivery mechanism, a spam policy, a place to actually receive the data. That’s stateful, server-side work in a stack that has no server. So the agent generates the same broken half-pattern every time: a pretty <form> with an action pointing nowhere, or a mocked handler that logs to console and calls it done.

Your project rules can capture the look of your forms. They can’t easily capture the backend — unless that backend is simple enough to be one deterministic step the agent never has to re-derive or re-wire.

That’s the move. When the form backend is a fixed, memory-free dependency — drop in an endpoint, point the form at it, done — the agent doesn’t need project memory for it at all. It stops being a recurring source of bugs and becomes a solved constant. Builders are already moving this direction: pushing the memory burden out of the agent and into tools that don’t need to “remember” because there’s nothing to forget.

Make the backend the boring part

You’ll never stop your agent from forgetting things. That’s the nature of the tool. What you can do is make the most error-prone recurring pattern not depend on memory in the first place. Forms are exactly that pattern — and the fix is a form backend that needs no database, no server, and no project-specific wiring to keep straight.

That’s the whole point of AgentsForms: a form backend for AI agents that’s a single stable endpoint, no database to stand up, no backend to teach the agent about. It’s the pattern you can encode once and stop carrying around in your head — and stop re-teaching on every tool switch.

Want your agent to stop forgetting how forms work? Read the recipes and guides or wire it up in minutes.

Ship forms your AI agent will never break — start here.