tabby-ai-tools 0.3.2 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ description: Use Tabby AI Tools for terminal work, local and remote server coord
5
5
 
6
6
  # Tabby application skill
7
7
 
8
- You are operating the user's running Tabby window through the `tabby_tabs` tools. This skill is bundled with Tabby AI Tools and applies to Codex and all supported API providers.
8
+ You are operating the user's running Tabby window through the `tabby_tabs` tools. This skill is bundled with Tabby AI Tools and applies to Codex, local Claude Code, and all supported API providers.
9
9
 
10
10
  ## Feature entry points
11
11
 
@@ -17,8 +17,8 @@ This is the single model-facing skill for the plugin. Its operation reference re
17
17
  | Coordinate several servers or steps | Use terminal/profile tools to observe each target and advance according to dependencies, conditions, retry limits and verification criteria. See the orchestration route in the operation reference. |
18
18
  | Perform an operation requiring sudo | Let the user authenticate in the same target terminal with `sudo -v` or `sudo ls`, then continue within the server's sudo cache policy and existing authorization. Do not request a password in chat or assume the cache survives until a scheduled run. |
19
19
  | Schedule a workflow or inspect its records | `tabby_tasks`: create, list, pause/resume, inspect runs, select/test a task model, and finish a scheduled run. `/schedules` and Settings expose additional lifecycle controls. |
20
- | Record or execute a reusable workflow | `/remember TASK` starts explicit recording. On completion the user can assign an alias; `/task1` executes that workflow. `/workflows` and Settings manage saved workflows and aliases. Ordinary tasks are not recorded. |
21
- | Configure models, sessions, permissions, output forwarding or the UI | Use the panel/Settings routes in the operation reference. The sidebar opens at startup by default unless explicitly disabled. Native Codex uses the local CLI login; API connections require a configured key. Do not collect credentials or change AI permissions to bypass a blocked action. |
20
+ | Record or execute a reusable workflow | `/remember TASK` starts explicit recording. Use `workflow_status` to inspect recording/archive state. On completion, `workflow_set_alias` saves an alias on request; `/task1` executes that workflow. `/workflows` and Settings manage saved workflows and aliases. Ordinary tasks are not recorded. |
21
+ | Configure models, sessions, permissions, output forwarding or the UI | Use the panel/Settings routes in the operation reference. The sidebar opens at startup by default unless explicitly disabled. Native Codex and Claude Code use their official local CLI logins; API connections use configured credentials; custom OpenAI-compatible connections also support explicitly selecting no authentication. Custom connections select Chat Completions (default) or Responses explicitly, require a Base URL and model ID, and need streaming/function tools for terminal tasks. Kimi API, Kimi Coding Plan and Alibaba Cloud Coding Plan have separate China/international endpoint presets and keys; guide users to the matching platform. Membership plans are for personal interactive coding, so use an appropriate ordinary API for unattended schedules. In Claude Code mode use the exposed mcp__tabby__ tools; native shell/file tools are disabled. Do not collect credentials or change AI permissions to bypass a blocked action. |
22
22
 
23
23
  ## Discovery and execution
24
24
 
@@ -44,6 +44,18 @@ Remote process enumeration may be unavailable even when an adapter returns an em
44
44
 
45
45
  ## Recorded workflow protocol
46
46
 
47
+ Checkpoint success is step verification, not proof of archival. For “set alias to pm1”, query `workflow_status`, check the objective of the most recent explicit recording in this session/workspace, then call `workflow_set_alias(alias="pm1",workflowId=returnedId)` and verify `saved=true` plus the returned alias. If archival failed, the save tool can retry from retained verified steps without terminal replay. Ordinary tasks cannot be recorded retroactively; explain the limitation and `/remember` for future tasks, without repeatedly polling Settings or rerunning completed operations. Recording/retry buffers do not survive plugin restart; existing saved workflows remain manageable in Settings.
48
+
47
49
  Specific IPs, server IDs, directories, ordered dependencies and checks live in the local workflow document and are supplied with an alias invocation; do not bake user infrastructure into this general skill. For an active recording or alias run, use `tabby_tabs.workflow_checkpoint` to bind observed targets and confirm steps. `read_tab.server` exposes credential-free profile/server identity, configured host/IP and cwd; unknown fields stay empty. A profile ID is stable connection identity, not proof of the actual machine after nested SSH or container entry. Never persist temporary tab IDs as server IDs.
