Skip to content
Courses/Claude Code + Local AI/Local coding agent with Hermes and Ollama

Local coding agent with Hermes and Ollama

Hermes Agent lets you set up an agent that works with tools, memory, and skills using local providers such as Ollama. The important part is not making it fully autonomous: it's giving it limits, verification, and a clear way to stop.

  • Understand the role of Hermes, Ollama, and the local model.
  • Configure a safe workflow for editing code on a branch.
  • Avoid loops, broken tool calling, and changes without tests.

Minimal architecture

For a local coding agent, think in three layers: Hermes orchestrates the task, Ollama serves the model, and Git/tests verify whether the change deserves to stay. If one of those layers is missing, the system becomes fragile.

  • Hermes: memory, skills, tools, and work loop.
  • Ollama: compatible local endpoint for inference.
  • Repository: isolated branch, tests, lint, and reviewable diff.
Terminal
# Check that Ollama is responding
ollama --version
ollama list
curl http://localhost:11434/api/tags

# Choose a small model to start with
ollama pull qwen2.5-coder:7b
ollama run qwen2.5-coder:7b "Summarize what this package.json file does"

# Always work on a branch
git checkout -b agent/hermes-prueba-segura

Recommended initial assignment

A local agent should not start by editing. It should observe, scope, and propose a plan first. This pattern reduces impulsive changes and lets you detect when context is insufficient.

Terminal
Objective:
Fix the bug described in BUG.md without touching other areas.

Rules:
- First list relevant files and risks.
- Do not edit until you propose a 5-step plan.
- Maximum 8 agent steps.
- If a tool fails twice, stop and summarize.
- After editing, run available lint/test/build.
- Do not commit without showing the diff and test results.

Stop logic so it doesn't wander off

Terminal
limits:
  max_steps: 8
  max_tool_calls_total: 20
  max_repeated_tool_args: 2
  max_runtime_minutes: 15
  stop_when:
    - tests_pass
    - same_error_twice
    - missing_context
    - needs_secret_or_external_login

Official sources

  • Ollama: Hermes Agent integration
  • Hermes Agent documentation
  • Hermes Agent: AI providers
  • Google Gemma 4 model card
  • Ollama API
Complete Aulafy mapSee how this lesson fits without leaving your path.

Complete Aulafy map

How all courses connect

This is not a checklist. Start with the foundation, choose an outcome, and go deeper only when your project needs more control.

  1. 1Understand
  2. 2Apply or build
  3. 3Operate with confidence
01

Choose an application

Turn the foundation into a visible outcome: a website, a business improvement, media, or an interactive experience.

Continue into the technical branch when you need to maintain code, data, or infrastructure.

02

Build with code

Prepare your environment, work with coding agents, and run models while keeping control of your projects.

This branch prepares you to design and operate reliable AI systems.

03

Take systems to production

Combine retrieval, agents, evaluation, security, deployment, and model adaptation when the problem requires it.

You do not need every course: choose the component your system needs and return as it grows.

View full catalogue