Sign up Log in
n/ai · 2d ago · 233 views
u/runoneallMaster
n/aiu/runoneall · 2d ago

I put together a set of cross-conversation Agent prompts (article polished by 大肥鱼 — cut me some slack, I really can't write...)

These are prompts I use myself, and they fit my actual needs pretty well:

Here's the AI-written version:

The most painful part of building projects with AI Agents isn't that it can't write code — it's that it drifts off as the conversation goes on. Once the context gets long, it forgets plans you already confirmed; close the conversation and yesterday's progress is gone. After stepping in countless pits, I distilled a minimalist prompt workflow. The core goal is just one thing: make the Agent work across conversations, do only one thing per round, and keep progress always resumable.

The whole workflow has two phases. Straight to the good stuff below.

1. Prep phase: align first, then start

A lot of people start by dumping “help me build an XXX” and the AI immediately starts writing code. Then the direction is wrong and rework costs are huge. My approach is to force it to only look, not write, in this round.

First, describe the requirement as a whole, then list features point by point:

<整体叙述一下需求,如我要做一个 xxx>,以下是具体功能:
<分点列举各个功能,如支持多账号,分 1. 2. 3. ...>
这轮对话先检查环境和获取基础信息,不开始实现

That last line is key: “check the environment and gather basic info first; don't start implementing.” It forces the AI to first get a clear picture of the current state — directory structure, dependency versions, existing code — and then propose a plan, instead of hallucinating from thin air.

At this point the AI gives a first draft plan. Not happy? No problem — keep chatting and adjusting; a few rounds should get it right. Once the plan is settled, send:

讨论符合预期,现在编写 AGENTS.md 和 TODO.md

Have the AI turn the discussion results into files. AGENTS.md records project conventions and background; TODO.md breaks down the task list. These two files are the “memory anchors” across conversations — next time you start a new conversation, the AI reads the files and picks up right where it left off. You don't need to recap at all.

2. Implementation phase: one conversation advances only one phase

Once prep is done, start a new conversation, then send only this line:

推进一个项目阶段,并实时保存进度

Then let the AI work on its own; you don't have to babysit. If something's off within the phase, just keep chatting and adjusting — because the plan and conventions are in the files, it won't go off track.

When the phase is done, start another new conversation, same line:

推进一个项目阶段,并实时保存进度

And so on.

3. Why this workflow works

It looks simple, but it hits a few key points:

1. Separate preparation from execution. No code writing during prep, so it doesn't start before the plan is settled; no more plan discussion during implementation, so it doesn't rewrite while coding. One conversation does only one kind of work, so the AI's attention doesn't get diluted.

2. Fight amnesia with files. Conversations have context, but it gets lost; files persist. AGENTS.md and TODO.md solidify the “discussion output” into facts on disk. A new conversation just reads the files and continues seamlessly. That's the underlying mechanism of “working across conversations.”

3. Use phase splitting to control context length. One new conversation per phase keeps the context clean. The shorter the phase, the more stable the AI performs, and the easier it is for you to pinpoint problems when they happen.

4. “Save progress in real time” is the fuse. This prompt makes the AI write back to the file after every step, so even if the conversation is interrupted, progress doesn't reset to zero.

4. A few tips from use

  • Don't be afraid to chat a few extra rounds during prep. Sharpening the axe doesn't delay the woodcutting; the clearer the plan, the smoother things go later.
  • Keep TODO.md granularity moderate. A “phase” roughly corresponds to a subsection in TODO. Too big and the AI gets confused; too small and you're opening conversations too often.
  • AGENTS.md is written for the AI to read. How to run commands, code style, taboos — put it all in there. It's more reliable than your memory.

This prompt set has no deep tricks. In essence, it's just applying the way you'd onboard a new person to AI: align on requirements first, deliver in phases, and use docs to accumulate shared understanding. If you've also been tortured by long conversations, give it a try.

Translated by AI from 简体中文

4
5
Log into join the discussion.

5 replies

Sort order
  1. 1751140932 Gold 2d ago

    I totally relate to this. I used to just have it start writing right away, and halfway through I'd realize it went in the wrong direction and couldn't be salvaged. I've been using AGENTS.md all along and it really works — start a new conversation, read it once, and you're caught up. One small question though: if TODO.md is broken down too finely, won't "move on to the next stage" make it keep writing progress files over and over instead of actually getting work done? I'm all for spending a few extra rounds on the prep stage — once it's clear, the rest is so much easier.

    Translated by AI from 简体中文

    0
  2. daijin Bronze 2d ago

    6了

    0
  3. smzdm2025 Silver 2d ago

    Just testing this out

    Translated by AI from 简体中文

    0
  4. haoxuan Silver 2d ago

    It really works

    Translated by AI from 简体中文

    0
  5. James 💯 Legend MANAGER 2d ago

    Actually, it's way better to first nail down the requirements with AI, then produce the prototype, and finally write the code. That's like 100 times better than just diving straight in.

    Translated by AI from 简体中文

    0