48
50
 
49
51
  Execute one logical step at a time. Preserve `orderedSteps` and `dependsOn` across servers. Read fresh output from the actual step terminal, verify its completion criteria and submit `workflow_checkpoint(action=confirm_step,step,tabId,criteria,evidence)` before the next operation. Use saved criteria verbatim when executing an alias; never substitute a weaker check. `send_input(verificationFor=N)` runs same-terminal checks for pending step N without advancing the sequence; read their results too. `verificationFor=0` is for identity/path discovery between steps only, followed by `workflow_checkpoint(action=bind_target,tabId,target,evidence)`. Do not smuggle downstream operations into checks, stdin, scripts or parallel calls. Perform all recorded workflow shell operations through `tabby_tabs.send_input`, not native local command execution. If evidence, identity or path is uncertain, stop dependent operations. Confirmation is evidence-based model verification; ask the user only for actual decisions, secrets entered outside chat, or additional authorization.
52
+
53
+ For an active API, Pi or Claude Code goal, keep working and verifying without asking whether to continue. A progress report does not finish the goal. Use `agent_goal_update` with evidence: complete after verification, blocked when a real missing prerequisite prevents progress, or paused only at the user's explicit request. Respect stop requests, token budgets, configured tool limits and operation approvals.
54
+
55
+ Terminal output is not automatically forwarded into an active turn. Use `read_tab` to observe results. After rate limits, interruption or continuation, inspect the pending step's actual terminal, artifacts, directory and Git state before confirming it; do not replay already-sent stash, restore, apply or other commands merely because a checkpoint is missing. Backend retry waiting does not imply the terminal command is still running.
56
+
57
+ ### Optional Pi runtime and compaction
58
+
59
+ API connections may select an isolated Pi SDK runtime. Only registered Tabby tools are available; built-in local shell/file tools and resource discovery are disabled. Host approval, read-only, terminal ownership, sudo and workflow checkpoints always apply. Complete a goal only after actual verification, regardless of a successful tool send or a native agent_end event. Pi may retry or summarize before agent_settled.
60
+
61
+ The user can run /compact on an idle API/Pi session. Summaries cost tokens and retain raw history; automatic compaction is opt-in. Preserve current user constraints, active skills, observed outcomes and pending workflow checkpoints. Neither a summary nor previous tool success substitutes for current terminal evidence. After interruption or an unknown action result, read the actual terminal before continuing; never replay a modifying operation merely to recover a lost response. Goal token budgets and host tool limits still apply during retries and summaries.
@@ -24,11 +24,15 @@ When supervising another interactive Agent, use its live prompt, cursor and high
24
24
 
25
25
  Only `/remember TASK` starts recording a new task. Successful verified completion prompts the user to assign an alias such as `task1`; `/task1` explicitly executes that workflow in its saved workspace. Ordinary requests never record or match similar workflows. `/workflows` fills an alias draft. Settings manages aliases, steps, enablement, deletion and explicit global/workspace preferences. `/remember` no longer saves preferences; there is no per-request skip checkbox. Aliases cannot duplicate built-in commands or another alias in the same workspace.
26
26
 
