Altrix Systems

Setting up AI agents

A technical session built around one teaching example: a service map for a homelab. Claude Code builds it, Codex adds a feature, and Hermes fixes bugs from Telegram.

Agenda

The six parts of the talk

The parts are presented in this order. Select a part or a slide to go to it.

Full disclosure

We teach all of this in depth

This talk is complete on its own: each slide shows how something works and what it looks like in practice. The hands-on course is where you build it on your own machine, with help when your setup behaves differently. Ask us about it at the end.

The scenario

One project, three agents

The talk follows one teaching example: a service map for a homelab, a page that combines host and service data from the hypervisor, the monitoring system and the proxy configuration.

  • Claude Code builds it in the terminal.
  • Codex adds a feature.
  • Hermes troubleshoots it from Telegram, with sensitive data in the logs and a hidden instruction in a forum post.
01
Build · Claude Code
Plans the platform, reads the hypervisor, monitoring and proxy data, draws the map and tests it.
02
Extend · Codex
Picks up the handoff and adds uptime for each service.
03
Troubleshoot · Hermes via Telegram
A service shows as down. The gateway masks sensitive data in the log excerpts, Hermes ignores an instruction hidden in a forum post, and the check is updated after your OK.
The scenarioStep 1 of 3
01

Choosing the tools

Chat apps, IDE assistants, harnesses and meta-harnesses, and what a harness is made of.

In the scenarioClaude Code to build, Codex to add a feature, Hermes to troubleshoot from Telegram.

What each kind of tool can do

The example uses three tools: Claude Code to build, Codex to add a feature, and Hermes to troubleshoot from a phone. The kinds overlap, and what each can reach depends on its configuration.

Components of an agent harness

The harness runs the model in a loop: it carries out the tool calls the model requests, within its permissions, and returns the results. Select a part to stop the animation and read about it.

02

Before the first prompt

Where the agents run, memory that all three share, credentials kept out of it, and one design for the agents to follow.

In the scenarioThe agents run on a small server, not on a laptop. Facts about the homelab are written down once; API tokens stay in a secrets store.

From a laptop to a server

On a laptop, an agent stops when the lid closes, the battery runs out or the connection drops. A small VM at home or a VPS keeps it running.

  • Install the harnesses on one Linux machine, under their own user account.
  • Keep sessions alive when you disconnect, with tmux or a meta-harness.
  • Connect over SSH or a private network, without opening ports to the internet.

More in the courseSet up a VPS for agents: user accounts, sessions that survive disconnects, private network access and backups.

An orchestration layer on top

A meta-harness on the server starts the agents, gives each one its own workspace, and shows what they are doing.

  • Work starts from a ticket on the project board or on a schedule.
  • All agents read the same memory and skills; credentials stay with a broker.
  • You follow progress and approve changes from a laptop, tablet or phone.

More in the courseInstall a meta-harness, connect the agents and the board, and reach it from your phone.

Memory before the first prompt

Facts about the homelab are written down once, and all three agents read them:

  • hosts, ports and where each configuration lives
  • corrections saved as rules
  • a handoff note when an agent stops
More in the courseSet up a memory folder with instructions, facts, feedback rules and handoffs, back it up, and connect it to two harnesses. You also turn one of your own corrections into a rule and check that a new session applies it.

Shared memory off

Shared memory on

carried overlearned this sessionnot carried overNumber under a session: items it starts with

Security consideration

Credentials stay out of memory

The platform reads the hypervisor and monitoring APIs with read-only tokens, and the agents work on its configuration.

  • Use read-only tokens, kept in a secrets store or an .env file.
  • Scan settings and memory for known credential patterns before they are saved or shared.
  • If a token was exposed, rotate it.
More in the courseAdd a credential scan before memory is saved or shared, test it with planted fake secrets, and practise rotating a disposable test key.
Excerpt of an agent settings file, synthetic valuessample credentials found: 0 of 3

Give the agents one design to follow

