Expand description
Gestura’s public core facade.
gestura-core is the stable Rust API surface for Gestura.app. It owns the
cross-domain orchestration that ties the workspace together and re-exports
focused gestura-core-* domain crates so downstream code can import through
a single, consistent path.
§Generated docs quick start
If you are exploring the generated docs, start with these high-signal module entry points:
pipeline: main agent execution flow and request/response modeltools: built-in tools, permissions, schemas, and confirmation helpersconfig: application configuration plus secret-hydration/runtime bridgesllm_provider: provider selection and LLM facade accessmcpanda2a: protocol surfaces for MCP and agent-to-agent flowsagent_sessions,session_manager, andtasks: session and task stateknowledge,memory_bank, andmemory_console: expert knowledge and memorysecurityandstreaming: security/runtime streaming boundaries
A good reading path is:
- start here in
gestura-core - jump into one of the facade modules above
- follow the re-export or module docs into the owning
gestura-core-*crate when you need domain-level detail
§Core-first architecture
The workspace follows a core-first layout:
- domain logic lives in dedicated crates such as
gestura-core-tools,gestura-core-mcp,gestura-core-config, andgestura-core-context gestura-corere-exports those crates under stable public module names- presentation layers (
gestura-cli,gestura-gui) stay thin and delegate to this facade instead of owning business logic
In practice, this means new work usually follows this path:
- add or update behavior in the relevant domain crate
- expose the stable public entry point from
gestura-core - consume the stable API from CLI and GUI code
§What this crate owns directly
This facade is intentionally more than a re-export crate. It also owns the integration points that combine multiple domains, including:
- the agent pipeline and tool execution loop
- provider selection from application configuration
- guardrails, checkpoints, compaction, and orchestration helpers
- configuration bridges that depend on security or runtime integration
- shared surfaces consumed by both CLI and GUI entry points
§High-signal module groups
pipeline: agent request execution, tool routing, reflection, and streaming integrationtools: stable access to built-in tools, schemas, permissions, and streaming shell helpersconfig: application configuration plus core-owned security bridgesllm_provider: provider selection and facade access to LLM typesmcp,a2a,knowledge,memory_bank: protocol and knowledge surfacessession_manager,session_workspace,agent_sessions: session state and workspace lifecycle
§Cargo features
The facade exposes optional capabilities through Cargo features:
voice-local: local Whisper speech-to-text supportnats: NATS messaging integrationjson-ld: JSON-LD processing for MDH workflowssecurity: encryption, keychain, and secure-storage integrationsmacos-permissions,linux-permissions,windows-permissions: platform-specific permission helpers
§Documentation strategy
The long-term goal is for crate-level and module-level Rustdoc to become the
canonical architecture and API reference surfaced by cargo doc. External
documents should increasingly focus on operational workflows such as install,
packaging, release, and troubleshooting.
Re-exports§
pub use checkpoints::Checkpoint;pub use checkpoints::CheckpointError;pub use checkpoints::CheckpointId;pub use checkpoints::CheckpointManager;pub use checkpoints::CheckpointMetadata;pub use checkpoints::CheckpointRetentionPolicy;pub use checkpoints::CheckpointSnapshot;pub use checkpoints::FileCheckpointStore;pub use checkpoints::default_checkpoints_dir;pub use compaction::CompactionConfig;pub use compaction::CompactionEvent;pub use compaction::CompactionEventType;pub use compaction::CompactionResult;pub use compaction::CompactionStrategy;pub use compaction::ContextCompactor;pub use config::AppConfigSecurityExt;pub use llm_provider::select_provider;pub use pipeline::AgentPipeline;pub use pipeline::PipelineConfigExt;pub use speech::SpeechProcessorCoreExt;pub use speech::get_speech_processor;pub use speech::is_speech_recording;pub use speech::update_speech_config;pub use tools::render_capabilities;pub use orchestrator::AgentOrchestrator;pub use orchestrator::OrchestratorAgentManager;pub use orchestrator::OrchestratorObserver;
Modules§
- a2a
- Agent-to-Agent protocol types and helpers re-exported from
gestura-core-a2a. - agent_
sessions - Agent session model + persistence.
- agents
- Agent lifecycle management and orchestration primitives re-exported from
gestura-core-agents. - analytics
- Usage analytics types re-exported from
gestura-core-analytics. - audio
- Audio noise-cancellation utilities re-exported from
gestura-core-audio. - audio_
capture - Audio capture helpers re-exported from
gestura-core-audio. - checkpoints
- Checkpoints (snapshots) for agent sessions and related state.
- compaction
- Context compaction for managing conversation history within token limits
- config
- Configuration management for Gestura.
- config_
env - Environment-based configuration loading re-exported from
gestura-core-config. - context
- Smart request analysis, entity extraction, and context resolution re-exported
from
gestura-core-context. - default_
models - Built-in provider model defaults re-exported from
gestura-core-llm. - error
- Shared application errors and result aliases re-exported from
gestura-core-foundation. - events
- Cross-cutting event types re-exported from
gestura-core-foundation. - execution_
mode - Execution-mode policy primitives re-exported from
gestura-core-foundation. - explorer
- File-system exploration helpers re-exported from
gestura-core-explorer. - gdpr
- GDPR-specific helpers re-exported from
gestura-core-security. - hooks
- Hook engine types re-exported from
gestura-core-hooks. - hotkey_
ipc - Hotkey inter-process communication types re-exported from
gestura-core-ipc. - intent
- Unified intent normalization layer re-exported from
gestura-core-intent. - interaction
- Shared interaction model types re-exported from
gestura-core-foundation. - knowledge
- Built-in knowledge and expertise surfaces re-exported from
gestura-core-knowledge. - llm_
overrides - Session-scoped LLM override resolution helpers.
- llm_
provider - LLM provider selection and integration.
- llm_
validation - LLM provider/model compatibility helpers.
- mcp
- Model Context Protocol types and services re-exported from
gestura-core-mcp. - memory_
bank - Persistent memory-bank types and services re-exported from
gestura-core-memory-bank. - memory_
console - Shared memory console service for CLI and GUI inspection workflows.
- model_
display - Human-friendly model display helpers re-exported from
gestura-core-foundation. - model_
listing - Model discovery and listing helpers re-exported from
gestura-core-llm. - nats_mq
- NATS messaging primitives re-exported from
gestura-core-nats. - openai_
compat - OpenAI(-compatible) API compatibility helpers (e.g., parameter support quirks). OpenAI API compatibility helpers.
- orchestrator
- Subagent orchestration (core-owned, tauri-free).
- outcomes
- Outcome-linked learning signals re-exported from
gestura-core-foundation. - pipeline
- Agent Pipeline - Unified LLM interaction pipeline
- platform
- Platform-detection helpers re-exported from
gestura-core-foundation. - plugin_
system - Plugin-system types re-exported from
gestura-core-plugins. - prompt_
enhancement - Prompt enhancement functionality for Gestura
- recommendations
- Recommendation types re-exported from
gestura-core-analytics. - retry
- Retry strategy helpers re-exported from
gestura-core-retry. - sandbox
- Sandbox primitives re-exported from
gestura-core-security. - scripting
- Scripting-engine types re-exported from
gestura-core-scripting. - secrets
- Secret-provider abstractions surfaced from foundation and security crates.
- security
- Security domain types and services re-exported from
gestura-core-security. - session_
manager - Authentication and session-management services re-exported from
gestura-core-sessions. - session_
workspace - Session-scoped workspace management re-exported from
gestura-core-sessions. - speech
- Speech processing integration.
- stream_
cancellation - Streaming cancellation primitives re-exported from
gestura-core-streaming. - stream_
error - Streaming error types re-exported from
gestura-core-foundation. - stream_
health - Streaming health state types re-exported from
gestura-core-foundation. - stream_
reconnect - Streaming reconnection helpers re-exported from
gestura-core-foundation. - streaming
- Streaming LLM provider support for Gestura.
- stt_
provider - Speech-to-text provider interfaces re-exported from
gestura-core-audio. - subjects
- Common NATS subjects used across the app
- tasks
- Task-management primitives re-exported from
gestura-core-tasks. - telemetry
- Telemetry and instrumentation types re-exported from
gestura-core-foundation. - token_
tracker - Token accounting helpers re-exported from
gestura-core-llm. - tool_
confirmation - Tool-confirmation flows re-exported from
gestura-core-tools. - tool_
inspection - Tool inspection and review helpers re-exported from
gestura-core-tools. - tools
- System Tools for Gestura
- workflows
- Workflow helpers re-exported from
gestura-core-tasks.
Structs§
- A2AClient
- A2A HTTP Client for agent-to-agent communication
- A2AError
- A2A Error
- A2AMessage
- A2A Message
- A2ARequest
- A2A JSON-RPC Request
- A2AResponse
- A2A JSON-RPC Response
- A2AServer
- A2A server for handling incoming JSON-RPC requests.
- A2ATask
- A2A Task
- Agent
Card - Agent Card for A2A discovery
- Agent
Card Registry - In-memory registry for discovered/known agent cards.
- Agent
Context - Context hints for provider selection (agent, tenant, etc.)
- Agent
Envelope - IPC envelope for events exchanged with agents
- Agent
Info - Public agent info for status queries
- Agent
Manager - Core agent manager implementation
- Agent
Profile - Agent profile for authentication and identity propagation.
- Agent
Request - A request to be processed by the agent pipeline
- Agent
Response - Response from the agent pipeline
- Agent
Session - A persisted agent session.
- Analytics
Config - Analytics configuration
- Analytics
Insights - Analytics insights
- AppConfig
- Application configuration persisted to a YAML file.
- Artifact
- Artifact produced by a task
- Audio
Capture Config - Audio capture configuration
- Audio
Device Info - Audio device information
- Auth
Token - Authentication token
- Authentication
Info - Authentication info
- Cache
Stats - Cache statistics
- Cached
Tool - Cached tool information from an MCP server
- Cancellation
Token - Cancellation token for streaming requests
- Confirmation
Request - Confirmation request for user approval
- Consent
Record - Consent record
- Context
Cache - Smart cache for context data
- Context
Manager - Manager for handling context in a smart, efficient way
- Context
Manager Stats - Statistics for the context manager
- Conversation
Message - A message in a persisted conversation history.
- Data
Audit Entry - Data audit entry
- Delegated
Task - Task that can be delegated to a subagent
- Encryptor
- AES-256-GCM encryptor for protecting sensitive data
- Error
Analysis - Error analysis
- Event
Buffer Config - Configuration for event buffering
- Event
Emitter - Event emitter with optional buffering for rate limiting
- Explorer
Entry - A single entry returned by
list_dir. - Explorer
GitPath Status - Combined staged/unstaged/untracked status for a single path.
- Explorer
GitStatus Response - Response payload for the git-status query.
- Explorer
List DirResponse - Response payload for a directory listing.
- Explorer
Root Response - Response payload for the workspace root query.
- Extracted
Entity - An entity extracted from the request
- File
Agent Session Store - File-backed session store (one JSON file per session).
- File
Context - File context loaded for the request
- Gdpr
Manager - GDPR compliance manager
- Haptic
Feedback - Haptic feedback pattern for agent responses
- Hook
Context - Runtime context provided to hooks.
- Hook
Engine - Hook engine.
- Hook
Execution Record - A record of a hook execution.
- Hooks
Settings - Global hooks settings.
- Inspection
Result - Result of tool inspection
- Interaction
Context - Extended agent context with interaction data
- Interaction
Event - Unified interaction event that can trigger agent actions
- Json
RpcError - JSON-RPC error payload.
- Json
RpcRequest - JSON-RPC request structure.
- Json
RpcResponse - JSON-RPC response structure.
- Keychain
Storage - OS keychain integration (when security feature enabled)
- Knowledge
Item - A knowledge item represents a specialized area of expertise that can be loaded on-demand to provide context to the agent.
- Knowledge
Match - Result of matching knowledge items to a query
- Knowledge
Query - Knowledge query for finding relevant knowledge items
- Knowledge
Reference - A reference file that can be loaded on-demand
- Knowledge
Settings Manager - Manager for session-scoped knowledge settings
- Knowledge
Store - Knowledge store for managing knowledge items
- LlmCall
Response - Response from an LLM call including token usage
- LlmResponse
- Result of LLM processing
- Local
Mcp - MCP integrator with token storage and validation
- McpCache
Stats - Cache statistics
- McpClient
- An active connection to a single MCP server.
- McpClient
Registry - Global registry of active MCP client connections, keyed by server name.
- McpDiscovery
Manager - MCP Tool Discovery Manager
- McpJson
File - Represents an
.mcp.jsonconfiguration file. - McpRequest
Context - Context passed into tool/resource handlers.
- McpServer
- Transport-agnostic MCP JSON-RPC server.
- McpServer
Config - Configuration for MCP server connection
- McpServer
Entry - Full MCP server entry compatible with
.mcp.json. - McpServer
Info - Information about a connected MCP server
- McpToken
- Token for MCP authentication
- MdhResource
- Result of local MDH translation suitable for MCP usage
- Memory
Bank Entry - A single entry in the memory bank representing a saved conversation context
- Memory
Bank Query - Filter options for targeted memory-bank retrieval.
- Memory
Governance Refresh Report - Summary of a governance refresh pass.
- Memory
Governance Suggestion - Persisted governance suggestion for operator review.
- Memory
Search Result - Ranked result from targeted memory-bank retrieval.
- Message
- A message in conversation history
- Metric
- Telemetry metric
- Mock
Secure Storage - Mock secure storage for testing
- Mode
Config - Configuration for execution mode behavior
- Mode
Manager - Manager for execution mode state
- Model
Info - A single model entry returned by listing endpoints.
- Nats
Health Monitor - NATS connection health monitor
- Noise
Cancellation Config - Noise cancellation configuration
- Noise
Cancellation Processor - Noise cancellation processor
- Noise
Reduction Stats - Noise reduction statistics
- OAuth2
Config - OAuth2 configuration
- Orchestrator
Tool Call - Record of a tool call during orchestrated task execution
- Paused
Execution State - Captured execution state when an agent session is paused.
- Performance
Metrics - Performance metrics
- Permission
- A permission grant
- Permission
Audit Entry - Audit log entry for a permission check.
- Permission
Check - Permission check result
- Permission
Manager - Permission management service
- Personalized
Recommendation Engine - Personalized recommendation engine
- Pipeline
Config - Configuration for the pipeline
- Popular
McpServer - A recommended MCP server entry sourced from the official MCP Registry.
- Profile
Store - Profile store for managing agent profiles.
- Progress
Tracker - Progress tracker for long-running operations
- Recommendation
- Recommendation item
- Recommendation
Config - Recommendation engine configuration
- Reconnect
Config - Configuration for reconnection behavior
- Reconnect
Manager - Reconnection manager for streaming connections
- Registry
Browse Entry - One entry in a paginated registry browse result.
- Registry
Browse Page - Paginated response returned by
browse_mcp_registry. - Request
Analysis - Request analysis result - determines what context is needed
- Request
Analyzer - Analyzes requests to determine what context is needed
- Request
Metadata - Metadata about the request source and context
- Resolved
Context - Context that has been resolved and cached
- Retry
Event - Retry event for notification callbacks
- Retry
Manager - Retry manager for executing operations with automatic retry
- Retry
Policy - Retry policy configuration
- Sandbox
Config - Sandbox configuration for agent processes
- Sandbox
Manager - Sandbox manager for agent processes
- Script
- Script metadata
- Script
Context - Script execution context
- Script
Execution Result - Script execution result
- Scripting
Engine - Scripting engine
- Secure
Config Manager - Secure configuration manager with encryption and keychain-backed key storage
- Session
Info - Minimal session info used for list UIs.
- Session
Knowledge Settings - Session-scoped knowledge settings
- Session
LlmConfig - Session-scoped LLM configuration override.
- Session
Manager - Session manager
- Session
Patterns - Session usage patterns
- Session
Reflection Settings - Session-scoped experiential reflection override.
- Session
State - Persisted session state.
- Session
Tool Call - Tool call record for session history.
- Session
Tool Settings - Session-scoped tool availability settings.
- Session
Voice Config - Session-scoped Voice/STT configuration override.
- Session
Workspace - Session workspace configuration
- Skill
- Skill definition
- Speech
Config - Speech processing configuration
- Speech
Processor - Core speech processor without Tauri dependencies
- Stream
Error - Streaming error with rich context
- Stream
Health Config - Configuration for stream health monitoring
- Stream
Health Handle - Lightweight handle for stream health monitoring
- Stream
Health Monitor - Stream health monitor
- Stream
State - Stream state that can be preserved across reconnections
- System
Health - System health metrics
- Task
- A task represents a unit of work to be tracked
- Task
List - A list of tasks for a session
- Task
Manager - Task manager for persisting and managing tasks
- Task
Memory Event - Structured event recorded in task metadata for memory lifecycle tracking.
- Task
Memory Lifecycle - Structured task-local memory lifecycle information persisted in metadata.
- Task
Result - Result from a delegated task
- Telemetry
Manager - Telemetry manager
- Time
Period - Time period for analysis
- Timer
- Performance timer for measuring operation duration
- Token
Info - Token information with expiration and permissions
- Token
Tracker - Token usage tracker for session and global usage
- Token
Usage - Token usage information from an LLM API call
- Tool
Call Record - Record of a tool call execution
- Tool
Confirmation Info - A user-facing description of a tool confirmation prompt.
- Tool
Context - Minimal tool context for when tools are needed
- Tool
Definition - A single tool definition.
- Tool
Hint - Hint for tool selection based on interaction context
- Tool
Inspection Manager - Tool Inspection Manager
- Tool
Metadata - Tool metadata for inspection
- Tool
Policy Evaluation - Evaluation of a tool call.
- Transcription
Result - Result of speech transcription
- Unconfigured
Provider - A provider that returns an error when no real provider is configured. Used when config is missing or invalid.
- Usage
Analytics - Usage analytics system
- Usage
Event - Usage event
- Usage
Patterns - Usage patterns analysis
- Usage
Record - A single token usage record with timestamp
- Usage
Stats - Aggregated token usage statistics
- User
Behavior Pattern - User behavior pattern
- User
Session - User session information
- Workflow
- A workflow represents a reusable prompt template
- Workflow
Info - Workflow metadata for listing (without loading full content)
- Workflow
Manager - Workflow manager for discovering and loading workflow files
Enums§
- Agent
Command - Commands that can be sent to an agent task
- Agent
Event - Event types for the agent pipeline
- Agent
Status - Status value for an agent
- AppError
- Top-level application error for Gestura.
- Budget
Status - Budget check result
- Button
Press Type - Button press types
- Confirmation
Response - User’s response to a confirmation request
- Consent
Status - Consent status for data processing
- Context
Category - Categories of context that might be needed for a request
- Data
Category - GDPR data categories
- Data
Operation - Data operations for audit trail
- Dispatch
Event - Dispatcher hint for event routing
- Entity
Type - Types of entities that can be extracted
- Error
Class - Error classification for retry decisions
- Event
Type - Usage event types
- Execution
Mode - Execution mode for the agent
- Explorer
Entry Kind - Kind of a directory entry.
- Explorer
Error - Errors returned by the explorer helpers.
- Explorer
GitChange Kind - Kind of change reported by
git status --porcelain. - Gesture
Type - Types of gestures that can trigger agent interactions
- Haptic
Pattern - Predefined haptic patterns
- Hook
Event - A hook event.
- Interaction
Type - Types of interactions that can trigger agent actions
- Knowledge
Error - Error type for knowledge operations
- Load
Condition - Conditions for when to load a reference
- McpScope
- Configuration scope for MCP servers.
- McpTransport
Type - Transport type for MCP server connections.
- Memory
Bank Error - Errors that can occur during memory bank operations
- Memory
Governance Relationship - Relationship produced by the governance-analysis pass.
- Memory
Governance State - General governance state for durable memory curation.
- Memory
Kind - High-level memory retention domain.
- Memory
Scope - Scope for targeted durable-memory retrieval.
- Memory
Type - Typed classification for durable memory records.
- Message
Part - Message part (text, file, or data)
- Message
Source - Source of an end-user message.
- Metric
Type - Metric types for telemetry
- Permission
Level - Permission level for tool execution in a session.
- Permission
Scope - Scope of a permission
- Privacy
Mode - Privacy modes for analytics
- Progress
Stage - Stages of pipeline progress
- Recommendation
Feedback - User feedback on recommendations
- Recommendation
Type - Recommendation types
- Reconnect
Event - Reconnection event for frontend notification
- Reconnect
State - Reconnection state
- Reflection
Memory State - Retrieval state for reflection-derived durable memories.
- Request
Source - Source of the request
- Script
Language - Supported scripting languages
- Script
Permission - Script permissions
- Script
Trigger - Script triggers
- Secure
Storage Error - Error type for secure storage operations
- Server
State - MCP server connection state
- Session
Filter - Filter for listing sessions.
- Session
Permission Level - Permission level for tool execution.
- Shell
Output Stream - Which output stream a shell chunk originated from.
- Shell
Process State - Lifecycle state of a shell process.
- Slide
Direction - Direction for slide gestures
- Stream
Chunk - A chunk of streaming response
- Stream
Error Category - Streaming error category for classification
- Stream
Health Event - Stream health event for frontend notification
- Stream
Health Status - Stream health status
- Task
Error - Error type for task operations
- Task
Memory Phase - Phase in the task/memory lifecycle.
- Task
Source - Source of a task (who created it)
- Task
Status - Status of a task
- Token
Type - Token types
- Tool
Call Decision - Decision for a tool call at a given permission level.
- Tool
Category - Tool category for permission grouping
- Tool
Execution Check - Result of checking if a tool can be executed
- Tool
Permission - Tool permission level for execution modes
- Tool
Result - Result of a tool execution
- Workflow
Error - Error type for workflow operations
- Workspace
Error - Errors that can occur during workspace operations
Constants§
- DEFAULT_
ANTHROPIC_ MODEL - Default Anthropic model for agent/completion tasks.
- DEFAULT_
GEMINI_ BASE_ URL - Default Gemini API base URL (Google AI Studio / Generative Language API).
- DEFAULT_
GEMINI_ MODEL - Default Gemini model for agent/completion tasks.
- DEFAULT_
GROK_ MODEL - Default Grok model for agent/completion tasks.
- DEFAULT_
OLLAMA_ BASE_ URL - Default Ollama base URL for local inference.
- DEFAULT_
OLLAMA_ MODEL - Default Ollama model for local inference.
- DEFAULT_
OPENAI_ MODEL - Default OpenAI model for agent/completion tasks.
- DEFAULT_
OPENAI_ STT_ MODEL - Default OpenAI model for speech-to-text transcription.
- NAME
- Crate name
- VERSION
- Crate version from Cargo.toml
Traits§
- Agent
Session Store - A storage abstraction for agent sessions.
- Agent
Spawner - Trait for spawning and managing isolated agents
- LlmProvider
- Unified LLM interface (async)
- McpIntegrator
- Unifies MCP operations with dual authentication
- McpResource
Handler - Handler for an MCP resource.
- McpTool
Handler - Handler for an MCP tool.
- Secure
Storage - Secure storage interface for sensitive data
Functions§
- all_
tools - Return the set of built-in tools.
- browse_
mcp_ registry - Fetch a single page from the MCP Registry with optional full-text search.
- canonical_
root - Canonicalize the workspace root path.
- check_
ollama_ connectivity - Ping the Ollama endpoint to verify it is reachable.
- cleanup_
old_ sessions - Clean up old session workspaces that are older than the specified duration
- clear_
memory_ bank - Clear all memory bank entries in a workspace
- connect_
nats - Connect to NATS server
- connect_
with_ retry - Attempt to connect to NATS with retries
- create_
default_ sandbox - Create default sandbox config for different agent types
- create_
event_ channel - Create a new event channel pair
- create_
gestura_ agent_ card - Create a default agent card for Gestura.
- create_
music_ noise_ canceller - Create a noise cancellation processor with music-optimized settings
- create_
secure_ storage - Create the appropriate secure storage implementation based on features.
- create_
speech_ noise_ canceller - Create a noise cancellation processor with speech-optimized settings
- default_
agent_ sessions_ dir - Default directory for persisted agent sessions.
- detect_
system_ dark_ mode - Detect whether the operating system is configured for dark mode.
- ensure_
memory_ bank_ dir - Ensure the memory bank directory exists, creating it if necessary
- ensure_
safe_ rel_ path - Validate that
relis a safe, non-escaping relative path. - evaluate_
tool_ call - Evaluate a tool call against a
PermissionLevel. - find_
tool - Find a tool definition by name (case-insensitive).
- format_
anthropic_ model_ name - Format an Anthropic model ID to a human-readable name.
- format_
gemini_ model_ name - Format a Gemini model ID to a human-readable name.
- format_
grok_ model_ name - Format a Grok model ID to human-readable name.
- format_
model_ name - Format any model name based on provider.
- format_
openai_ model_ name - Format an OpenAI model ID to a human-readable name.
- format_
token_ count - Format token count with K/M suffix
- get_
gdpr_ manager - Get the global GDPR manager
- get_
global_ task_ manager - Returns the process-wide shared
TaskManager. - get_mcp
- Get the global MCP instance
- get_
mcp_ client_ registry - Get the global MCP client registry.
- get_
memory_ bank_ dir - Get the memory bank directory path for a workspace
- get_
scripting_ engine - Get the global scripting engine
- get_
session_ manager - Get the global session manager
- get_
sessions_ base_ dir - Get the base directory for session workspaces
- get_
telemetry_ manager - Get the global telemetry manager
- get_
token_ tracker - Get the global token tracker
- import_
claude_ desktop_ servers - Import MCP servers from Claude Desktop config.
- init_
jetstream - Initialize JetStream context and create KV bucket if missing
- is_
action_ allowed - Return whether an action should be allowed for a session at the given permission level.
- is_
local_ provider - Check if a provider is local (no cost tracking).
- is_
microphone_ available - Check if microphone is available
- is_
shell_ command_ write_ operation - Conservatively determine whether a shell tool call is likely to perform a write.
- is_
token_ well_ formed - Return whether a token is well-formed for Gestura’s current bearer-token scheme.
- is_
write_ operation - Determine if a tool operation is a write operation based on tool name and arguments.
- list_
audio_ input_ devices - List all available audio input devices
- list_
dir - List directory entries under
root/dir_rel, returning at mostmax_entries. - list_
memory_ bank - List all memory bank entries in a workspace
- list_
models_ for_ provider - List available models for the given provider.
- list_
popular_ mcp_ servers - Return up to
limitpopular, open-source MCP servers that can be added without additional configuration. - load_
from_ memory_ bank - Load a memory bank entry from a markdown file
- looks_
like_ capabilities_ question - Heuristic: decide whether a user message is asking for full capabilities/config.
- looks_
like_ tools_ question - Heuristic: decide whether a user message is asking for a tool inventory.
- mdh_
translate - Local-only MDH translate: read JSON file, validate minimal JSON-LD shape, and create URI NOTE: In production we will use json-ld-rs to expand/compact; here we simulate locally
- normalize_
git_ change_ path - Normalize a git porcelain path into a safe
rel_pathstring. - normalize_
mcp_ server_ name - Convert an arbitrary registry name into a safe, stable tool identifier.
- publish_
json - Publish a JSON payload to a subject
- record_
audio - Record audio from the microphone until user stops speaking (4 seconds of silence) Returns the duration of recorded audio in seconds
- refresh_
memory_ bank_ governance - Refresh persisted governance suggestions for durable memory entries.
- register_
builtin_ knowledge - Register built-in knowledge items
- render_
tool_ detail - Render a detailed tool description.
- render_
tools_ overview - Render a compact table of built-in tools (static, no config needed).
- request_
stop_ recording - Request the audio recording to stop from external code
- requires_
confirmation - Return whether an action should require confirmation for a session at the given permission level.
- reset_
stop_ flag - Reset the external stop flag (call before starting a new recording)
- resolve_
under_ root - Resolve
relunderroot, ensuring the result stays within the root after symlink resolution. - save_
to_ memory_ bank - Save a memory bank entry to disk as a markdown file
- search_
memory_ bank - Search memory bank entries for relevant content
- search_
memory_ bank_ with_ query - Search memory-bank entries using structured filters and ranking.
- spawn_
nats_ server - Spawn an embedded NATS server with JetStream enabled
- start_
streaming - Start a streaming LLM request based on config.
- subscribe
- Subscribe to a subject with message handler
- subscribe_
wildcard - Subscribe to a wildcard subject
Type Aliases§
- Agent
Session Result - Result type for agent session store operations.
- Event
Receiver - Shared event channel for broadcasting events to multiple listeners
- Event
Sender - Nats
Connection - NATS connection type
- Result
- Result type alias for operations that may fail with
AppError. - Retry
Callback - Callback type for retry notifications
- Stream
Result - Result type for streaming operations
- Workspace
Result - Result type for workspace operations