Skip to main content

Crate code_system_graph_hooks

Crate code_system_graph_hooks 

Source
Expand description

Conservative, opt-in host integration for Code System Graph routing guidance.

The crate installs only marker-owned host configuration. Prompt hooks classify the submitted prompt and return static routing guidance; they never inspect source code or run repository tools. Strict mode additionally installs a Git pre-commit gate that runs a staged Code System Graph change analysis.

Structs§

HookStatus
Current state of one host integration.
InstallReport
Result of an installation attempt.
InstallRequest
Complete request for installing, inspecting, or removing one host integration.
RoutingRequest
Input to the host-independent prompt router.
RoutingResponse
Host-independent routing result.
UninstallReport
Result of removing one host integration.

Enums§

HookError
Error returned by host installation and routing APIs.
HookMode
Failure policy for installed integration.
HostKind
Agent host targeted by an installation.
RoutingIntent
Routing category inferred only from submitted prompt text.

Functions§

classify_prompt
Classifies a prompt without reading source, running tools, or retaining prompt text.
install
Installs or updates one host integration with atomic, marker-scoped writes.
route
Classifies one host event and applies session/repository TTL deduplication.
status
Inspects marker-owned host and strict-gate content without changing files.
uninstall
Removes only marker-owned content and merges around unrelated host configuration.