Skip to content

perf(engine): tier system prompt and tool payload per turn - #189

Merged
Patel230 merged 3 commits into
mainfrom
fix/ollama-capability-mismatch
Aug 11, 2026
Merged

perf(engine): tier system prompt and tool payload per turn#189
Patel230 merged 3 commits into
mainfrom
fix/ollama-capability-mismatch

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Per-turn adaptive payload for slow models (fixes multi-minute latency on CPU-bound Ollama).

  • Small-talk turns (hi, hello, thanks, who are you, ...) now send a minimal system prompt (identity only) and zero tool schemas.
  • Any non-small-talk prompt keeps the full system prompt and the intent-promoted tool surface (PromoteForIntent + EyrieTools).
  • Guard: once a tool has run in the session, later turns never demote (protects follow-up context).
  • New isSmallTalkPrompt + sessionHasToolUse helpers with unit tests.

Verified: go test ./internal/engine ./internal/tool, make lint (0 issues), go vet, live benchmark --print 'Hi' --model ollama/deepseek-r1:7b on remote CPU box: 83s -> ~17s.

Also bumps external/eyrie pin to 2de6e53 (Ollama capability enrichment, see GrayCodeAI/eyrie PR).

@Patel230
Patel230 merged commit 793b65e into main Aug 11, 2026
26 checks passed
@Patel230
Patel230 deleted the fix/ollama-capability-mismatch branch August 11, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant