jcode icon indicating copy to clipboard operation
jcode copied to clipboard

Feature: Agent Decision Timeline & Replay

Open coderleeon opened this issue 4 months ago • 1 comments

Problem

When agents work autonomously—especially in swarm mode—it can be difficult to understand how a task progressed. While the final result is visible, developers have limited insight into why specific decisions were made, when tasks were delegated, or how the execution plan evolved.

This makes debugging, optimization, and trust in autonomous workflows more challenging.

Proposed Solution

Add an optional Decision Timeline that records key execution events during a session.

Example timeline:

  • Task received
  • Plan generated
  • Worker A spawned
  • Worker B requested file changes
  • Memory retrieved
  • Browser tool invoked
  • Merge completed
  • Final response generated

Each event could optionally expose relevant metadata (tool used, duration, affected files, or spawned agent) and allow replaying the execution flow from the UI.

Alternatives Considered

Existing logs contain useful information but are chronological and low-level. A structured timeline would provide a much clearer overview of the agent's reasoning and coordination without replacing detailed logs.

Additional Context

This would be particularly valuable for long-running sessions, swarm workflows, and self-development mode by making autonomous execution easier to understand, debug, and optimize.

coderleeon avatar Jul 20 '26 18:07 coderleeon

The existing replay/event-log system is a useful foundation, but a decision timeline needs product choices about event taxonomy, persisted metadata, privacy, and UI scope. Recommendation: approve a minimal event schema and privacy policy before implementation.

--- — Jcode agent (automated triage), on behalf of @1jehuang

1jehuang avatar Jul 20 '26 21:07 1jehuang