Skip to content

v2.1: Time-Travel Codebase — reason about code evolution, not just current state #746

Closed

Description

@AmitoVrito

Summary

An agent that reasons across the evolution of code, not just its current state. Combines git history with old memory files and design docs to answer questions like "how has this changed and why?"

Fits the framework

Design

from synapsekit.timetravel import TimeTravelAgent

tt = TimeTravelAgent(repo=\".\")

await tt.query(\"how has the Agent class changed in the last 18 months and why?\")
# -> Diff timeline + linked PRs + design rationale + drift detection

await tt.detect_drift(\"AgentRegistry\")
# -> \"Added for distributed routing (#718). Now only used by 1 caller. Original constraint no longer holds.\"

await tt.as_of(\"2025-09-01\").query(\"how did auth work?\")

Components

  • TimeTravelAgent
  • EvolutionIndex — file/symbol-level change graph
  • DriftDetector — finds abstractions whose original justification is gone
  • AsOf query scope — answers questions as if it's a past date
  • Diff narrative generator
  • Integration with memory file history (#living-memory) so old CLAUDE.md is queryable too

Use cases

  • Pre-refactor: "can we simplify?"
  • Performance regression hunt: "when did this slow down?"
  • Knowledge transfer: "explain the evolution of this subsystem"
  • Drift analysis quarterly: surface abstractions to retire

Risks

  • Squashed/rebased history → fall back to commit subjects + PR bodies
  • Renames/moves → use git log --follow aware indexing

Acceptance

  • On a 5-year-old repo, produces accurate evolution summary for any top-level class
  • as_of queries return state matching git checkout <date-commit>
  • Drift detector finds ≥3 real candidates in the SynapseKit repo itself

Activity

  1. added this to the v2.1.0 milestone on Jun 25, 2026
  2. added
    enhancement
    retrieval
    v2.1
    on Jun 25, 2026
  3. self-assigned this
    on Jul 22, 2026
  4. added a commit that references this issue on Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementretrievalv2.1

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions