Skip to content

feat: make agent constants configurable via config.yaml#327

Merged
CalebisGross merged 1 commit intomainfrom
feat/configurable-agent-constants
Mar 21, 2026
Merged

feat: make agent constants configurable via config.yaml#327
CalebisGross merged 1 commit intomainfrom
feat/configurable-agent-constants

Conversation

@CalebisGross
Copy link
Copy Markdown
Collaborator

Summary

  • Extract ~20 hardcoded magic numbers from dreaming, abstraction, metacognition, and episoding agents into config.yaml
  • All new fields default to their previous hardcoded values -- zero behavior change without config updates
  • Follows existing pattern: config structs in config.go, agent-local structs in each package, translation in main.go

New configurable values

Dreaming: startup delay, dead memory window, insights budget, default confidence
Abstraction: startup delay, grounding decay multipliers (moderate/significant/severe), confidence floor, default confidence, axiom confidence
Metacognition: startup delay, reflection lookback window, dead memory window
Episoding: startup lookback, default salience, polling interval

Test plan

  • make build passes
  • make test passes (all tests green)
  • golangci-lint run clean (pre-existing issue only)
  • Daemon restarts and runs cleanly with no config.yaml changes
  • Verify agents pick up overridden values when config.yaml is edited

🤖 Generated with Claude Code

Extract hardcoded magic numbers from dreaming, abstraction,
metacognition, and episoding agents into config.yaml fields.
All new fields have defaults matching previous hardcoded values
so behavior is unchanged without config updates.

New configurable values:
- Startup delays for all four agents
- Dreaming: dead memory window, insights budget, default confidence
- Abstraction: grounding decay multipliers, confidence floor, defaults
- Metacognition: reflection lookback, dead memory window
- Episoding: startup lookback, default salience, polling interval

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@CalebisGross CalebisGross merged commit 5d709ff into main Mar 21, 2026
@CalebisGross CalebisGross deleted the feat/configurable-agent-constants 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