Skip to content

Built-In Harnesses

Built-in harnesses are ready-made tool groups for common agent capabilities.

HarnessUse it forStatus
CodingWorkspace-aware read, search, edit, and command workflowsUse with permissions and sandboxing
FileSystemExplicit filesystem operations over a configured rootUse with an explicit FileSystemContext
Coding TUITUI renderers and controls for coding harness eventsCompose into the TUI registry
WebSearchPublic web search through TavilyUse with an explicit Tavily key or Tavily:ApiKey configuration

Use built-in harnesses the same way you use your own harnesses: register them on AgentBuilder, then configure the runtime context they require.

Safety Defaults

Filesystem and coding tools can mutate files or run processes. Start with:

  • an explicit workspace root
  • WithPermissions()
  • WithLocalSandbox() when command execution is available
  • shell disabled unless the workflow truly needs it
csharp
var agent = await new AgentBuilder()
    .WithInstructions("Stay inside the configured workspace.")
    .WithPermissions()
    .WithLocalSandbox()
    .WithToolHarness<CodingToolHarness>()
    .BuildAsync();

Built for production .NET agent applications.