Skip to content

feat(commands): BTW side-session command (spec)#485

Draft
nori-sessions[bot] wants to merge 1 commit into
mainfrom
feat-btw-side-session
Draft

feat(commands): BTW side-session command (spec)#485
nori-sessions[bot] wants to merge 1 commit into
mainfrom
feat-btw-side-session

Conversation

@nori-sessions
Copy link
Copy Markdown
Contributor

@nori-sessions nori-sessions Bot commented May 20, 2026

Summary

  • Adds APPLICATION-SPEC.md and CURRENT-PROGRESS.md for the /btw side-session feature
  • /btw <question> creates a secondary ACP session on the same NDJSON wire to answer one-off questions without interrupting the primary session
  • Uses wire-level conversation history capture for agent-agnostic context sharing (no transcript-from-disk, no session/fork dependency)
  • Covers: protocol changes (Op::Btw, BtwStarted/Delta/Complete/Error events), backend (history capture, prompt builder, side-session event routing, lifecycle handler), and minimal TUI rendering

Key design decisions

  1. Wire capture over transcript-from-disk — general to any ACP agent
  2. Same-wire multiplexingSacpConnection routes events by sessionId to separate channels
  3. Inline TUI rendering — BTW cells appear in chat history with a "BTW" label, no separate panel
  4. 5-minute timeout, one BTW at a time — simple resource management for v1

Test plan

  • Review spec and approve implementation approach
  • Implementation follows TDD — tests written before code

Spec for a /btw command that creates a secondary ACP session on the same
NDJSON wire to answer one-off questions without interrupting the primary
session. Uses wire-level conversation history capture for agent-agnostic
context sharing.
🤖 Generated with [Nori](https://noriagentic.com)

Co-Authored-By: Nori <contact@tilework.tech>
@CSRessel CSRessel changed the title feat: BTW side-session command (spec) feat(commands): BTW side-session command (spec) May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant