Documentation
¶
Overview ¶
Package agent defines budget, cooldown, and scoring constants for the ctx agent command.
Index ¶
Constants ¶
View Source
const ( // TaskBudgetPct is the fraction of the token budget allocated to tasks. TaskBudgetPct = 0.40 // ConventionBudgetPct is the fraction of the token budget allocated to conventions. ConventionBudgetPct = 0.20 // BulletItemLimit is the maximum number of bullet items to extract from a context file. BulletItemLimit = 1000 // SplitMinPct is the minimum percentage each section gets during budget splitting. SplitMinPct = 30 // FullEntryPct is the percentage of section budget allocated to full entries // (remainder goes to title-only summaries). FullEntryPct = 80 )
Budget allocation.
View Source
const ( // DefaultCooldown is the default cooldown between agent context packet emissions. DefaultCooldown = 10 * time.Minute // TombstonePrefix is the filename prefix for agent cooldown tombstone files. TombstonePrefix = "ctx-agent-" )
Cooldown configuration.
View Source
const ( // RecencyDaysWeek is the threshold for "recent" entries (0-7 days). RecencyDaysWeek = 7 // RecencyDaysMonth is the threshold for "this month" entries (8-30 days). RecencyDaysMonth = 30 // RecencyDaysQuarter is the threshold for "this quarter" entries (31-90 days). RecencyDaysQuarter = 90 // RecencyScoreWeek is the recency score for entries within a week. RecencyScoreWeek = 1.0 // RecencyScoreMonth is the recency score for entries within a month. RecencyScoreMonth = 0.7 // RecencyScoreQuarter is the recency score for entries within a quarter. RecencyScoreQuarter = 0.4 // RecencyScoreOld is the recency score for entries older than a quarter. RecencyScoreOld = 0.2 // RelevanceMatchCap is the keyword match count that yields maximum relevance (1.0). RelevanceMatchCap = 3 )
Scoring configuration.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.