Recollections: raise content limit from 4000 to 8000 chars #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/larger-recollections"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Assistants regularly hit the recollection content cap when writing longer entries. This raises
_maxContentLengthinRecollectionToolfrom 4000 to 8000 characters.Where the limit lives: the AI tool is the only place recollection size is enforced — the DB column is unconstrained TEXT and neither the REST handler nor the Flutter UI impose a length. The tool's parameter schema description and its error messages both interpolate the constant, so the model always sees the current limit; this is a one-line change.
Prompt budget impact: pinned recollections (max 10) are injected full-content into every system prompt; non-pinned ones appear as title-only lines. Worst case with all 10 pinned maxed out goes from ~10k to ~20k tokens — acceptable for the models in use, and the title (200 chars) and count limits (30 total / 10 pinned) are unchanged.
dart analyzein angela_core: no new issues (the 25 info-level lints are pre-existing).🤖 Generated with Claude Code