core

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package core provides helper functions for the agent command.

This package contains budget allocation, scoring, cooldown management, content extraction, and output rendering logic used by the agent command's Run function.

Directories

Path Synopsis
Package budget assembles token-budgeted context packets from loaded context files, fitting entries by score within the configured limit.
Package budget assembles token-budgeted context packets from loaded context files, fitting entries by score within the configured limit.
Package cooldown manages per-session tombstone files to suppress repeated agent output within a configurable duration.
Package cooldown manages per-session tombstone files to suppress repeated agent output within a configurable duration.
Package extract pulls structured sections from loaded context files for inclusion in agent context packets.
Package extract pulls structured sections from loaded context files for inclusion in agent context packets.
Package score computes relevance scores for decision and learning entries based on recency and keyword overlap with active tasks.
Package score computes relevance scores for decision and learning entries based on recency and keyword overlap with active tasks.
Package sort orders context files by the configured read priority for agent context assembly.
Package sort orders context files by the configured read priority for agent context assembly.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL