diff options
| author | Arun Isaac | 2026-11-05 00:00:54 +0000 |
|---|---|---|
| committer | Arun Isaac | 2026-11-05 00:10:14 +0000 |
| commit | d1ef7871b9a2040c3194fa0ad821ec39e3a4f1a9 (patch) | |
| tree | 993fcb33a37116138186202eba85f4e7e36d4a88 | |
| parent | 61b710a5507a6413a24c8618bd059f3f5cd0bbfd (diff) | |
| download | kaagum-d1ef7871b9a2040c3194fa0ad821ec39e3a4f1a9.tar.gz kaagum-d1ef7871b9a2040c3194fa0ad821ec39e3a4f1a9.tar.lz kaagum-d1ef7871b9a2040c3194fa0ad821ec39e3a4f1a9.zip | |
Allow setting environment variables with agent shell.
| -rw-r--r-- | emacs/agent-shell-kaagum.el | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/emacs/agent-shell-kaagum.el b/emacs/agent-shell-kaagum.el index 8e89cf5..748dd11 100644 --- a/emacs/agent-shell-kaagum.el +++ b/emacs/agent-shell-kaagum.el @@ -43,6 +43,22 @@ :type '(repeat string) :group 'agent-shell) +(defcustom agent-shell-kaagum-environment + nil + "Environment variables for the kaagum agent. + +This should be a list of environment variables to be used when starting +the kaagum agent. + +Example usage to set custom environment variables: + + (setq agent-shell-kaagum-environment + (agent-shell-make-environment-variables + \"MY_VAR\" \"some-value\" + \"MY_OTHER_VAR\" \"another-value\"))" + :type '(repeat string) + :group 'agent-shell) + (defun agent-shell-kaagum-make-agent-config () "Create a kaagum ACP agent configuration. @@ -65,6 +81,7 @@ Returns an agent configuration alist using `agent-shell-make-agent-config'." "Create a kaagum ACP client using BUFFER as context." (agent-shell--make-acp-client :command agent-shell-kaagum-command :command-params agent-shell-kaagum-parameters + :environment-variables agent-shell-kaagum-environment :context-buffer buffer)) (defun agent-shell-kaagum--welcome-message (config) |
