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.
  Workspace tools default to the active worktree. When they advertise `target`, use `target: "origin"` to inspect the verified host repository worktree without leaving this tab. Read the origin's applicable `AGENTS.md` before changing it.
  When the user explicitly asks you to commit, use the advertised `git_commit` tool. Set `target: "origin"` only when the user asks to commit there. Do not use `run_shell_command` for `git add` or `git commit`, because shared Git metadata is intentionally protected.
  `git_commit` requires a commit message and accepts optional target-relative paths; omit paths to include all current changes in the selected worktree. Do not create a commit unless the user requested one.
PROMPT