feat(search): configure search behavior via .conf.yaml#51
Merged
Conversation
Describes .conf.yaml per-repo config for search engine, limit, and result_detail presets (full/standard/minimal). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Step-by-step TDD plan for .conf.yaml search settings (engine, limit, result_detail) with CLI flag precedence and field projection presets. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ence Wire LoadSearchConfig into runSearch so engine, limit, and result_detail are read from .conf.yaml; CLI flags (--engine, --limit, --result-detail) take precedence when explicitly provided. Add --result-detail flag and apply projectResult projection before printing search results. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- searchconfig.go: nolint gosec G304 on os.ReadFile with fixed filename - status_run_test.go: add return after t.Fatal to silence SA5011 false positive Co-Authored-By: Claude Sonnet 4.6 <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.
Summary
.conf.yamlper-repo config file with asearch:block forengine,limit, andresult_detailresult_detailpresets (full/standard/minimal) to control how many fields are returned per search result — useful for reducing token cost in agent workflows.conf.yamladded to gitignore template generated byconf initNew config file
Result detail presets
fullstandardminimalTest Plan
go test ./...— all 11 packages pass.conf.yamlwithresult_detail: minimal, runconf search "term"— verify stripped fieldsconf search "term" --limit 50withlimit: 5in config — verify CLI flag wins (50 results).conf.yaml— verify defaults still applyconf init— verify.conf.yamlappears in generated.gitignore🤖 Generated with Claude Code