diff options
| author | Ellie Huxtable <ellie@atuin.sh> | 2026-03-31 04:18:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-31 04:18:29 +0100 |
| commit | 97b5a6c3247299e6863b17bf0b6e125692d33766 (patch) | |
| tree | 4f452be07c75202c6b0b81cb981a083895dc5c01 /docs | |
| parent | fix(ui): make preview line breaking algorithm aware of CJK double-width chara... (diff) | |
| download | atuin-97b5a6c3247299e6863b17bf0b6e125692d33766.zip | |
feat: opt-in to sharing last command with ai (#3367)
This enables it to perform more effectively and give better suggestions.
Same as send_cwd, disabled by default, opt in.
## Checks
- [ ] I am happy for maintainers to push small adjustments to this PR,
to speed up the review cycle
- [ ] I have checked that there are no existing pull requests for the
same thing
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/docs/ai/settings.md | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/docs/docs/ai/settings.md b/docs/docs/ai/settings.md index be27261f..ad7c7af7 100644 --- a/docs/docs/ai/settings.md +++ b/docs/docs/ai/settings.md @@ -8,6 +8,10 @@ Default: `false` Whether or not the AI feature are enabled. When set to `false`, the question mark keybinding will output a message with instructions to run `atuin setup` to enable the feature. +## Opening context + +Settings that control what context is sent in the opening AI request. These are specified under `[ai.opening]`. + ### send_cwd Default: `false` @@ -17,10 +21,23 @@ Whether or not to include your current working directory in the context sent to **Example config** ```toml -[ai] +[ai.opening] send_cwd = true ``` +### send_last_command + +Default: `false` + +Whether or not to send your previous command as context in the initial request, allowing the AI to provide more relevant suggestions. + +**Example config** + +```toml +[ai.opening] +send_last_command = true +``` + ### endpoint Default: `null` |
