Repository navigation
Conversation
…in every prompt The anatomy section (hardware, services, network, tailnet peers) went into every system prompt, whichever model served the turn. On a test rig the first reply from a hosted model listed the box's GPU and its tailnet peers by name. - The section is fenced when the prompt is built (both build paths). - A request to a hosted model (anything but llama_cpp, ollama, lm_studio, vllm; an unknown provider counts as hosted) gets a one-line pointer to the anatomy tool instead, which the model calls when a task needs the layout. - Judged per request: a /claude-style session by its route, and a hosted fallback for a local primary for its round. - anatomy.include_in_hosted_prompt (false; only a literal true) sends the full section to hosted models on every turn. Local routes are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The anatomy section (hardware, services, network, tailnet peers) went into every system prompt, whichever model served the turn. On an isolated test rig, the first reply from a hosted model listed the box's GPU and its tailnet peers by name.
What
anatomytool when a task needs them." The tool was already registered, and cloud tiers send every tool.llama_cpp,ollama,lm_studio,vllm) are unchanged. Anything else, including an unknown provider, counts as hosted./claude-style session is judged by its route;anatomy.include_in_hosted_prompt: false(template + generated reference). Only a literaltruesends the full section to hosted models on every turn.Verification
New
tests/test_anatomy_hosted_routes.py(34). It covers:6 fail without the loop change.
Full suite compared with a clean main checkout on the same Mac: no new failures. Main's 20 failures and 131 errors are this Mac's environment; two tests flaky under the parallel run pass alone. Config guards (defaults equality, drift, placement, sdist) pass.
Ruff clean.
🤖 Generated with Claude Code