Without a reference, agents build interfaces with the same generic look, and each session drifts a little further.

  • Get a reference first: a mockup generated in HTML by Claude, Codex or ChatGPT, or a page or template you found online.
  • Ask the agent to take its colours, type, spacing and components, and to write them down as design rules in the project.
  • Every new screen then follows those rules, whichever agent builds it.

More in the courseTurn a reference page into design rules your agents follow, and check new screens against them.

03

Building with Claude Code

Planning, the agent loop, skills, MCP servers and hooks.

In the scenarioClaude Code builds a page that combines host and service data on one map.

Start with a plan

Start Claude Code in plan mode. It proposes the build, and you review and approve it before any code is written:

  • read hosts and guests from the hypervisor API
  • read status from the monitoring API
  • read service names from the proxy configuration
  • draw the map and check it in a browser

The agent loop

What the agent does, step by step

A typical loop:

  • the model reads its context and answers, asks for input or requests a tool call
  • the harness runs the tool and returns the result
  • it pauses for your input or approval and resumes when you reply, or ends with an answer or a limit

Skills for repeated work

The discovery and debugging steps are written down once, as skills.

  • The agent sees each skill's name and description.
  • The agent uses the description to decide whether to load that SKILL.md.
  • You can also call a skill by name.

Writing SKILL.md

A skill is a folder with SKILL.md as its entry point: a name, a description in the words people use, then the steps. The figure writes the discovery skill and tests it three ways:

  • a request that should trigger it
  • one that should not
  • calling it by name

SKILL.md

Tests

MCP servers and approval

Claude Code checks the map in a real browser through an MCP server (Model Context Protocol, a standard way to give an agent extra tools).

  • Each MCP server can offer tools, resources and prompts.
  • Each server is listed in the project settings, and the harness asks before using a new one.
  • An unknown server is held back until someone has reviewed it.
ToolsPlaywright MCP, the reference Filesystem and Fetch servers · Claude Code keeps shared project servers in .mcp.json

What hooks are for

After every file edit made through Claude Code's edit tools, a hook runs the platform's self-test against a saved snapshot of the homelab.

  • It runs whether the agent remembers or not.
  • Other uses: formatting files, blocking a command.
  • The figure shows ten illustrative edits.
More in the courseWrite a hook that runs the tests after an edit and one that blocks a command, and test how both behave on an error or a timeout.

What the final product looks like (more or less)

A screen from the real map, redrawn with made-up names and no addresses.

  • Summary at the top: machines that need attention, containers, open problems.
  • Every guest on the server, with one square per service.
  • Select a machine to see its details and problems, or update it with one button.
04

Adding a feature with Codex

Handing work between agents, a shared task board, and reviewing what you install.

In the scenarioCodex adds uptime for each service, starting from Claude Code's handoff.

Handing the project to Codex

Both tools are set up to read the shared instructions and skills. Codex opens the handoff note Claude Code left and takes the uptime task from the board:

  • no briefing needed
  • the handoff says what is done, what is in progress and what is next
More in the courseConnect two harnesses to one shared source and pass a task from one agent to the other with a handoff.
Instructions and skills go out; handoffs come back

Collaborating with agents like with real people

The build, the feature and the bugs share one board. Agents take tasks and move them to Review, and you approve them. Colour and label show who has each item: Claude Code, Codex, Hermes and you.

More in the courseConnect an agent to a task tracker through its API, have it update a task, and schedule a job with alerts for failed and missing runs.
Task boardexample items

Auditing a third-party skill

Security consideration

Read a downloaded skill before you install it

Codex finds a charting skill online for the uptime feature. Before it is installed, someone reads it: a skill can tell the agent to run commands, even without scripts.

More in the courseLearn a safe way to review a skill package, then audit a sample with planted problems and cite the line for each finding.
05

Troubleshooting from Telegram

Asking an agent for help from your phone, searching past sessions, and how sensitive data and instructions from a web page are handled.

