Skip to main content

Module server

Module server 

Source

Modules§

background_shell
Explicit, in-process background jobs for ctx_shell.
bounded_lock
bypass_hint
compaction_sync
context_gate
dynamic_tools
elicitation
helpers
multi_path
notifications
permission_inheritance
Pre-dispatch permission-inheritance gate.
policy_guard
Context-policy-pack enforcement for the MCP server pipeline (GL #673).
progress
prompts
reference_store
registry
resources
role_guard
Role-based tool access guard for the MCP server pipeline.
roots
schema_hook
Server bridge for Context Kernel list-tools schema optimization.
tool_trait
tool_visibility
Pure tool-visibility policy for the MCP tools/list response.
tools_config_watch
Detects tool-profile config changes at runtime and notifies MCP clients.

Constants§

WORKFLOW_PASSTHROUGH_TOOLS
Tools that always pass through the workflow gate regardless of state. Read-only tools should never be blocked — agents need them for context recovery after crashes or session transitions.

Functions§

build_claude_code_instructions_for_test
build_claude_code_static_instructions_for_test
Deterministic STATIC Claude Code instructions (cold first-contact, no dynamic session/knowledge/gotcha payload) for the char-budget benchmark.
build_instructions_for_test
derive_project_root_from_cwd
is_workflow_stale
A workflow is stale if it hasn’t been updated in 30 minutes. This prevents dead workflows from blocking tools across sessions.
tool_descriptions_for_test
tool_schemas_json_for_test