Skip to content

v2.1: Digital Twin Agent — clones your workflow patterns, drafts in your voice #745

Closed

Description

@AmitoVrito

Summary

A DigitalTwin agent that observes your patterns and learns to draft commits, PR descriptions, code reviews, and emails in your voice. Stored as an evolving style.md you can edit.

Fits the framework

Design

from synapsekit.twin import DigitalTwin

twin = DigitalTwin(
    profile=\"~/.synapsekit/twin/style.md\",
    learn_from=[GitHistory(\".\"), GmailArchive(...), SlackArchive(...)],
    delegation=DelegationPolicy(
        commit_messages=\"draft\",
        pr_descriptions=\"draft\",
        pr_reviews=\"draft_with_approval\",
        emails=\"never_send_auto\",
    ),
)

draft = await twin.draft_pr_description(diff=current_diff)

Learned patterns

  • Tone (formal vs casual)
  • Structure (bulleted vs prose)
  • Vocabulary ("ship" vs "deploy", "bug" vs "defect")
  • Code conventions (ternary preferences, naming, imports)
  • Review style (nitpicky vs holistic)

Components

  • DigitalTwin agent
  • StyleProfile — versioned, human-editable style.md
  • VoiceMatcher — evaluates twin output vs human samples (BLEU + perplexity + LLM judge)
  • DelegationPolicy — per-channel approval gates
  • AFK mode: "handle PR triage for 2h with these rules"
  • Twin attribution: every output tagged "drafted by twin v3"

Risks

  • Impersonation concerns → never auto-send to humans without approval gate
  • Style drift over time → checkpoint + diff against historical samples
  • Bias amplification → review prompts for harmful patterns

Acceptance

  • Voice-match score ≥0.85 vs ground truth on held-out samples
  • Twin-drafted PR descriptions accepted unedited ≥50% of the time
  • Full provenance: every twin output linked to training samples used

Activity

  1. added this to the v2.1.0 milestone on Jun 25, 2026
  2. added
    enhancement
    agents
    v2.1
    on Jun 25, 2026
  3. 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

No one assigned

    Labels

    agentsenhancementv2.1

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions