SageOx / product plan
Summary
Session import · onboardingDirection selected: hint + emailOctober 13, 2026
Bring yesterday’s sessions into day-one onboarding.
A new customer already has useful history. Make ox session import easy to discover when setup succeeds, then reinforce it in the emails and guide they already receive.
Ship one optional hint, one consistent command. The existing import flow handles preview, selection, and confirmation. Setup remains quick.
Release gateThe installed CLI has session import; this checkout predates it. Add the hint on a base containing the command, and publish email guidance after that CLI is available.
Discovery journey
The mental model
Two entry points. One import flow.
Teach the value at setup, retain the command in the inbox, and let the customer decide what to share.
New: make the path visible. Reused: repo filtering, reader, selection, summarization, deduplication, and upload.Customer choice: leaving init or declining import completes setup with no imported history.
Customer experience
Review the actual copy
Show the next useful thing.
One short promise: past sessions from this repo can become shared history, and the customer controls the import.
Init completionOnboarding emailGetting-started guide Terminal · example completion excerpt○ ○ ○ $ ox initSageOx initialized successfully! Optional: Bring past sessions into your team’s LedgerClaude Code and Codex sessions from this repo.After setup and sync: ox session importPreview and choose; nothing uploads until you confirm. Next Steps1. Commit and push SageOx files2. Run ox doctor3. Invite your teammates4. Start your AI coworker in this repo Why this placement works 01Visible on every eligible completion
Immediately below success, before the long Next Steps list. Independent of rotating tips.
02Optional is in the heading
Import is a useful follow-up. It adds no setup prompt and runs no discovery in init.
03The command is copyable
No agent ID, file path, or flag is needed. Existing import provides the richer review experience.
Exact new block shown. Surrounding Next Steps are abbreviated in this mockup; retain their current order and conditional sync / Codex trust instructions.
From · SageOxSubject · New Repository InitializedSageOxRepository email · proposed inserted section
Your repository is connected.
You’ve initialized a new SageOx repository.
Bring past sessions into your Ledger
Already worked in this repo with Claude Code or Codex? After setup and sync, run this command from the same repo:
ox session import
Preview and choose the sessions worth sharing. Check the destination and visibility; nothing uploads until you confirm. This is optional, and you can do it later.
Go to Team
Existing subject, delivery rules, and app CTA remain in place.
Two existing messages 01Account welcome: seed the idea
Add a compact “Already have coding history?” block after Connect tools. Say “After connecting a repo with ox init and finishing sync…” before the command.
02Repository email: name the action
Insert the mocked section before the existing next steps. This is the email directly associated with repository initialization.
03Both HTML and plain text
The command and confirmation promise must survive plain-text mail, dark mode, and narrow clients.
Use existing cadence. Add content to existing messages; introduce no new email, trigger, resend, or reminder.
ox guide getting-started · proposed sectionAlso in web docsAfter setup and verification
Bring past sessions into your Ledger
Already used Claude Code or Codex in this repository? You can import those past sessions into the repo’s Ledger.
ox session import
Preview, choose what is useful, and check the destination and visibility before confirming. Importing is optional. Sessions already imported or recorded live are skipped.
Prefer a local browser reader? Run ox session import --browse. For a preview without importing, run ox session import --dry-run.
Finish setup and sync first. You’ll need an installed, authenticated Claude Code or Codex CLI to summarize selected sessions. Previewing makes no summarizer calls; summaries use your CLI after confirmation.
No sessions found? Continue working normally. Run the command again later from the repo whose history you want.
Progressive disclosure 01The short path is always first
The same bare command anchors terminal, email, and docs.
02More detail belongs here
Supported tools, browser review, preview-only mode, summary prerequisites, and repeat imports.
03Explain a pending Ledger
If import asks for it, run ox sync, check ox status, and retry when the Ledger is available.
One anchor: /docs/getting-started#bring-past-sessions-into-your-ledger. Email links use the configured app/docs origin.
Decision and behavior
The selected tradeoff
Discovery earns its place in init.
The customer chose hint + email. The plan reuses the complete import flow rather than expanding setup.
| Approach | Setup friction | Work required |
|---|---|---|
| Hint + emailSelected | No new choice | Copy + completion output |
| Optional handoff | One extra prompt | Init → import orchestration |
| Embedded importer | Review inside setup | A second entry to maintain |
Keep the promise precise.
Init introduces import; it does not start it. Print static guidance with no native-session scan, browser launch, summary call, or import API call.
Share only after confirmation. Use the existing destination and visibility review. Avoid commands with --yes in onboarding copy.
Limit the claim to today’s support. Past Claude Code and Codex sessions from the current repo, rather than every AI tool or every session on the computer.
Acceptance and rollout
What done means
Easy to find. Safe to defer.
A customer can identify the command, understand where the history goes, and continue onboarding without importing anything.
| Scenario | Expected customer outcome | Validation |
|---|---|---|
| Successful init | Optional hint appears once, before Next Steps, even with tips disabled. | Real init E2E + output assertions |
| Quiet / JSON / failed setup | No new banner. Existing output and exit behavior remain intact. | Mode and failure tests |
| Recording disabled | No init import recommendation; no setting is changed to enable it. | Canonical config resolver test |
| Sync still pending | Setup succeeds. The hint says “after setup and sync”; existing sync guidance stays visible. | Deferred-sync init E2E |
| Existing import flow | Preview, select, decline, import, and repeat-import behavior remain unchanged. | Existing import regressions |
| Welcome / repo email | Copy includes the bare command, repo scope, optionality, and confirmation in HTML and text. | Template tests + narrow email preview |
| Docs and release | The email anchor resolves, and the downloadable CLI recognizes the advertised command. | Docs build + release smoke check |
FIRST · DEPENDENCY
Command available
Work on a base with the existing importer. Verify its help and preview behavior in the supported release.
THEN · CLI + DOCS
Hint is discoverable
Ship completion copy and both getting-started surfaces. Ryan reviews the new data-access guidance.
LAST · EMAIL COPY
Inbox reinforces it
Update the two existing messages after the release and docs link are live. Use existing send rules.
Success check: in a fresh-customer walkthrough, the person can name ox session import and explain “optional, this repo, confirm before sharing” from the completion or email alone. Observe during ordinary onboarding; introduce no new telemetry in this change.
Implementation notes
Implementation notes
Summary and boundaries
Make session import part of ox init through deterministic discovery, with matching content in existing onboarding messages. Deliver terminal output, bundled and web getting-started sections, HTML/plain-text email copy, and tests. No new import engine, native-session scanning in init, persisted “hint seen” state, email cadence, feature flag, API endpoint, public Go type, customer-facing env var, or storage-path change.
1. Init output
- In
cmd/ox/init.go, print the exact four-line block from the terminal mockup immediately after the success separator and before Next Steps. Extract a small output helper if needed to make eligibility and formatting testable. Use existingcli/uistyles, includingcli.StyleCommand; no new palette or TUI. - Show once per successful completion when the saved project has a repo ID and team ID,
initQuietis false, global JSON output is false, andconfig.ResolveSessionRecording(gitRoot).ShouldRecord()is true. Capture the global output mode without confusing it with the local project-config variable. Reuseconfig.IsInitializedwhere initialization eligibility is required. - Do not require a cloned Ledger or completed sync just to print the hint. Do not infer import readiness from
daemonSynced: that reports a sync request, not clone completion. The constant phrase “After setup and sync” applies to both sync branches. Import preflight owns operational readiness and error guidance. - Successful re-init may show the same hint once. Early exits that never reach success, remote-already-initialized returns, and canceled or failed init remain without the block. A local setup without a bound team does not get an actionable import recommendation.
- Do not put the only discovery copy in
internal/tips. The randomized tip pool can remain as-is; turning tips off must not hide this completion guidance. Retain existing Next Steps order, including conditional sync and Codex trust instructions. - Add a brief
initCmd.Longsentence that past Claude Code/Codex sessions can be imported optionally after setup and sync. Regenerate CLI reference docs from Cobra definitions using the project workflow; do not hand-edit generated reference content.
2. Guides and exact public copy
Insert the guide mockup’s section after setup verification and before Daily use in cmd/ox/guides/getting-started.md. Insert the corresponding optional block directly after CLI connection in sageox-monorepo/apps/docs/content/getting-started.mdx. Use the heading Bring past sessions into your Ledger, producing the shared anchor #bring-past-sessions-into-your-ledger.
Explain that the command operates on local Claude Code/Codex history associated with this repo; active sessions and already-imported/live-recorded history are handled by existing import classification. No history is a normal outcome. A selected import uses an installed/authenticated Claude or Codex CLI for summaries and may consume that CLI’s allowance. The guide can point to ox session import --help for limits and flags. Do not advertise ox import (document/media import) or ox agent <id> session import (current recording’s planning history) as this customer path.
3. Existing emails
| Surface / source | Insertion and exact copy |
|---|---|
Account welcome sageox-monorepo/apps/web/src/emails/WelcomeEmail.tsx | Insert a short block adjacent to the first Connect tools step, without creating another top-level step. Already have coding history? After connecting a repo with ox init and finishing sync, run ox session import from that repo to bring past Claude Code and Codex sessions into its Ledger. Preview and choose what is worth sharing; check the destination and visibility before you confirm. This is optional, and you can do it later. Mirror the paragraph in WelcomeEmailText. Keep subject, three-step structure, CTA, and delivery workflow. |
Repo-initialized email sageox-monorepo/apps/api-go/internal/service/welcome_email.go | Insert the section shown in the email mockup before existing next-step bullets in both buildExistingUserEmail and buildNewUserEmail. The authenticated init path currently selects the existing-user variant; cover both to avoid a copy gap. Keep the generic notification renderer and current send behavior. |
Add a secondary How session import works link to the getting-started anchor in both surfaces. Construct it from the existing configured public origin / absoluteEmailUrl mechanism. No localhost link, development command, fixed endpoint, new button, signup-method branch, or new event trigger. The welcome email cannot know repo-level recording preferences, so the copy stays conditional and optional; import’s existing preflight respects those settings.
4. Interfaces and compatibility
- Human-visible interface: one stable completion block; a short help sentence; an optional docs section; two email paragraphs. The advertised entry point is exactly
ox session import. - CLI contract: no new flag or changed selection default, no
--yesin customer guidance, and no JSON field or output-schema change. Suppress only the new human banner for JSON; do not expand this task into rewriting init’s existing output implementation. - Dependency: this checkout is
mainatcb7b41e1; it lacks the native import implementation. The installedox 0.23.0, built at25bef8e5, containscmd/ox/session_import.go. Base implementation on a reviewed ref containing that feature instead of cherry-picking a duplicate importer or emitting a broken hint. - Privacy and readiness: retain import’s existing redaction, destination checks, confirmation, classification, and Ledger readiness failures. The hint itself reads no native session store, claims no session count, and makes no summary call.
- Review: Ryan must review because this changes data-access ergonomics under the repository’s required-review policy. It changes how customers discover access to their session history, even though storage and URLs remain unchanged.
5. Tests and acceptance
- Extend real init tests with the stub API and temporary repositories: success with sync requested, sync deferred, no team, successful re-init, and recording disabled. Assert hint count = 1, its location before Next Steps, and preserved doctor → Codex trust → invite order where those steps exist.
- Add mode/eligibility coverage for quiet, global JSON, tips disabled, and pre-success failures. Confirm no native-store discovery, importer launch, summarizer invocation, or import-only request is introduced by init. Test through a fake importer dependency/counter only if an orchestration seam exists; do not add one solely for this text change.
- Run existing native-import tests for preview, decline/cancel, selective confirmation, deduplication, missing Ledger, and absent summarizer. Extend the onboarding acceptance scenario so a new coworker is told about optional past-session import.
- Extend welcome template tests to assert matching command, optionality, repo scope, and confirmation copy in HTML/plain text. Add Go builder coverage for both repo-email variants. Render email catalog previews at narrow and desktop widths with the existing compatibility checks.
- Verify the bundled guide, generated init help/reference, web docs anchor, and email link agree. Run the ox gates
make lintandmake test, plus the affected monorepo web/email and Go service checks.
6. Rollout and assumptions
Chosen default: hint + existing emails, as selected by the customer. Audience: a new CLI customer with past Claude Code/Codex history; other customers can skip it. One coherent ox change: completion/help/bundled guide/tests. One companion monorepo change: web docs + existing email content/tests. The separate repository boundaries require separate review artifacts, but not a new onboarding campaign.
Land and publish the CLI feature and docs first. Verify the distributed binary’s ox session import --help and preview path, then deploy email copy. Existing delivery rules remain unchanged. Rollback is removal of the new hint/email paragraphs and links; it does not alter or remove imported data. No data migration or new telemetry is required. Observe ordinary onboarding for “I didn’t know this existed,” wrong-command use, and sync dead ends, and refine copy if those recur.
Evidence and reconciliation
cmd/ox/init.go:1007— current completion is success → Next Steps → sync status → randomized tip; no native import hint.cmd/ox/guides/getting-started.md— setup verification currently goes directly to Daily use.git show 25bef8e5:cmd/ox/session_import.go— supported agents, repo scoping, preview, confirmation, summarizer requirements, and preflight behavior.- SageOx prior work: See a session before sharing it — reuse the browser / terminal selection flow rather than constructing another onboarding importer.
sageox-monorepo/apps/web/src/emails/WelcomeEmail.tsxandapps/api-go/internal/service/welcome_email.go— account welcome and repo-init email are distinct existing surfaces.ox plan enrichroutes init changes to Ryan; this aligns with the explicit data-access review requirement.docs/specs/agent-ux-principles.mdsupports fast setup and progressive disclosure.
enriched byPrepared with SageOx team context · Planning session