In the scenarioA service shows as down. Hermes finds that its uptime check uses an old address and updates it after you approve. On the way, the logs contain sensitive data and a forum post contains a hidden instruction.

Troubleshooting from Telegram

Fixing a bug from your phone

Hermes runs on the server and answers in Telegram.

  • It has its own profile and a restricted account.
  • It reads the monitoring data and the logs.
  • It can change one thing, the monitoring checks, and only after your OK.
  • It saves what it learned for the other agents.
More in the courseSet up an agent you can reach from your phone, with its own profile and an approval step before changes.
Hermesbot · Telegram

Transcript search

Find what an agent did weeks ago

Hermes finds which session configured the outdated check. The transcripts of all three agents can be searched.

More in the courseLearn how to search through the transcripts of your agents.

Security consideration

Sandbox access for untrusted material

Hermes reads a forum post with a suggested fix. The post hides instructions for the agent, which is called prompt injection, so Hermes reads it in a sandbox.

  • The sandbox reaches only approved sites, with no credentials and no workspace files.
  • Whatever the page says, Hermes still asks for your approval before it changes anything.
More in the courseBuild a sandbox, test it with a page that hides instructions, and give each agent its own profile and credentials.

Privacy consideration

Requests are classified, masked and routed

The logs Hermes needs contain email addresses and public IP addresses. A gateway masks the sensitive data it finds before a request reaches a model, though it can miss some.

  • Restricted or unclassified: a local model.
  • Confidential work that needs a larger model: a confidential computing provider, where the model runs in a TEE.
  • General requests: a cloud model.
  • The gateway logs only the masked text.
More in the courseClassification techniques, a gateway test with synthetic data, and how much privacy a local model, a confidential computing provider and a cloud model each give.
06

Lessons learned

From my own setup: what went wrong along the way, and what changed because of it.

Lesson

Agents and meta-harness sprawl

Over time I added eight harnesses and meta-harnesses to my setup.

  • Each kept its own memory, skills and credentials.
  • It became hard to tell which agent knew what, and where each key was.
  • The fix: one main meta-harness, one main harness and one main model.
  • The other meta-harnesses were retired; Codex and Pi stay for specific purposes.
Month 1 memory · skills · credentials

Lesson

Instructions, files and the conversation share one context window

API output, configuration files and the conversation all use the same context window. When it gets close to full, many harnesses summarise the earlier context, and some detail can be left out.

ToolsClaude Code: /context shows what fills the window, /compact summarises the conversation to free space
0%Session start100%

Lesson

Token savings: what I tried

I tried plugins to cut token use:

  • context-mode keeps large tool output out of the conversation and returns a short summary.
  • Ponytail asks the agent for the smallest complete change.
  • They seem to help, but I have not measured them properly, so part of it may be placebo.
  • The figure is an illustrative index, not a measurement.
100main-session tokens, index
Amber line: starting pointSelect options to compare

The course

Before and after the course

Most people start with one terminal on a laptop, one project folder, and the lid kept open so the agent keeps running.

  • After the course: several agents work in one setup, on a VM or a VPS.
  • They share memory and skills, and a project board shows what each one is working on.
  • Jobs run on a schedule, without you at the keyboard.
  • You check in and approve changes from a laptop, tablet or phone.

Hands-on course: build your own agent setup

The talk covers each part in a few minutes. In the course you build the same project on your own machine: a small discovery page for your own lab with Claude Code, a feature added with Codex, and an agent you can reach from your phone. You leave with a working setup, your own skills and the rules you wrote during the day.

Format
[One day, or a series of sessions]
Date
[Date]
Place
[Place or online]
Price
€579 per person. With the code ALTXAI: €479.
Who it is for
People who use, or are ready to start with, a harness such as Claude Code or Codex
Before the course
Install Claude Code or Codex, sign in, and run one task in a project folder. A short preparation exercise helps if you need practice.
Ask about the course
Altrix Systems · Málaga, Spain