By ctongh
Turn prior AI-conversation logs into a structured persona profile, then load it into future Claude Code sessions so the assistant adapts to who you actually are.
Consult your persona twin from a working session without polluting this session's context. Pass any question; the twin reads its profile and your recent session, then responds in your voice.
Start a structured conversation that generates data for the analysis pipeline (questionnaire mode for first-time users, companion mode for returning users)
(legacy/optional) Capture a Gemini share-link conversation and prepare it (with topic-cluster annotation) for the agent-twin analysis pipeline. Primary capture is /save_session or /counselor.
Silently load the compiled behavior brief into this session so responses adapt to who the user is
Run meta-critic standalone on a directory of analyst outputs (manual audit entry point — orchestrator handles this automatically inside its loop)
Phase 1 analyst — self-narrative, identity language, and causal attribution. Reads an annotated conversation log; produces Core Findings, Self-Narrative Map, Contradictions/Evolution, Blind Spots. Dispatched by /run_pipeline as one of four parallel analysts.
Phase 1 analyst — emotional architecture, attachment dynamics, and defensive operations. Reads an annotated conversation log; produces Core Findings, Emotional Map, Blind Spots. Dispatched by /run_pipeline as one of four parallel analysts.
Reads the four detailed pipeline products and writes behavior_brief.md — a short, imperative-form instruction set written entirely from Claude's perspective. This is the only file /load_persona reads at conversation time.
Phase 4 builder — expands Phase 1 seeds into Behavior Pattern files (BP-XXX) with intensity-stratified responses, modulators, recovery. No meta-critic audit; validated by subject self-review. Dispatched by /run_pipeline after Phase 1 synthesis is available.
Phase 2 builder — extracts how the subject thinks (lexical fields, metaphors, question style, argument shape, emotional-rational oscillation, metacognition) from the raw conversation. No meta-critic audit; subject sanity-checks directly. Dispatched by /run_pipeline once after Phase 1 has produced its synthesis.
Consult the user's persona twin from inside a working session without polluting this session's context. Pass any free-form question; the twin reads the behavior brief and the recent session transcript in its own sub-context, then responds in the user's first-person voice. Unlike /load_persona, the brief never enters this session's prompt.
Start a structured conversation that generates data for the analysis pipeline. Automatically detects first-time users (questionnaire mode) vs. returning users (companion mode). At the end of the conversation, run /save_session to capture it for pipeline analysis.
Capture a conversation from a Gemini share link and prepare it (with topic-cluster annotation) for the agent-twin analysis pipeline. Use when the user wants to import a Gemini conversation into the persona project.
Load the user's behavior brief (behavior_brief.md) into the current Claude session so responses adapt to who the user actually is. Invoke explicitly at session start when you want persona-aware assistance.
Run meta-critic on a directory of analyst outputs without going through the full pipeline. Use when you want a standalone audit — e.g. on analyses that are already complete, or to re-check a prior pipeline run. The orchestrator already invokes meta-critic automatically as part of its loop; this skill is the manual entry point.
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
English | 繁體中文
A Claude Code plugin that learns who you are from your own conversations, then teaches every future session to talk to you — not a generic user.
agent-twin reads back the AI conversations you've already had, looks at them through four independent analytical lenses, and distills what it finds into a short brief. From then on, whenever you load that brief at the start of a session, Claude already knows the rhythm of how you think, the kinds of mistakes you don't want it to make, and the topics where you've changed your mind before.
CAPTURE ANALYZE COMPRESS LOAD
┌────────┐ ┌───────────┐ ┌──────────┐ ┌────────┐
│ Convo │ ───▶ │ 4-frame │ ───────▶│ behavior │ ──▶ │ Every │
│ logs │ │ pipeline │ │ _brief │ │session │
└────────┘ └───────────┘ └──────────┘ └────────┘
/save_session /run_pipeline /load_persona
/extract_gemini ~35 minutes ≤80 lines
/counselor 10 subagents
You give it a few of your real conversations. It gives you back:
The point isn't to mimic you. It's to give Claude enough context to drop the warm-up questions every session and meet you where you actually are.
Phase 3 and Phase 4 don't just produce text — they produce two folder-shaped artefacts deliberately authored for Obsidian's graph view. The knowledge graph emits typed concept, emotion, person, and event nodes connected by seven distinct edge types (tension, cause, derives, contradicts, reinforces, weakens, stands_for); the behavioural model emits one file per pattern (BP-001, BP-002, …) with cross-links between related patterns. Every internal reference is a wiki-link, so opening the output folder as a vault gives you a navigable, clustering map of how concepts and behaviours sit relative to each other in your actual thinking.
[Knowledge graph visualization will be added]
[Behavioral model visualization will be added]
To open: point Obsidian at $HOME/.claude/agent-twin/personalized/results/profile/ as a vault. Open the graph view (Ctrl/Cmd+G). The wiki-link edges between nodes form a typed concept graph; the clusters that emerge reveal how your concepts are grouped — which themes pull on each other, which behaviours share triggers, where your value system tightens around a single anchor. This is the most direct way to see the profile rather than just read its summary; the brief is the operational interface, the graph view is where the structure becomes visible.
You don't need to know git. The plugin installs straight from inside Claude Code.
/plugin marketplace add ctongh/agent-twin
/plugin install agent-twin@ctongh-plugins
Then, in any session:
/counselor
/counselor walks you through a guided conversation that produces enough data for the pipeline. When it finishes, it tells you to run /run_pipeline. Around thirty-five minutes later you'll have your first brief. Open a fresh session and run /load_persona — that's it.
If you'd rather feed it a conversation you've already had, use /save_session (snapshots the current Claude Code session) or /extract_gemini (imports a Gemini share-link conversation) instead of /counselor.
The marketplace fetches plugins by cloning their git repositories. By default it uses SSH, which only works if your machine has an SSH key registered with GitHub. If install bails out with a message about authentication, permissions, or [email protected], you have two options.
Option 1 — set up an SSH key on GitHub. This is the long-term fix and the option to pick if you publish your own plugins. GitHub's official walkthrough lives here: https://docs.github.com/en/authentication/connecting-to-github-with-ssh. Once your key is on your account, retry the install.
Option 2 — tell git to use HTTPS instead, just for fetches. If you only consume plugins and never push code to GitHub, you can sidestep SSH entirely with one line of configuration:
npx claudepluginhub ctongh/agent-twin --plugin agent-twinMulti-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Curate auto-memory, promote learnings to CLAUDE.md and rules, extract proven patterns into reusable skills.
Memory compression system for Claude Code - persist context across sessions
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.