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=1795182317; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=g/WBQA8+Vz7CSodfCTqbHR9ZYR3zZlwhLSh5Zcs5Sps=; b=l2ePMbjlFqrhQC7fIIK4YTFb8Ij29xxWpYARSACLvwdIUdzcXmV7cOLOoVYo3cbErMDPOY 1kvWg5fXHVK7Adx+wJCDvzXqkPxO9vJcDUUP4Ni3X77p/hJ5TeIvuT6ZJQXzdzuI/q2SJL W2oHztohngVfsSmk6qVhE1LeBj89figPOemsZjHi4F3Nf8vlxztvSRtDz5rSJZLDwDu/qZ coDL2z523O/k9BDlRvvPqvTqMObHSbJqOqZOvWjp5N6/c1EiQWDhxIhXlPXl+RaYDYo0UA PtsuWXwVbAgsldXKeq+3KMHP3sysm6Niebb+b2sURZUvm8rviVBUqO4KnxLPKQ== Received: from localhost ( [192.168.1.1]) by hrrol.systemreboot.net (OpenSMTPD) with ESMTPSA id be5a7e00 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 20 Nov 2026 13:45:17 +0000 (UTC) From: Arun Isaac To: Ricardo Wurmus Cc: kaagum@systemreboot.net Subject: Re: [PATCH v2 0/5] Context compaction In-Reply-To: <87a4n3obz7.fsf@systemreboot.net> References: <87ik20nycd.fsf@systemreboot.net> <20261115044752.5595-1-arunisaac@systemreboot.net> <87wlq851zs.fsf@elephly.net> <87tslcoe5r.fsf@systemreboot.net> <87ld6o3vum.fsf@elephly.net> <87fqww3v17.fsf@elephly.net> <87a4n3obz7.fsf@systemreboot.net> Date: Fri, 20 Nov 2026 13:45:15 +0000 Message-ID: <877bi7obv8.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain List-Id: > This is what Pi does: https://docs.pi.dev/latest/compaction (look for > "reserveTokens"). That page explains that their compaction triggers > when > > contextTokens > contextWindow - reserveTokens Actually, we can't use this condition either since we don't know contextWindow. I am open to suggestions. Cheers!