[META] Agent Context Logging #125

Open
opened 2026-04-03 13:07:45 +02:00 by shoko · 0 comments
Owner

Summary

This is a meta issue tracking all phases of Agent Context Logging implementation.

Context

Agent Context Logging captures agent decision points for:

  • Session resumption
  • Pattern analysis
  • Feedback-driven prompt improvements

Two Separate Logging Systems

System Purpose Storage
dev-*.log Raw terminal output for debugging ~/.kugetsu/logs/dev-*.log
context JSON Clean user/assistant messages for resumption/analysis ~/.kugetsu/context/{issue}.json

We chose Option A (keep separate) over parsing from dev-*.log because:

  • dev-*.log has mixed output (tool calls, git output, errors) - fragile to parse
  • context JSON is clean and structured
  • Maintains modularity

Phases

Phase 1: Initial Prompt Capture

Phase 2: Session-end Detection + Final Capture

Phase 3: Pattern Detection

Sub-Issues

Issue Phase Status
#212 Phase 1: Initial Prompt Capture Ready
#213 Phase 2: Session-end + Final Blocked (research)
#214 Phase 3: Pattern Detection Blocked (0.3.x)
## Summary This is a meta issue tracking all phases of Agent Context Logging implementation. ## Context Agent Context Logging captures agent decision points for: - Session resumption - Pattern analysis - Feedback-driven prompt improvements ## Two Separate Logging Systems | System | Purpose | Storage | |--------|---------|---------| | **dev-*.log** | Raw terminal output for debugging | `~/.kugetsu/logs/dev-*.log` | | **context JSON** | Clean user/assistant messages for resumption/analysis | `~/.kugetsu/context/{issue}.json` | We chose **Option A** (keep separate) over parsing from dev-*.log because: - dev-*.log has mixed output (tool calls, git output, errors) - fragile to parse - context JSON is clean and structured - Maintains modularity ## Phases ### Phase 1: Initial Prompt Capture - **Issue:** #212 - **Status:** Ready for implementation - **Scope:** Integrate `kugetsu_context_dump()` into delegation flow to capture initial user prompt ### Phase 2: Session-end Detection + Final Capture - **Issue:** #213 - **Status:** Blocked - needs research - **Scope:** Detect when session ends and capture final agent response + outcome ### Phase 3: Pattern Detection - **Issue:** #214 - **Status:** Blocked - 0.3.x - **Scope:** Aggregate context across issues to detect patterns ## Sub-Issues | Issue | Phase | Status | |-------|-------|--------| | #212 | Phase 1: Initial Prompt Capture | Ready | | #213 | Phase 2: Session-end + Final | Blocked (research) | | #214 | Phase 3: Pattern Detection | Blocked (0.3.x) |
shoko added the feature0.2.x-only labels 2026-04-03 13:07:45 +02:00
shoko added this to the v0.2.x milestone 2026-04-03 13:07:56 +02:00
shoko added 0.3.x-only and removed 0.2.x-only labels 2026-04-05 07:03:46 +02:00
shoko added the blocked label 2026-04-07 08:55:40 +02:00
shoko changed title from Feature - Agent Context Logging to [META] Agent Context Logging 2026-04-07 11:56:26 +02:00
shoko added the meta label 2026-04-07 11:56:46 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/kugetsu#125