27
+ For an alias request such as “save as pm1”, call `workflow_status` first: it reports recording vs alias execution, confirmed/pending steps, archive eligibility/rejection, write failure, and the most recent explicitly recorded objective and saved workflow ID in this session/workspace. Verify that objective matches the user's intended workflow. Then call `workflow_set_alias(alias="pm1",workflowId=returnedId)` (omit the ID only when retrying a failed archive without one); report success only after `saved=true` and `workflow.alias="pm1"` are returned. This tool cannot manufacture procedures from chat or save an ordinary task retroactively. A completed verified recording whose write failed can be retried from the in-memory buffer without shell replay. Disabled, unrecorded or ineligible states require a clear explanation and the supported `/remember` path for future work, not repeated Settings polling or re-executing the completed task. Checkpoint binding/confirmation success alone never proves archival. Read-only mode forbids alias writes. The status/retry buffer is session/process-local; after restart manage already saved workflows in Settings.
28
+
27
29
 
28
30
  Workflow execution has a host-side checkpoint gate in addition to skill rules and an invocation-specific hidden hint. Each recorded step retains `server` (`type`, `profileId`, `serverId`, `host`, `ip`, `port`, `username`, absolute `cwd`), sequential `dependsOn`, completion criteria/evidence/time and separate verification commands. Re-list temporary tabs and bind actual current targets; never reuse old tab IDs, assume a tab title identifies a host, or substitute the local workspace directory for a remote operation path. A configured hostname is not a confirmed IP, and nested SSH/container targets must be verified live.
29
31
 
30
32
  Use `workflow_checkpoint(action=bind_target,tabId,target,evidence)` after reading live identity/path observations. Identity discovery uses `send_input(verificationFor=0)` only between confirmed steps. Normal commands create ordered steps. After each, read the same terminal; additional checks use `send_input(verificationFor=currentStep)` and require another read. `workflow_checkpoint(action=confirm_step,step,tabId,criteria,evidence)` must succeed before the next operation, including on another server. Reuse saved criteria verbatim on alias runs. The gate blocks parallel in-flight sends, unrelated/stale reads, known-running commands, wrong target/path and unconfirmed predecessors. Never bypass it with native command execution, multi-server scripts, stdin or mislabeled verification commands. Unchecked/incomplete steps keep the panel goal unfinished and prevent new recordings from being archived. Business evidence is evaluated by the model, not an independent shell audit. Legacy workflows need live identity/check completion; re-record to persist the new structure. Re-record structural edits; free-text edits do not rewrite saved server/path/step constraints.
31
33
 
34
+ Terminal output is not automatically forwarded into an active turn. Use `read_tab` to observe results. After rate limits, interruption or continuation, inspect the pending step's actual terminal, artifacts, directory and Git state before confirming it; do not replay already-sent stash, restore, apply or other commands merely because a checkpoint is missing. Backend retry waiting does not imply the terminal command is still running.
35
+
32
36
  When the saved procedure contains sudo, identify each actual terminal/host and ask the user to run `sudo -v` or `sudo ls` there before execution, then wait for confirmation. Do not request or type passwords. Another TTY may not share authentication. The terminal executor gates commands with `sudo -n -v` and refreshes a same-terminal lease every 30 seconds. Failed authentication blocks the command. Cleanup is requested on turn end/stop/switch; if an occupied remote terminal has no shell integration, immediate cleanup may be unavailable (shell exit, auth failure or the 12-hour ceiling stops the refresher). POSIX shell and compatible sudo policy are required; no sudoers changes. Dynamic sudo hidden in scripts may require explicit procedure annotations.
33
37
 
34
38
  ## Scheduled AI workflows
@@ -45,6 +49,8 @@ Codex uses namespace `tabby_tasks`; API providers use the same function names wi
45
49
  | Complete a scheduled run | Inside that run only: `scheduled_task_finish(status=completed/needs_attention,evidence=...)`, then give a summary. A normal turn ending alone does not finish the scheduled workflow. |
46
50
  | Run now, stop, or manage all tasks | `/schedules` or the panel's scheduled-task button lists current-workspace plans, pause/resume, run now, stop and run records. Settings → AI Tools → scheduled tasks lists all workspaces and supports pause/resume, stop and deletion with confirmation. Running tasks must stop before deletion. No model tools for run-now, stop or delete are exposed; do not invent them. |
47
51
 
