Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

Merge remote-tracking branch 'origin/main' into thinhlpg/9078-9079-vibe-setting-agents-md

thinhlpgd62cb854b8a6
diff --cc docs/src/pages/docs/agent/skills.mdx
index 5fcae8040,987a8f7e7..5f7d4e32e
--- a/docs/src/pages/docs/agent/skills.mdx
+++ b/docs/src/pages/docs/agent/skills.mdx
@@@ -87,19 -110,24 +110,24 @@@ from a git repo or picked from a market
```toml
[skills]
enabled = [] # empty means all skills are enabled
- inject = "always" # always | relevance
```
- `enabled` is a whitelist. `inject` decides how they reach the model: `always` puts every skill's
- name and purpose in the system prompt, `relevance` selects per task.
+ `enabled` is a whitelist across every scope. It matches a plain name, a qualified
+ `<plugin>:<name>`, or a plugin name, which enables all of that plugin's skills. Every enabled skill's
+ name and purpose goes into the system prompt, and the body loads on demand.
+
+ <Callout type="info">
+ Older scaffolds had an `inject = "always" | "relevance"` key. It was never read and is now
+ ignored, with a one-time warning in the log. You can delete it.
+ </Callout>
<Callout type="info">
- Skills are shared with [Jan Desktop's Cowork surface](/docs/desktop/cowork), which ships in
- the `nightly` channel only - the same project files, through the same directory. A skill written
- in one shows up in the other.
+ [Jan Desktop's Cowork surface](/docs/desktop/cowork) (`nightly` channel only) keeps its own skill
+ store under `<data folder>/agent-workspace/skills`. It layers the attached folder's project skills on
+ top of that store. It doesn't read `~/.jan/skills` yet.
</Callout>
-## Skills, JAN.md, and memory
+## Skills, AGENTS.md, and memory
Three places that shape behaviour, easily confused:
diff --cc docs/src/pages/docs/agent/slash-commands.mdx
index 8412f3864,0f241d05d..0837fa263
--- a/docs/src/pages/docs/agent/slash-commands.mdx
+++ b/docs/src/pages/docs/agent/slash-commands.mdx
@@@ -69,52 -66,12 +69,53 @@@ See [Run modes](/docs/agent/run-modes)
| `/effort [low\|medium\|high]` | Set reasoning effort. Bare: show current; `low` is faster, `high` thinks deeper |
| `/mcp` | List, toggle, add, edit, and remove MCP servers; Enter opens a server's detail screen, where you can list its tools and sign in to it |
| `/plugin [list\|install <spec>\|remove <name>\|search [query]]` | Manage plugins: install from a git URL or the marketplace, list/remove installed, search the marketplace |
+ | `/skills` | List every skill Jan can see from this project, with its scope (`project`, `plugin`, `user`, `built-in`), invocation flags, and whether it is disabled. A skill hidden by a same-named higher-precedence one is marked `shadowed by <scope>` |
-| `/reload [config\|plugin\|skills\|system-prompt]` | Re-read on-disk state into the running session without a restart (bare: all). `config` re-applies the project's `agent.toml` limits - `context_window`, `compaction_ratio`, `compaction_reserve_tokens`, `max_tokens`, `send_reasoning`, `[budget].max_tokens` - to the next run and lists what changed; the model, `[tools]`, `[provider]` and `[budget].max_usd` still need a restart. `plugin`/`skills` re-scan and rebuild the catalog, reporting added/removed/changed entries. `system-prompt` re-reads `JAN.md`, which applies on the next run |
+| `/reload [config\|plugin\|skills\|system-prompt]` | Re-read on-disk state into the running session without a restart (bare: all). `config` re-applies the project's `agent.toml` limits - `context_window`, `compaction_ratio`, `compaction_reserve_tokens`, `max_tokens`, `send_reasoning`, `[budget].max_tokens` - to the next run and lists what changed; the model, `[tools]`, `[provider]` and `[budget].max_usd` still need a restart. `plugin`/`skills` re-scan and rebuild the catalog, reporting added/removed/changed entries. `system-prompt` re-reads the project instructions (`AGENTS.md`, or a legacy `JAN.md` where a directory has one), which apply on the next run |
| `/login` | Sign in to Tokamak and save the API key |
-| `/config` | View provider config (`~/.jan/config.toml`) |
+| `/config [what you want]` | View provider config (`~/.jan/config.toml`). With words, it is `/vibe-setting` |
| `/terminal-setup` | Configure this terminal so <kbd>Shift</kbd>+<kbd>Enter</kbd> inserts a newline and, on macOS, <kbd>Option</kbd>+<kbd>Delete</kbd> deletes a word. Writes the terminal's own config where it can (VS Code, kitty, Ghostty, tmux) and prints the manual step where it cannot. Idempotent |
-| `/settings [max_parallel_subagents N]` | Edit settings in an interactive menu - the project's `agent.toml` (`[agent]` knobs `context_window`, `compaction_ratio`, `compaction_reserve_tokens`, `max_tokens`, `max_parallel_subagents`, `[budget]` limits, the `[tools]` / `[skills]` toggles) and user-wide `~/.jan/config.toml` keys such as `wave` and `ask_timeout_secs` in the one list (Enter edits a row, `x` resets to default, Esc cancels, clearing the field unsets - except `wave`, where an empty field is the "no sweep" value and `x` restores the default πŸ‘‹). The leading `providers` row opens a manager for OpenAI-compatible providers in `~/.jan/config.toml`: `a` adds, Enter edits, `d` twice deletes. `max_parallel_subagents N` works as a one-shot shortcut. Writes apply on the next session (or after `/reload config` for the `[agent]`/`[budget]` limits), except cosmetic ones like `wave` that apply immediately |
+| `/settings [what you want]` | With words (other than the `max_parallel_subagents N` shortcut), it is `/vibe-setting`. Bare, it opens the menu to edit settings in an interactive menu - the project's `agent.toml` (`[agent]` knobs `context_window`, `compaction_ratio`, `compaction_reserve_tokens`, `max_tokens`, `max_parallel_subagents`, `[budget]` limits, the `[tools]` / `[skills]` toggles) and user-wide `~/.jan/config.toml` keys such as `wave` and `ask_timeout_secs` in the one list (Enter edits a row, `x` resets to default, Esc cancels, clearing the field unsets - except `wave`, where an empty field is the "no sweep" value and `x` restores the default πŸ‘‹). The leading `providers` row opens a manager for OpenAI-compatible providers in `~/.jan/config.toml`: `a` adds, Enter edits, `d` twice deletes. `max_parallel_subagents N` works as a one-shot shortcut. Writes apply on the next session (or after `/reload config` for the `[agent]`/`[budget]` limits), except cosmetic ones like `wave` that apply immediately |
+| `/vibe-setting <what you want>` | Say what you want in plain words and the agent proposes the settings changes that get it. `/settings <words>` and `/config <words>` do the same. See [below](#vibe-setting) |
+
+### `/vibe-setting`
+
+```
+/vibe-setting I work on huge repos with Opus, stop compacting so often and show me its thinking
+```
+
+The session's model receives the `/settings` keys (name, file, type, default, current value, what
+it does) and your sentence, in one request of its own. The conversation is not included, and
+nothing is added to it. The model answers with a list of changes. Jan checks each one with the
+same rules `/settings` uses, then shows a diff:
+
+```
+agent.toml (this project)
+ context_window 128000 -> 1000000 Opus has a 1M window
+ compaction_ratio 0.8 -> 0.9 compact later
+ show_reasoning default (false) -> true
+Apply? [y/N]
+```
+
+Nothing is written until you press <kbd>y</kbd>. <kbd>Enter</kbd>, <kbd>n</kbd> or <kbd>Esc</kbd>
+cancels. Accepted changes go through the `/settings` writer, and the note that follows says when
+each one applies:
+
+| Keys | Applies |
+| --- | --- |
+| `wave` | Now |
+| `context_window`, `compaction_ratio`, `compaction_reserve_tokens`, `max_tokens`, `send_reasoning`, `budget.max_tokens` | After `/reload config`, from the next run |
+| Everything else (`max_parallel_subagents`, `tools.default`, `skills.inject`, `show_reasoning`, ...) | When Jan restarts |
+
+- It only changes `/settings` keys. The model, providers, API keys, MCP servers and skills are out
+ of scope; when a request needs one, the reply names the command to use (`/model`, `/login`, ...).
+- It never touches credentials. `claude_code_alias` is not offered.
+- A change that loosens tool permissions (`tools.default` toward `allow`) needs `yes` typed out, not
+ a single key.
+- A key it doesn't know, or a value outside its range, is listed as refused and never written.
+- When the request is ambiguous ("make it faster"), it asks a question instead of guessing. Nothing
+ is written.
+
+It runs only while the agent is idle.
See [Providers](/docs/agent/providers), [MCP](/docs/agent/mcp), [Plugins](/docs/agent/plugins), and
[Keybindings](/docs/agent/keybindings#shiftenter-and-the-option-key).