Recollections: raise content limit from 4000 to 8000 chars #8

Merged
bjoern merged 1 commit from feat/larger-recollections into main 2026-07-06 12:27:06 +02:00
Member

Assistants regularly hit the recollection content cap when writing longer entries. This raises _maxContentLength in RecollectionTool from 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 analyze in angela_core: no new issues (the 25 info-level lints are pre-existing).

🤖 Generated with Claude Code

Assistants regularly hit the recollection content cap when writing longer entries. This raises `_maxContentLength` in `RecollectionTool` from 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 analyze` in angela_core: no new issues (the 25 info-level lints are pre-existing). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Assistants regularly ran into the 4000-char cap when writing longer
recollections. The tool schema description and error messages
interpolate the constant, so they stay accurate. Worst case prompt
impact: 10 pinned recollections at the new cap add roughly 20k tokens,
well within modern context windows.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
bjoern merged commit d4f00a2a39 into main 2026-07-06 12:27:06 +02:00
bjoern deleted branch feat/larger-recollections 2026-07-06 12:27:06 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
TeamAI/angela_assistant!8
No description provided.