Skip to main content

Module protocol

Module protocol 

Source

Modules§

ccr
Compress-Cache-Retrieve (CCR-lite) for bulk discovery tool output.
conventions
Project conventions detection: analyzes the indexed codebase to infer coding patterns, naming conventions, error handling style, test organization, and file structure. Useful for LLMs writing code that fits the project.
edit_hooks
Edit hooks — extension points for feature tentacles.
edit_plan
Edit planning: analyzes a target symbol/file and suggests the right sequence of SymForge edit tools to accomplish a change.
explore
Concept → pattern mapping for the explore tool.
format
Pure formatting functions for all 10 tool responses.
investigation
Investigation mode: structured multi-step exploration with gap analysis. Builds on SessionContext to suggest what the LLM hasn’t looked at yet.
prompts
resources
result_status
session
Session context tracking: records what the LLM has fetched this session to enable deduplication hints, cache-hit short-circuits, and context inventory.
smart_query
Smart query routing: natural-language entry point that classifies intent and dispatches to the right specialized tool internally.
surface_probe
Non-shipping L0 surface probe for Phase 0 §12A schema-byte measurement (A-005 / A-025).
tools

Structs§

LedgerWriteTracker
Tracks in-flight durable-ledger spawn_blocking writes so crate::server::serve::run can drain them on shutdown instead of dropping economics events scheduled just before SIGINT/SIGTERM (review finding P2-3).
SymForgeServer
The MCP server struct.