Key Concepts
- Thread: A persistent conversation that can include humans and AI participants.
- Context: Threads can be linked to files, line ranges, commits, or pull requests. Context provides the AI necessary project awareness.
- Visibility: Threads can be private (project-only), team-visible, or public (if your org allows it).
- Persistence: Threads are stored with configurable retention; audit logs track key events.
- Actions: Threads can trigger agent tasks, create issues, generate PRs, or be pinned to files.
Typical Workflows
-
Quick code question
- Select a code range, open the Text Thread, ask a question (human or AI reply).
- Accept or apply AI suggestions from the thread into the editor.
-
Agent-driven work
- Start a thread to plan a multi-file refactor.
- Use the Agent Panel to run an agent with the thread as the instruction source.
- Review the agent’s staged changes in the thread and approve them.
-
PR-linked discussion
- Link a thread to a PR to keep conversational context with code review comments and AI-suggested fixes.
- Threads can create suggested commits or CI-run requests.
Creating and Managing Threads
- From the editor: Select code → Right-click → “Start Text Thread” (or use Command Palette).
- From Agent Panel: Create a planning thread to serve as an agent’s instruction source.
- From the command line / CLI: use
oppla thread create
(CLI docs TBD).
Linking Threads to Files and PRs
- Attach to a file or range so the thread surfaces when that file is opened.
- Link to a PR so comments and suggested fixes are visible in both places.
- Pin a thread to the Project Panel for high-importance discussions.
AI Integration
- AI can join a thread as an assistant or be used to summarize long threads.
- Use threads to seed Agent Panel runs — the agent will reference the thread history and approvals.
- AI replies and suggested patches from threads follow AI Rules and privacy settings. See the Privacy & Security page: Privacy & Security.
Permissions, Auditing & Retention
- Thread visibility respects repository and org permissions.
- Actions that apply code changes from a thread require explicit approval (configurable).
- All thread events (creation, edits, agent runs, approvals) are logged for auditability.
- Retention is configurable via org settings; consider compliance requirements when enabling public or long-lived threads.
Keyboard Shortcuts
- Start thread for selection: Cmd/Ctrl-Shift-T
- Open thread panel: Cmd/Ctrl-Shift-Alt-T
- Reply in thread: Enter
- Pin/unpin thread: Cmd/Ctrl-P
Developer & Extension Integration
- Extensions can create, read, and update threads via the Oppla docs API (planned).
- Recommended pattern: expose a dry-run and structured JSON responses for any extension-provided actions that post or modify threads.
- Extensions should respect thread visibility and AI Rules; never post secrets into threads.
Privacy & Security Notes
- Threads may contain code context; use AI Rules to redact or block sensitive content before any outbound request.
- For highly sensitive projects, enable local-only mode: AI will not call cloud providers. See: Privacy & Security.
- Admins can configure thread retention and export rules for compliance.
Troubleshooting
- Thread not visible in file: confirm thread is attached to the exact file path and range; check project visibility settings.
- AI suggestions not shown: verify AI provider configured in AI Configuration: AI Configuration and that AI Rules permit the action.
- Thread actions failing to apply patches: ensure user has write permissions and required approvals are granted.
Related Pages
- AI Overview: AI Overview
- Agent Panel: Agent Panel
- AI Rules: AI Rules
- AI Configuration: AI Configuration
- Privacy & Security: Privacy & Security
- Key Bindings: Key Bindings
This is a stub. Next steps:
- Add UI screenshots and GIFs for thread creation and agent-driven workflows
- Document API endpoints and CLI commands for thread operations
- Provide example workflows for teams and enterprise retention policies