@f5-sales-demo/xcsh 21.29.4 → 21.30.1
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.
- package/CHANGELOG.md +2 -0
- package/package.json +8 -8
- package/src/config/model-resolver.ts +17 -2
- package/src/internal-urls/build-info.generated.ts +8 -8
- package/src/internal-urls/docs-index.generated.ts +4 -4
- package/src/modes/components/welcome.ts +5 -2
- package/src/remote-control/router.ts +42 -15
- package/src/remote-control/session.ts +6 -0
- package/src/session/agent-session.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
### Added
|
|
8
8
|
|
|
9
|
+
- Added deterministic `fable` and `anthropic/fable` model aliases, Fable 5/5.1 model-picker
|
|
10
|
+
support, and a source/installed OAuth/API-key UAT runner.
|
|
9
11
|
- Added capability-aware terminal hyperlinks, automatic local Vertex sign-in launch with durable
|
|
10
12
|
manual recovery, HTTP(S)-only `/open`, `/copy link`, and a bounded fullscreen transcript copy
|
|
11
13
|
picker. Semantically ported from [can1357/oh-my-pi#10196](https://github.com/can1357/oh-my-pi/pull/10196),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@f5-sales-demo/xcsh",
|
|
4
|
-
"version": "21.
|
|
4
|
+
"version": "21.30.1",
|
|
5
5
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
6
6
|
"homepage": "https://github.com/f5-sales-demo/xcsh",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -63,13 +63,13 @@
|
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@agentclientprotocol/sdk": "1.4.0",
|
|
66
|
-
"@f5-sales-demo/pi-agent-core": "21.
|
|
67
|
-
"@f5-sales-demo/pi-ai": "21.
|
|
68
|
-
"@f5-sales-demo/pi-natives": "21.
|
|
69
|
-
"@f5-sales-demo/pi-resource-management": "21.
|
|
70
|
-
"@f5-sales-demo/pi-tui": "21.
|
|
71
|
-
"@f5-sales-demo/pi-utils": "21.
|
|
72
|
-
"@f5-sales-demo/xcsh-stats": "21.
|
|
66
|
+
"@f5-sales-demo/pi-agent-core": "21.30.1",
|
|
67
|
+
"@f5-sales-demo/pi-ai": "21.30.1",
|
|
68
|
+
"@f5-sales-demo/pi-natives": "21.30.1",
|
|
69
|
+
"@f5-sales-demo/pi-resource-management": "21.30.1",
|
|
70
|
+
"@f5-sales-demo/pi-tui": "21.30.1",
|
|
71
|
+
"@f5-sales-demo/pi-utils": "21.30.1",
|
|
72
|
+
"@f5-sales-demo/xcsh-stats": "21.30.1",
|
|
73
73
|
"@mozilla/readability": "^0.6",
|
|
74
74
|
"@sinclair/typebox": "0.34.52",
|
|
75
75
|
"@xterm/headless": "^6.0",
|
|
@@ -62,6 +62,16 @@ export function formatModelSelectorValue(selector: string, thinkingLevel: Thinki
|
|
|
62
62
|
return thinkingLevel && thinkingLevel !== ThinkingLevel.Inherit ? `${selector}:${thinkingLevel}` : selector;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
const FABLE_ALIAS_MODEL_ID = "claude-fable-5-1";
|
|
66
|
+
|
|
67
|
+
/** Expand only the two documented Fable aliases; general fuzzy matching remains unchanged. */
|
|
68
|
+
export function expandFableAlias(value: string): string {
|
|
69
|
+
const trimmed = value.trim();
|
|
70
|
+
const match = /^(anthropic\/)?fable(?::(inherit|off|minimal|low|medium|high|xhigh|max))?$/i.exec(trimmed);
|
|
71
|
+
if (!match) return trimmed;
|
|
72
|
+
return `anthropic/${FABLE_ALIAS_MODEL_ID}${match[2] ? `:${match[2].toLowerCase()}` : ""}`;
|
|
73
|
+
}
|
|
74
|
+
|
|
65
75
|
function getOpenRouterRouteSuffix(modelId: string): { baseId: string; suffix: string } | undefined {
|
|
66
76
|
const colonIdx = modelId.lastIndexOf(":");
|
|
67
77
|
if (colonIdx === -1) {
|
|
@@ -469,7 +479,7 @@ export function parseModelPattern(
|
|
|
469
479
|
options?: { allowInvalidThinkingSelectorFallback?: boolean; modelRegistry?: CanonicalModelRegistry },
|
|
470
480
|
): ParsedModelResult {
|
|
471
481
|
const context = buildPreferenceContext(availableModels, preferences);
|
|
472
|
-
return parseModelPatternWithContext(pattern, availableModels, context, options);
|
|
482
|
+
return parseModelPatternWithContext(expandFableAlias(pattern), availableModels, context, options);
|
|
473
483
|
}
|
|
474
484
|
|
|
475
485
|
const PREFIX_MODEL_ROLE = "pi/";
|
|
@@ -918,7 +928,12 @@ export function resolveCliModel(options: {
|
|
|
918
928
|
modelRegistry: CliModelRegistry;
|
|
919
929
|
preferences?: ModelMatchPreferences;
|
|
920
930
|
}): ResolveCliModelResult {
|
|
921
|
-
const { cliProvider, cliModel, modelRegistry, preferences } = options;
|
|
931
|
+
const { cliProvider, cliModel: requestedCliModel, modelRegistry, preferences } = options;
|
|
932
|
+
const cliModel = requestedCliModel
|
|
933
|
+
? cliProvider?.toLowerCase() === "anthropic"
|
|
934
|
+
? expandFableAlias(`anthropic/${requestedCliModel}`).slice("anthropic/".length)
|
|
935
|
+
: expandFableAlias(requestedCliModel)
|
|
936
|
+
: undefined;
|
|
922
937
|
|
|
923
938
|
if (!cliModel) {
|
|
924
939
|
return { model: undefined, selector: undefined, warning: undefined, error: undefined };
|
|
@@ -17,17 +17,17 @@ export interface BuildInfo {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export const BUILD_INFO: BuildInfo = {
|
|
20
|
-
"version": "21.
|
|
21
|
-
"commit": "
|
|
22
|
-
"shortCommit": "
|
|
20
|
+
"version": "21.30.1",
|
|
21
|
+
"commit": "22d9767e595b2a3d2e57a62b192bd582fc9b00eb",
|
|
22
|
+
"shortCommit": "22d9767",
|
|
23
23
|
"branch": "main",
|
|
24
|
-
"tag": "v21.
|
|
25
|
-
"commitDate": "2026-09-
|
|
26
|
-
"buildDate": "2026-09-
|
|
24
|
+
"tag": "v21.30.1",
|
|
25
|
+
"commitDate": "2026-09-17T15:05:21+00:00",
|
|
26
|
+
"buildDate": "2026-09-17T16:16:04.516Z",
|
|
27
27
|
"dirty": true,
|
|
28
28
|
"prNumber": "",
|
|
29
29
|
"repoUrl": "https://github.com/f5-sales-demo/xcsh",
|
|
30
30
|
"repoSlug": "f5-sales-demo/xcsh",
|
|
31
|
-
"commitUrl": "https://github.com/f5-sales-demo/xcsh/commit/
|
|
32
|
-
"releaseUrl": "https://github.com/f5-sales-demo/xcsh/releases/tag/v21.
|
|
31
|
+
"commitUrl": "https://github.com/f5-sales-demo/xcsh/commit/22d9767e595b2a3d2e57a62b192bd582fc9b00eb",
|
|
32
|
+
"releaseUrl": "https://github.com/f5-sales-demo/xcsh/releases/tag/v21.30.1"
|
|
33
33
|
};
|
|
@@ -30,7 +30,7 @@ export const EMBEDDED_DOCS: Readonly<Record<string, string>> = {
|
|
|
30
30
|
"en/automate-extend/skills.mdx": "---\ntitle: \"Create and load skills\"\ndescription: \"Package task-specific instructions in `SKILL.md` files at user or project scope.\"\nsidebar:\n order: 5\n label: \"Create and load skills\"\n---\n\nA skill is a directory centered on `SKILL.md`. It tells an agent when and how to perform a bounded kind of work; it is not executable proof by itself.\n\n## Where do skills live?\n\nUse project scope under `.xcsh/skills/` for repository-specific instructions and user scope under the xcsh data directory for personal skills. Project instructions should be reviewable with the repository.\n\n<span data-fidelity-generated=\"start\"></span>\n\n<p id=\"fidelity-lc-d27f2fc5c0f567f2\" data-fidelity=\"lc-d27f2fc5c0f567f2\"><strong>Core skill data model.</strong> A discovered skill represents the following metadata Current implementation points include name, description, filePath.</p>\n\n<p id=\"fidelity-lc-cdf166a40cb5a47a\" data-fidelity=\"lc-cdf166a40cb5a47a\"><strong>Directory layout and file conventions.</strong> Provider loaders scan for skills located exactly one subdirectory level below the configured root (‹ROOT›/skills/‹SKILLNAME›/SKILL.md): SKILL.md files define metadata using YAML\nfrontmatter: Frontmatter parsing rules Current implementation points include ‹ROOT›/skills/‹SKILL_NAME›/SKILL.md, skills.customDirectories, customDirectories.</p>\n\n<p id=\"fidelity-lc-3260330f0ac1012d\" data-fidelity=\"lc-3260330f0ac1012d\"><strong>Discovery pipeline and precedence.</strong> DiscoverSkills() (src/extensibility/skills.ts) executes a two-phase discovery workflow. Current implementation points include discoverSkills(), src/extensibility/skills.ts,\nloadCapability(\"skills\").</p>\n\n<p id=\"fidelity-lc-184800d8bc767820\" data-fidelity=\"lc-184800d8bc767820\"><strong>Runtime interaction models.</strong> When the read tool is enabled, src/system-prompt.ts appends a list of available skill names and descriptions to the system prompt. Current implementation points include read,\nsrc/system-prompt.ts, /skill:‹NAME›.</p>\n\n<p id=\"fidelity-lc-9dabfb15c0815ca8\" data-fidelity=\"lc-9dabfb15c0815ca8\"><strong>The skill:// URI protocol.</strong> The skill:// protocol handler (src/internal-urls/skill-protocol.ts) provides sandboxed access to skill files Current implementation points include skill://,\nsrc/internal-urls/skill-protocol.ts, skill://‹NAME›.</p>\n\n<p id=\"fidelity-lc-212eab0ccc5d669a\" data-fidelity=\"lc-212eab0ccc5d669a\"><strong>Skills compared with other extensibility mechanisms.</strong> Current implementation points include AGENTS.md, XCSH.md.</p>\n\n<p id=\"fidelity-lc-e47b4d078a8b3c4a\" data-fidelity=\"lc-e47b4d078a8b3c4a\"><strong>Authoring best practices.</strong> Current implementation points include SKILL.md, description, skill://‹NAME›/....</p>\n\n<span data-fidelity-generated=\"end\"></span>\n\n## How do I test one?\n\nStart xcsh with `--skills <GLOB>` to narrow discovery, invoke a prompt that matches the trigger, and inspect the tools and output. Use `--no-skills` to confirm behavior without it.\n",
|
|
31
31
|
"en/configure-secure/environment-reference.mdx": "---\ntitle: \"Environment variable reference\"\ndescription: \"Look up the environment variables that select models, credentials, tenants, execution behavior, storage roots, and diagnostics.\"\nsidebar:\n order: 2\n label: \"Environment variables\"\n---\n\nEnvironment variables carry credentials and process-scoped overrides. Settings files and command flags keep their documented precedence; a similarly named variable is not automatically supported. Provider adapters read their own vendor key names, which the adapter defines rather than this list.\n\n## Which variables configure models, providers, and search?\n\n| Variable | Controls |\n| --- | --- |\n| `PI_SMOL_MODEL` | Default model for the lightweight role, equivalent to `--smol` |\n| `PI_SLOW_MODEL` | Default model for the reasoning role, equivalent to `--slow` |\n| `PI_PLAN_MODEL` | Default model for the planning role, equivalent to `--plan` |\n| `XCSH_LOCALE` | Interface locale, ahead of `PI_LOCALE` and `LANG` |\n\nA flag beats the variable: `--smol` overrides `PI_SMOL_MODEL` for that invocation. Model selection stays a model-registry decision, so a name these variables set must still resolve through `xcsh --list-models <PROVIDER>`.\n\n## Which variables address an F5 Distributed Cloud tenant?\n\n| Variable | Controls |\n| --- | --- |\n| `XCSH_API_URL` | Tenant application programming interface (API) endpoint when no named context is active |\n| `XCSH_API_TOKEN` | Tenant API credential for that endpoint |\n| `XCSH_TENANT` | Tenant identifier reported in context status |\n| `XCSH_CONTEXT_NAME` | Name of the context the session binds to |\n| `XCSH_NAMESPACE` | Namespace applied when a command does not pass `-n` |\n| `F5XC_NAMESPACE` | Namespace source recorded in resource operation records |\n\nTreat every value in this group as a secret. Supply them through the runtime environment or a named context, never through a committed file or a command argument that reaches shell history.\n\n## Which variables configure Python, shell, and tool execution?\n\n| Variable | Controls |\n| --- | --- |\n| `PI_PYTHON_GATEWAY_URL` | Endpoint the Python tool sends code to |\n| `PI_PYTHON_GATEWAY_TOKEN` | Credential for that gateway |\n| `PI_PYTHON_SKIP_CHECK` | Skips the gateway warm-up probe |\n| `PI_SHELL_PREFIX` | Command prefix wrapped around shell tool invocations |\n| `PI_BASH_NO_LOGIN` | Runs the shell without `-l` |\n| `PI_NO_PTY` | Disables pseudo-terminal (PTY) execution, equivalent to `--no-pty` |\n| `PI_EDIT_VARIANT` | Selects the edit tool implementation and rejects an unknown value |\n\nShell execution inherits the launched process environment, subject to the sandbox and command policy. Restrict dependencies, working directory, and credentials at the process boundary rather than in the prompt.\n\n## Which variables configure storage, runtime, and diagnostics?\n\n| Variable | Controls |\n| --- | --- |\n| `PI_CODING_AGENT_DIR` | Primary agent data root, including session storage |\n| `PI_CONFIG_DIR` | Configuration root directory name, `.xcsh` by default |\n| `PI_PACKAGE_DIR` | Packaged asset directory the runtime resolves against |\n| `PI_SESSION_FILE` | Session file a child process attaches to |\n| `PI_NATIVE_VARIANT` | Hardware variant the native addon loader prefers |\n| `PI_CACHE_RETENTION` | Cache retention policy, `short` by default |\n| `PI_NO_TITLE` | Disables title auto-generation, equivalent to `--no-title` |\n| `PI_NOTIFICATIONS` | Desktop notification behavior |\n| `PI_DEBUG_STARTUP` | Startup phase diagnostics |\n| `PI_TIMING` | Phase timing output |\n| `PI_TUI_DEBUG` | Terminal user interface (TUI) rendering diagnostics |\n\nProject configuration stays under `.xcsh/` even when `PI_CODING_AGENT_DIR` moves the user root. Never print a credential-bearing variable into a diagnostic receipt; name the variable and state whether it was set.\n\n<span data-fidelity-generated=\"start\"></span>\n\n<p id=\"fidelity-lc-3dd69974b3e03fca\" data-fidelity=\"lc-3dd69974b3e03fca\"><strong>Resolution model and precedence.</strong> Runtime lookups use the $env helper from @f5-sales-demo/pi-utils (packages/utils/src/env.ts). Current implementation points include $env, @f5-sales-demo/pi-utils,\npackages/utils/src/env.ts.</p>\n\n<p id=\"fidelity-lc-072648b4789eef91\" data-fidelity=\"lc-072648b4789eef91\"><strong>Model and provider authentication.</strong> The runtime consumes these variables via getEnvApiKey() (packages/ai/src/stream.ts) unless specified otherwise. Current implementation points include getEnvApiKey(),\npackages/ai/src/stream.ts, ANTHROPIC_OAUTH_TOKEN.</p>\n\n<p id=\"fidelity-lc-db62fc59bf4174cd\" data-fidelity=\"lc-db62fc59bf4174cd\"><strong>Provider-specific runtime configuration.</strong> When CLAUDECODEUSEFOUNDRY is active, Anthropic requests route to Foundry mode: ANTHROPICFOUNDRYAPIKEY —› ANTHROPICOAUTHTOKEN —› ANTHROPICAPIKEY. Current implementation points\ninclude CLAUDE_CODE_USE_FOUNDRY, FOUNDRY_BASE_URL, anthropic.</p>\n\n<p id=\"fidelity-lc-16e1571842a82d85\" data-fidelity=\"lc-16e1571842a82d85\"><strong>Web search subsystem.</strong> Packages/coding-agent/src/web/search/auth.ts resolves Anthropic web search credentials in this order. Current implementation points include EXA_API_KEY, BRAVE_API_KEY,\nPERPLEXITY_API_KEY.</p>\n\n<p id=\"fidelity-lc-0a2c3315ee284a2d\" data-fidelity=\"lc-0a2c3315ee284a2d\"><strong>Python tooling and kernel runtime.</strong> Additional runtime rules Current implementation points include PI_PY, 0, bash.</p>\n\n<p id=\"fidelity-lc-01499034a3bb1a77\" data-fidelity=\"lc-01499034a3bb1a77\"><strong>Agent and runtime behavior toggles.</strong> Current implementation points include PI_SMOL_MODEL, smol, --smol.</p>\n\n<p id=\"fidelity-lc-68837681d72a988e\" data-fidelity=\"lc-68837681d72a988e\"><strong>Storage and configuration root paths.</strong> These variables are consumed via @f5-sales-demo/pi-utils/dirs and govern data storage locations Current implementation points include @f5-sales-demo/pi-utils/dirs, PI_CONFIG_DIR,\n.xcsh.</p>\n\n<p id=\"fidelity-lc-4b75679a7904ef57\" data-fidelity=\"lc-4b75679a7904ef57\"><strong>Shell and tool execution environment.</strong> These variables govern subprocess management in packages/utils/src/procmgr.ts and the bash tool integration Current implementation points include packages/utils/src/procmgr.ts,\nPI_BASH_NO_CI, CI=true.</p>\n\n<p id=\"fidelity-lc-27a301499dc30dff\" data-fidelity=\"lc-27a301499dc30dff\"><strong>Terminal and session environment variables.</strong> The runtime detects the following environment variables automatically from the host environment Current implementation points include COLORTERM, TERM, WT_SESSION.</p>\n\n<p id=\"fidelity-lc-26da75b13fb20549\" data-fidelity=\"lc-26da75b13fb20549\"><strong>Native loader and debug flags.</strong> Current implementation points include PI_DEV, packages/natives.</p>\n\n<p id=\"fidelity-lc-e748c48441bf1889\" data-fidelity=\"lc-e748c48441bf1889\"><strong>Terminal user interface runtime flags.</strong> Current implementation points include PI_NOTIFICATIONS, off, 0.</p>\n\n<p id=\"fidelity-lc-db54d8b75cf79062\" data-fidelity=\"lc-db54d8b75cf79062\"><strong>Commit generation controls.</strong> Current implementation points include PI_COMMIT_TEST_FALLBACK, true, PI_COMMIT_NO_FALLBACK.</p>\n\n<p id=\"fidelity-lc-9dbdf3c34f0033d9\" data-fidelity=\"lc-9dbdf3c34f0033d9\"><strong>Security-sensitive variables.</strong> Protect the following variables as sensitive secrets; do not log or commit them: The Python runtime automatically strips these sensitive keys before spawning kernel subprocesses\n(packages/coding-agent/src/ipy/runtime.ts). Current implementation points include *_API_KEY, *_TOKEN, AWS_*.</p>\n\n<span data-fidelity-generated=\"end\"></span>\n",
|
|
32
32
|
"en/configure-secure/index.mdx": "---\ntitle: \"Configure and secure\"\ndescription: \"Control settings, providers, credentials, networking, secrets, sandboxing, and runtime boundaries.\"\nsidebar:\n order: 0\n label: \"Overview\"\n---\n\nConfiguration controls provider routing, settings precedence, filesystem access, and credential handling.\n\n## What should I configure first?\n\n1. Inspect [settings precedence and file locations](./settings-files/).\n2. Look up any [environment variable](./environment-reference/) the deployment sets.\n3. Choose a [provider and model route](./providers-routing/).\n4. Apply [secret handling and the filesystem boundary](./secrets-obfuscation/).\n5. Set the [sandbox boundaries](./sandbox-boundaries/) that enforce those decisions.\n\nStart with defaults; add project configuration only when collaborators need the same behavior.\n",
|
|
33
|
-
"en/configure-secure/providers-routing.mdx": "---\ntitle: \"Configure providers and model routing\"\ndescription: \"Select models directly or map default, smol, slow, and plan roles.\"\nsidebar:\n order: 3\n label: \"Providers and models\"\n---\n\nxcsh resolves a requested model against available providers and credentials. A provider-qualified model name is the most explicit route.\n\n## How do I confirm a route?\n\nRun `xcsh --list-models <PROVIDER>`, then pass one returned name to `--model`. Environment keys and supported subscription sessions authenticate providers; never store tokens in committed settings.\n\n<span data-fidelity-generated=\"start\"></span>\n\n<p id=\"fidelity-lc-a2f95043769a4b5f\" data-fidelity=\"lc-a2f95043769a4b5f\"><strong>Core implementation architecture.</strong> Model configuration and runtime resolution are implemented across the following modules Current implementation points include src/config/model-registry.ts,\nsrc/config/model-resolver.ts, src/config/settings-schema.ts.</p>\n\n<p id=\"fidelity-lc-1336dccf5b2a2514\" data-fidelity=\"lc-1336dccf5b2a2514\"><strong>Configuration file path.</strong> Default configuration path Current implementation points include ~/.xcsh/agent/models.yml, models.yml, models.json. The destination uses current source and candidate evidence\ninstead of preserving a version-specific legacy statement.</p>\n\n<p id=\"fidelity-lc-4fb0c7e335422d3b\" data-fidelity=\"lc-4fb0c7e335422d3b\"><strong>Schema structure.</strong> Current implementation points include openai-completions, openai-responses, openai-codex-responses.</p>\n\n<p id=\"fidelity-lc-63abc9a1d18fdd52\" data-fidelity=\"lc-63abc9a1d18fdd52\"><strong>Validation rules.</strong> The following fields are required: Must specify at least one of Current implementation points include models, baseUrl, apiKey.</p>\n\n<p id=\"fidelity-lc-91534f5bcb77f50e\" data-fidelity=\"lc-91534f5bcb77f50e\"><strong>Merge and override hierarchy.</strong> When initializing or refreshing the model registry, xcsh applies configuration in the following order. Current implementation points include @f5-sales-demo/pi-ai,\n~/.xcsh/agent/models.yml, baseUrl.</p>\n\n<p id=\"fidelity-lc-3f5a77851800b0c2\" data-fidelity=\"lc-3f5a77851800b0c2\"><strong>Canonical model equivalence and coalescing.</strong> xcsh groups equivalent model checkpoints from different providers under canonical upstream identifiers (for example, claude-sonnet-4, gpt-5.3-codex) Current implementation points\ninclude claude-sonnet-4, gpt-5.3-codex, equivalence.overrides.</p>\n\n<p id=\"fidelity-lc-07ee6fc5a7e7bd7b\" data-fidelity=\"lc-07ee6fc5a7e7bd7b\"><strong>Runtime model discovery.</strong> xcsh detects local inference runtimes automatically Current implementation points include http://127.0.0.1:11434/api/tags, OLLAMA_BASE_URL, http://127.0.0.1:1234/v1/models.</p>\n\n<p id=\"fidelity-lc-37970377e13ca182\" data-fidelity=\"lc-37970377e13ca182\"><strong>Credential resolution hierarchy.</strong> When resolving API keys for a provider, xcsh evaluates sources in the following priority order. Current implementation points include --api-key, agent.db, OPENAI_API_KEY.</p>\n\n<p id=\"fidelity-lc-8487bae147454d35\" data-fidelity=\"lc-8487bae147454d35\"><strong>Corporate Google Cloud Vertex AI login.</strong> /login lists Google Cloud Vertex AI (Corporate) first. Current implementation points include /login, global, google-vertex/gemini-3.7-flash:high.</p>\n\n<p id=\"fidelity-lc-f02a47fe7278b759\" data-fidelity=\"lc-f02a47fe7278b759\"><strong>Model roles and selection.</strong> xcsh supports logical role aliases configured via settings.modelRoles: Each role definition can include thinking intensity suffixes (for example, pi/smol:minimal,\nclaude-sonnet-4:high). Current implementation points include settings.modelRoles, default, smol.</p>\n\n<p id=\"fidelity-lc-78ca4001d3ee0055\" data-fidelity=\"lc-78ca4001d3ee0055\"><strong>Context promotion and fallback.</strong> When a model context window overflows during a conversation turn (contextlengthexceeded), xcsh automatically promotes the session to a larger-context sibling model before\ninitiating context compaction. Current implementation points include context_length_exceeded, contextPromotionTarget.</p>\n\n<p id=\"fidelity-lc-4ebb7fe5353fb256\" data-fidelity=\"lc-4ebb7fe5353fb256\"><strong>Manual Model Inventory Refresh.</strong> In the interactive model selector (/model or Ctrl+M), press r or run /model --refresh to trigger a manual inventory refresh. Current implementation points include /model, Ctrl+M,\nr.</p>\n\n<p id=\"fidelity-lc-5c0c278a723062ee\" data-fidelity=\"lc-5c0c278a723062ee\"><strong>LaTeX and Mathematical Formatting.</strong> xcsh natively renders LaTeX math blocks and inline formulas ($...$ and $$...$$) across the interactive TUI, markdown exports, and webviews with real-time Unicode glyph and KaTeX\nfallback formatting. Current implementation points include $...$, $$...$$.</p>\n\n<span data-fidelity-generated=\"end\"></span>\n\n## How do I select a model in a conversation?\n\nOpen `/model`. Tab and Shift+Tab browse providers; typing searches across them. The active conversation model and saved role badges are shown separately. Configured providers remain visible when discovery is empty, unavailable, or requires authentication. Use Ctrl+R to refresh the current provider or Ctrl+L to open login.\n\nChoose a model with Enter, then choose its scope:\n\n- **Use in this conversation** is preselected. It changes this session, including resume, without changing saved role assignments.\n- **Save as default** changes the current conversation and the default for future sessions.\n- **Assign to role** saves Default, Fast/SMOL, Thorough/SLOW, Plan, or another existing role. Roles other than Default leave the current conversation unchanged.\n\nChoose a reasoning level supported by that exact model and press Enter to confirm. Inherit displays the provider default; an existing supported reasoning selection is preselected. Escape backs out without applying an unfinished choice. Failed writes are reported before badges show success.\n\nWhen the authenticated ChatGPT subscription catalog includes GPT-6 Astra, `/model` presents it as an additional premium option under **ChatGPT Subscription**. Astra does not replace the existing Luna, Terra, Sol, or role assignments unless you explicitly assign it.\n\nA manual conversation choice remains in effect under automatic routing. Entering planning mode uses the Plan assignment; exiting restores the prior conversation model and reasoning. Explicit `--models` scopes still limit the picker.\n\nOpen `/login` to see providers that are configured, credential-backed, allowlisted, active, or freshly detected. Optional local runtimes do not appear merely because xcsh attempted an automatic probe. Choose `Add provider…` to search the complete built-in catalog.\n\nProvider rows use human status labels. Press Right on a row to inspect its credential source, last verification, sanitized failure reason, model visibility, and any grouped routes. `/logout` lists only providers with stored credentials that xcsh can remove; environment and configuration credentials are not presented as removable.\n\nProvider grouping in `models.yml` is also used by the management view:\n\n```yaml\nproviders:\n litellm:\n picker:\n groupId: litellm\n groupLabel: LiteLLM\n sectionLabel: OpenAI\n modelAllowlist:\n - gpt-5.6-sol\n - gpt-5.6-terra\n - gpt-5.6-luna\n anthropic:\n picker:\n groupId: litellm\n groupLabel: LiteLLM\n sectionLabel: Anthropic\n modelAllowlist:\n - claude-opus-5\n - claude-sonnet-5\n - claude-haiku-4-5\n```\n\n`modelProviderAllowlist` is a settings key that limits normal `/model` visibility. An empty list means no picker restriction; it does not make every built-in provider relevant in `/login`. Explicit provider-qualified command-line selection and direct `/login <provider>` remain available.\n\n```bash\nxcsh config set modelProviderAllowlist '[\"litellm\", \"anthropic\"]'\nxcsh config set modelProviderOrder '[\"litellm\", \"anthropic\", \"google-vertex\"]'\n```\n\nFor command-line selection, qualify the provider whenever several usable providers expose the same model ID. A bare `--model` value succeeds only when one usable provider matches; otherwise xcsh prints the qualified choices and exits nonzero in noninteractive mode.\n\n## Where does LiteLLM fit?\n\nLiteLLM is an optional provider proxy installed or checked with `xcsh setup litellm`. Its base uniform resource locator (URL) and credential belong in the runtime environment. Successful text Responses support does not imply Realtime or audio support; test the exact endpoint your workflow uses.\n\n## How do I test licensed Vertex locally?\n\n`bun run dev` and local coding-agent binary builds load the licensed Vertex OAuth client pair automatically. Explicit `XCSH_VERTEX_OAUTH_CLIENT_ID` and `XCSH_VERTEX_OAUTH_CLIENT_SECRET` build inputs take precedence; supply both together.\n\nFor local UAT, the first launch can recover the embedded client pair from an installed official xcsh binary\nand retain it in `$XDG_CONFIG_HOME/xcsh/vertex-build.json` (default `~/.config/xcsh/vertex-build.json`). The\nfile is outside the checkout, shared by local sessions and worktrees for the same operating-system user, and\ncreated with owner-only permissions. Each worktree needs this development/build launcher to load it\nautomatically. Later launches reuse it even if the installed binary changes.\n`XCSH_VERTEX_OAUTH_CREDENTIALS_FILE` selects another private local file containing `clientId` and\n`clientSecret` fields.\n\nThe source-runtime preload keeps the pair in process memory; local compiled candidates embed it. Do not copy\nthis file or its values into source control, logs, or UAT reports. CI does not read or recover workstation\ncredentials: official release builds continue to receive the pair through GitHub secrets. Unit tests use\nfixture credentials; the live provider smoke script uses the same local preload as development UAT.\n",
|
|
33
|
+
"en/configure-secure/providers-routing.mdx": "---\ntitle: \"Configure providers and model routing\"\ndescription: \"Select models directly or map default, smol, slow, and plan roles.\"\nsidebar:\n order: 3\n label: \"Providers and models\"\n---\n\nxcsh resolves a requested model against available providers and credentials. A provider-qualified model name is the most explicit route.\n\n## How do I confirm a route?\n\nRun `xcsh --list-models <PROVIDER>`, then pass one returned name to `--model`. Environment keys and supported subscription sessions authenticate providers; never store tokens in committed settings.\n\n<span data-fidelity-generated=\"start\"></span>\n\n<p id=\"fidelity-lc-a2f95043769a4b5f\" data-fidelity=\"lc-a2f95043769a4b5f\"><strong>Core implementation architecture.</strong> Model configuration and runtime resolution are implemented across the following modules Current implementation points include src/config/model-registry.ts,\nsrc/config/model-resolver.ts, src/config/settings-schema.ts.</p>\n\n<p id=\"fidelity-lc-1336dccf5b2a2514\" data-fidelity=\"lc-1336dccf5b2a2514\"><strong>Configuration file path.</strong> Default configuration path Current implementation points include ~/.xcsh/agent/models.yml, models.yml, models.json. The destination uses current source and candidate evidence\ninstead of preserving a version-specific legacy statement.</p>\n\n<p id=\"fidelity-lc-4fb0c7e335422d3b\" data-fidelity=\"lc-4fb0c7e335422d3b\"><strong>Schema structure.</strong> Current implementation points include openai-completions, openai-responses, openai-codex-responses.</p>\n\n<p id=\"fidelity-lc-63abc9a1d18fdd52\" data-fidelity=\"lc-63abc9a1d18fdd52\"><strong>Validation rules.</strong> The following fields are required: Must specify at least one of Current implementation points include models, baseUrl, apiKey.</p>\n\n<p id=\"fidelity-lc-91534f5bcb77f50e\" data-fidelity=\"lc-91534f5bcb77f50e\"><strong>Merge and override hierarchy.</strong> When initializing or refreshing the model registry, xcsh applies configuration in the following order. Current implementation points include @f5-sales-demo/pi-ai,\n~/.xcsh/agent/models.yml, baseUrl.</p>\n\n<p id=\"fidelity-lc-3f5a77851800b0c2\" data-fidelity=\"lc-3f5a77851800b0c2\"><strong>Canonical model equivalence and coalescing.</strong> xcsh groups equivalent model checkpoints from different providers under canonical upstream identifiers (for example, claude-sonnet-4, gpt-5.3-codex) Current implementation points\ninclude claude-sonnet-4, gpt-5.3-codex, equivalence.overrides.</p>\n\n<p id=\"fidelity-lc-07ee6fc5a7e7bd7b\" data-fidelity=\"lc-07ee6fc5a7e7bd7b\"><strong>Runtime model discovery.</strong> xcsh detects local inference runtimes automatically Current implementation points include http://127.0.0.1:11434/api/tags, OLLAMA_BASE_URL, http://127.0.0.1:1234/v1/models.</p>\n\n<p id=\"fidelity-lc-37970377e13ca182\" data-fidelity=\"lc-37970377e13ca182\"><strong>Credential resolution hierarchy.</strong> When resolving API keys for a provider, xcsh evaluates sources in the following priority order. Current implementation points include --api-key, agent.db, OPENAI_API_KEY.</p>\n\n<p id=\"fidelity-lc-8487bae147454d35\" data-fidelity=\"lc-8487bae147454d35\"><strong>Corporate Google Cloud Vertex AI login.</strong> /login lists Google Cloud Vertex AI (Corporate) first. Current implementation points include /login, global, google-vertex/gemini-3.7-flash:high.</p>\n\n<p id=\"fidelity-lc-f02a47fe7278b759\" data-fidelity=\"lc-f02a47fe7278b759\"><strong>Model roles and selection.</strong> xcsh supports logical role aliases configured via settings.modelRoles: Each role definition can include thinking intensity suffixes (for example, pi/smol:minimal,\nclaude-sonnet-4:high). Current implementation points include settings.modelRoles, default, smol.</p>\n\n<p id=\"fidelity-lc-78ca4001d3ee0055\" data-fidelity=\"lc-78ca4001d3ee0055\"><strong>Context promotion and fallback.</strong> When a model context window overflows during a conversation turn (contextlengthexceeded), xcsh automatically promotes the session to a larger-context sibling model before\ninitiating context compaction. Current implementation points include context_length_exceeded, contextPromotionTarget.</p>\n\n<p id=\"fidelity-lc-4ebb7fe5353fb256\" data-fidelity=\"lc-4ebb7fe5353fb256\"><strong>Manual Model Inventory Refresh.</strong> In the interactive model selector (/model or Ctrl+M), press r or run /model --refresh to trigger a manual inventory refresh. Current implementation points include /model, Ctrl+M,\nr.</p>\n\n<p id=\"fidelity-lc-5c0c278a723062ee\" data-fidelity=\"lc-5c0c278a723062ee\"><strong>LaTeX and Mathematical Formatting.</strong> xcsh natively renders LaTeX math blocks and inline formulas ($...$ and $$...$$) across the interactive TUI, markdown exports, and webviews with real-time Unicode glyph and KaTeX\nfallback formatting. Current implementation points include $...$, $$...$$.</p>\n\n<span data-fidelity-generated=\"end\"></span>\n\n## How do I select a model in a conversation?\n\nOpen `/model`. Tab and Shift+Tab browse providers; typing searches across them. The active conversation model and saved role badges are shown separately. Configured providers remain visible when discovery is empty, unavailable, or requires authentication. Use Ctrl+R to refresh the current provider or Ctrl+L to open login.\n\nChoose a model with Enter, then choose its scope:\n\n- **Use in this conversation** is preselected. It changes this session, including resume, without changing saved role assignments.\n- **Save as default** changes the current conversation and the default for future sessions.\n- **Assign to role** saves Default, Fast/SMOL, Thorough/SLOW, Plan, or another existing role. Roles other than Default leave the current conversation unchanged.\n\nChoose a reasoning level supported by that exact model and press Enter to confirm. Inherit displays the provider default; an existing supported reasoning selection is preselected. Escape backs out without applying an unfinished choice. Failed writes are reported before badges show success.\n\nClaude Fable 5 and 5.1 use adaptive thinking on every request. Their default is `high`; supported\nchoices are `low`, `medium`, `high`, `xhigh`, and `max`, with xcsh's `minimal` choice mapped to\nAnthropic `low`. `off` is rejected because the Fable API does not support disabling thinking.\nFable also does not accept temperature or forced tool selection, so xcsh omits temperature and\nnormalizes `any` or a named forced tool to `auto` while retaining strict tool schemas.\n\nWhen the authenticated ChatGPT subscription catalog includes GPT-6 Astra, `/model` presents it as an additional premium option under **ChatGPT Subscription**. Astra does not replace the existing Luna, Terra, Sol, or role assignments unless you explicitly assign it.\n\nA manual conversation choice remains in effect under automatic routing. Entering planning mode uses the Plan assignment; exiting restores the prior conversation model and reasoning. Explicit `--models` scopes still limit the picker.\n\nOpen `/login` to see providers that are configured, credential-backed, allowlisted, active, or freshly detected. Optional local runtimes do not appear merely because xcsh attempted an automatic probe. Choose `Add provider…` to search the complete built-in catalog.\n\nProvider rows use human status labels. Press Right on a row to inspect its credential source, last verification, sanitized failure reason, model visibility, and any grouped routes. `/logout` lists only providers with stored credentials that xcsh can remove; environment and configuration credentials are not presented as removable.\n\nProvider grouping in `models.yml` is also used by the management view:\n\n```yaml\nproviders:\n litellm:\n picker:\n groupId: litellm\n groupLabel: LiteLLM\n sectionLabel: OpenAI\n modelAllowlist:\n - gpt-5.6-sol\n - gpt-5.6-terra\n - gpt-5.6-luna\n anthropic:\n picker:\n groupId: litellm\n groupLabel: LiteLLM\n sectionLabel: Anthropic\n modelAllowlist:\n - claude-fable-5-1\n - claude-fable-5\n - claude-opus-5\n - claude-sonnet-5\n - claude-haiku-4-5\n```\n\n`modelProviderAllowlist` is a settings key that limits normal `/model` visibility. An empty list means no picker restriction; it does not make every built-in provider relevant in `/login`. Explicit provider-qualified command-line selection and direct `/login <provider>` remain available.\n\n```bash\nxcsh config set modelProviderAllowlist '[\"litellm\", \"anthropic\"]'\nxcsh config set modelProviderOrder '[\"litellm\", \"anthropic\", \"google-vertex\"]'\n```\n\nFor command-line selection, qualify the provider whenever several usable providers expose the same model ID. A bare `--model` value succeeds only when one usable provider matches; otherwise xcsh prints the qualified choices and exits nonzero in noninteractive mode.\n\nThe two explicit Fable aliases are an exception to general fuzzy selection:\n\n```bash\nxcsh --model fable\nxcsh --model anthropic/fable\n```\n\nBoth select `anthropic/claude-fable-5-1` deterministically.\n\n## Where does LiteLLM fit?\n\nLiteLLM is an optional provider proxy installed or checked with `xcsh setup litellm`. Its base uniform resource locator (URL) and credential belong in the runtime environment. Successful text Responses support does not imply Realtime or audio support; test the exact endpoint your workflow uses.\n\n## How do I test licensed Vertex locally?\n\n`bun run dev` and local coding-agent binary builds load the licensed Vertex OAuth client pair automatically. Explicit `XCSH_VERTEX_OAUTH_CLIENT_ID` and `XCSH_VERTEX_OAUTH_CLIENT_SECRET` build inputs take precedence; supply both together.\n\nFor local UAT, the first launch can recover the embedded client pair from an installed official xcsh binary\nand retain it in `$XDG_CONFIG_HOME/xcsh/vertex-build.json` (default `~/.config/xcsh/vertex-build.json`). The\nfile is outside the checkout, shared by local sessions and worktrees for the same operating-system user, and\ncreated with owner-only permissions. Each worktree needs this development/build launcher to load it\nautomatically. Later launches reuse it even if the installed binary changes.\n`XCSH_VERTEX_OAUTH_CREDENTIALS_FILE` selects another private local file containing `clientId` and\n`clientSecret` fields.\n\nThe source-runtime preload keeps the pair in process memory; local compiled candidates embed it. Do not copy\nthis file or its values into source control, logs, or UAT reports. CI does not read or recover workstation\ncredentials: official release builds continue to receive the pair through GitHub secrets. Unit tests use\nfixture credentials; the live provider smoke script uses the same local preload as development UAT.\n",
|
|
34
34
|
"en/configure-secure/sandbox-boundaries.mdx": "---\ntitle: \"Set sandbox boundaries\"\ndescription: \"Constrain filesystem, shell, native, browser, and extension effects at the layer that enforces them.\"\nsidebar:\n order: 5\n label: \"Sandbox boundaries\"\n---\n\nA model instruction is not a sandbox. Enforcement belongs to the tool, host process, container, operating system, or remote service that performs the action.\n\n## How do I restrict the exposed tool set?\n\nStart with `--no-tools` or an explicit `--tools` allow-list when a run needs only conversation. Disable Model Context Protocol (MCP) and extensions separately because they can register additional capabilities. Review custom tool and hook code with the same care as any locally executed module.\n\n## How do I constrain files and processes?\n\nFilesystem-aware tools resolve paths against their configured workspace boundary. The Bash runtime applies its sandbox and output limits before returning a result; large output may spill to an artifact instead of remaining inline. Containers add process and filesystem isolation, but mounted credentials and sockets still cross that boundary.\n\n## Where does remote authority differ from local authority?\n\nBrowser, editor, Office, and remote-service integrations enforce different permission models. Confirm the active host, account, context, namespace, and target immediately before a mutation. A successful read proves connectivity, not authorization for a write.\n",
|
|
35
35
|
"en/configure-secure/secrets-obfuscation.mdx": "---\ntitle: \"Resolve secrets safely\"\ndescription: \"Reference sensitive values without placing plaintext credentials in prompts, manifests, logs, or commits.\"\nsidebar:\n order: 4\n label: \"Resolve secrets safely\"\n---\n\nKeep provider keys and F5 Distributed Cloud contexts outside prompts, session exports, logs, and committed files. Pass secrets through supported environment or protected runtime files.\n\n## How does obfuscation work?\n\nWhen secret obfuscation is enabled, values declared in the protected `secrets.yml` source are resolved at runtime and replaced in observable text before it is retained or rendered. Environment values take their documented precedence over file-backed values.\n\nObfuscation reduces accidental disclosure in supported paths; it is not encryption for a compromised process or an excuse to place secrets in prompts.\n\n<span data-fidelity-generated=\"start\"></span>\n\n<p id=\"fidelity-lc-197e85b49a845f5c\" data-fidelity=\"lc-197e85b49a845f5c\"><strong>Enabling secret obfuscation.</strong> Secret obfuscation is enabled by default. Current implementation points include /settings, config.yml.</p>\n\n<p id=\"fidelity-lc-c858149a755eee01\" data-fidelity=\"lc-c858149a755eee01\"><strong>How obfuscation works.</strong> 1. Current implementation points include *_KEY, *_SECRET, *_TOKEN.</p>\n\n<p id=\"fidelity-lc-9eee005645c443be\" data-fidelity=\"lc-9eee005645c443be\"><strong>Defining secrets in secrets.yml.</strong> You can declare custom secret redaction rules in YAML. Current implementation points include ~/.xcsh/agent/secrets.yml, ‹cwd›/.xcsh/secrets.yml, content.</p>\n\n<p id=\"fidelity-lc-2b3922e9f09d7359\" data-fidelity=\"lc-2b3922e9f09d7359\"><strong>Environment variable precedence.</strong> Environment variables are always scanned and indexed first. Current implementation points include secrets.yml.</p>\n\n<p id=\"fidelity-lc-c0072d024b8c140b\" data-fidelity=\"lc-c0072d024b8c140b\"><strong>Key implementation files.</strong> Current implementation points include src/secrets/index.ts, src/secrets/obfuscator.ts, SecretObfuscator.</p>\n\n<span data-fidelity-generated=\"end\"></span>\n\n## How does the filesystem boundary work?\n\nxcsh discovers a task root and guards access outside it. Add an explicit path with `--allow-path`; use `--allow-home` only when the home directory is intentionally the task root. `--no-sandbox` removes that guard and should be reserved for a controlled diagnostic.\n\n## How do I inspect the boundary?\n\nRun `xcsh sandbox check`, then start a read-only session with the smallest required `--allow-path` set. A sandbox boundary limits file discovery; it does not replace operating-system permissions or tool review.\n",
|
|
36
36
|
"en/configure-secure/settings-files.mdx": "---\ntitle: \"Understand settings precedence\"\ndescription: \"Predict which user, project, environment, and command-line value xcsh resolves.\"\nsidebar:\n order: 1\n label: \"Settings precedence\"\n---\n\nProject settings apply to one repository; user settings apply across projects; command flags override both for one invocation. Use `xcsh config list --json` to inspect effective values.\n\n## How is configuration resolved?\n\nDiscovery collects fixed user, project, environment, and command-line sources, normalizes each through the schema-backed configuration wrapper, then resolves values by explicit priority. Capability-specific discovery uses the same roots but owns its own merge and deduplication rules. Native `.xcsh` providers participate through the documented provider interface, not an implicit recursive scan.\n\n<span data-fidelity-generated=\"start\"></span>\n\n<p id=\"fidelity-lc-7c58ff2f74340c26\" data-fidelity=\"lc-7c58ff2f74340c26\"><strong>Scope.</strong> Current implementation points include src/config.ts, src/config/settings.ts, src/config/settings-schema.ts.</p>\n\n<p id=\"fidelity-lc-59610404fc89535f\" data-fidelity=\"lc-59610404fc89535f\"><strong>Resolution flow.</strong> Configuration discovery collects ordered roots, loads schema-backed files, normalizes capability sources, and resolves explicit higher-priority values over lower-priority defaults.</p>\n\n<p id=\"fidelity-lc-1f3128e3d9f47890\" data-fidelity=\"lc-1f3128e3d9f47890\"><strong>Config roots and source order.</strong> Src/config.ts defines a fixed source priority order. Current implementation points include src/config.ts, .xcsh, .claude.</p>\n\n<p id=\"fidelity-lc-7dd3b13d149985a4\" data-fidelity=\"lc-7dd3b13d149985a4\"><strong>Core discovery helpers.</strong> Returns ordered directory entries. Supported options: This API handles directory-based configuration lookups (commands, hooks, tools, agents, and related assets). Current\nimplementation points include getConfigDirs(subpath, options), user, true.</p>\n\n<p id=\"fidelity-lc-8714baaf5dfa222d\" data-fidelity=\"lc-8714baaf5dfa222d\"><strong>File configuration wrapper.</strong> ConfigFile‹T› (src/config.ts) provides schema-validated loading for individual configuration files. Current implementation points include ConfigFile‹T›, src/config.ts, .yml.</p>\n\n<p id=\"fidelity-lc-b31f4ac2a616f9f9\" data-fidelity=\"lc-b31f4ac2a616f9f9\"><strong>Settings resolution model.</strong> The runtime settings model applies layered resolution. Current implementation points include ~/.xcsh/agent/config.yml, settings.json, SETTINGS_SCHEMA.</p>\n\n<p id=\"fidelity-lc-ec4b1c79b91baaf1\" data-fidelity=\"lc-ec4b1c79b91baaf1\"><strong>Capability and discovery integration.</strong> Non-core configuration loading flows through the capability registry (src/capability/index.ts and src/discovery/index.ts). Current implementation points include\nsrc/capability/index.ts, src/discovery/index.ts, builtin.ts.</p>\n\n<p id=\"fidelity-lc-33ec88ff30f6649f\" data-fidelity=\"lc-33ec88ff30f6649f\"><strong>Native .xcsh provider behavior.</strong> The native provider (id: native, defined in src/discovery/builtin.ts) reads from: builtin.ts includes a configuration root only if the directory exists and is non-empty\n(ifNonEmptyDir). Current implementation points include id: native, src/discovery/builtin.ts, ‹cwd›/.xcsh/....</p>\n\n<p id=\"fidelity-lc-873cb563f339cc59\" data-fidelity=\"lc-873cb563f339cc59\"><strong>How major subsystems consume configuration.</strong> Current implementation points include Settings.init(), config.yml, settings.json.</p>\n\n<p id=\"fidelity-lc-63c5a3bf985de960\" data-fidelity=\"lc-63c5a3bf985de960\"><strong>Precedence rules and priority resolution.</strong> When reasoning about configuration precedence, apply this sequence. Current implementation points include config.ts, Settings.#loadProjectSettings().</p>\n\n<p id=\"fidelity-lc-13c3b3135193667d\" data-fidelity=\"lc-13c3b3135193667d\"><strong>Legacy and compatibility behaviors.</strong> The runtime preserves the following backward-compatibility behaviors: When deprecating any compatibility path in code, update this document to maintain alignment with active\nruntime behavior. Current implementation points include ConfigFile, settings.json, agent.db. The prerelease clean break removes compatibility behavior; the destination documents\nonly the supported current resolution path.</p>\n\n<span data-fidelity-generated=\"end\"></span>\n\n## Where are settings stored?\n\nRun `xcsh config path` instead of assuming a platform path. Project data uses `.xcsh/`, including `settings.json`, `mcp.json`, contexts, skills, agents, extensions, tools, hooks, commands, and `XCSH.md`. Primary user data lives under the xcsh agent directory; `PI_CODING_AGENT_DIR` can override that location.\n\n## How do I change one value?\n\n```bash\nxcsh config get <KEY>\nxcsh config set <KEY> <VALUE>\nxcsh config reset <KEY>\n```\n\nUse environment variables for credentials and ephemeral process configuration. Do not copy an entire old settings file when only one key is needed.\n",
|
|
@@ -45,9 +45,9 @@ export const EMBEDDED_DOCS: Readonly<Record<string, string>> = {
|
|
|
45
45
|
"en/getting-started/f5-xc-connection.mdx": "---\ntitle: \"Connect to F5 Distributed Cloud\"\ndescription: \"Create and activate a named F5 Distributed Cloud context, then select a namespace.\"\nsidebar:\n order: 4\n label: \"F5 XC connection\"\n---\n\nAn F5 Distributed Cloud context binds an application programming interface (API) endpoint, credential, and optional default namespace. Treat the context file as a secret.\n\n## How do I select the intended context?\n\nStart the terminal user interface (TUI) with `xcsh --context <NAME>`, then run `/context status`. Confirm the displayed context name and namespace before any live command. Use `-n <NAMESPACE>` on a resource command when the manifest must override the context default.\n\n## What is safe to test first?\n\nRun `xcsh validate -f <MANIFEST>` before using network access. Then run `xcsh diff -f <MANIFEST> --result-file diff.json`; inspect the report before choosing a mutation command.\n",
|
|
46
46
|
"en/getting-started/first-manifest.mdx": "---\ntitle: \"Complete your first manifest lifecycle\"\ndescription: \"Validate, compare, apply, inspect, export, and delete one resource manifest.\"\nsidebar:\n order: 5\n label: \"First manifest\"\n---\n\nA manifest names one F5 Distributed Cloud resource with `kind`, `metadata`, and `spec`. Begin from an exported or catalog-backed example for the exact resource kind; do not invent schema fields. This page walks one resource from local validation to proven deletion, so run it against a lab namespace you are authorized to change.\n\n## How do I check a manifest without credentials?\n\n```bash\nxcsh validate -f manifest.yaml --result-file validation.json\n```\n\nValidation reads the file locally and returns a nonzero status for malformed or unsupported input. Review the aggregate JavaScript Object Notation (JSON) report before moving to a live context.\n\n## How do I preview the live change?\n\n```bash\nxcsh diff -f manifest.yaml --result-file diff.json\nxcsh apply -f manifest.yaml --dry-run client --result-file dry-run.json\n```\n\nA diff requires the intended context. A dry run calculates the mutation path without applying it. Read every create, update, and preserve entry before you continue.\n\n## How do I apply and verify the resource?\n\n```bash\nxcsh apply -f manifest.yaml --result-file apply.json\nxcsh get <KIND> <NAME> -n <NAMESPACE> --result-file get.json\n```\n\nCompare the identity and the fields you set in `get.json` against the manifest. A zero exit status records that the request was accepted; only the retrieved object records the resulting state.\n\n## How do I export and remove it?\n\n```bash\nxcsh export <KIND> <NAME> -n <NAMESPACE> -f exported.yaml\nxcsh delete <KIND> <NAME> -n <NAMESPACE> --result-file delete.json\nxcsh get <KIND> <NAME> -n <NAMESPACE>\n```\n\nSanitize server-managed metadata out of `exported.yaml` before you store it. The closing `get` must return the not-found response for that kind; a delete request without the absence check leaves the lifecycle unfinished.\n",
|
|
47
47
|
"en/getting-started/index.mdx": "---\ntitle: \"Getting started\"\ndescription: \"Install xcsh, connect a model and an F5 Distributed Cloud tenant, and complete a safe first workflow.\"\nsidebar:\n order: 0\n label: \"Overview\"\n---\n\nUse this section to reach the first useful command without configuring every optional integration.\n\n## What do I need before I begin?\n\nYou need a supported xcsh build and one model provider. F5 Distributed Cloud credentials are needed only for live resource commands; local manifest validation works without them.\n\n## Which path matches my goal?\n\n1. [Install, update, or remove xcsh](../#install-xcsh).\n2. [Authenticate a model](./model-authentication/), which the quickstart requires.\n3. Run the [general quickstart](./quickstart/).\n4. Connect an [F5 Distributed Cloud context](./f5-xc-connection/) when you intend to reach a tenant.\n5. Complete [your first manifest lifecycle](./first-manifest/) against a lab namespace you are authorized to change.\n",
|
|
48
|
-
"en/getting-started/model-authentication.mdx": "---\ntitle: \"Authenticate a model provider\"\ndescription: \"Configure an API key or supported subscription login without placing credentials in project files.\"\nsidebar:\n order: 2\n label: \"Model authentication\"\n---\n\nModel credentials belong in the provider-supported environment or subscription login, not in prompts, settings committed to a repository, or command arguments.\n\n## Which authentication method should I choose?\n\nUse a provider application programming interface (API) key for service-style automation. Use a supported subscription login for an interactive user session. Run `xcsh --list-models <PROVIDER>` after authentication to confirm the credential can enumerate models.\n\n<span data-fidelity-generated=\"start\"></span>\n\n<p id=\"fidelity-lc-a482f6fd3f7bf483\" data-fidelity=\"lc-a482f6fd3f7bf483\"><strong>Claude subscription.</strong> Run /login anthropic or select Anthropic (Claude Pro/Max) from the login picker. Current implementation points include /login anthropic, code#state, smol.</p>\n\n<p id=\"fidelity-lc-cf70025e4db84f42\" data-fidelity=\"lc-cf70025e4db84f42\"><strong>Anthropic API key.</strong> For usage-based Anthropic Console access, set ANTHROPICAPIKEY. Current implementation points include ANTHROPIC_API_KEY, /login anthropic.</p>\n\n<p id=\"fidelity-lc-d925e179bca75142\" data-fidelity=\"lc-d925e179bca75142\"><strong>1. ChatGPT subscription (OAuth).</strong> Chatgpt subscription (oauth) for openai api access. To use your ChatGPT Plus or Pro subscription, run /login openai-codex or select ChatGPT Plus/Pro (Codex Subscription) in the\n/login interactive picker. Current implementation points include /login openai-codex, /login, agent.db.</p>\n\n<p id=\"fidelity-lc-b0fe128b1f895e3e\" data-fidelity=\"lc-b0fe128b1f895e3e\"><strong>2. OpenAI Platform API (usage-based billing).</strong> Openai platform api (usage-based billing) for openai api access. To use pay-as-you-go OpenAI Platform access, configure the OPENAIAPIKEY environment variable or provide it in\nmodels.yml: After starting xcsh, select an OpenAI model using /model. Current implementation points include OPENAI_API_KEY, models.yml, /model.</p>\n\n<span data-fidelity-generated=\"end\"></span>\n\n## How do I select a model explicitly?\n\n```bash\nxcsh --model p-openai/gpt-5.2 --no-tools -p \"Summarize README.md\"\n```\n\nReplace the example with a model shown by your installed build. Provider-qualified names avoid an accidental fuzzy match when several providers expose similar model names.\n",
|
|
48
|
+
"en/getting-started/model-authentication.mdx": "---\ntitle: \"Authenticate a model provider\"\ndescription: \"Configure an API key or supported subscription login without placing credentials in project files.\"\nsidebar:\n order: 2\n label: \"Model authentication\"\n---\n\nModel credentials belong in the provider-supported environment or subscription login, not in prompts, settings committed to a repository, or command arguments.\n\n## Which authentication method should I choose?\n\nUse a provider application programming interface (API) key for service-style automation. Use a supported subscription login for an interactive user session. Run `xcsh --list-models <PROVIDER>` after authentication to confirm the credential can enumerate models.\n\n<span data-fidelity-generated=\"start\"></span>\n\n<p id=\"fidelity-lc-a482f6fd3f7bf483\" data-fidelity=\"lc-a482f6fd3f7bf483\"><strong>Claude subscription.</strong> Run /login anthropic or select Anthropic (Claude Pro/Max) from the login picker. Current implementation points include /login anthropic, code#state, smol.</p>\n\n<p id=\"fidelity-lc-cf70025e4db84f42\" data-fidelity=\"lc-cf70025e4db84f42\"><strong>Anthropic API key.</strong> For usage-based Anthropic Console access, set ANTHROPICAPIKEY. Current implementation points include ANTHROPIC_API_KEY, /login anthropic.</p>\n\n<p id=\"fidelity-lc-d925e179bca75142\" data-fidelity=\"lc-d925e179bca75142\"><strong>1. ChatGPT subscription (OAuth).</strong> Chatgpt subscription (oauth) for openai api access. To use your ChatGPT Plus or Pro subscription, run /login openai-codex or select ChatGPT Plus/Pro (Codex Subscription) in the\n/login interactive picker. Current implementation points include /login openai-codex, /login, agent.db.</p>\n\n<p id=\"fidelity-lc-b0fe128b1f895e3e\" data-fidelity=\"lc-b0fe128b1f895e3e\"><strong>2. OpenAI Platform API (usage-based billing).</strong> Openai platform api (usage-based billing) for openai api access. To use pay-as-you-go OpenAI Platform access, configure the OPENAIAPIKEY environment variable or provide it in\nmodels.yml: After starting xcsh, select an OpenAI model using /model. Current implementation points include OPENAI_API_KEY, models.yml, /model.</p>\n\n<span data-fidelity-generated=\"end\"></span>\n\n## How do I select a model explicitly?\n\n```bash\nxcsh --model p-openai/gpt-5.2 --no-tools -p \"Summarize README.md\"\n```\n\nReplace the example with a model shown by your installed build. Provider-qualified names avoid an accidental fuzzy match when several providers expose similar model names.\n\nFor Anthropic, either complete `/login anthropic` with a Claude subscription or export\n`ANTHROPIC_API_KEY` for direct API billing. `--model fable` and `--model anthropic/fable` are exact\naliases for `anthropic/claude-fable-5-1`; use `anthropic/claude-fable-5` when you specifically need\nthe earlier Fable 5 model. Fable access depends on the selected account's entitlement.\n",
|
|
49
49
|
"en/getting-started/quickstart.mdx": "---\ntitle: \"Quickstart\"\ndescription: \"Start an interactive session, inspect the available model, and validate a manifest without tenant credentials.\"\nsidebar:\n order: 3\n label: \"Quickstart\"\n---\n\nThis quickstart proves the executable, provider selection, and one non-interactive model turn without changing repository or cloud state.\n\n## How do I run a bounded first prompt?\n\n```bash\nxcsh --version\nxcsh --list-models ''\nxcsh --no-session --no-tools -p \"Reply with only: xcsh is ready\"\n```\n\nSelect a provider-qualified model with `--model` if more than one provider is configured. `--no-session` prevents persistence and `--no-tools` prevents tool side effects.\n\n## What should I inspect if the prompt fails?\n\nConfirm the provider credential is available to the process without printing it, then run `xcsh --list-models <PROVIDER>`. A missing model points to provider configuration; a missing executable points back to [installation](../#install-xcsh).\n",
|
|
50
|
-
"en/index.mdx": "---\ntitle: xcsh\ndescription: Install xcsh, authenticate a model provider, and begin a reviewable terminal or F5 Distributed Cloud workflow.\ntemplate: splash\neditUrl: false\nhero:\n tagline: An agentic shell for terminal work, extensible automation, and reviewable F5 Distributed Cloud resource workflows.\n image:\n html: '<img src=\"/xcsh/images/xcsh-workflow.svg\" alt=\"Prompt, tools, and F5 Distributed Cloud workflow\" width=\"560\" height=\"360\" />'\n actions:\n - text: Install xcsh\n link: \"#install-xcsh\"\n icon: right-arrow\n variant: primary\n - text: Run the quickstart\n link: /xcsh/en/getting-started/quickstart/\n icon: rocket\nsidebar:\n hidden: true\n order: 0\nhead:\n - tag: style\n content: >-\n .hero img { width: min(100%, 35rem); height: auto; filter: drop-shadow(0 1rem 2.5rem color-mix(in srgb, var(--sl-color-accent) 28%, transparent)); }\n .hero h1 { text-wrap: balance; }\n---\n\nimport { Aside, Steps, TabItem, Tabs } from '@astrojs/starlight/components';\n\nxcsh combines an interactive coding agent with deterministic F5 Distributed Cloud resource commands. It is an independent open-source project, not an F5 product.\n\n## Install xcsh\n\nChoose one channel and use the same channel for upgrades. Mixing package-manager and standalone installations can leave more than one `xcsh` on `PATH`.\n\n<Tabs syncKey=\"install-platform\">\n <TabItem label=\"macOS\" icon=\"seti:apple\">\n The Homebrew formula installs the signed release archive and supports Apple silicon and Intel Macs:\n\n ```bash\n brew install f5-sales-demo/tap/xcsh\n ```\n\n The managed cask installs the signed macOS package instead:\n\n ```bash\n brew install --cask f5-sales-demo/tap/xcsh\n ```\n\n Use one of these Homebrew packages, not both. Confirm the architecture and executable after installation:\n\n ```bash\n uname -m\n command -v xcsh\n xcsh --version\n ```\n </TabItem>\n\n <TabItem label=\"Ubuntu or Debian\" icon=\"seti:ubuntu\">\n The apt repository supports amd64 and arm64 and keeps xcsh on the normal system upgrade path:\n\n <Aside type=\"caution\" title=\"Verify repository availability\">\n Require `curl -fI https://f5-sales-demo.github.io/apt-repo/dists/stable/InRelease` to succeed before adding the source. If the signed index is unavailable, use the standalone installer below; do not configure a broken apt source.\n </Aside>\n\n ```bash\n sudo install -d -m 0755 /etc/apt/keyrings\n curl -fsSL https://f5-sales-demo.github.io/apt-repo/f5xc-archive-keyring.gpg \\\n | sudo tee /etc/apt/keyrings/f5xc-archive-keyring.gpg >/dev/null\n echo \"deb [arch=amd64,arm64 signed-by=/etc/apt/keyrings/f5xc-archive-keyring.gpg] https://f5-sales-demo.github.io/apt-repo stable main\" \\\n | sudo tee /etc/apt/sources.list.d/f5xc.list\n sudo apt-get update\n sudo apt-get install xcsh\n ```\n\n For a user-local standalone release, run the installer. It selects the current Linux architecture and installs the executable and matching native add-ons in `${PI_INSTALL_DIR:-$HOME/.local/bin}`:\n\n ```bash\n curl -fsSL https://raw.githubusercontent.com/f5-sales-demo/xcsh/main/scripts/install.sh | sh\n ```\n\n Add `$HOME/.local/bin` to `PATH` if `command -v xcsh` does not find it. You may also download `xcsh-linux-x64` or `xcsh-linux-arm64` and its matching `pi_natives` assets from [GitHub Releases](https://github.com/f5-sales-demo/xcsh/releases).\n </TabItem>\n\n <TabItem label=\"Windows\" icon=\"seti:windows\">\n xcsh publishes a Windows x64 executable. Run the installer from PowerShell:\n\n ```powershell\n irm https://raw.githubusercontent.com/f5-sales-demo/xcsh/main/scripts/install.ps1 | iex\n ```\n\n The installer writes `xcsh.exe` and its native add-ons to `%LOCALAPPDATA%\\\\xcsh`, adds that directory to the user `PATH`, and configures Git Bash when it can find it. Restart the terminal after a new `PATH` entry.\n\n <Aside type=\"caution\" title=\"Bash is required\">\n Install Git for Windows, WSL, Cygwin, or MSYS2 before using tool-backed sessions. Set `shellPath` in `%USERPROFILE%\\\\.xcsh\\\\agent\\\\settings.json` when Bash is not in a standard location.\n </Aside>\n\n ```powershell\n Get-Command xcsh\n xcsh --version\n xcsh --help\n ```\n </TabItem>\n\n <TabItem label=\"Container\" icon=\"seti:docker\">\n Docker and Podman can run the same multi-architecture image for linux/amd64 and linux/arm64:\n\n ```bash\n docker pull ghcr.io/f5-sales-demo/xcsh:latest\n docker run --rm ghcr.io/f5-sales-demo/xcsh:latest --version\n # Podman accepts the same pull and run arguments.\n ```\n\n Pin a release tag for repeatable upgrades and an immutable digest for deployment:\n\n ```bash\n docker pull ghcr.io/f5-sales-demo/xcsh:vX.Y.Z\n docker image inspect --format '{{index .RepoDigests 0}}' ghcr.io/f5-sales-demo/xcsh:vX.Y.Z\n docker run --rm ghcr.io/f5-sales-demo/xcsh@sha256:<digest> --version\n ```\n\n Mount only the working tree and state required by the task. Pass provider credentials at runtime through a secret manager or environment file; never bake them into an image layer.\n\n ```bash\n docker run --rm -it \\\n --mount type=bind,src=\"$PWD\",dst=/workspace \\\n --mount type=bind,src=\"$HOME/.xcsh\",dst=/home/xcsh/.xcsh \\\n --env-file ./xcsh.env \\\n ghcr.io/f5-sales-demo/xcsh:vX.Y.Z\n ```\n </TabItem>\n\n <TabItem label=\"Advanced\" icon=\"seti:config\">\n Use the package or source channels when you need a JavaScript toolchain or an unreleased ref:\n\n ```bash\n bun install --global @f5-sales-demo/xcsh\n npm install --global @f5-sales-demo/xcsh\n curl -fsSL https://raw.githubusercontent.com/f5-sales-demo/xcsh/main/scripts/install.sh \\\n | sh -s -- --source --ref main\n ```\n\n Source installs require Git and Bun 1.4.2 or newer. A `--ref` without `--source` also selects the source path; use a tag for reproducibility.\n </TabItem>\n</Tabs>\n\n### Verify the active installation\n\n<Steps>\n1. Resolve the executable before diagnosing a version mismatch.\n\n command -v xcsh\n type -a xcsh\n xcsh --version\n\n1. Upgrade through the channel that installed it.\n\n brew upgrade xcsh # Homebrew formula\n brew upgrade --cask xcsh # managed macOS package\n sudo apt-get update && sudo apt-get install --only-upgrade xcsh\n bun update --global @f5-sales-demo/xcsh # Bun package\n npm update --global @f5-sales-demo/xcsh # npm package\n\n Re-run the shell or PowerShell installer to replace a standalone release. Resolve and remove an older executable before switching channels.\n\n1. Remove only the selected channel. Settings, contexts, and sessions remain available unless you deliberately remove the path reported by `xcsh config path`.\n\n brew uninstall xcsh\n brew uninstall --cask xcsh\n sudo apt-get remove xcsh\n bun remove --global @f5-sales-demo/xcsh\n npm uninstall --global @f5-sales-demo/xcsh\n\n</Steps>\n\n## Authenticate a provider\n\nKeep model credentials in the provider-supported environment or subscription login, never in a prompt or committed settings file. Follow [model authentication](./getting-started/model-authentication/) and confirm the selected provider can enumerate models:\n\n xcsh --list-models PROVIDER\n\n## Run the quickstart\n\nStart with a bounded prompt that disables tools and session persistence, then add integrations only when the executable and model route are working:\n\n xcsh --no-session --no-tools -p \"Reply with only: xcsh is ready\"\n\nContinue with the [quickstart](./getting-started/quickstart/), or select a [context and namespace](./f5-distributed-cloud/contexts-namespaces/) before an authorized F5 Distributed Cloud change.\n\n<span data-fidelity-generated=\"start\"></span>\n\n<p id=\"fidelity-lc-c7aaa3df3c68b247\" data-fidelity=\"lc-c7aaa3df3c68b247\"><strong>Languages and localization.</strong> Choose your language on the documentation portal</p>\n\n<p id=\"fidelity-lc-bd4c386fa2a16e57\" data-fidelity=\"lc-bd4c386fa2a16e57\"><strong>Documentation catalog.</strong> The English catalog grouped configuration, containers, extensions, MCP, native runtime, providers, tools, sessions, TUI, Office ownership, and prompt guidance as distinct knowledge\nareas.</p>\n\n<span data-fidelity-generated=\"end\"></span>\n",
|
|
50
|
+
"en/index.mdx": "---\ntitle: xcsh\ndescription: Install xcsh, authenticate a model provider, and begin a reviewable terminal or F5 Distributed Cloud workflow.\ntemplate: splash\neditUrl: false\nsidebar:\n hidden: true\n order: 0\nhead:\n - tag: style\n content: |\n main:has(.landing-hero) > .content-panel:first-of-type { padding-block-end: .5rem; }\n main:has(.landing-hero) > .content-panel:first-of-type + .content-panel { border-top: 0; padding-block-start: 0; }\n .landing-hero { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: minmax(0, 1fr) minmax(18rem, 35rem); align-items: center; margin-block: .75rem 2rem; }\n .landing-hero__content, .landing-hero__image, .landing-installer, .landing-installer .expressive-code, .landing-command { min-width: 0; }\n h1#_top { max-width: 13ch; margin-block-end: 0; text-wrap: balance; }\n .landing-hero__lede { max-width: 42rem; color: var(--sl-color-gray-2); font-size: var(--sl-text-lg); }\n .landing-installer { margin-block: 0 4rem; padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid var(--sl-color-gray-5); border-radius: .75rem; background: var(--sl-color-bg-nav); }\n .landing-installer h2 { margin: 0; font-size: var(--sl-text-lg); }\n .landing-installer p { margin-block: .5rem 0; }\n .landing-installer pre { max-width: 100%; overflow-x: auto; }\n .landing-installer .expressive-code .ec-line .code { padding-inline-end: 3.5rem; white-space: pre; overflow-wrap: normal; }\n .landing-installer .expressive-code .copy button { opacity: 1; }\n .landing-hero__image { margin: 0; }\n .landing-hero__image img { display: block; width: 100%; height: auto; aspect-ratio: 1442 / 1268; object-fit: contain; filter: drop-shadow(0 1rem 2.5rem color-mix(in srgb, var(--sl-color-accent) 28%, transparent)); }\n .landing-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: 1.5rem; }\n .landing-explore { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n details.landing-disclosure { margin-block: 1rem 0; padding: .75rem 1rem; border: 1px solid var(--sl-color-gray-5); border-radius: .5rem; background: var(--sl-color-bg-nav); }\n details.landing-disclosure summary { cursor: pointer; font-weight: 600; }\n :is(.landing-hero, .landing-installer, .landing-grid, .landing-disclosure) :is(a, button, summary):focus-visible { outline: 2px solid var(--sl-color-accent-high); outline-offset: 3px; }\n @media (max-width: 50rem) { .landing-hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-block: .5rem 2rem; } .landing-installer { margin-block-end: 3rem; padding: 1rem; } .landing-grid { grid-template-columns: minmax(0, 1fr); } }\n---\n\nimport { Card, LinkCard, TabItem, Tabs } from '@astrojs/starlight/components';\n\n<section class=\"landing-hero\" aria-labelledby=\"_top\">\n <div class=\"landing-hero__content\">\n <p class=\"landing-hero__lede\">An AI-native terminal assistant for engineering, automation, and reviewable F5 Distributed Cloud workflows.</p>\n <p>xcsh is an independent open-source project derived from pi/pi-mono, specialized for F5 Distributed Cloud workflows; it is not an F5 product.</p>\n </div>\n\n <figure class=\"landing-hero__image\">\n <img src=\"/xcsh/images/xcsh-ghostty-terminal.png\" width=\"1442\" height=\"1268\" alt=\"xcsh running in a Ghostty terminal with the model selector, prompt, and session status visible.\" />\n </figure>\n</section>\n\n<section class=\"landing-installer\" aria-labelledby=\"install-xcsh\">\n\n## Install xcsh\n\n <p>Universal installer for macOS and Linux.</p>\n\n ```bash\n curl -fsSL https://raw.githubusercontent.com/f5-sales-demo/xcsh/main/scripts/install.sh | sh\n ```\n\n <p>It installs the latest prebuilt release into <code>~/.local/bin</code>. Need a managed or platform-specific channel? Compare the <a href=\"#installation-options\">installation options</a>.</p>\n</section>\n\n## What xcsh helps you do\n\n<div class=\"landing-grid landing-capabilities\">\n <Card title=\"Agentic terminal work\" icon=\"terminal\">\n Run interactive or print-mode prompts, inspect files, use tools, and keep durable session history when the task needs it. [Learn the agent loop](./use-xcsh/agent-loop/).\n </Card>\n <Card title=\"Reviewable F5 Distributed Cloud workflows\" icon=\"document\">\n Discover schemas, validate manifests, and inspect proposed differences before an authorized resource change. [Use resource workflows](./f5-distributed-cloud/).\n </Card>\n <Card title=\"Extensible automation\" icon=\"puzzle\">\n Add headless workflows, custom tools, skills, plugins, or MCP servers when built-in commands are not enough. [Automate and extend](./automate-extend/).\n </Card>\n</div>\n\nThese workflows start with a working executable; choose another channel only when the universal installer is not the right fit.\n\n## Installation options\n\nUse one channel for install and upgrades. Mixing package-manager and standalone installations can leave more than one `xcsh` on `PATH`; the universal installer above is not repeated here.\n\n<Tabs syncKey=\"install-platform\">\n<TabItem label=\"macOS\" icon=\"seti:apple\">\nChoose the Homebrew formula for the signed release archive, or the managed cask for the signed macOS package. Install one, not both:\n\n```bash\nbrew install f5-sales-demo/tap/xcsh\n# or\nbrew install --cask f5-sales-demo/tap/xcsh\n```\n\n<details class=\"landing-disclosure\">\n<summary>Upgrade or remove</summary>\n\nUpgrade with `brew upgrade xcsh` or `brew upgrade --cask xcsh`. Remove the selected channel with `brew uninstall xcsh` or `brew uninstall --cask xcsh`.\n</details>\n</TabItem>\n\n<TabItem label=\"Ubuntu or Debian\" icon=\"seti:ubuntu\">\nThe signed apt repository supports amd64 and arm64 and follows normal system upgrades:\n\n```bash\nsudo install -d -m 0755 /etc/apt/keyrings\ncurl -fsSL https://f5-sales-demo.github.io/apt-repo/f5xc-archive-keyring.gpg \\\n | sudo tee /etc/apt/keyrings/f5xc-archive-keyring.gpg >/dev/null\necho \"deb [arch=amd64,arm64 signed-by=/etc/apt/keyrings/f5xc-archive-keyring.gpg] https://f5-sales-demo.github.io/apt-repo stable main\" \\\n | sudo tee /etc/apt/sources.list.d/f5xc.list\nsudo apt-get update && sudo apt-get install xcsh\n```\n\n<details class=\"landing-disclosure\">\n<summary>Upgrade or remove</summary>\n\nUpgrade with `sudo apt-get update && sudo apt-get install --only-upgrade xcsh`. Remove the package with `sudo apt-get remove xcsh`.\n</details>\n</TabItem>\n\n<TabItem label=\"Windows\" icon=\"seti:windows\">\nRun the PowerShell installer, then restart the terminal so its user `PATH` refreshes:\n\n```powershell\nirm https://raw.githubusercontent.com/f5-sales-demo/xcsh/main/scripts/install.ps1 | iex\n```\n\nIt installs `xcsh.exe` and native add-ons to `%LOCALAPPDATA%\\\\xcsh`. **Bash is required for tool-backed sessions.** Install Git for Windows, WSL, Cygwin, or MSYS2; set `shellPath` in `%USERPROFILE%\\\\.xcsh\\\\agent\\\\settings.json` when Bash is elsewhere.\n\n<details class=\"landing-disclosure\">\n<summary>Upgrade or remove</summary>\n\nRe-run the installer to upgrade. To uninstall, remove `%LOCALAPPDATA%\\\\xcsh` and its entry from the user `PATH`.\n</details>\n</TabItem>\n\n<TabItem label=\"Container\" icon=\"seti:docker\">\nDocker and Podman use the same multi-architecture image. Pin a release tag, resolve its digest for deployment, and mount only the workspace and state required by the task:\n\n```bash\ndocker pull ghcr.io/f5-sales-demo/xcsh:vX.Y.Z\ndocker image inspect --format '{{index .RepoDigests 0}}' ghcr.io/f5-sales-demo/xcsh:vX.Y.Z\ndocker run --rm ghcr.io/f5-sales-demo/xcsh@sha256:<digest> --version\n```\n\nPodman accepts the same pull, inspect, and run arguments. Pass provider credentials at runtime through a secret manager or environment file; never bake them into an image layer.\n\n<details class=\"landing-disclosure\">\n<summary>Upgrade or remove</summary>\n\nPull a newer pinned tag to upgrade. Remove an unused image with `docker image rm IMAGE` or `podman image rm IMAGE`.\n</details>\n</TabItem>\n\n<TabItem label=\"Packages and source\" icon=\"seti:config\">\nUse a JavaScript package or a source/ref install when you need a toolchain or an unreleased ref. Source installs require Git and Bun 1.4.2 or newer:\n\n```bash\nbun install --global @f5-sales-demo/xcsh\nnpm install --global @f5-sales-demo/xcsh\ncurl -fsSL https://raw.githubusercontent.com/f5-sales-demo/xcsh/main/scripts/install.sh \\\n | sh -s -- --source --ref vX.Y.Z\n```\n\nThe explicit `--source` and `--ref` arguments select a reproducible source install.\n\n<details class=\"landing-disclosure\">\n<summary>Upgrade or remove</summary>\n\nUpgrade with `bun update --global @f5-sales-demo/xcsh` or `npm update --global @f5-sales-demo/xcsh`. Remove the package with `bun remove --global @f5-sales-demo/xcsh` or `npm uninstall --global @f5-sales-demo/xcsh`; re-run the source command at a new ref to replace that channel.\n</details>\n</TabItem>\n</Tabs>\n\nWhichever installation channel you choose, open xcsh next.\n\n<span id=\"verification\" aria-hidden=\"true\"></span>\n\n## Verify installation\n\n<span id=\"verify-the-active-installation\" aria-hidden=\"true\"></span>\n\nStart the interactive terminal UI:\n\n<div class=\"landing-command\">\n\n```bash\nxcsh\n```\n\n</div>\n\nWhen the xcsh prompt appears, connect a model provider from inside the TUI.\n\n<span id=\"authentication\" aria-hidden=\"true\"></span>\n\n## Authenticate a provider\n\nAt the xcsh prompt, open the provider picker:\n\n<div class=\"landing-command\">\n\n```text\n/login\n```\n\n</div>\n\nChoose a provider and follow its sign-in flow. You can also enter `/login PROVIDER` to open a known provider directly. Keep credentials in the provider-supported environment or subscription login—never in a prompt or committed settings file. See [model authentication](./getting-started/model-authentication/) for provider-specific options.\n\nAfter sign-in selects a model, stay in the TUI and send a small first prompt.\n\n## Send your first prompt\n\n<span id=\"quickstart\" aria-hidden=\"true\"></span>\n\nAt the xcsh prompt, enter:\n\n<div class=\"landing-command\">\n\n```text\nReply with only: xcsh is ready\n```\n\n</div>\n\nA matching response confirms the installation, provider, and selected model are working together. Next, learn the [agent loop](./use-xcsh/agent-loop/) or choose a [context and namespace](./f5-distributed-cloud/contexts-namespaces/) before an authorized F5 Distributed Cloud change.\n\nFrom here, continue with the documentation path that matches your goal.\n\n<span id=\"exploration\" aria-hidden=\"true\"></span>\n\n## Explore by goal\n\nChoose the goal closest to your next task; each path starts from the verified installation above.\n\n<div class=\"landing-grid landing-explore\">\n <LinkCard title=\"Use xcsh\" icon=\"terminal\" href=\"./use-xcsh/\">Daily terminal use, tools, sessions, plans, and agents.</LinkCard>\n <LinkCard title=\"F5 Distributed Cloud\" icon=\"cloud\" href=\"./f5-distributed-cloud/\">Contexts, manifests, validation, and reviewable resource changes.</LinkCard>\n <LinkCard title=\"Configure and secure\" icon=\"setting\" href=\"./configure-secure/\">Providers, settings, secrets, and sandbox boundaries.</LinkCard>\n <LinkCard title=\"Automate and extend\" icon=\"puzzle\" href=\"./automate-extend/\">Headless modes, extensions, MCP, skills, plugins, and SDKs.</LinkCard>\n <LinkCard title=\"Integrations and deployment\" icon=\"rocket\" href=\"./integrations-deployment/\">Containers plus VS Code, Chrome, Office, and Herdr.</LinkCard>\n <LinkCard title=\"Reference and troubleshooting\" icon=\"information\" href=\"./reference-troubleshooting/\">Diagnostics, command reference, hotkeys, and configuration schema.</LinkCard>\n</div>\n\n<span data-fidelity-generated=\"start\"></span>\n\n<p id=\"fidelity-lc-c7aaa3df3c68b247\" data-fidelity=\"lc-c7aaa3df3c68b247\"><strong>Languages and localization.</strong> Choose your language on the documentation portal</p>\n\n<p id=\"fidelity-lc-bd4c386fa2a16e57\" data-fidelity=\"lc-bd4c386fa2a16e57\"><strong>Documentation catalog.</strong> The English catalog grouped configuration, containers, extensions, MCP, native runtime, providers, tools, sessions, TUI, Office ownership, and prompt guidance as distinct knowledge\nareas.</p>\n\n<span data-fidelity-generated=\"end\"></span>\n\n<span data-fidelity-insertion=\"Explore by goal\"></span>\n",
|
|
51
51
|
"en/integrations-deployment/chrome.mdx": "---\ntitle: \"Chrome\"\ndescription: \"Use the xcsh Chrome extension and native host with an isolated automation profile.\"\nsidebar:\n order: 3\n label: \"Chrome\"\n---\n\nThe Chrome integration connects xcsh to a browser session for supported console automation. The installed `xcsh chrome --help` output is the command authority.\n\n## What is the safe operating boundary?\n\nUse a dedicated profile and an authorized target. Confirm the visible account, uniform resource locator (URL), and object before an action that changes state. Prefer deterministic F5 Distributed Cloud resource commands whenever they cover the same operation.\n\n## Which Chrome capabilities does xcsh expose?\n\nThe `chrome` command inspects and arranges browser sessions, and `chrome-host` runs the native messaging host that connects the extension to the executable. Page-level interaction is driven by the browser tool inside a session rather than by a subcommand, so scope it with `--tools` in the same way as any other tool.\n",
|
|
52
52
|
"en/integrations-deployment/containers.mdx": "---\ntitle: \"Containers\"\ndescription: \"Run the published multi-architecture Alpine image with explicit mounts and credentials.\"\nsidebar:\n order: 4\n label: \"Containers\"\n---\n\nThe published container packages xcsh for process isolation and repeatable deployment. It does not grant cloud credentials or filesystem access by itself.\n\n## How do I verify an image?\n\n```bash\ndocker pull ghcr.io/f5-sales-demo/xcsh:latest\ndocker run --rm ghcr.io/f5-sales-demo/xcsh:latest --version\n```\n\nPin a version tag or digest for automation. Mount only the task directory and inject credentials through the runtime's secret mechanism.\n\n<span data-fidelity-generated=\"start\"></span>\n\n<p id=\"fidelity-lc-2f4663a857e23a8a\" data-fidelity=\"lc-2f4663a857e23a8a\"><strong>Prerequisites.</strong> Install Docker Engine with the Docker Compose plugin to use the local development service.</p>\n\n<p id=\"fidelity-lc-0a4c9818628936fd\" data-fidelity=\"lc-0a4c9818628936fd\"><strong>Pulling release images.</strong> Pull the latest stable release image from GHCR: Tagged releases publish a versioned tag (v‹VERSION›), a minor release tag (‹MAJOR›.‹MINOR›), and latest. Current implementation\npoints include v‹VERSION›, ‹MAJOR›.‹MINOR›, latest.</p>\n\n<p id=\"fidelity-lc-61a76dd3595fe570\" data-fidelity=\"lc-61a76dd3595fe570\"><strong>Building the development service.</strong> From a local repository clone, build and launch the hardened development service: The service idles without running xcsh directly, mounts the repository checkout read-only at\n/workspace, and allows you to run commands on demand: The Compose development servi Current implementation points include /workspace, 1000:1000, cap_drop: [ALL].</p>\n\n<p id=\"fidelity-lc-67a1879312089171\" data-fidelity=\"lc-67a1879312089171\"><strong>Configuring the Docker Compose environment.</strong> The Docker Compose configuration and UAT scripts recognize the following environment variables. Compose mounts host credentials into these read-only container paths: Live tests\ncopy required credentials into temporary directories on startup, clear them on exit Current implementation points include UID, 1000, GID.</p>\n\n<p id=\"fidelity-lc-b8ee0f3c341ec2da\" data-fidelity=\"lc-b8ee0f3c341ec2da\"><strong>Running verification tests.</strong> Run the deterministic end-to-end test suite without cloud credentials: This script builds the container image, verifies unprivileged execution and security hardening settings,\nchecks bundled CLIs, and tears down the container service without contacting externa Current implementation points include --live.</p>\n\n<p id=\"fidelity-lc-0042a1ac1bae68f3\" data-fidelity=\"lc-0042a1ac1bae68f3\"><strong>Running native ARM64 Podman UAT.</strong> This release acceptance workflow runs on Apple Silicon macOS hosts with Podman. Current implementation points include jq, --runs, --warmups.</p>\n\n<p id=\"fidelity-lc-0539c4d9d0ed5aa2\" data-fidelity=\"lc-0539c4d9d0ed5aa2\"><strong>Verifying published container images.</strong> Inspect the multi-architecture manifest of a published image: Verify that both linux/amd64 and linux/arm64 appear in the manifest list. Current implementation points include\nlinux/amd64, linux/arm64.</p>\n\n<p id=\"fidelity-lc-59c7a618a612fb60\" data-fidelity=\"lc-59c7a618a612fb60\"><strong>Cleaning up resources.</strong> Stop and remove the development container service and associated networks: Test scripts run this cleanup command automatically upon completion or interruption.</p>\n\n<p id=\"fidelity-lc-cde8c6cdc1e41664\" data-fidelity=\"lc-cde8c6cdc1e41664\"><strong>Localization policy.</strong> Author container documentation in English within docs/en/. Current implementation points include docs/en/.</p>\n\n<span data-fidelity-generated=\"end\"></span>\n\n## What must remain outside the image?\n\nKeep user contexts, provider tokens, and writable session data in explicit mounts or secret stores. Do not bake them into a derived layer.\n",
|
|
53
53
|
"en/integrations-deployment/herdr.mdx": "---\ntitle: \"Integrate with Herdr\"\ndescription: \"Understand Herdr workspace launch, terminal actions, protocol negotiation, and isolation.\"\nsidebar:\n order: 5\n label: \"Herdr\"\n---\n\nHerdr support is optional and host-dependent. When the host does not provide it, xcsh terminal operation is unaffected.\n\n## How is the host protocol negotiated?\n\nThe integration checks the available socket protocol and media or graphics capabilities before it requests a workspace. Missing negotiation support leaves ordinary xcsh terminal operation intact.\n\n<span data-fidelity-generated=\"start\"></span>\n\n<p id=\"fidelity-lc-b03b75c1ad3cb4a9\" data-fidelity=\"lc-b03b75c1ad3cb4a9\"><strong>Media and graphics protocol negotiation.</strong> When a released Herdr version exposes HERDRKITTYGRAPHICS=1 alongside HERDRENV=1, xcsh enables the Kitty image protocol for TTY output even though Herdr reports TERM=xterm-256color.\nCurrent implementation points include HERDR_KITTY_GRAPHICS=1, HERDR_ENV=1, xcsh.</p>\n\n<p id=\"fidelity-lc-1e355a06dd861533\" data-fidelity=\"lc-1e355a06dd861533\"><strong>Launching conversation-owned workspaces.</strong> Launch a conversation-owned workspace from outside Herdr. The launcher executes the following sequence. Current implementation points include 0600, HerdrBindingV1, xcsh.</p>\n\n<p id=\"fidelity-lc-b1f433b68395d4c9\" data-fidelity=\"lc-b1f433b68395d4c9\"><strong>Terminal management actions.</strong> Within a conversation, users invoke /terminal and agents invoke herdrterminal. Current implementation points include /terminal, herdr_terminal, list.</p>\n\n<p id=\"fidelity-lc-fc126b63197fd31b\" data-fidelity=\"lc-fc126b63197fd31b\"><strong>Security and isolation.</strong> Ownership isolation is enforced through a randomly generated xcshowner metadata token attached to the workspace and each managed pane. Current implementation points include\nxcsh_owner, xcsh.</p>\n\n<p id=\"fidelity-lc-f4497b80fc1b75ee\" data-fidelity=\"lc-f4497b80fc1b75ee\"><strong>Socket protocol and resilience.</strong> The socket client communicates using Herdr protocol 18 over newline-delimited JSON across HERDRSOCKETPATH. Current implementation points include HERDR_SOCKET_PATH, ping.</p>\n\n<span data-fidelity-generated=\"end\"></span>\n\n## How is a conversation-owned workspace launched?\n\nA workspace is tied to the conversation identity supplied at startup. Terminal-management actions create or address panes within that workspace, and lifecycle reporting stays anchored to the same startup context. Do not reuse an unrelated workspace merely because its socket is reachable.\n\n## How do I recover from socket failure?\n\nConnection and framing failures surface as integration diagnostics. The client must not open an inbound listener as a fallback. Close conversation-owned resources through the supported lifecycle and preserve unrelated Herdr workspaces.\n\n## What lifecycle state does xcsh publish?\n\nxcsh publishes native turn phases rather than inferring completion from terminal idleness or process exit. With Herdr protocol 20 or 22 and the advertised `agent_turn_journal` capability, a tracked execution publishes a persisted session/turn identity and a bounded semantic result to Herdr's durable journal. The existing 80-character metadata preview remains display-only and is never completion evidence.\nCommentary, prompt content, tool data, and failed or cancelled partial output are excluded.\n\n### External execution driver contract\n\nThe supported producer is the normal `xcsh` executable launched by Herdr's execution backend; it is not a mock or a no-provider/offline actor. For a journal-tracked invocation, that backend must inject the exact allocated `HERDR_EXECUTION_ID` and decimal safe-integer `HERDR_EXECUTION_GENERATION` into the child environment before it starts `xcsh`.\n\nxcsh never guesses a generation: without both values it retains ordinary pane lifecycle reporting but emits no semantic journal event. A continuation must be launched with its newly allocated generation.\n\nProtocol 22 adds producer-native controls. Herdr injects a one-time `HERDR_NATIVE_CAPABILITY` into the child. xcsh includes it only in authenticated turn-report and action requests; it is never written to the session journal, logs, diagnostics, or receipts.\nHerdr does not authorize actions until the first `starting` report has been durably journaled and bound to the owned PTY, pane, session, generation, and turn.\n\nThe producer wire shapes align with [Herdr PR #49](https://github.com/f5-sales-demo/herdr/pull/49) at cancellation-settlement commit `2c838cf545ed06439b4988cedb3e044f1d436264`, starting-replay recovery commit `edd5611cfd7685c0f069f244ceee0ac6c0a0678e`, and native-argv alignment commit `3397302960593a552fb37ceb71053cf99f2619a3`.\nThose commits are an integration contract under independent review, not released-backend evidence.\n\nAfter that registration, xcsh polls `agent.turn.action.get` with the same immutable provenance. A `cancel` action dismisses an active managed UI prompt and calls the real `AgentSession` abort path. xcsh persists the requested action and local safe point before sending the exact `agent.turn.action.ack`; it emits `cancelled` only after Herdr confirms that safe point.\nA lost ACK response is retried with the same action ID and revision, including after reporter restart. A backend `timed_out` action never triggers a late abort. PTY exit alone is not semantic cancellation.\n\nSession shutdown releases pane authority. It does not convert an unfinished turn into a successful completion.\n\n### Producer-native acceptance driver\n\n`xcsh lifecycle --json` prints the version 2 machine-readable producer contract. To execute a source or installed\nproducer check, supply a fresh absolute session directory, a normally configured model, and one scenario:\n\n```bash\nxcsh lifecycle --json \\\n --scenario await-continue \\\n --model openai-codex/gpt-5.6-luna \\\n --session-dir /absolute/fresh/xcsh-lifecycle-session\n```\n\nSupported scenarios are `success`, `failure`, `await-continue`, `cancel`, `managed-cancel`, `managed-working-cancel`, and `reply-loss-replay`. The driver first\nuses the prompt-free JSON session contract to persist one canonical 16-character lowercase hexadecimal session\nheader, then reopens that exact path in an ordinary interactive xcsh child. It generates a random mode-0600 fixture\nfor successful reads. `await-continue` pauses in the real `ExtensionUiController` input surface before the configured\nmodel runs; `cancel` sends SIGINT through `PtySession.interrupt()` and requires xcsh's native `cancelled` transition.\n`managed-cancel` uses a local protocol-22 control fixture to request the action and requires the executable child to\nacknowledge its safe point before its native `cancelled` report. That fixture validates the producer adapter only; it\nis not evidence for Herdr's durable action journal, manager generation replacement, or consumer deduplication.\n`managed-working-cancel` requests the same cooperative action after the real child reports `working`, without opening\nthe acceptance prompt, and verifies cancellation through the active `AgentSession` path.\n\nThe reply-loss scenario owns a temporary local protocol-20 socket that acknowledges ordinary reporter traffic but\ndrops exactly one `agent.turn.report` reply. xcsh creates and persists the semantic event before transport, runs the\nconfigured provider and `read` tool, then a second xcsh process resumes the exact session path. The scenario passes\nonly when the reporter redelivers the byte-equivalent execution, pane, session, turn, generation, event revision, and\nstate fields. The socket never authors a lifecycle frame or substitutes an offline model.\n\nThe receipt's `evidenceClass` is `source_native_child`. This proves the measured source or executable behavior only;\nthe Control Manager remains responsible for its own admission, authenticated execution binding, generation changes,\nconsumer receipts, and installed-artifact acceptance. The command does not install or release xcsh or Herdr and does\nnot change normal launch defaults.\n\nThe verified contract is:\n\n| Concern | xcsh signal | Herdr disposition |\n| --- | --- | --- |\n| Session start and identity | Persisted native session ID/path | Herdr resume reference plus stable semantic session identity. |\n| Turn start/progress | Persisted UUID and normalized `turn_phase` | `starting`/`working` journal events with producer revision and server revision. |\n| Waiting for input/approval | `awaiting_user` and closed prompt kind | `waiting_input` with fixed safe reason; private prompt content is excluded. |\n| Successful completion | Settlement-aware `idle` after `agent_end` | `completed` with at most 8,000 UTF-8 bytes and a matching SHA-256 digest. |\n| Failure/cancellation | `error` or `cancelled` | Distinct terminal state and bounded safe reason; no partial result. |\n| Managed cancellation | Persisted action receipt, Extension UI signal, and `AgentSession.abort()` | Authenticated `safe_point` precedes and is linked to the native `cancelled` report. |\n| Resume/fork | Session events and persisted custom turn entries | Resume preserves identity; unfinished recovered work becomes `interrupted`; fork has separate session lineage. |\n| Reconnect/order | Serialized queue and persisted event revision | Exact duplicates are idempotent; stale/conflicting revisions fail; terminal state is immutable. |\n| Application exit | `session_shutdown` | Active turn becomes `interrupted`, then pane authority is released; never success. |\n\nThe protocol-22 producer integration is tracked by [issue #3791](https://github.com/f5-sales-demo/xcsh/issues/3791); its lifecycle foundation is tracked by [issue #3768](https://github.com/f5-sales-demo/xcsh/issues/3768). The complete cross-project work packages and acceptance gates are in [Herdr native signaling gap-closing plan](../architecture-contribution/herdr-gap-closing-plan).\n\nHerdr lifecycle reconciliation is tracked by issue #5 in the F5 Herdr fork. Current source already recognizes the exact `(\"herdr:xcsh\", \"xcsh\")` resume pair; deployed build provenance and live resume/fork acceptance remain required before feature acceptance.\n",
|
|
@@ -56,7 +56,7 @@ export const EMBEDDED_DOCS: Readonly<Record<string, string>> = {
|
|
|
56
56
|
"en/integrations-deployment/vscode.mdx": "---\ntitle: \"VS Code\"\ndescription: \"Use the companion VS Code integration with the same xcsh model and session foundation.\"\nsidebar:\n order: 1\n label: \"VS Code\"\n---\n\nThe companion VS Code extension embeds an xcsh conversation in an editor workspace. Its extension manifest and source repository define the supported commands and distribution channel.\n\n## What carries over from the terminal?\n\nProvider configuration, model selection, session concepts, and workspace file boundaries follow the xcsh runtime. Open the intended workspace before starting a conversation.\n\n## Which behavior should I validate in the terminal?\n\nEditor menus and command palette entries belong to the extension host and change with its release. Reproduce runtime behavior with the command-line interface (CLI) first:\n\n1. Run the same prompt with `xcsh -p` in the workspace directory.\n2. Compare the model, provider, and tool set reported there with the editor session.\n3. Inspect the persisted session file rather than the editor transcript when an exact sequence matters.\n\nA difference between the two points at extension configuration, not at the agent loop.\n",
|
|
57
57
|
"en/reference-troubleshooting/cli-reference.mdx": "---\ntitle: \"CLI command and flag reference\"\ndescription: \"Look up every top-level xcsh command and every global flag a session accepts.\"\nsidebar:\n order: 1\n label: \"CLI reference\"\n---\n\nThe installed `xcsh <COMMAND> --help` output is the command-line interface (CLI) authority for its release. This page lists the command and flag names that release exposes so you can find one without starting a session.\n\n## Which top-level commands exist?\n\n| Area | Commands |\n| --- | --- |\n| Resources | `validate`, `diff`, `create`, `apply`, `update`, `get`, `export`, `delete` |\n| Runtime | `config`, `setup`, `sandbox`, `shell`, `ssh`, `stats`, `search` |\n| Files and code | `read`, `grep`, `jupyter` |\n| Extensibility | `agents`, `plugin`, `worker`, `manager` |\n| Interfaces | `chrome`, `chrome-host`, `office`, `herdr` |\n| Repository | `commit`, `grievances` |\n| Maintenance | `self-update`, `update --check` |\n\n`search` also answers to `q`. On `update`, `-f` names a resource manifest; an executable force-update uses `--force`.\n\n## Which global flags does a session accept?\n\nThese flags configure an agent launch. They precede the prompt and do not apply to a subcommand.\n\n| Group | Flags |\n| --- | --- |\n| Model | `--model`, `--smol`, `--slow`, `--plan`, `--provider`, `--models`, `--thinking`, `--list-models` |\n| Credentials and context | `--api-key`, `--context` |\n| Prompt | `--system-prompt`, `--append-system-prompt`, `--no-title` |\n| Mode | `--mode` (`text`, `json`, `rpc`, `acp`), `-p`/`--print` |\n| Session | `-c`/`--continue`, `-r`/`--resume`, `--fork`, `--session-dir`, `--no-session`, `--no-memories`, `--export` |\n| Filesystem | `--allow-home`, `--allow-path`, `--no-sandbox` |\n| Capabilities | `--tools`, `--no-tools`, `--no-mcp`, `--no-lsp`, `--no-pty` |\n| Discovery | `-e`/`--extension`, `--hook`, `--plugin-dir`, `--no-extensions`, `--skills`, `--no-skills`, `--no-rules` |\n\n`packages/coding-agent/src/cli/flag-spec.ts` is the single source that renders `--help` and drives the parser, so the two cannot disagree.\n\n## How do I script a command safely?\n\nRun these steps against the pinned executable:\n\n1. Read `xcsh <COMMAND> --help` for the release you pinned.\n2. Write long flags rather than single-character aliases.\n3. Request `--result-file` or `--mode json` wherever the command supports it.\n4. Pass `--allow-path` once per additional directory; it accumulates rather than replacing.\n",
|
|
58
58
|
"en/reference-troubleshooting/configuration-schema.mdx": "---\ntitle: \"Configuration schema\"\ndescription: \"Look up the settings namespaces xcsh validates, and the commands that report effective values.\"\nsidebar:\n order: 3\n label: \"Configuration schema\"\n---\n\n`packages/coding-agent/src/config/settings-schema.ts` defines every recognized settings key with its type, default, and validation. It evolves with the executable, so read the key namespaces here and the values from your own installation.\n\n## Which key namespaces exist?\n\n| Area | Namespaces |\n| --- | --- |\n| Appearance | `theme`, `statusLine`, `display`, `tui`, `terminal`, `images`, `media` |\n| Model and routing | `routing`, `retry`, `thinkingBudgets`, `providers`, `exa` |\n| Interaction | `startup`, `keybindings`, `completion`, `ask`, `stt`, `marketplace` |\n| Context and session | `context`, `contextPromotion`, `compaction`, `branchSummary`, `memories`, `ttsr`, `power` |\n| Editing | `edit`, `read`, `lsp`, `bashInterceptor`, `python` |\n| Tools | `tools`, `todo`, `find`, `grep`, `astGrep`, `astEdit`, `notebook`, `fetch`, `browser`, `web_search`, `calc`, `checkpoint`, `debug`, `inspect_image`, `generate_image`, `renderMermaid`, `bash`, `async`, `mcp` |\n| Tasks and capabilities | `task`, `tasks`, `skills`, `commands` |\n| Security | `secrets`, `sandbox`, `xcsh` |\n| Repository workflows | `commit`, `dev` |\n\nA key is `namespace.name`, as in `compaction.thresholdPercent` or `sandbox.allowRead`. Nested groups extend that form, as in `todo.reminders.max`.\n\n## How do I control session sleep prevention?\n\n`power.sleepPrevention` defaults to `idle`. Set it to `off`, `idle`, `display`, or `system`; each\nlevel is cumulative and applies only while an agent session is active. xcsh maps the setting to\nIOKit on macOS, login1 and ScreenSaver on Linux, and thread-affine execution state on Windows.\n\n## How do I inspect the effective schema-backed values?\n\n```bash\nxcsh config list --json\nxcsh config get <KEY>\n```\n\nUse `xcsh config set <KEY> <VALUE>` only for a key present in the installed schema. Reset one key with `xcsh config reset <KEY>` rather than copying defaults from another release.\n\n## Which source defines a setting?\n\nThe settings schema and its tests in the matching source release define type, default, and validation. `xcsh config list --json` reports the value after user, project, environment, and command-line precedence is applied. When the two disagree, the schema describes what is legal and the effective output describes what is active.\n",
|
|
59
|
-
"en/reference-troubleshooting/diagnostics.mdx": "---\ntitle: \"Run diagnostics\"\ndescription: \"Collect version, configuration, provider, context, and sandbox evidence without exposing secrets.\"\nsidebar:\n order: 4\n label: \"Run diagnostics\"\n---\n\nCollect the smallest evidence set that identifies the failing layer. Never print credentials or raw context files.\n\n## The shell cannot find xcsh\n\nRun `command -v xcsh` and `xcsh --version`. If the path belongs to an old installation channel, remove that channel and reinstall once through the intended channel.\n\n## A model is unavailable or authentication fails\n\nRun `xcsh --list-models <PROVIDER>`. If no models appear, verify the relevant credential is present without echoing it. Retry with a provider-qualified `--model` name.\n\n## A context or resource command fails\n\nConfirm `/context status` and the explicit namespace. Run `validate` to separate local manifest errors from live application programming interface (API) errors, then retry a read-only `get` or `diff`.\n\n## A tool or extension fails during startup\n\nStart from the smallest surface, then widen it:\n\n1. Run with `--no-mcp --no-extensions --no-rules`, adding `--no-pty` if the terminal itself is suspect.\n2. Re-enable one subsystem, then repeat the failing command.\n3. Check optional dependencies with `xcsh setup <COMPONENT> --check --json`.\n4. Check plugins with `xcsh plugin doctor`.\n",
|
|
59
|
+
"en/reference-troubleshooting/diagnostics.mdx": "---\ntitle: \"Run diagnostics\"\ndescription: \"Collect version, configuration, provider, context, and sandbox evidence without exposing secrets.\"\nsidebar:\n order: 4\n label: \"Run diagnostics\"\n---\n\nCollect the smallest evidence set that identifies the failing layer. Never print credentials or raw context files.\n\n## The shell cannot find xcsh\n\nRun `command -v xcsh` and `xcsh --version`. If the path belongs to an old installation channel, remove that channel and reinstall once through the intended channel.\n\n## A model is unavailable or authentication fails\n\nRun `xcsh --list-models <PROVIDER>`. If no models appear, verify the relevant credential is present without echoing it. Retry with a provider-qualified `--model` name.\n\nFor Fable, `credits_required` means the authenticated Anthropic account is not entitled or funded\nfor that model; xcsh reports it once without retrying. Check Claude subscription access or API\nbilling for the credential in use. An obsolete-client error also does not retry: upgrade xcsh so\nits Claude Code compatibility header matches the current client, then try again.\n\n## A context or resource command fails\n\nConfirm `/context status` and the explicit namespace. Run `validate` to separate local manifest errors from live application programming interface (API) errors, then retry a read-only `get` or `diff`.\n\n## A tool or extension fails during startup\n\nStart from the smallest surface, then widen it:\n\n1. Run with `--no-mcp --no-extensions --no-rules`, adding `--no-pty` if the terminal itself is suspect.\n2. Re-enable one subsystem, then repeat the failing command.\n3. Check optional dependencies with `xcsh setup <COMPONENT> --check --json`.\n4. Check plugins with `xcsh plugin doctor`.\n",
|
|
60
60
|
"en/reference-troubleshooting/index.mdx": "---\ntitle: \"Reference and troubleshooting\"\ndescription: \"Diagnose installations, providers, contexts, and tools, then consult current command and configuration references.\"\nsidebar:\n order: 0\n label: \"Reference\"\n---\n\nBegin with the observed symptom and isolate one layer at a time.\n\n## Where do I look?\n\n- [Diagnostics](./diagnostics/) for installation, provider, context, and tool symptoms.\n- [command-line interface (CLI) reference](./cli-reference/) for current command shapes.\n- [Slash commands and hotkeys](./slash-keybindings/) for interactive discovery.\n- [Configuration schema](./configuration-schema/) for supported settings.\n\nTerms are defined where they are used; there is no separate glossary.\n",
|
|
61
61
|
"en/reference-troubleshooting/slash-keybindings.mdx": "---\ntitle: \"Slash command reference\"\ndescription: \"Find the interactive commands for models, sessions, contexts, resources, plugins, Model Context Protocol servers, tools, and session state.\"\nsidebar:\n order: 2\n label: \"Slash command reference\"\n---\n\nSlash commands are interactive terminal user interface (TUI) controls, not shell subcommands. The registry is assembled at startup from built-in commands plus whatever the loaded plugins and extensions register.\n\n## How do I find a command or keybinding?\n\nType `/` in the prompt to list the registry active in the current session, and `/hotkeys` to read the resolved terminal key map. Autocomplete narrows the list as you type, so it reports the current release, mode, and extension set rather than a published snapshot.\n\n## Which subsystems have their own commands?\n\n| Subsystem | Entry point |\n| --- | --- |\n| Models and routing | `/model` |\n| Sessions and history | `/session`, `/resume`, `/tree`, `/branch`, `/fork`, `/compact`, `/export` |\n| F5 Distributed Cloud | `/context`, `/namespace`, `/manifest`, `/validate`, `/diff`, `/apply`, `/get`, `/create`, `/delete` |\n| Capabilities | `/tools`, `/agents`, `/plugin`, `/extensions`, `/mcp` |\n| Session state | `/settings`, `/hotkeys`, `/memory`, `/usage`, `/plan` |\n\n`/context status`, `/mcp list`, and `/plugin list` report the current state of those subsystems without changing anything.\n",
|
|
62
62
|
"en/use-xcsh/agent-loop.mdx": "---\ntitle: \"How xcsh works\"\ndescription: \"Understand how prompts, model turns, tool calls, results, and session entries form the agent loop.\"\nsidebar:\n order: 1\n label: \"How xcsh works\"\n---\n\nA user message enters the selected model. The model may request a tool; xcsh executes the allowed tool, appends its result, and continues until the model produces a final response or the run stops.\n\n## Where is the durable record?\n\nSession JSON Lines (JSONL) stores messages and tool events. The terminal rendering is a view of that state, not the canonical record. Export or inspect the session when an exact sequence matters.\n\n## Where are side effects introduced?\n\nModel text alone does not change files or external systems. Tools such as shell, edit, browser, and task agents can. Restrict a run with `--tools`, `--no-tools`, `--no-mcp`, or `--no-extensions` when the task needs a smaller boundary.\n",
|
|
@@ -37,7 +37,8 @@ export const F5_LOGO_ROWS: readonly string[] = [
|
|
|
37
37
|
|
|
38
38
|
const FULL_LOGO_MIN_WIDTH = 50;
|
|
39
39
|
const FULL_LOGO_CANVAS_WIDTH = 46;
|
|
40
|
-
|
|
40
|
+
// The 46-column artwork fits inside the shared frame's one-column gutters at 50 columns.
|
|
41
|
+
const MAX_FRAME_WIDTH = 50;
|
|
41
42
|
const blankRow = { content: "", selected: false } as const;
|
|
42
43
|
|
|
43
44
|
export class WelcomeComponent implements Component {
|
|
@@ -52,7 +53,9 @@ export class WelcomeComponent implements Component {
|
|
|
52
53
|
const logo = fullLogo
|
|
53
54
|
? F5_LOGO_ROWS.map(line => this.#centerInCanvas(this.#f5ColorLine(line), FULL_LOGO_CANVAS_WIDTH, contentWidth))
|
|
54
55
|
: [this.#centerInCanvas(theme.bold(theme.fg("accent", "F5")), 2, contentWidth)];
|
|
55
|
-
|
|
56
|
+
// The underscore crown already reads as the logo's top spacing. Keep a single
|
|
57
|
+
// blank row only below the mark so the framed splash does not look top-heavy.
|
|
58
|
+
const body = [...logo, blankRow];
|
|
56
59
|
return selectorFrame(width, body.length + 4, `${APP_NAME} v${this.version}`, "", [], body, [], []);
|
|
57
60
|
}
|
|
58
61
|
|
|
@@ -499,7 +499,6 @@ export class RemoteRouter {
|
|
|
499
499
|
command[0] === "/bin/sh" &&
|
|
500
500
|
command[1] === "-lc" &&
|
|
501
501
|
typeof command[2] === "string" &&
|
|
502
|
-
Buffer.byteLength(command[2]) === 737 &&
|
|
503
502
|
params.timeoutMs === 20_000 &&
|
|
504
503
|
params.outputBytesCap === 4096 &&
|
|
505
504
|
params.tty === false &&
|
|
@@ -653,7 +652,29 @@ export class RemoteRouter {
|
|
|
653
652
|
case "thread/start": {
|
|
654
653
|
if (!this.lifecycle) throw new ProtocolError(-32000, "Managed remote sessions are unavailable");
|
|
655
654
|
const cwd = await this.#startCwd(params);
|
|
656
|
-
const
|
|
655
|
+
const requestedModel = typeof params.model === "string" ? params.model : undefined;
|
|
656
|
+
const inferredProvider =
|
|
657
|
+
typeof params.modelProvider === "string"
|
|
658
|
+
? undefined
|
|
659
|
+
: (this.#visibleSessions()
|
|
660
|
+
.flatMap(session => session.models ?? [])
|
|
661
|
+
.find(model => model.id === requestedModel)?.provider ??
|
|
662
|
+
this.lifecycle
|
|
663
|
+
?.list()
|
|
664
|
+
.find(
|
|
665
|
+
thread => thread.model === requestedModel && typeof thread.modelProvider === "string",
|
|
666
|
+
)?.modelProvider);
|
|
667
|
+
const startParams: Record<string, unknown> = {
|
|
668
|
+
...params,
|
|
669
|
+
cwd,
|
|
670
|
+
...(inferredProvider ? { modelProvider: inferredProvider } : {}),
|
|
671
|
+
};
|
|
672
|
+
// Phone clients retain a selected model across host restarts, but the wire
|
|
673
|
+
// protocol carries no provider. A model outside the current live catalog
|
|
674
|
+
// cannot be resolved safely, so use the host's configured default.
|
|
675
|
+
if (requestedModel && typeof params.modelProvider !== "string" && !inferredProvider)
|
|
676
|
+
delete startParams.model;
|
|
677
|
+
const endpoint = await this.lifecycle.start(startParams);
|
|
657
678
|
const lifecycle = await this.#lifecycleResponse(client, id!, endpoint, false);
|
|
658
679
|
result = lifecycle.result;
|
|
659
680
|
this.#deferThreadStarted(lifecycle.thread);
|
|
@@ -718,17 +739,17 @@ export class RemoteRouter {
|
|
|
718
739
|
break;
|
|
719
740
|
}
|
|
720
741
|
case "config/read": {
|
|
721
|
-
const
|
|
742
|
+
const thread =
|
|
722
743
|
params.cwd == null
|
|
723
744
|
? // Global bootstrap config inherits model defaults from the exposed primary.
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
);
|
|
745
|
+
(this.#currentSession()?.thread ?? this.lifecycle?.list()[0])
|
|
746
|
+
: (() => {
|
|
747
|
+
const matching = this.#visibleSessions().filter(
|
|
748
|
+
session => session.thread.cwd === params.cwd,
|
|
749
|
+
);
|
|
750
|
+
return matching.length === 1 ? matching[0].thread : undefined;
|
|
751
|
+
})();
|
|
752
|
+
result = configResponse(thread, params.includeLayers === true);
|
|
732
753
|
break;
|
|
733
754
|
}
|
|
734
755
|
case "thread/realtime/listVoices":
|
|
@@ -736,10 +757,16 @@ export class RemoteRouter {
|
|
|
736
757
|
break;
|
|
737
758
|
case "model/list":
|
|
738
759
|
if (params.cursor != null) throw new ProtocolError(-32602, "Unsupported model cursor");
|
|
739
|
-
|
|
740
|
-
this.#visibleSessions()
|
|
741
|
-
|
|
742
|
-
|
|
760
|
+
{
|
|
761
|
+
const sessions = this.#visibleSessions();
|
|
762
|
+
const catalog = sessions.flatMap(session => session.models ?? []);
|
|
763
|
+
// Task settings opens before a phone-created worker attaches. Preserve a
|
|
764
|
+
// managed thread's configured model in that zero-worker window so the
|
|
765
|
+
// client receives a non-empty, selectable catalog.
|
|
766
|
+
const threads =
|
|
767
|
+
sessions.length > 0 ? sessions.map(session => session.thread) : (this.lifecycle?.list() ?? []);
|
|
768
|
+
result = modelResponse(threads, catalog);
|
|
769
|
+
}
|
|
743
770
|
break;
|
|
744
771
|
case "permissionProfile/list": {
|
|
745
772
|
if (
|
|
@@ -1279,6 +1279,9 @@ export class RemoteSession {
|
|
|
1279
1279
|
"effort",
|
|
1280
1280
|
"summary",
|
|
1281
1281
|
"collaborationMode",
|
|
1282
|
+
"approvalPolicy",
|
|
1283
|
+
"approvalsReviewer",
|
|
1284
|
+
"sandboxPolicy",
|
|
1282
1285
|
].includes(key) &&
|
|
1283
1286
|
params[key] != null
|
|
1284
1287
|
)
|
|
@@ -1311,6 +1314,7 @@ export class RemoteSession {
|
|
|
1311
1314
|
throw new ProtocolError(-32602, "Unsupported reasoning summary");
|
|
1312
1315
|
if (method === "turn/steer" && params.collaborationMode != null)
|
|
1313
1316
|
throw new ProtocolError(-32602, "Collaboration mode can only be selected when starting a turn");
|
|
1317
|
+
const permissionProfile = this.#parsePermissionProfile(params);
|
|
1314
1318
|
const collaborationMode = this.#parseCollaborationMode(params.collaborationMode);
|
|
1315
1319
|
this.#validateEffort(params.effort);
|
|
1316
1320
|
const text = params.input.map(item => item.text).join("\n");
|
|
@@ -1341,6 +1345,8 @@ export class RemoteSession {
|
|
|
1341
1345
|
throw new ProtocolError(-32000, "Session already running; use turn/steer");
|
|
1342
1346
|
if (collaborationMode) await this.#applyCollaborationMode(epoch, collaborationMode);
|
|
1343
1347
|
else this.#applyEffort(params.effort);
|
|
1348
|
+
if (params.approvalPolicy != null || params.approvalsReviewer != null || params.sandboxPolicy != null)
|
|
1349
|
+
applyRemotePermissionProfile(this.target.settings, permissionProfile);
|
|
1344
1350
|
const hadUserMessages = this.target.messages.some(message => message.role === "user");
|
|
1345
1351
|
if (!hadUserMessages && !this.target.sessionManager.getSessionName?.())
|
|
1346
1352
|
void coordinateSessionTitle(this.target, text);
|
|
@@ -45,6 +45,7 @@ import type {
|
|
|
45
45
|
import {
|
|
46
46
|
calculateRateLimitBackoffMs,
|
|
47
47
|
getSupportedEfforts,
|
|
48
|
+
isAnthropicPermanentErrorMessage,
|
|
48
49
|
isContextOverflow,
|
|
49
50
|
isUsageLimitError,
|
|
50
51
|
modelsAreEqual,
|
|
@@ -6660,6 +6661,7 @@ export class AgentSession {
|
|
|
6660
6661
|
if (isContextOverflow(message, contextWindow)) return false;
|
|
6661
6662
|
|
|
6662
6663
|
const err = message.errorMessage;
|
|
6664
|
+
if (isAnthropicPermanentErrorMessage(err)) return false;
|
|
6663
6665
|
return this.#isTransientErrorMessage(err) || isUsageLimitError(err);
|
|
6664
6666
|
}
|
|
6665
6667
|
|