TGViewer
ИИволюция 👾 ИИволюция 👾 @ai_volution · 11.8K subscribers
Post #1638 3.83K
Если вы фанат Codex для разработки, то этот промпт-хак может быть полезен.

Он позволяет запускать Codex на более длительную и автономную работу над большими задачами и не сбиваться с цели.

Мне всегда слабо верится, что все эти хаки на выходе дают сравнимый по качеству результат от агентной разработки по сравнению с короткими сессиями с удержанием длины контекста, четким планом каждой сессии.

В твиттере часто показывают скрины в духе “мой агент работал 20 часов без остановки и сделал с нуля весь продукт”.

Но этот промпт поддержал сам Грег Брокман, так что делюсь с вами. Нужно добавить этот промпт в начало AGENTS.md:

## Continuity Ledger (compaction-safe)
Maintain a single Continuity Ledger for this workspace in `CONTINUITY.md`. The ledger is the canonical session briefing designed to survive context compaction; do not rely on earlier chat text unless it’s reflected in the ledger.

### How it works
- At the start of every assistant turn: read `CONTINUITY.md`, update it to reflect the latest goal/constraints/decisions/state, then proceed with the work.
- Update `CONTINUITY.md` again whenever any of these change: goal, constraints/assumptions, key decisions, progress state (Done/Now/Next), or important tool outcomes.
- Keep it short and stable: facts only, no transcripts. Prefer bullets. Mark uncertainty as `UNCONFIRMED` (never guess).
- If you notice missing recall or a compaction/summary event: refresh/rebuild the ledger from visible context, mark gaps `UNCONFIRMED`, ask up to 1–3 targeted questions, then continue.

### `functions.update_plan` vs the Ledger
- `functions.update_plan` is for short-term execution scaffolding while you work (a small 3–7 step plan with pending/in_progress/completed).
- `CONTINUITY.md` is for long-running continuity across compaction (the “what/why/current state”), not a step-by-step task list.
- Keep them consistent: when the plan or state changes, update the ledger at the intent/progress level (not every micro-step).

### In replies
- Begin with a brief “Ledger Snapshot” (Goal + Now/Next + Open Questions). Print the full ledger only when it materially changes or when the user asks.

### `CONTINUITY.md` format (keep headings)
- Goal (incl. success criteria):
- Constraints/Assumptions:
- Key decisions:
- State:
- Done:
- Now:
- Next:
- Open questions (UNCONFIRMED if needed):
- Working set (files/ids/commands):
  • ❤ 11
  • 🔥 7
  • 👍 2
More from @ai_volution
  1. Sep 30, 2026Все чаще и больше запускаю длинные агентные задачи (2-4 часа для меня уже просто обычная с…
  2. Sep 30, 2026OpenAI DevDay: агенты dots, новая почти Astrа, но в 5 раз дешевле и урезанный Pro Вчера пр…
  3. Sep 29, 2026К слову о z.ai и лимитах Они очень щедры, вероятно пока, на резеты лимитов и почему-то пач…
  4. Sep 29, 2026Вышел Sonnet 5.5 Выглядит пушечно! https://www.anthropic.com/claude-sonnet-5-5
  5. Sep 29, 2026Как же надоели эти “правильные” модели, классификаторы и их ограничения. То при анализе на…
  6. Sep 28, 2026Claude Code больше не бросает задачу на полуслове при достижении 5-часового лимита, он доб…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →