Skip to content

Reference

Package Description
InControl.Core Domain models, conversation types, assistant profiles, plugin manifest types, policy types, and shared abstractions
InControl.Inference LLM backend abstraction layer with streaming chat, model management, and health checks. Includes Ollama implementation
Terminal window
dotnet add package InControl.Core
dotnet add package InControl.Inference
var client = inferenceClientFactory.GetClient();
var request = ChatRequest.Simple("llama3.2", "Hello");
await foreach (var token in client.StreamChatAsync(request))
{
Console.Write(token);
}

InControl ships three built-in assistant profiles. Profiles are immutable records that control tone, verbosity, explanation level, and risk tolerance.

Profile Tone Verbosity Explanation Risk Tolerance
Default Professional Concise On request Moderate
Minimal Professional Brief Minimal Low
Detailed Professional Detailed Proactive High

Plugins extend InControl through a manifest-validated, sandboxed system. To create a plugin:

  1. Define a PluginManifest with your plugin’s ID, version, permissions, and capabilities.
  2. Extend PluginBase and override OnExecuteAsync to handle actions.
  3. Package the plugin with its manifest.

Plugins declare permissions for file access, memory, network, UI, conversation context, and settings. The manifest validator enforces consistency between declared risk levels and requested permissions.

Risk levels determine what a plugin can do:

Level Name Allowed operations
1 ReadOnly Read-only operations, no side effects
2 LocalMutation Can modify local data (files, memory)
3 Network Can access network through ConnectivityManager
4 SystemAdjacent Reserved, not available

InControl uses structured error codes organized by category:

Range Category Examples
0-99 General Unknown, InvalidArgument, Timeout, Cancelled
100-199 Connection ConnectionFailed, ConnectionTimeout, HostNotFound
200-299 Inference ModelNotFound, ContextExceeded, StreamInterrupted
300-399 Storage FileNotFound, PermissionDenied, CorruptedData
400-499 Configuration ConfigurationInvalid, ConfigurationMissing
500-599 Validation ValidationFailed, RequiredFieldMissing
600-699 Assistant Tools ToolExecutionFailed, ToolPermissionDenied

Every error includes a code, message, and severity (Low, Medium, High, Critical) with an optional hint for resolution.

Three built-in health checks report system readiness:

Check Category What it verifies
AppHealthCheck Application Application state and configuration
InferenceHealthCheck Inference Backend connection, model availability
StorageHealthCheck Storage File system access, disk space
Aspect Detail
Data accessed Ollama on this PC, chat history, projects and notes in local storage, and Ollama on a rental only after you connect one
Data NOT accessed No InControl account, no telemetry, no analytics
Permissions Loopback HTTP, an SSH client when you connect a rental, and the file system for chat history. The Store package is a full-trust desktop app (runFullTrust), not AppContainer-sandboxed, because it starts the Windows OpenSSH client.
Support bundles Never include conversation content or secrets. Sanitized configs only.

See SECURITY.md for vulnerability reporting.