Skip to main content

Module env

Module env 

Source

Enums§

HookShortCircuitMode
Tri-state knob for the hook_post_edit short-circuit heuristic.

Constants§

ANTHROPIC_API_KEY
COLORFGBG
COLORTERM
DEFAULT_DEEP_RECALL_SAMPLE_RATE
Default deep-recall sample rate when the env var is unset (2%).
DIFFLORE_BFS_RETRIEVAL
DIFFLORE_CLAUDE_HOME
DIFFLORE_CLOUD_TOKEN
DIFFLORE_CLOUD_URL
DIFFLORE_DEBUG_CLOUD
DIFFLORE_DEBUG_HOOKS
DIFFLORE_DEBUG_PROVIDERS
DIFFLORE_DEBUG_TELEMETRY
DIFFLORE_DEEP_RECALL_SAMPLE_RATE
Probability (0.0–0.10) that an MCP recall serve with caller-requested top_k == 5 is transparently bumped to top_k = 8 so we accrue data on whether rules at ranks 6–8 ever get accepted.
DIFFLORE_DISABLE_RULES
DIFFLORE_EMBEDDING_KEY
API key for difflore embeddings setup (BYOK), read from env/stdin so it stays out of shell history. The runtime resolver uses the encrypted key stored by that command — not a raw env var at embed time.
DIFFLORE_FIX_DEBUG
DIFFLORE_FIX_DUMP_DIR
DIFFLORE_FIX_PREVIEW_REVIEW_TIMEOUT_SECS
DIFFLORE_HOME
DIFFLORE_HOOK_CACHE_TTL_MS
DIFFLORE_HOOK_CLIENT
DIFFLORE_HOOK_CROSS_REPO_STARTER
Opt-in: allow the post-edit / pre-read hook to fall back to cross-repo “starter” rules when the current repo has no scoped memory. Default OFF — the hook is repo-level only: it surfaces THIS repo’s own memory or stays silent, never auto-injecting transferable rules from other repos on every edit. (The explicit difflore recall command keeps its own starter path.)
DIFFLORE_HOOK_FORWARD
DIFFLORE_HOOK_SHIM_TRACE
DIFFLORE_HOOK_SHORT_CIRCUIT
Controls the per-process hook_post_edit short-circuit cache.
DIFFLORE_INTENT_RERANK
DIFFLORE_MASTER_KEY
DIFFLORE_MCP_HOME
DIFFLORE_NO_WELCOME
DIFFLORE_THEME
DIFFLORE_TOKEN
DIFFLORE_TRACE_HOOK
DIFF_LORE_CLOUD_URL
MAX_DEEP_RECALL_SAMPLE_RATE
Maximum permitted deep-recall sample rate (10%). Anything higher would substantially shift the cost/token profile of the hot recall path; the whole point of the sampler is “cheap occasional probe”, not a knob the caller can crank into a second production mode.
NO_COLOR
OPENAI_API_KEY
PATH
TERM

Functions§

debug_cloud
debug_providers
debug_telemetry
deep_recall_sample_rate
Resolve DIFFLORE_DEEP_RECALL_SAMPLE_RATE into a validated probability.
difflore_home
fix_debug
fix_dump_dir
flag_set
hook_cache_ttl_ms
hook_cross_repo_starter_enabled
Whether the hook may inject cross-repo “starter” rules when the current repo has no scoped memory. Default OFF: the hook is repo-level only — it surfaces THIS repo’s own memory or stays silent, instead of injecting transferable rules from other repos on every edit. Set DIFFLORE_HOOK_CROSS_REPO_STARTER to a truthy value to opt back into cold-start starter hints in the hook.
hook_short_circuit_mode
Resolve DIFFLORE_HOOK_SHORT_CIRCUIT into a tri-state mode.
master_key_hex
non_empty
parse_deep_recall_sample_rate
Parse a raw DIFFLORE_DEEP_RECALL_SAMPLE_RATE string into a validated f32 in [0.0, MAX_DEEP_RECALL_SAMPLE_RATE].
trace_hook
truthy
var
var_os