Skip to main content

Crate synwire_agent

Crate synwire_agent 

Source
Expand description

§synwire-agent

Agent runtime implementations for Synwire — the concrete backend layer.

This crate provides real implementations of the agent runtime traits defined in synwire-core, wiring abstract capabilities to live backends and services.

§Key modules

ModulePurpose
vfsVFS providers (LocalProvider, MemoryProvider, CompositeProvider)
sandboxProcess sandboxing, isolation, and output capture
middlewareRequest/response middleware pipeline for agent execution
strategiesExecution strategies (single-pass, iterative, FSM-based)
mcpMCP client transport and tool bridge
samplingSamplingProvider implementations for tool-internal LLM access
sessionSession lifecycle, persistence, and resumption
sbflSpectrum-based fault localisation for diagnostic ranking
dataflowIntra-procedural dataflow analysis over indexed code
call_graphCall-graph construction and traversal
experienceExperience pool storage and retrieval
experience_samplingSampling strategies over the experience pool
toolsAgent-level tool implementations

All I/O operations are async-first. This crate compiles with zero unsafe.

Modules§

call_graph
Dynamic call graph construction via LSP goto-definition.
dataflow
Dataflow retrieval: trace variable origins via tree-sitter heuristics.
experience
Project-local and global experience pool.
experience_sampling
Experience pool summary generation via sampling.
mcp
MCP transport implementations.
middleware
Middleware implementations.
sampling
Direct model sampling provider.
sandbox
Sandbox implementations for command execution, process management, and archive handling.
sbfl
Spectrum-Based Fault Localization (SBFL) using Ochiai scoring.
session
Session management implementations.
strategies
Execution strategy implementations.
tools
Pre-built tool providers for common coding agent patterns.
vfs
VFS provider implementations.