From 7b33592bb23c84bcc25f509342497199b1ba9082 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sat, 24 Jan 2026 10:50:33 +0100 Subject: [PATCH] feat: add agent-shell --- init.el | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/init.el b/init.el index 4e9fae10cf3e5a286234d561ce987b91b07c5795..384748deb8879a9b215f67a55d1dba0af89b146b 100644 --- a/init.el +++ b/init.el @@ -1271,6 +1271,45 @@ '("^\\*eldoc for" display-buffer-at-bottom (window-height . 4)))) +(my-use-package agent-shell + :ensure t + :general + (normal agent-shell-viewport-view-mode-map + "TAB" 'agent-shell-viewport-next-page + "" 'agent-shell-viewport-previous-page + "r" 'agent-shell-viewport-reply + "n" 'agent-shell-viewport-next-item + "p" 'agent-shell-viewport-previous-item + "N" 'evil-search-previous + "C-n" 'evil-search-next) + (my-leader + "A A" '(agent-shell :wk "Agent shell") + "A d" '(agent-shell-send-dwim :wk "Send DWIM") + "A r" '(agent-shell-send-region :wk "Send region") + "A s" '(agent-shell-send-screenshot :wk "Send screenshot") + "A f" '(agent-shell-send-current-file :wk "Send current file") + "A F" '(agent-shell-send-other-file :wk "Send other file")) + :custom + ;; Usage + (agent-shell-prefer-viewport-interaction t) + ;; Command setup + (agent-shell-google-gmini-command + '("~/.local/bin/gemini" "--experimental-acp")) + (agent-shell-anthropic-claude-command + '("~/.local/bin/claude-code-acp")) + ;; Auth + (agent-shell-anthropic-authentication + (agent-shell-anthropic-make-authentication :login t)) + (agent-shell-google-authentication + (agent-shell-google-make-authentication :login t)) + (agent-shell-openai-authentication + (agent-shell-openai-make-authentication :login t))) + +(my-use-package agent-review + :ensure (agent-review :type git + :host github + :repo "nineluj/agent-review"))) + (my-use-package lsp-mode :ensure t :commands (lsp lsp-mode)