Skip to content

feat: make perception scoring weights configurable#328

Merged
CalebisGross merged 1 commit intomainfrom
feat/configurable-perception-scoring
Mar 21, 2026
Merged

feat: make perception scoring weights configurable#328
CalebisGross merged 1 commit intomainfrom
feat/configurable-perception-scoring

Conversation

@CalebisGross
Copy link
Copy Markdown
Collaborator

Summary

  • Extract 12 hardcoded scoring weights from internal/agent/perception/heuristic.go into perception.scoring config section
  • New ScoringConfig struct with withDefaults() method ensures safe fallbacks
  • Base scores per source (filesystem, terminal, clipboard, MCP), file type boosts, command boosts, keyword tier weights all tunable
  • All defaults match previous hardcoded values -- zero behavior change

Test plan

  • make build passes
  • make test passes (all green, including perception tests)
  • No new lint issues

🤖 Generated with Claude Code

Extract 12 hardcoded scoring weights from heuristic.go into a new
perception.scoring config section. Base scores per source, file type
boosts, command boosts, and keyword tier weights are now tunable
without recompiling.

All defaults match previous hardcoded values for zero behavior change.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@CalebisGross CalebisGross merged commit 2b7e4d8 into main Mar 21, 2026
@CalebisGross CalebisGross deleted the feat/configurable-perception-scoring branch March 21, 2026 15:47
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