Commit Graph

12 Commits

Author SHA1 Message Date
Claire
ecb351b901 feat(memoryFlush): add hard threshold for auto-execute backup command
Adds two new config options to memoryFlush:
- hardThresholdTokens: token count that triggers auto-execution
- hardThresholdCommand: shell command to run (e.g., kernle checkpoint save)

Flow:
1. Soft threshold (existing): prompts agent to save with context
2. Hard threshold (new): auto-executes command without agent involvement

This provides a safety net - agents get a chance to save with context at
soft threshold, but if they miss it, the hard threshold ensures state is
preserved before compaction.

Example config:
```json
{
  "memoryFlush": {
    "softThresholdTokens": 100000,
    "prompt": "Save your state to Kernle...",
    "hardThresholdTokens": 120000,
    "hardThresholdCommand": "kernle -a agent checkpoint save 'auto-backup'"
  }
}
```
2026-01-27 16:50:03 -08:00
jigar
dde9605874 Agents: summarize dropped messages during compaction safeguard pruning (#2418) 2026-01-26 20:35:08 -06:00
Peter Steinberger
a2981c5a2c feat: add elevated ask/full modes 2026-01-22 05:41:11 +00:00
Peter Steinberger
e0896de2bf feat: surface repo root in runtime prompt 2026-01-22 05:20:42 +00:00
Peter Steinberger
9f59ff325b feat: add cache-ttl pruning mode 2026-01-21 19:46:24 +00:00
Peter Steinberger
2dc9c95530 style: oxfmt core files 2026-01-19 05:59:29 +00:00
Peter Steinberger
d1e9490f95 fix: enforce strict config validation 2026-01-19 03:39:25 +00:00
Peter Steinberger
744d1329cb feat: make inbound envelopes configurable
Co-authored-by: Shiva Prasad <shiv19@users.noreply.github.com>
2026-01-18 18:50:37 +00:00
Peter Steinberger
99dd428862 feat: extend verbose tool feedback 2026-01-17 05:33:39 +00:00
Peter Steinberger
8b89980a89 feat(date-time): standardize time context and tool timestamps 2026-01-15 22:27:06 +00:00
Peter Steinberger
c379191f80 chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
2026-01-14 15:02:19 +00:00
Peter Steinberger
bcbfb357be refactor(src): split oversized modules 2026-01-14 01:17:56 +00:00