Welcome to BxAgents

What you will build, how to follow along with no account and no key, and how each lesson is organized.

On this page

Welcome to BxAgents

This is a hands-on course on BxAgents, a conventions-based AI agent framework for BoxLang, built on ColdBox and BX AI. The idea is simple: you describe an agent with files and folders, not a framework's API, and one command, bxAgents build, assembles a real, runnable ColdBox application out of it.

acme-support/
β”œβ”€β”€ Agent.yml          # name, model, settings
β”œβ”€β”€ instructions.md    # the system prompt
β”œβ”€β”€ tools/             # @AITool functions
β”œβ”€β”€ skills/            # SKILL.md capabilities
β”œβ”€β”€ subagents/         # nested agent trees
β”œβ”€β”€ gateways/          # HTTP, MCP, web app, chat platforms
β”œβ”€β”€ schedules/         # BoxLang schedulers
β”œβ”€β”€ mcp/               # MCP servers you host
β”œβ”€β”€ interceptors/      # lifecycle hooks
β”œβ”€β”€ extensions/        # chat commands, keys and more
└── modules/           # module dependencies

Every folder is optional except Agent.yml. Add the ones your agent needs and leave the rest empty.

What you will build

You build one agent, from the first lesson to the last: Acme support, an assistant that answers questions about orders, returns and shipping. By the end it has:

  • a persona, a tool that looks up an order, a skill with the refund policy, and two models to switch between
  • a researcher and a writer it can delegate to
  • a web app, a terminal chat and an HTTP API in front of it
  • a routine that runs on its own and saves a report, and approvals where a person has to say yes
  • notes it keeps about people, accounts and tokens for who is allowed, and a vault for a secret
  • a test suite that runs with no key, a backup, and a packaged .bxa ready to deploy

You need no account and no key

The agent talks to a scripted model: a small server on your machine that speaks the same protocol as a real model but only says what the course told it to. A Model That Needs No Key sets it up in five minutes, and from then on every command in the course gives the output the lesson shows. When you do have a key, swapping it in is two lines, and the last lesson shows them. What you need:

  • A terminal with a Unix shell (macOS, Linux, or WSL on Windows).
  • About 20 minutes per lesson if you type along. There are 29 lessons, so plan a weekend rather than an evening, and stop wherever a lesson ends: each one leaves the project working.
  • No BoxLang or ColdBox experience. Installing BxAgents installs everything.

How the lessons work

Each lesson explains one thing and then has you do it. The parts of a lesson:

  • Try it holds what you type. A grey block titled Terminal 2 is a command, a block titled with a path such as acme-support/Agent.yml is a file to create, and a block titled You see is what the command prints. A <anything> in it stands for the part that differs on your machine (a path, a time).
  • Checkpoint says what acme-support/ holds now. If your project gets out of step, kit/resume.sh <lesson> puts it back to the state after that lesson, and you rebuild.
  • A link to the reference page for the deep dive. The course is the guided path; Conventions is the exhaustive reference you will come back to.

You will use up to three terminals: Terminal 1 runs the scripted model and stays open, Terminal 2 is where you work, and Terminal 3 runs bxAgents serve from the web app lesson on.

Every command and every output in the course is replayed against the scripted model by a checker in the repository (tools/course/check-course.bxs), so the text cannot drift from what the software does. The few steps that need a person and a screen (the terminal chat, clicking in the web app) are marked as manual and shown with screenshots.

The parts of the course

  1. Start: what BxAgents is, installing it, the scripted model and your first project.
  2. The agent: Agent.yml, the persona, building and talking to it.
  3. Teach it: tools, skills and models and profiles.
  4. The web app: the web app, approvals, memory and notes and subagents.
  5. On its own: routines and reports and schedulers.
  6. Reach people: HTTP and MCP, chat platforms and MCP servers and connectors.
  7. Run it for a team: who is allowed, the vault, each person's settings and logs, usage and backups.
  8. Extend and ship: interceptors and extensions, testing, packaging and deploying and the capstone.

Next: What Is BxAgents?

Edit this page Download Markdown Last updated Nov 26, 2026, 8:45:51 AM Report an issue
Lesson 1 of 29 - Introduction to BxAgents