Skip to main content

Module autonomy

Module autonomy 

Source

Re-exports§

pub use crate::core::autonomy::AutonomyState;
pub use crate::core::autonomy::SearchHistory;
pub use crate::core::autonomy::should_auto_consolidate;

Structs§

EnrichResult
Output from post-read enrichment: optional related-file hints.

Functions§

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.