Introduction to BxAgents
A 29-lesson hands-on course that builds one support agent, from a model that needs no key to a packaged, tested agent with a web app, routines, people and secrets.
Introduction to BxAgents
Twenty-nine lessons, one agent. You install the CLI, start a scripted model that needs no account and no key, and build
Acme support a lesson at a time: its instructions, a tool, a skill, subagents and profiles, then the web app, approvals,
memory, routines, access control, a vault for secrets, per-person settings, logs and backups, tests, and a packaged .bxa.
Every command in the course is replayed against the scripted model by a checker, and each lesson ends with a checkpoint you can
restore if you get lost. Every lesson links back to the full Conventions reference for the
deep dive; this course is the guided path through it.
Each lesson tracks your progress in this browser (no account needed): visit a lesson and it's marked read, and Continue where you left off below picks up right where you stopped.
- Welcome to BxAgentsWhat you will build, how to follow along with no account and no key, and how each lesson is organized.
- What Is BxAgents?Why conventions over configuration, and why assembly happens once at build time.
- Installing BxAgentsInstall BoxLang and BxAgents, and verify the bxAgents command works.
- A Model That Needs No KeyStart a scripted stand-in for an AI model and build your first agent against it, with no account and no key.
- Scaffolding Your First AgentRun bxAgents new and see exactly what it creates for you.
- The Agent Definition - Agent.ymlThe one required file - a plain YAML file that says what your agent is.
- instructions.md and the System PromptThe optional file that becomes your agent's system prompt.
- Building Your AgentbxAgents build and the five-phase pipeline that turns your project into an app.
- Talking to Your Agentchat, invoke and serve - three ways in to the exact same built agent.
- Giving Your Agent ToolsAny @AITool-annotated function under tools/ becomes a callable tool.
- Packaging SkillsClaude Agent Skills - one subfolder per SKILL.md, loaded on demand.
- Models and ProfilesChoose the default model, set up other providers and name combinations such as fast and planner, all in Agent.yml.
- The Web AppServe the agent and meet the web app that comes with it - a chat, your conversations, the registry, settings and more.
- The Agent Asks FirstWhy a run stops for a person, who is allowed to approve it, and what Approve, Approve for the conversation and Reject do.
- What It Remembers, and for WhomTell conversation memory, a person's notes and the agent's own notes apart, and manage each from a terminal and from the web app.
- Composing SubagentsNested agents, each an ordinary BxAgents project of its own, wired as callable tools.
- Routines and ReportsMake a routine by asking, watch it run on the heartbeat, and read the report it saved.
- Scheduling Background Workschedules/*.bx - BoxLang schedulers, one file each, saying when with the task's own methods.
- Exposing Your Agent over HTTP and MCPgateways/ entries with an exposes key turn your agent into a real HTTP route.
- Connecting Chat PlatformsChannel-adapter gateways - nine chat platforms plus http/cli/mock, all one GatewaySession.
- Hosting and Consuming MCP ServersMCP in both directions - consume remote servers from Agent.yml, host your own under mcp/.
- Who Is AllowedMove from an open local server to named people with roles, and to access tokens for programs, and see what each can reach.
- Secrets the Agent May UseStore a credential once, let the agent use it only for named hosts, and see every use in an audit list.
- Each Person's Own SettingsLet a person change the agent for themselves without touching the project, and know who wins when two files disagree.
- Logs, Usage and BackupsAnswer three questions about a running agent - what is it doing, what does it cost, and can I get it back.
- Interceptors and Module DependenciesColdBox lifecycle hooks scoped by @scope, and BoxLang module dependencies under modules/.
- Testing Your AgentA ready-to-run TestBox suite, mockResponses(), and matchers built for agent behavior.
- Packaging, Deploying, and Wrapping UpPackage to a .bxa, ship it to a real target, and where to go from here.
- Ship Acme SupportProve the whole agent works as one, swap in a real model with two lines, and see where to go next.
The eight parts
| Part | Lessons |
|---|---|
| Start | What BxAgents is, installing it, a model that needs no key, your first project |
| The agent | Agent.yml, the persona, building, and the terminal chat, invoke and serve |
| Teach it | A tool, a skill, and fast and planner models |
| The web app | Serving it, approvals, memory and notes, subagents |
| On its own | Routines and reports, and developer schedulers |
| Reach people | HTTP and MCP, chat platforms, MCP servers and connectors |
| Run it for a team | Accounts and tokens, the vault, each person's settings, logs, usage and backups |
| Extend and ship | Interceptors and extensions, tests, packaging and deploying, a capstone |
Who this is for
Anyone who wants to build an AI agent without hand-wiring a framework's API surface: you describe an agent with files
and folders, and bxAgents build assembles a real, runnable ColdBox application out of it.
No prior BoxLang or ColdBox experience is assumed, though it helps, and you need no API key.
What you'll have built by the last lesson
Acme support: an agent with its own tool, a skill and two subagents, reachable from a terminal chat, a web app and an HTTP
API, with a routine that saves reports, approvals where a person must say yes, notes, accounts and tokens, a vault, tests
that run with no key, a backup, and a packaged .bxa ready to deploy.
Ready? Start with Welcome to BxAgents.