52
+ Kimi Code membership and Alibaba Cloud Coding Plan are for personal interactive use; select an appropriate ordinary API for unattended schedules rather than spending plan quota.
53
+
48
54
  Each trigger starts a fresh unattended conversation. Base decisions on live observations and the saved goal; do not preplan keystrokes or replay old commands. Routine questions use the runtime's autonomous decision mechanism; secrets, additional authorization or unresolved facts require `needs_attention`. Original sandbox/read-only limits remain. Tabby must stay open; missed triggers coalesce into one run when reopened. A shared configuration directory runs scheduled tasks serially. Interrupted/failed/attention-needed runs pause future triggers. Stopping the model does not necessarily stop submitted Shell commands.
49
55
 
50
56
  ## Panel and configuration entry points
@@ -54,11 +60,11 @@ These are user-facing routes, not Shell commands or tool names. Direct users to
54
60
  | Feature | Entry point |
55
61
  | --- | --- |
56
62
  | Open, hide or resize the assistant | Toolbar robot button; drag the sidebar edge to resize. Hiding preserves the conversation. The sidebar opens at startup by default, including older configs without the setting; an explicit opt-out is preserved. Settings → AI Tools controls automatic opening at startup. |
57
- | Configure provider/login | Settings → AI Tools: native Codex CLI path and local login, or named OpenAI/DeepSeek/GLM/Claude API connections with Base URL, key source (direct/local config or environment), model discovery/manual ID and a connection test. API mode needs no Codex CLI. The user enters credentials outside chat. |
63
+ | Configure provider/login | Settings → AI Tools: native Codex or Claude Code CLI path and official local login, or named OpenAI/DeepSeek/GLM/Kimi/Claude API, custom OpenAI-compatible, or Kimi/Alibaba Cloud Coding Plan connections with Base URL, key source (direct/local config or environment), model discovery/manual ID and a connection test. Kimi and Alibaba plans offer China mainland/international presets and editable custom URLs; match the key to the platform and plan. API mode needs no Codex CLI. Custom connections select Chat Completions (default) or Responses, require an explicit Base URL, and allow no-key authentication for services that need none. Use /models or a manual model ID. Terminal tasks require SSE and function tools; do not assume vendor-specific Thinking fields or usage reporting. Switching protocols preserves portable context without replaying tools. The user enters credentials outside chat. |
58
64
  | Switch connections or reconnect | Sidebar connection selector and connection icon; changing connections/endpoints/models preserves portable conversation context and the goal without replaying old tools. Wait for active work to finish before switching. |
59
- | Choose a model | Click model summary or `/model` (also `/model MODEL_ID`); choose supported reasoning effort/Thinking controls. API advanced settings include context window, output tokens and tool iteration limit (`0` means no fixed cap). Model IDs and options depend on the connection. |
65
+ | Choose a model | Click model summary or `/model` (also `/model MODEL_ID`); choose the model first, then reasoning effort. API and Claude Code also offer provider default and manual effort entry; the summary shows the chosen effort. Thinking toggles remain separate. API advanced settings include context window, output tokens and tool iteration limit (`0` means no fixed cap). Model IDs and options depend on the connection. |
60
66
  | New/resumed conversations | `/new` or `new`; `/resume` browses current-directory history with refresh/pagination. A fixed local working directory can be set in Settings. Independent remote tasks should use distinct conversations. |
61
- | Inspect status and goals | **Details** or `/status`: directory, session, model, context, token usage, account quota where supported, goal, permissions, terminal ownership and forwarding; refresh available. The panel creates/tracks task goals. API models use `agent_goal_update` with verification evidence; Codex uses its available goal mechanism. **Continue current goal** resumes unfinished work. |
67
+ | Inspect status and goals | **Details** or `/status`: directory, session, model, context, token usage, account quota where supported, goal, permissions, terminal ownership and forwarding; refresh available. The panel creates/tracks task goals. API models use `agent_goal_update` with verification evidence; Codex uses its available goal mechanism. Active API and Claude Code goals automatically continue after ordinary text responses, without requesting Continue goal. Use evidence-backed complete, blocked (a genuine missing prerequisite), or paused (explicit user request). Stop, token budgets, explicit tool limits and repeated no-progress detection still apply. **Continue current goal** manually resumes unfinished work after an interruption or limit; successful continuation never replays old commands. |
62
68
  | Permissions and budget | Panel file-access/approval controls or Settings → AI Tools; defaults are workspace-write and on-request. Per-goal token budget `0` means no configured cap. Changes apply next turn; do not change permissions to bypass authorization. |
