From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sender6-of-o50.zoho.com (sender6-of-o50.zoho.com [165.173.180.50]) by hrrol.systemreboot.net (OpenSMTPD) with ESMTPS id c54307dd (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Mon, 2 Nov 2026 19:54:53 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1793649288; cv=none; d=zohomail.com; s=zohoarc; b=npyF3qU4ZI/qOmAtzJjoLARuLjzyfNGvIquuMPDY9BHgbtieWXDnvqVt5n2csNTiGQOQN2d5QvJKHq2IL6ucDF8YcUm67wf07Q02Q73CoYFNDYMINWqTTYI0UX2/UIwQDItYtAhYp1GpHg2E8aLaN9x67Lt2N7DKHZLA7jYXsFM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793649288; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=gMCSkaJUDlN1xOmCDQIsJVBJPQ3cS/gB6ibS0JYdo6Q=; b=m5uc3QAwxMbOS4MPSOXZl+iWLN5zkDDkJ1CXiJCSxu+MP2IgZn8QaoZOdymvI6ksXqJ0DUKhp//iKDOR5dwu53xSRE85qDdYQp9c/+9Ya38aiRzUmiJT5nlZGR+brw6Iz4GZhXWzQNElqbqZknJVc6Sol/VAvJUGiam7CPF9j3k= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: a=rsa-sha256; b=EkLgnZPjIMDfCA5LUtueR9kKVtMWd1arucAEAn6r42bI7u5p+LJ2TBOsHKKRcpLY9XOyu5FU8196VApc7d9xxZXK/Ytj7A8vDFjSObD5P7ZEf3zQlMxpqum2WTvEvDb/Q7YRtFql/AuYtA7ipnNicTIhOo9aRRmZ5bflvUFZFMg=; c=relaxed/relaxed; s=zoho; d=elephly.net; v=1; bh=gMCSkaJUDlN1xOmCDQIsJVBJPQ3cS/gB6ibS0JYdo6Q=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc; Received: by smtp.zohomail.com with SMTPS id 1793649285989174.5122574033387; Mon, 2 Nov 2026 11:54:45 -0800 (PST) From: Ricardo Wurmus To: kaagum@systemreboot.net Subject: connecting to bifrost over SOCKS5 proxy fails User-Agent: mu4e 1.14.4; emacs 31.1 Date: Mon, 02 Nov 2026 20:54:41 +0100 Message-ID: <8733tjhuv2.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External List-Id: Hi, thank you for kaagum. I'm trying to use it with a bifrost=20 installation on a network that I can only access with an SSH=20 tunnel. I've configured agent-shell like so: --8<---------------cut here---------------start------------->8--- (require 'agent-shell-kaagum) (setq agent-shell-kaagum-command "proxychains4" agent-shell-kaagum-parameters '("-f" "/path/to/proxychains.conf" "/path/to/bin/kaagum" "--api-base-uri=3Dhttps://llm.example.net" "--api-key-command=3Dgpg -dq /path/to/password.gpg" "--model=3Dvllm/Qwen/Qwen3.8-27B")) (add-to-list 'agent-shell-agent-configs (agent-shell-kaagum-make-agent-config)) --8<---------------cut here---------------end--------------->8--- This seems to work fine up to the first request from the agent=20 shell: --8<---------------cut here---------------start------------->8--- [proxychains] config file found: /path/to/proxychains.conf [proxychains] preloading=20 /gnu/store/djhjgy1j0iqd317pmgazv9wng249q0df-proxychains-ng-4.17/lib/libprox= ychains4.so [proxychains] DLL init: proxychains-ng 4.17 [proxychains] DLL init: proxychains-ng 4.17 [proxychains] DLL init: proxychains-ng 4.17 [proxychains] DLL init: proxychains-ng 4.17 [proxychains] DLL init: proxychains-ng 4.17 [proxychains] Strict chain ... 127.0.0.1:8022 ...=20 llm.example.net:443 ... OK Backtrace: In ice-9/boot-9.scm: 1791:12 9 (with-exception-handler _ _ #:unwind? _=20 #:unwind-for-type _) In unknown file: 8 (apply-smob/0 #) In ice-9/boot-9.scm: 740:2 7 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 6 (_ #(#(#))) In kaagum/tea.scm: 970:19 5 (tea-loop #< client-request-id: #f=20 agent-request-id: 0 next-session-id: 0 requests-alist: ()=20 sessions: ()> "https://llm.example.net" "[MY API KEY]"=20 (("vllm/Qwen/Qwen3.8-27B" . #< name: #f description: #f=20 context-length: #f>) ("vllm/Aleph-Alpha/Kolibri-1" . #<=20 name: #f description: #f context-length: #f>)=20 ("vllm/google/medgemma-27b-it" . #< name: #f=20 description: #f context-length: #f>)) (("read" . #<=20 descript=E2=80=A6>) =E2=80=A6) =E2=80=A6) In kaagum/monads.scm: 139:2 4 (run-with-state _ _) In kaagum/tea.scm: 971:20 3 (_ _) 971:20 2 (_ _) 205:21 1 (_ _) In rnrs/records/procedural.scm: 143:10 0 (_ _) rnrs/records/procedural.scm:143:10: ERROR: 1. &assertion-failure Process acp-client(proxychains4)-36 stderr finished --8<---------------cut here---------------end--------------->8--- I have installed kaagum 0.1.0 with Guix. I have no experience with agent-shell, nor do I have access to any=20 other LLM server. Am I doing something obviously wrong? I've also changed the URL to https://llm.example.net/v1 and it=20 fails at a different point: --8<---------------cut here---------------start------------->8--- [proxychains] config file found: /path/to/proxychains.conf [proxychains] preloading=20 /gnu/store/djhjgy1j0iqd317pmgazv9wng249q0df-proxychains-ng-4.17/lib/libprox= ychains4.so [proxychains] DLL init: proxychains-ng 4.17 [proxychains] DLL init: proxychains-ng 4.17 [proxychains] DLL init: proxychains-ng 4.17 [proxychains] DLL init: proxychains-ng 4.17 [proxychains] DLL init: proxychains-ng 4.17 [proxychains] Strict chain ... 127.0.0.1:8022 ...=20 llm.example.net:443 ... OK Backtrace: In ice-9/boot-9.scm: 1791:12 7 (with-exception-handler _ _ #:unwind? _=20 #:unwind-for-type _) In unknown file: 6 (apply-smob/0 #) In ice-9/boot-9.scm: 740:2 5 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 4 (_ #(#(#))) In kaagum/tea.scm: 1015:17 3 (run-tea-loop "https://llm.example.net/v1" "[MY API=20 KEY]" "vllm/Qwen/Qwen3.8-27B" (("read" . #< description:=20 "Read whole text file, or optionally a subset of its=20 lines.\n\nLine numbers start from 1. Output is the raw file=20 contents without line numbers." parameters: (("path"=20 . #< type: "string" description: "File path to=20 read" required?: #t>) ("start-line" . #< type:=20 "integer" description: "Read file start=E2=80=A6>) =E2=80=A6)) In kaagum/openai.scm: 67:29 2 (openai-models _ _) In json/parser.scm: 404:20 1 (json->scm _ #:null _ #:ordered _ #:concatenated _) 40:2 0 (json-read-number #) json/parser.scm:40:2: In procedure json-read-number: Throw to key json-invalid' with args (#)'. Process acp-client(proxychains4)-39 stderr finished --8<---------------cut here---------------end--------------->8--- In the Bifrost admin interface I see that my "hello" message has=20 been processed, but the response never made it to Emacs. --=20 Ricardo