Building an Autonomous Research Agent with C# and Local LLMs

✍️ OpenClawRadar📅 Published: February 14, 2026🔗 Source
Building an Autonomous Research Agent with C# and Local LLMs
Ad

Here's a look at a new autonomous research agent built in C# utilizing local LLMs, specifically Ollama along with the llama3.1:8b model. The agent automates the process of URL handling by generating search queries, conducting web searches through the Brave Search API, and extracting relevant data, all culminating in a structured markdown report.

Key Details

  • The agent accepts a topic input, for instance, "persistent memory for AI agents".
  • It autonomously formulates 5-8 search queries.
  • Searches are executed via the Brave Search API, and the top sources are fetched and analyzed.
  • The agent reads through 8-12 sources and extracts 5-8 key findings.
  • All data processing is executed locally using the Ollama (llama3.1:8b) model without reliance on OpenAI/Anthropic APIs.
  • The output is a markdown report complete with citations.
Ad

Performance and Architecture

The current setup runs on a Ryzen 5 5500, CPU-only, with 16GB RAM, taking approximately 15 minutes per research cycle. The developer notes that 3B models, such as llama3.2, are inadequate for tool calling, thereby making 8B a necessary minimum for reliable performance.

Key challenges include the need for findings truncation before synthesis to prevent the model from stalling on lengthy contexts, and occasional malformed tool calls even with 8B models, resolved by retrying with altered prompts. The agent utilizes SQLite paired with embeddings for managing memory at a personal scale, obviating the need for a vector database.

Technology Stack

  • C# / .NET 8
  • Ollama
  • SQLite
  • Brave Search API (free tier)

For developers interested in building their own agent, there's a starter kit and an 8-chapter guide available on the project's GitHub repository, provided under the MIT license, along with the full source code: hex-dynamics.

📖 Read the full source: r/LocalLLaMA

Ad

👀 See Also

LoreConvo: MCP Server Adds Persistent Session Memory to Claude Code
Tools

LoreConvo: MCP Server Adds Persistent Session Memory to Claude Code

LoreConvo is an MCP server that provides Claude Code with persistent session memory, automatically saving and loading context between sessions. It saves 3,000-8,000 tokens per session by eliminating re-contexting overhead.

OpenClawRadar
Werld: Open-Ended Artificial Life Simulation with Evolving Neural Networks
Tools

Werld: Open-Ended Artificial Life Simulation with Evolving Neural Networks

Werld is a real-time artificial life simulation where agents with NEAT neural networks evolve their own neural architecture, sensory processing, and behaviors without hardcoded rules or reward functions. The simulation starts with 30 agents on a Watts-Strogatz small-world graph with 64 sensory channels, 7 continuous motor functions, and 29 heritable genome traits.

OpenClawRadar
Tatu: Open-source security layer for Claude Code blocks secrets and destructive commands
Tools

Tatu: Open-source security layer for Claude Code blocks secrets and destructive commands

Tatu is an open-source hook system that intercepts Claude Code actions in real time to block leaked secrets, flag PII, and deny destructive commands before execution. Installation is via pip/pipx with 'tatu-hook init' to enable audit mode.

OpenClawRadar
Cowork Chrome Extension Automates Personal Data Removal from Data Brokers
Tools

Cowork Chrome Extension Automates Personal Data Removal from Data Brokers

A Reddit user reports that using the Cowork Chrome extension with a Gmail connection automated filling forms, writing emails, and verifying removal requests to delete personal data from major data providers in just a few hours.

OpenClawRadar