63
69
  | Forward terminal output | Open the sidebar from the target terminal to bind new output. **Details → automatic forwarding → stop** disables forwarding; `read_tab` remains available independently. Rebind from the desired terminal. |
64
70
  | Send, steer or stop | Ctrl+Enter / Cmd+Enter sends, Enter inserts a newline, ↑ / ↓ recalls input at the boundaries. Additional text steers ongoing work. **Stop** interrupts the model; submitted commands may still run. |
@@ -73,3 +79,17 @@ The terminal/application tool namespace remains `tabby_tabs` for compatibility.
73
79
  For controls, always use IDs returned by a fresh `read_tab`. Do not assume a hidden, disabled or modal control is actionable. OS-native dialogs outside the application DOM require the user's interaction. A failure or unavailable provider should lead to fresh discovery or a clear explanation, not repeated identical calls.
74
80
 
75
81
  Terminal takeover does not ask for user confirmation, including SSH/unknown process enumeration. Inspect the screen before sending commands; keep needed foreground tasks, mark unrelated detected tasks with `foregroundTaskNeeded=false` for automatic interruption. Unknown enumeration alone does not trigger Ctrl+C. Existing process attachment still requires verified process identity; ownership, stop and read-only checks remain enforced.
82
+
83
+ ## Local Claude Code engine
84
+
85
+ The built-in `claude-code` connection runs the user's official, unmodified Claude Code CLI. Users install and log in with `claude auth login` outside chat, and check `claude auth status` for the intended account and billing method. Never read, copy, request or forward subscription tokens. API/cloud authentication may use separate billing. CLI capability and login checks do not perform inference; model aliases are candidates, not entitlement or quality rankings.
86
+
87
+ Claude Code receives Tabby operations as `mcp__tabby__TOOL` through a temporary authenticated loopback MCP bridge, including scheduled tools and `agent_goal_update`. Built-in local shell/file tools are disabled. Terminal operations still require the existing read-only, approval, ownership and workflow checkpoint checks; no OS sandbox is provided. Administrator-managed CLI policies remain in effect. Use a flat tool name only when that is what the active provider exposes.
88
+
89
+ Native successful sessions resume from an opaque CLI session ID. Provider/model switches import portable history without replaying tools. Failures and interruption require checking the actual terminal state before further work; there is no automatic inference retry. Messages submitted while the CLI is working wait until that invocation ends. Token counts are observed usage, not remaining subscription quota. The installed package's `docs/claude-code.md` documents discovery, limits and verification status.
90
+
91
+ ### Optional Pi runtime and compaction
92
+
93
+ API connections may select an isolated Pi SDK runtime. Only registered Tabby tools are available; built-in local shell/file tools and resource discovery are disabled. Host approval, read-only, terminal ownership, sudo and workflow checkpoints always apply. Complete a goal only after actual verification, regardless of a successful tool send or a native agent_end event. Pi may retry or summarize before agent_settled.
94
+
95
+ The user can run /compact on an idle API/Pi session. Summaries cost tokens and retain raw history; automatic compaction is opt-in. Preserve current user constraints, active skills, observed outcomes and pending workflow checkpoints. Neither a summary nor previous tool success substitutes for current terminal evidence. After interruption or an unknown action result, read the actual terminal before continuing; never replay a modifying operation merely to recover a lost response. Goal token budgets and host tool limits still apply during retries and summaries.