Skip to content

feat(brain): a plain command moves at once, without asking the LLM - #77

Merged
rockywuest merged 2 commits into
mainfrom
feat/fast-commands
Oct 26, 2026
Merged

rockywuest merged 2 commits into
mainfrom
feat/fast-commands

Conversation

@rockywuest

Copy link
Copy Markdown
Owner

Field report: there was a long delay between a spoken command and the movement. In chat mode every "Sitz" first made a round trip to the LLM, which took 2–4 s before the paws moved.

Change: plain_command() checks whether a sentence contains only keyword commands plus filler words (nox, bitte, mal, dich, hin, und, mit dem…). If so, the brain sends it straight to /combo and skips the LLM. Everything else still goes to the LLM as before, for example "Setz dich und sag mir, was du siehst" or "Was siehst du links?".

  • The fast path speaks no confirmation, because the movement itself is the feedback. That also means one "Mach ich!" fewer in the room.
  • NOX_FAST_COMMANDS=0 restores the old behaviour.
  • The pattern comes from wire-pod's matchIntentSend.go: match intents first, then fall back to the LLM.
  • 18 new tests. One existing test that explicitly exercises the LLM path now turns the fast path off.
  • 693 tests pass.

🤖 Generated with Claude Code

rockywuest and others added 2 commits October 26, 2026 21:29
"Sitz" went to Opus first and the paws followed 2-4 s later — the dog felt
deaf. A sentence that is only keyword commands and filler ("Nox, setz dich
bitte hin") now goes straight to /combo; anything more still goes to the LLM.
NOX_FAST_COMMANDS=0 restores the old path. Pattern from wire-pod's intent
matcher.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ys non-empty

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rockywuest
rockywuest merged commit 36f7871 into main Oct 26, 2026
4 checks passed
@rockywuest
rockywuest deleted the feat/fast-commands branch October 26, 2026 20:35
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