Package ecosystem ​
This page explains how the current packages relate to each other.
Layered view ​
1. Foundation utilities ​
These packages solve narrow parsing or shaping problems and can be used independently:
@agentsy/core/sse@agentsy/core/thinking@agentsy/core/tool-calls@agentsy/core/structured@agentsy/core/context@agentsy/core/xml-filter@agentsy/core/formatting@agentsy/core/recovery@agentsy/types
2. Shared stream language ​
@agentsy/providers/normalizers converts provider-specific formats into the common event vocabulary expected by the rest of the stack.
3. Processing engine ​
@agentsy/core/processor orchestrates the incremental flow and exposes transforms for smoothing, thinking filtering, and tool-call filtering.
4. State and presentation ​
@agentsy/renderersturns events into text-oriented output.@agentsy/uiprojects events into conversation state.@agentsy/runtime/ag-uiadapts runtime and processor events to AG-UI protocol expectations.
5. Runtime and integration surfaces ​
@agentsy/orchestrator/agentbuilds higher-level loops.@agentsy/providers/adapterspackages common integration logic.@agentsy/providers/pipelinepackages provider-coupled SSE pipeline assembly.@agentsy/vscodeprovides the current published editor-focused integration layer.
Example composition patterns ​
Minimal streaming pipeline ​
Use @agentsy/providers/normalizers plus @agentsy/core/processor when you only need to normalize and process provider output.
Structured-output workflow ​
Add @agentsy/core/structured and @agentsy/core/tool-calls when your application needs schema handling or tool invocation.
Agent application ​
Add @agentsy/orchestrator/agent, then choose one or more projection layers:
@agentsy/renderersfor textual output@agentsy/uifor app state@agentsy/runtime/ag-uifor AG-UI protocol streams@agentsy/vscodefor VS Code integration
Package boundaries to preserve ​
- Do not move VS Code concepts into lower-level parsing packages.
- Do not document planned runtime packages as if they already sit between the current layers.
- Treat package-local
src/index.tsbarrels as the source of truth for current documented API.
Operator surfaces vs library packages ​
Agentsy distinguishes between reusable library packages and outer-layer operator surfaces:
- Library packages such as
@agentsy/context,@agentsy/session, and most of@agentsy/core/*should stay host-agnostic. @agentsy/cliowns framework-level setup and doctor UX.@agentsy/orchestratorand@agentsy/runtimeown helper/background role semantics and execution.@agentsy/plugins,@agentsy/vscode,@agentsy/mcp, and@agentsy/connectorsown host- or protocol-specific integration behavior.- Repository
docs/plus host-facing READMEs own broad operational and compatibility guidance.