AI agents¶
This section describes what Mila provides to empower you in your research with AI assistant related tools.
Guides¶
-
Getting started with the Mila local agent
Step-by-step set up of an OpenCode harness to use the Mila local agent.
-
In-depth explanation of the local agent hosted on the Mila cluster.
-
Install the Mila skills to automate common workflows.
-
Learn from Mila shared knowledge
Give your AI assistant access to the Mila documentation through the Mila Docs MCP server or a condensed Markdown file.
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:
- Think β The model reviews the request and everything it currently knows, then decides what to do next.
- 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.
- Observe β The result of the action is added to what the model knows, and the cycle repeats until the task is complete.
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.
- 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
- Model (LLM) β Reasons, decides, writes
- Agent loop β Think, act, observe
- Context window β What the model sees
- Permissions β What is allowed
- Hooks β Event-triggered scripts
- 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
- Sub-agents β Isolated context, summary back
- Execution environment β Cluster, repository, terminal
- External services β Reached through MCP servers