about summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorArun Isaac2026-11-04 22:56:54 +0000
committerArun Isaac2026-11-05 00:10:14 +0000
commitc688ce130414b10af92c1cfd7372216896c3c45a (patch)
tree32cf16abf3a968f0cc1b3ba3c243adc9ac1523ff /bin
parentd1ef7871b9a2040c3194fa0ad821ec39e3a4f1a9 (diff)
downloadkaagum-c688ce130414b10af92c1cfd7372216896c3c45a.tar.gz
kaagum-c688ce130414b10af92c1cfd7372216896c3c45a.tar.lz
kaagum-c688ce130414b10af92c1cfd7372216896c3c45a.zip
Allow custom tools.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/kaagum7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/kaagum b/bin/kaagum
index 75e837f..2c8c9ee 100755
--- a/bin/kaagum
+++ b/bin/kaagum
@@ -50,6 +50,9 @@ exec guile --no-auto-compile -e main -s "$0" "$@"
         (option (list #\k "api-key-command") #t #f
                 (lambda (opt name arg result)
                   (acons 'api-key-command arg result)))
+        (option (list #\t "more-tools") #t #f
+                (lambda (opt name arg result)
+                  (acons 'more-tools arg result)))
         (option (list "kagi-api-key-command") #t #f
                 (lambda (opt name arg result)
                   (acons 'kagi-api-key-command arg result)))
@@ -75,6 +78,7 @@ Run kaagum AI agent.
   -k, --api-key-command=COMMAND  command to run to get API key
   -m, --model=MODEL              LLM model name to start new sessions with
                                  (default: \"anthropic/claude-opus-4.8\")
+  -t, --more-tools=FILE          scheme file providing more tools to the agent
 
   --kagi-api-key-command=COMMAND command to run to get Kagi API key
 
@@ -128,6 +132,9 @@ Run kaagum AI agent.
                                   %forge-tools
                                   (if kagi-api-key-command
                                       %kagi-tools
+                                      '())
+                                  (if (assq-ref args 'more-tools)
+                                      (load (assq-ref args 'more-tools))
                                       '())))))
          (parameterize ((%kagi-api-key (and kagi-api-key-command
                                             (get-api-key kagi-api-key-command))))