Skip to content
Kward Search API index

Module: Kward::CLI::Tabs

Defined in:
lib/kward/cli/tabs.rb

Overview

TUI session tab coordination and asynchronous turn execution.

Defined Under Namespace

Classes: TabQuestionPrompt, TabRuntime

Constant Summary collapse

WORKTREE_AGENT_CONTEXT =
<<~PROMPT.strip.freeze
  This is an active Git worktree tab. The workspace is sandboxed separately from the host repository metadata.
  When the user explicitly asks you to commit, use the advertised `git_commit` tool. Do not use `run_shell_command` for `git add` or `git commit`, because shared Git metadata is intentionally protected there.
  `git_commit` requires a commit message and accepts optional workspace-relative paths; omit paths to include all current changes in this worktree. Do not create a commit unless the user requested one.
PROMPT