Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Add persistent task state and context tracking across sessions

Open KnightCoder27 opened this issue 1 year ago • 1 comments

Feature Description

Currently, tasks in Kiro can be created and run one by one. However:

  1. Each new task starts in a new session without memory of what’s already been done.
  2. The AI can technically see the list of tasks, but it does not consistently check what has been completed or what the current task is about before proceeding.
  3. Sometimes, a task will start executing steps from other tasks instead of focusing only on the one requested.
  4. When executing task from tasks.md, and if it is already implemented still the Agent tries to read, test by creating test scripts and looping in this same state untill it gets all cases passed. In some cases, create the same task all over again and just stucks (Already created Issue for this case.)

Use Case

Example scenario: I create a task in tasks.md to “Implement authentication.” Later, the feature is already coded and working. However, when I run the task, the Agent still:

  1. Reads through the related files.
  2. Writes new test scripts.
  3. Keeps running tests in a loop until all pass.
  4. Sometimes even recreates the “Implement authentication” task again, leading to duplication and getting stuck.

I use tasks like this when I want the Agent to complete specific features step-by-step without redoing finished work. If the Agent could detect that a task is already done, mark it complete, and skip redundant work, it would save significant time and prevent wasted cycles.

Additional Context

Proposed Improvements:

  1. Persistent Task State: Maintain a session-independent record (e.g., tasks.md) that the AI can read at the start of each session to know:
  • Which tasks exist.
  • Which subtasks are completed.
  • Which step is currently in progress.
  1. Task-bound Execution: Ensure the AI only executes steps for the task it’s asked to run, without jumping into unrelated tasks.
  2. Auto Task Update: If the AI completes a subtask, it should mark it as done in the persistent record.
  3. Session Awareness: On each new session, the AI should load this record to maintain continuity.

KnightCoder27 avatar Aug 12 '25 13:08 KnightCoder27

Closing this issue as stale — it was filed over 12 months ago against an early version of Kiro, and the product has undergone significant architectural changes since then (including the 1.0 GA rewrite, new permissions system, hooks v1, Agent Focus, and many CLI improvements).

If this is still relevant on the latest version (IDE 1.0.242 / CLI 2.15.0), please open a new issue with a fresh Conversation ID and your current Kiro version — those help a lot.

AnilMaktala avatar Jul 31 '26 14:07 AnilMaktala