Repository navigation
feat(find): name the CLI, its harness and model on every find (v2.7.0) - #209
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
What
one actions findnow says who asked, the same way passthrough already does since v2.6.0, so One's record of agent finds (pica-v2 #993 / #1001, live in prod) can tell CLI finds apart and name the agent and model behind them. Today every CLI find lands with no source, agent or model.findActionssends the caller headers.x-one-source: cli, andx-one-agentnaming the harness that launched the CLI (claude-code,cursor, …) when one did, from the samecallerHeaders()passthrough uses.--ai-modelis no longer dropped. It was accepted and never sent; it now goes asx-one-agent-model, trimmed, and only when given, since only the agent knows its model. Core bounds it at 128 characters and records it as the find'sai_model.--ai-modelhelp,SKILL.md, the guide and the README now say it is recorded with the find, instead of promising documentation tuning that never happened.Tests
callerHeadersnames the model only when given (and trims it); a find sends source, harness and model, or only the source from a plain terminal without--ai-model; other routes still get none.src/lib/api-caller-headers.test.ts10/10;tsc --noEmitclean.resolveConfigfailures inconfig.test.tsfail onmaintoo (macOS/private/vartemp path), unrelated.🤖 Generated with Claude Code