.NET Agent Framework: How an AI agent renames a file in a harness with Ollama

Authorised Territory demonstrates a .NET AI agent setup where an agent is allowed to rename a file inside a confined folder using the .NET Agent Framework harness, with a local Ollama-hosted LLM (gpt-oss) driving the agent’s decisions.

Overview

This tutorial shows how to wire up a constrained “harness” so an AI agent can perform a file operation (renaming a file) only within an allowed directory.

Key points covered:

Related starting point: