Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
docs(agent): fix outdated install links pointing at removed branch (#8605)
Thinh Le13bf31267b1f
diff --git a/docs/src/pages/docs/agent/files.mdx b/docs/src/pages/docs/agent/files.mdxindex 9e33576b7..08ac3d510 100644--- a/docs/src/pages/docs/agent/files.mdx+++ b/docs/src/pages/docs/agent/files.mdx@@ -23,6 +23,25 @@ folder asks first.None of these prompt. Truncation is deliberate: a tool that dumps a 40MB file would spend thecontext window in one call, so large results come back bounded and the agent pages through them.+## Referencing paths in a message++Type `@path` in a message and the console resolves it before the model sees the text:++- `@src/parser.rs` reads the file and injects its content (UTF-8, capped at 1MB).+- `@src/` injects a listing of the directory's immediate children (capped at 20KB).+- `@image.png` is noted inline as `(image: image/png)` rather than dumped - the model reads it if it+ supports vision.+- A missing or unreadable path becomes an inline error notice, so the agent sees that the lookup+ failed instead of silently losing the reference.++The `@token` is removed after resolution, so the model sees the injected content directly, not the+raw `@` text. Typing `@` opens a path-hint popup filtered as you type; <kbd>Tab</kbd> accepts the+highlighted suggestion.++References are path-shaped only. `@http://` and `@https://` URLs are left alone, and `user@host`,+emails, and bare IPv4 addresses like `@1.2.3.4` pass through untouched - `ssh user@host` stays+intact.+## Changing files| Tool | What it does |diff --git a/docs/src/pages/docs/agent/index.mdx b/docs/src/pages/docs/agent/index.mdxindex 621e97337..3b86c980f 100644--- a/docs/src/pages/docs/agent/index.mdx+++ b/docs/src/pages/docs/agent/index.mdx@@ -60,19 +60,19 @@ are all shared, so anything you set up in one is already there in the other.## Install<Callout type="warning">-Jan Agent is a preview. The installer lives on the `goal/general-agent` branch until it lands on-`dev`, and pulls from the `agent-nightly` channel - expect nightly-quality builds.+Jan Agent is a preview. The installer on `dev` pulls from the `agent-nightly` channel - expect+nightly-quality builds.</Callout><Tabs items={['macOS / Linux', 'Windows']}><Tabs.Tab>```bash-curl -fsSL https://raw.githubusercontent.com/janhq/jan/goal/general-agent/scripts/install-jan-agent.sh | bash+curl -fsSL https://raw.githubusercontent.com/janhq/jan/dev/scripts/install-jan-agent.sh | bash```</Tabs.Tab><Tabs.Tab>```powershell-irm https://raw.githubusercontent.com/janhq/jan/goal/general-agent/scripts/install-jan-agent.ps1 | iex+irm https://raw.githubusercontent.com/janhq/jan/dev/scripts/install-jan-agent.ps1 | iex```</Tabs.Tab></Tabs>diff --git a/docs/src/pages/docs/agent/keybindings.mdx b/docs/src/pages/docs/agent/keybindings.mdxindex a1539a24a..f91b5934f 100644--- a/docs/src/pages/docs/agent/keybindings.mdx+++ b/docs/src/pages/docs/agent/keybindings.mdx@@ -36,12 +36,12 @@ Cancelling stops the turn, not the session. See [rewinding](/docs/agent/sessions| --- | --- || <kbd>↑</kbd> / <kbd>↓</kbd> | Scroll the transcript || <kbd>Ctrl</kbd>+<kbd>O</kbd> | Expand or collapse all tool calls |-| <kbd>Ctrl</kbd>+<kbd>T</kbd> | Toggle mouse capture off to select and copy text |+| <kbd>Ctrl</kbd>+<kbd>T</kbd> | Toggle mouse capture: on makes tool rows clickable, off lets you drag to select and copy text |<Callout type="tip">-Terminal text selection doesn't work while the console captures the mouse - that capture is what-makes tool rows clickable. Press <kbd>Ctrl</kbd>+<kbd>T</kbd> to hand the mouse back to your-terminal, select, then press it again.+Mouse capture defaults off, so drag-to-select works out of the box. Turn it on with+<kbd>Ctrl</kbd>+<kbd>T</kbd> to make tool rows clickable. While capture is off, the header shows+"mouse capture off: drag to select/copy text (Ctrl-T to re-enable)".</Callout>## Approval promptsdiff --git a/docs/src/pages/docs/agent/quickstart.mdx b/docs/src/pages/docs/agent/quickstart.mdxindex 95133b3bd..1186ed989 100644--- a/docs/src/pages/docs/agent/quickstart.mdx+++ b/docs/src/pages/docs/agent/quickstart.mdx@@ -29,14 +29,14 @@ for one model provider.### Install<Callout type="warning">-Jan Agent is a preview. The installer lives on the `goal/general-agent` branch until it lands on-`dev`, and pulls from the `agent-nightly` channel - expect nightly-quality builds.+Jan Agent is a preview. The installer on `dev` pulls from the `agent-nightly` channel - expect+nightly-quality builds.</Callout><Tabs items={['macOS / Linux', 'Windows']}><Tabs.Tab>```bash-curl -fsSL https://raw.githubusercontent.com/janhq/jan/goal/general-agent/scripts/install-jan-agent.sh | bash+curl -fsSL https://raw.githubusercontent.com/janhq/jan/dev/scripts/install-jan-agent.sh | bash```Installs to `~/.local/bin` by default. Override it with `JAN_INSTALL_DIR=/usr/local/bin`, and make@@ -44,7 +44,7 @@ sure the directory is on your `PATH`.</Tabs.Tab><Tabs.Tab>```powershell-irm https://raw.githubusercontent.com/janhq/jan/goal/general-agent/scripts/install-jan-agent.ps1 | iex+irm https://raw.githubusercontent.com/janhq/jan/dev/scripts/install-jan-agent.ps1 | iex```</Tabs.Tab></Tabs>