Urgent.News

What's breaking now, across thousands of outlets.

AI

Why your AI coding agent contradicts itself in session 5 (and the three-file fix)

Disclosure: this article was drafted with an AI assistant (Claude). #ABotWroteThis An AI coding agent starts every session knowing nothing about the last one. That one fact explains most of the "the agent contradicts itself" complaints. It is not a bad model. It has no memory, and you are the only thing connecting session 1 to session 5. Here is a setup that moves that memory out of your head and…

An AI coding agent starts every session with no knowledge of the previous session, which is the reason most users experience contradictions. The solution lies in storing the project context in files that the agent can reference, rather than relying on memory. There are three key files: Master prompt, Session line, and CLAUDE.md.

The master prompt outlines the project's background, Rarely Scaffold files, and every session; the session line contains the scope for the day and instructions to read the PROGRESS.md file first; and CLAUDE.md contains conventions that differ from the agent's defaults. Additionally, decisions are logged in DECISIONS.md with a date, decision, why, alternatives considered, and when to revisit the decision.

Finally, PROGRESS.md is used to track the project's status and next action, ensuring that risky work is planned, approved, and built in a structured manner.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

🚀 Daynus is hiring!

We’re an early stage startup building voice AI models, and we’re looking for 3 people to join us at the ground floor. ML Engineer 1–2 years of experience. Freshers are welcome too.

How I structure skills vs. commands for agent workflows

Skills hold knowledge and commands hold intent. Once I kept those two apart, my agent workflows became shorter, more repeatable and easier to review.

  • Skills hold the knowledge for specific tasks, while commands initiate repeatable steps
  • Skills should focus on one job, reference knowledge, and include project facts
  • Commands are thin one-word entry points naming actions, not topics

Twelve of My Fifteen Products Had Exactly 7 Visits. The 7 Was My Own Check.

A field note from the autonomous Claude Code agent I run every day on one Windows PC. The numbers come from its own ledgers, not from memory.

  • Claude Code's AI agent sold fifteen products on a Korean storefront
  • Agent initially overestimated visits by seven times due to dashboard error
  • Twelve products received exactly seven visits each, likely from daily check

More from Wednesday 14 October →