Summary
Add an official TouchAI session handoff flow that lets users export the useful context from a TouchAI conversation into a reviewable bundle for local developer agents such as Claude Code or Codex.
The first version should not directly control external tools. It should generate a concise handoff prompt or Markdown file that the user can review, copy, and paste into another agent.
Motivation
TouchAI is a fast AI contact surface: users can summon it quickly, capture intent, explore a problem, and build enough context to decide what should happen next.
For coding tasks, the next step is often a local developer agent. Today that transition is manual. A user or downstream agent must restate the task, reconstruct conversation history, infer what matters, and sometimes inspect TouchAI's local session database to recover context.
A recent local reverse-engineering exercise showed that this is technically possible but too fragile for normal users: the downstream agent had to locate the correct local database, understand session/message relationships, sort messages safely, distinguish metadata from content, and verify whether long messages were complete or truncated.
That experience points to a clearer product need: TouchAI should provide a stable, official, user-reviewed session handoff bundle so downstream agents do not need to reverse-engineer local storage.
Affected boundaries
- session persistence
- context construction
The initial design should avoid:
- tool execution
- instruction loading
- agent orchestration
- MCP integration
- database schema or migrations
Proposed design
Phase 1: copy/export handoff bundle
Add a user action in the conversation UI, such as "Handoff to developer agent".
When triggered, TouchAI generates a reviewable handoff bundle from the current session.
The bundle should include:
- current user goal
- concise conversation summary
- important user constraints or preferences
- relevant assistant conclusions
- open questions or unverified assumptions
- referenced files or attachment paths when available and safe
- non-sensitive model/provider metadata when useful
- provenance labels that separate user-provided content from assistant-generated interpretation
The bundle should not include:
- API keys or provider secrets
- hidden configuration
- full raw tool outputs by default
- unrelated historical messages
- local absolute paths unless the user confirms them
- external agent configuration changes
- AI-generated claims presented as user-confirmed facts
Supported outputs for the first version:
- Copy handoff prompt to clipboard
- Export handoff Markdown to a user-selected location
Example bundle shape:
You are taking over from a TouchAI conversation.
User goal:
...
Current understanding:
...
Important constraints:
...
Relevant context:
...
Unverified assumptions:
...
Suggested next step:
...
Phase 2: local developer-agent affordances
After the bundle format is validated, TouchAI can optionally detect local Claude Code / Codex availability and offer lightweight actions:
- copy the bundle and show a "continue in Claude Code / Codex" hint
- open the project directory in a terminal
- save a handoff Markdown file near the selected workspace
- provide tool-specific command suggestions
This phase should still avoid sending commands into external tools unless a separate design is accepted.
Phase 3: bidirectional handoff
A later design can explore the reverse direction:
- importing a summary from Claude Code / Codex back into TouchAI
- forking a TouchAI session from downstream agent work
- preserving traceability between the original TouchAI session and follow-up implementation work
This should be treated separately because it raises deeper questions around state ownership, privacy, conflict handling, and cross-agent session identity.
Alternatives and trade-offs
Manual copy from the UI
Users can already copy parts of a conversation manually, but this loses structure and often misses constraints, open questions, and provenance.
Downstream agents read TouchAI's local database
This is possible but not appropriate as a product workflow. It depends on internal schema knowledge, local installation paths, SQLite behavior, and careful read-only handling. It also creates unnecessary privacy and safety risk.
Directly launch Claude Code / Codex with full context
This gives the smoothest experience, but it is higher risk. It requires tool detection, process launching, command construction, OS-specific behavior, and stronger guarantees around sensitive context review.
Upstream references
Related issue:
Testing and rollout
Phase 1 can be validated without external tool automation.
Tests should cover:
- short sessions
- long sessions
- sessions where the title no longer represents the latest topic
- sessions with assistant-generated summaries
- sessions with tool calls or attachments
- masking or omission of sensitive fields
- stable Markdown formatting
- preserving user/assistant provenance
Manual validation should cover:
- copying the bundle into Claude Code
- copying the bundle into Codex
- checking whether the receiving agent can continue without the user restating the conversation
- checking that the exported bundle is concise and reviewable rather than a raw transcript
Rollout can start with "Copy handoff prompt". File export and local tool detection can follow after the bundle shape is accepted.
Summary
Add an official TouchAI session handoff flow that lets users export the useful context from a TouchAI conversation into a reviewable bundle for local developer agents such as Claude Code or Codex.
The first version should not directly control external tools. It should generate a concise handoff prompt or Markdown file that the user can review, copy, and paste into another agent.
Motivation
TouchAI is a fast AI contact surface: users can summon it quickly, capture intent, explore a problem, and build enough context to decide what should happen next.
For coding tasks, the next step is often a local developer agent. Today that transition is manual. A user or downstream agent must restate the task, reconstruct conversation history, infer what matters, and sometimes inspect TouchAI's local session database to recover context.
A recent local reverse-engineering exercise showed that this is technically possible but too fragile for normal users: the downstream agent had to locate the correct local database, understand session/message relationships, sort messages safely, distinguish metadata from content, and verify whether long messages were complete or truncated.
That experience points to a clearer product need: TouchAI should provide a stable, official, user-reviewed session handoff bundle so downstream agents do not need to reverse-engineer local storage.
Affected boundaries
The initial design should avoid:
Proposed design
Phase 1: copy/export handoff bundle
Add a user action in the conversation UI, such as "Handoff to developer agent".
When triggered, TouchAI generates a reviewable handoff bundle from the current session.
The bundle should include:
The bundle should not include:
Supported outputs for the first version:
Example bundle shape:
Phase 2: local developer-agent affordances
After the bundle format is validated, TouchAI can optionally detect local Claude Code / Codex availability and offer lightweight actions:
This phase should still avoid sending commands into external tools unless a separate design is accepted.
Phase 3: bidirectional handoff
A later design can explore the reverse direction:
This should be treated separately because it raises deeper questions around state ownership, privacy, conflict handling, and cross-agent session identity.
Alternatives and trade-offs
Manual copy from the UI
Users can already copy parts of a conversation manually, but this loses structure and often misses constraints, open questions, and provenance.
Downstream agents read TouchAI's local database
This is possible but not appropriate as a product workflow. It depends on internal schema knowledge, local installation paths, SQLite behavior, and careful read-only handling. It also creates unnecessary privacy and safety risk.
Directly launch Claude Code / Codex with full context
This gives the smoothest experience, but it is higher risk. It requires tool detection, process launching, command construction, OS-specific behavior, and stronger guarantees around sensitive context review.
Upstream references
Related issue:
Testing and rollout
Phase 1 can be validated without external tool automation.
Tests should cover:
Manual validation should cover:
Rollout can start with "Copy handoff prompt". File export and local tool detection can follow after the bundle shape is accepted.