From 97b5a6c3247299e6863b17bf0b6e125692d33766 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Tue, 31 Mar 2026 04:18:29 +0100 Subject: 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 --- docs/docs/ai/settings.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'docs') 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` -- cgit v1.3.1