Skip to content

AI agents

This section describes what Mila provides to empower you in your research with AI assistant related tools.

Guides

Overview of an agent ecosystem

Information this section is focused on

This section is focused on what Mila provides or recommend. Below is a lightweight pictured overview of the main mentioned entities:

Entity Description Provided/Recommended
Agent A model + a harness (see next lines)
Model The "brain": it does the thinking. Mila provides a local agent
Harness The "shell" around this brain. It contains tools such as Skills or MCP To use the local agent, Mila recommends OpenCode
Skills A "recipe" for a task. The agent only knows it has a specific recipe for a specific task at first, and only loads the content of the recipe when the user ask this particular task. Mila provides a set of Skills
MCP Which "friend" to contact to get a specific information, and how to contact them. Mila provides a MCP server for its documentation

More global explanation

An AI agent combines several parts that work together: a model does the thinking, and a program called a harness provides everything else needed to get work done β€” information to read, tools to use, and rules to follow.

The model is a large language model (LLM): it reads text and writes text. On its own, it cannot open files or run programs. The harness makes the model useful by running a repeating cycle called the agent loop:

  1. Think – The model reviews the request and everything it currently knows, then decides what to do next.
  2. Act – The model asks the harness to run a tool, such as reading a file or launching a computation. The harness checks its permission rules first and requests approval for sensitive actions.
  3. Observe – The result of the action is added to what the model knows, and the cycle repeats until the task is complete.
The agent loop: the researcher's goal goes to the model, which thinks; the harness checks permissions and runs the tool, then adds the result to the context; the cycle repeats until the model decides the task is complete and reports to the researcher. Researcher goal Report to researcher task complete tool call result updated context ↻ repeats until the task is complete Think Model Reviews the context, decides the next step Act Harness Checks permissions, runs the tool Observe Harness Adds the result to the context

What the model knows at any moment β€” instructions, project files, notes from earlier sessions, step-by-step guides β€” is called its context. What it can do β€” run commands, edit code, reach external services β€” depends on the tools the harness provides. The diagram below shows these parts and how they connect, from the researcher who states the goal to the external services the agent can reach.

Researcher
Context What is known
  • System prompt – Role, rules, style
  • AGENTS.md – Project instructions
  • Memory – Facts kept across sessions
  • Context description – Context-specific information
  • Skills – Know-how loaded on demand
Harness How all works together
  • Model (LLM) – Reasons, decides, writes
  • Agent loop – Think, act, observe
  • Context window – What the model sees
  • Permissions – What is allowed
  • Hooks – Event-triggered scripts
Actions What can be done
  • Tool calls – Model asks, harness runs
  • Built-in tools – Read, write, shell, web
  • Slash commands – Shortcuts typed by a human
  • MCP servers – Standard plug to services
  • Plugins – Bundles of skills, MCP, hooks
Outside the harness
  • Sub-agents – Isolated context, summary back
  • Execution environment – Cluster, repository, terminal
  • External services – Reached through MCP servers

Comments