Skip to main contentModule autonomy
Source - AutonomyState
- Tracks autonomous action state: session init, dedup, and consolidation timing.
- EnrichResult
- Output from post-read enrichment: optional related-file hints.
- SearchHistory
- Per-key stats for progressive search hints (
ctx_search / ctx_semantic_search).
- enrich_after_read
- Appends related-file hints and silently preloads imports after a file read.
- large_ctx_read_full_hint
ctx_read full mode: suggest compressed read modes when output is very large (tokens).- large_ctx_shell_output_hint
ctx_shell: suggest sandbox / read modes when final output is large (bytes).- maybe_auto_dedup
- Runs cache deduplication once the entry count exceeds the configured threshold.
- maybe_auto_response
- Applies
ctx_response automatically for large outputs (guarded + bounded).
Never runs on JSON outputs to avoid breaking machine-readable responses. - session_lifecycle_pre_hook
- Auto-preloads project context on the first tool call of a session.
- shell_efficiency_hint
- Suggests a more token-efficient lean-ctx tool when shell compression is low.
- should_auto_consolidate
- Returns true if enough tool calls have elapsed to trigger auto-consolidation.