Expand description
Ordered middleware and capability registration.
Modules§
- artifacts
- Agent-published session files and their frontend presentation.
- attachments
- User uploads exposed to the owning workspace.
- compaction
- Context compaction policy and provider routing.
- context_
offloading - Durable masking of stale tool output in active model context.
- cron
- Conversational recurring-task setup.
- extensions
- Standalone skills and activated Agent Plugin packages.
- instructions
- Bounded workspace instruction discovery.
- manifest
- Core-owned middleware configuration manifests.
- scratchpad
- Durable session and global notes for agent self-improvement.
- session_
files - Protected, session-bound storage shared by uploads and agent artifacts.
- sessions
- Chat catalog and durable forking middleware.
- steering
- Queued turn steering middleware.
- subagents
- Durable asynchronous child-agent middleware.
- tasks
- Optional durable todo planning.
- tools
- Tool registry, dispatch, and minimal filesystem tools.
Structs§
- Active
Command Context - Mutable turn state exposed to a capability command that can run immediately.
- Active
Submission Context - Mutable turn state exposed to the middleware owning an active operation.
- Compact
Context - State exposed immediately before or after context compaction.
- Frontend
Extensions - Read-only middleware UI surface consumed by a frontend shell.
- Middleware
Command Context - State available to a middleware-owned frontend command.
- Middleware
Command Output - Result of a middleware-owned frontend command.
- Middleware
Stack - A validated, declaration-ordered middleware pipeline.
- Model
Context - Mutable state exposed immediately before a model request.
- Model
Request Context - Request-only model input exposed after every durable
PreModelhook. - Permission
Request Context - Mutable policy boundary for a sandbox approval request.
- Post
Tool UseContext - Mutable model-visible result exposed after an executed tool call.
- PreTool
UseContext - Mutable policy boundary for one normalized model-requested tool call.
- Prompt
Section - One middleware-owned section of the assembled system prompt.
- Queued
Input Queue - Mutable scoped view of active input retained until the next model boundary.
- Queued
Input Snapshot - Read-only startup snapshot containing only one middleware’s queued input.
- Queued
Input Value - One queued input removed by its owning middleware.
- Queued
Input View - Read-only queued input owned by the middleware receiving it.
- Runtime
Context - Durable runtime identity exposed while middleware starts a session.
- Session
Start Context - Mutable state shared by the declaration-ordered
SessionStarthooks. - Stop
Context - Mutable policy boundary immediately before normal turn completion.
- Turn
EndContext - State exposed when the loop finishes or aborts a turn.
- Turn
Identity - Stable facts shared by hooks that run within one active turn.
- User
Prompt Submit Context - Mutable state exposed before a submitted user prompt enters durable context.
Enums§
- Active
Submission Result - Result of a middleware-owned active operation.
- Session
Start Source - Why
Middleware::session_startis running.
Traits§
- Middleware
- A capability contribution to the single ordered agent pipeline.
Type Aliases§
- Frontend
Event Sink - Sends middleware-owned UI updates without depending on a concrete frontend.