From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=systemreboot.net; s=default; t=1779142156; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=n6XRgIWimPbX6g8rZk9CpxAr23QaGPp0Oc8KxkzekHU=; b=GI1b7RyClddbUqTGIn3KPKtENmu6+d/dfgprbhUYZageY17c6X0QneAYLRVl1gj56Y7L9s rqBnHjgsm5Ixm3dVOglo6LAAsWacwflcVPHf45dh2+9+KAXe+ctz2eM4v05DnGYXfD9pht Sc5j50iHNPR0GFRx66bI7AvKCBjY1z7p9YDoSFHHGOFZ8m6VXhTb9xtPOkuB3VXNJJgDTw 3Pk54qT92Q5VQ0m9uNIwfUc6fEl9DF1TKDtxryu8sTq8nHxCpCsZypAruWH/EpCn6pE3jl 8tr8whwGY/52hmwWGkiX+E95khmu5ucdBguYh28t/Zhpr9DUytYAc3UFaV9mCQ== Received: from localhost ( [192.168.2.1]) by mugam.systemreboot.net (OpenSMTPD) with ESMTPSA id 961e9185 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Mon, 18 May 2026 22:09:16 +0000 (UTC) From: Arun Isaac To: kaagum@systemreboot.net Subject: Prompt caching, token/cost reporting, state monad refactor Date: Mon, 18 May 2026 23:09:14 +0100 Message-ID: <87fr3ocqut.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain List-Id: Hello, kaagum is a tiny security-focused AI agent written in Guile. Here are some quick development highlights from last month. Two big quality-of-life improvements have landed: kaagum now enables automatic prompt caching with a TTL of 1 hour. On repeated prompts that share a common prefix, which is typical of a kaagum session, this can cut costs by up to 90% on the Anthropic API! kaagum now reports the token usage, context length and session cost to your ACP client. Keep an eye on your costs. Internally, kaagum uses TEA (The Elm Architecture) to separate side-effects from a purely functional core state update function. This core has now been rewritten using the state monad, simplifying it further. https://klaus.systemreboot.net/kaagum/commit/03a0edf0e2f0df29afdded81824c7aa75745fa24/ Cheers! Arun