BoxLang 🚀 A New JVM Dynamic Language Learn More...
|:------------------------------------------------------: |
| ⚡︎ B x A g e n t s ⚡︎
| Build AI Agents by Convention
|:------------------------------------------------------: |
Copyright Since 2023 by Ortus Solutions, Corp
www.boxlang.io | www.ortussolutions.com
Â
BxAgents is a conventions-based framework for
building AI agents your team can ship, powered by BoxLang AI and built on ColdBox. You describe an agent with
files and folders (Agent.yml,
instructions.md, and whichever of tools/,
skills/, subagents/, gateways/,
schedules/, mcp/,
interceptors/, modules/ it needs) and
bxAgents build assembles a real ColdBox application
from them, once, at build time: a thirteen-page web
app, an HTTP API with OpenAPI, gateways, routines, a vault and
backups. Serve it, chat with it in the terminal, or package it as a
portable .bxa.
Documentation: bxagents.ai (source in docs/). Free course: Introduction to BxAgents, 20 lessons from install to a deployed agent.
install-bx-module bx-agents. It
bundles bx-ai, bx-sqlite,
bx-ftp, bx-mail, bx-yaml,
bx-markdown, ColdBox, qb,
cbsecurity, cbauth and
cbmailservices, so there is nothing else to install.boxlang-miniserver on your PATH, for
serve, chat --server and invoke
--server. The other verbs do not need it.box) only to fetch TestBox for bxAgents
test. new still works without it and prints the
command to run later.mock provider to try it with none).See Installation.
install-bx-module bx-agents
bxAgents new my-agent --model=openai/gpt-5 # at a terminal, plain `bxAgents new my-agent` asks questions instead
cd my-agent # put OPENAI_API_KEY in .env; edit instructions.md
bxAgents doctor # checks the runtime and the project
bxAgents build # assembles the app into .build/
bxAgents chat # full-screen terminal chat; or: bxAgents serve --port=8080
No API key yet? Scaffold with --model=mock/mock-model
and the agent answers with a canned reply. Checked end to end with
that model: after bxAgents serve --port=8080, GET
/__bxagents/health answers
{"success":true,"status":"ok"}
and POST /__bxagents/invoke with
{"message":"hi"} answers Mock response.
new can also start from one of 8 built-in
--templates, clone a GitHub repo
(--repo=owner/repo) or install a ForgeBox package
(--forgebox=<slug>); see Agent Templates. The full
walk-through is the Quick Start.
| Web app | A left menu and thirteen pages: Chat, Conversations, Routines, Registry, Connectors, Memory, Vault and Settings for everyone; Agent, Gateways, Logs, Access and Data and backups for admins. Light and dark, phone layout. Guide |
| Terminal chat | Full screen with a header, a footer, a
slash-command menu, /settings, notes, sessions,
@file and picture attachments, a context meter.
--server starts its own server,
--connect=<url> joins a deployed one. Guide |
| API | One HTTP API at /__bxagents with an
OpenAPI document and a BoxLang client. Guide |
| Gateways | Slack, Telegram, Discord, Teams, WhatsApp,
Twilio SMS, GitHub, Signal and email, plus http,
cli and mock; an agent can also be
exposed as a REST path or an MCP server. Gateways |
| Routines and reports | People ask, the agent creates a routine, a heartbeat runs it, reports are saved and can be sent to a gateway chat. Developers write schedules too. Routines |
| Vault and connectors | API keys sealed in the database and never shown to the model, per person if you like; a catalog of connectors and per-person OAuth sign-in for MCP servers. Vault, Connectors, Connect |
| Settings in layers | The person who installs an agent
can override its settings from
~/.bxagents/Agent.yml (every agent) or
~/.bxagents/<agent>/Agent.yml (one agent). Layered settings |
| Access | Access tokens for the API, and users with admin
and member roles for the web app. agentApi
|
| Data and backups | One data home per agent
(~/.bxagents/<name>/ by default) with chat
database, files, skills and volumes; backup and
restore. Data |
| Extend and test | Sub-agents, skills, interceptors, extensions, and specs
that run with mockResponses() and no API key. Testing |
| Ship | bxAgents package makes a
.bxa; deploy targets local, SSH, FTP,
SFTP, Docker and DigitalOcean. Deploy |
Live counts of verbs, slash commands, API routes, pages, gateway
types, starters, connectors, skills, deploy targets, examples and
lessons come from python3 tools/docs-counts.py; at the
time of writing that is 29 verbs, 36 slash commands, 82 API routes, 13
pages, 12 gateway types, 8 starters, 7 connectors, 6 shipped skills, 6
deploy targets, 20 examples and 20 lessons.
Watch the web app
trailer (just over three minutes, narrated, with captions). The
terminal chat and the new wizard:
The recordings and screenshots come from a demo project and a
scripted stand-in for a model (tools/demo/fakellm.bxs
), so the answers are canned. The same kit renders the trailers
and screenshots under tools/demo
.
bxAgents <verb> (or boxlang module:bxagents
<verb>); bxAgents --help lists them, and the
CLI reference has every flag.
| Verb | What it does |
|---|---|
new, add
| Scaffold a project (a wizard at a terminal); add a tool, skill, sub-agent, gateway, schedule, MCP server, profile, provider, capability or extension |
build, clean
| Build the project into .build/; remove
.build/ and dist/
|
chat, invoke, serve
| Terminal chat, one message in and out, serve over HTTP |
doctor, inspect
| Check the runtime and project; report how the agent is composed |
test, models
| Run the project's specs; list and test the models it can talk to |
package, deploy
| Make a .bxa; deploy it to a target |
sessions, notes, routines
| Conversations, notes and routines of an agent |
vault, connect, connectors
| Sealed secrets, connector and MCP sign-in, the connector catalog |
token, users, hash-password
| Access tokens, web app sign-in accounts and roles, password hashes |
data, backup, restore,
logs, stats
| The data home, backups, logs, token usage |
skills, extensions
| Skills from the registry; chat extensions |
build producesmy-agent/ your source: Agent.yml, instructions.md, tools/, skills/, ...
└── .build/
├── app/ the generated ColdBox application
├── public/ the web root: the only folder a server serves
├── lib/ ColdBox and its modules
├── runtime/ engine config and the BoxLang home; only the bxagents module is loaded
├── boxlang_modules/
├── manifest.json
└── miniserver.json
Rebuild any app made before this layout; serve refuses
it and says so. See the build pipeline.
public/ is served. Files outside it
(Agent.yml, instructions.md,
config/, skills/) answer 404, and only
index.bxm is executed by address.serve binds to 127.0.0.1; pass
--host=0.0.0.0 deliberately. A built app is open on
your own machine; to share it set agentApi tokens or
access: token, and turn on web app sign-in.
allowedIPs and a rate limit are available..env or the vault, never in
Agent.yml; packaging redacts them. See Deployment & Secrets./srv/bxapp (not /app, which is also the
ColdBox mapping name) and was run in real Docker: health, the web UI
and its assets answer, and config and project files return 404. A
model call from inside the container and gateways other than web
were not tested. Check /__bxagents/health after your
first deploy.
examples/
holds 20 buildable projects (11 core conventions and one per
push-style chat gateway), built in CI as a regression gate.
Version 1.0 is in development (the Unreleased section of
the changelog); the docs for it live in
docs/versions/1.0.x/. Licensed under Apache-2.0.
The rest of this readme covers developing BxAgents itself (this
repo), not building an agent with it. Read AGENTS.md first: it holds the project rules and
the BoxLang and ColdBox gotchas. See CONTRIBUTING.md
for the actual edit/test loop - BoxLang is a dynamic language, so it
isn't the usual edit-compile-run cycle, and there's a real subtlety
around how this module's own classes reference each other that's worth
reading before you touch src/main/bx.
.github/workflows - GitHub Actions to test and build
the module via CIdocs/ - user documentation, a bx-sites site (see Working on the docs)examples/ - working sample agent projects, built as a
CI regression gate (./gradlew verifyExamples)src/main/bx - the BoxLang source:
ModuleConfig.bx (CLI entry point),
models/build (the build pipeline: config resolution,
discovery, validation, manifest, and code generators),
models/cli (one class per CLI verb)src/main/java - supporting Java (packager, miniserver
launcher, dynamic class loader, key dictionary)src/main/bx/bxagentsui,
src/main/bx/catalog, src/main/bx/skills -
the generated web app module, the connector catalog and the skills
the module shipsui/ - the web app's front-end sources (npm; npm
run lint, npm run lint:md, npm
test); its build is committed under src/main/bx/bxagentsui/includes/build
tools/ - docs-counts.py (the numbers the
docs state), the demo and screenshot kit in
tools/demo/, generators and the ColdBox template
refresh scriptplans/, completions/ - design notes and
the shell completionssrc/test - JUnit (Java-level) tests and fixturestests/ - the TestBox BDD suite
(tests/specs), including the ColdBox-dependent
integration specs under tests/specs/integration/coldbox
box.json - published to ForgeBox; also declares the
bxAgents native CLI executablebuild.gradle - the Gradle build file, including every
verification task belowBuilding needs Java and Node 24 (see ui/.nvmrc). Before
you get started, fetch the BoxLang binary (until this module is
published to Maven):
./gradlew downloadBoxLang # BoxLang core, MiniServer, and bundled BX Agents modules
| Task | Description |
|---|---|
build
| The default lifecycle task: clean,
assemble, and others. |
clean
| Deletes the build folder. |
compileJava
| Compiles Java source in src/main/java. |
uiBuild
| Builds the web app in ui/ with Vite
(npm ci, npm run build) into
src/main/bx/bxagentsui/includes/build (not
committed). Needs Node 24; createModuleStructure
and so shadowJar run it. |
test
| Runs the JUnit suite. |
testBx
| Runs the TestBox BDD suite (tests/specs,
excluding the ColdBox-dependent bundle) via
runTests.bxs. Runs installDevLibs
first for TestBox. |
testColdBoxIntegration
| Boots a real boxlang-miniserver against a
generated app and hits a toAi() route over real
HTTP, via runColdBoxIntegrationTests.bxs. Needs the
miniserver jar; ColdBox and its modules come from the module's
bundled lib/. |
verifyExamples
| Builds every project under examples/ through
the real build pipeline via verifyExamples.bxs - a
regression net across the whole feature matrix. |
checkTemplateTokens
| Fails if any leftover @MODULE_*@
boxlang-module-template placeholder tokens remain anywhere in
the repo. Runs as part of check. |
downloadBoxLang
| Downloads the BoxLang core and boxlang-miniserver
binaries into src/test/resources/libs, then
downloads all bundled BoxLang modules. |
downloadModules
| Downloads the bundled BoxLang modules (bx-ai, bx-ftp,
bx-sqlite, bx-mail, bx-yaml, bx-markdown; versions in
gradle.properties) into
build/bundle-modules. Runs automatically after downloadBoxLang. |
installLibs
| Runs box install --production (CommandBox
required) against src/main/lib/box.json, staging
ColdBox, qb, cbsecurity, cbauth and cbmailservices in
build/lib-prod; the module zip ships them as lib/. |
installDevLibs
| Same manifest, full box install into
build/lib-stage: adds TestBox (a devDependency,
never shipped). The test tasks run it for you. |
jar / shadowJar
| Packages compiled classes/resources into a JAR under build/libs. |
javadoc
| Generates Javadocs into build/docs/javadoc. |
spotlessApply / spotlessCheck
| Formats / checks code formatting. |
tasks
| Lists every available Gradle task. |
Run the full local verification pass with:
./gradlew shadowJar checkTemplateTokens test testBx testColdBoxIntegration verifyExamples
cd ui && npm ci && npm run lint:md # docs/, changelog.md and this readme
If running tests via the VSCode test explorer, remove the
/src/main/resources classpath entry first (Java Projects
panel → the 3 dots → Configure Classpath), or BoxLang core will try
loading service loaders it finds there. Module development only.
CI clones, tests, packages, and deploys this module to ForgeBox and the Ortus S3 accounts. The following repository environment variables are required (most are already set at the org level):
FORGEBOX_API_TOKEN - the Ortus ForgeBox API token (the
name release.yml actually reads)AWS_ACCESS_KEY / AWS_ACCESS_SECRET - the
S3 credentialsContact #infrastructure for these credentials if needed.
Optionally, NOVITA_API_KEY (a Novita AI API key) enables one real,
live LLM integration test - see tests/specs/integration/LiveLlmSpec.bx
. It's genuinely optional: unset, that spec reports as cleanly
"Skipped" rather than failing, so a fork PR without it still
runs the rest of the suite.
docs/ is a bx-sites site - plain
Markdown, where the folder structure is the navigation and
docs/nav.json overrides the order.
bxsites.yaml at the repo root holds the site config.
# once - bx-sites depends on bx-markdown, bx-esapi, bx-yaml and bx-image;
# all four install automatically as box.json dependencies
install-bx-module bx-sites
bxSites serve # live-reloading preview on http://127.0.0.1:8080 - saves rebuild in ~1-2s, not a full site rebuild
bxSites build # render docs/ to site/ (gitignored)
bxSites doctor # environment/config health check
bxSites audit # CI-grade broken-link/missing-alt gate over an already-built site/
bxSites lint # pre-build content checks on the raw docs/ Markdown
bxSites build needs no network and takes about 35 seconds
here (it builds the released tree, /next/ and the Spanish
locale). bxSites lint (about 4 seconds) checks the
Markdown, and bxSites audit (about 5 seconds, after a
build) is the broken-link and missing-alt check CI-grade; run both
before pushing docs. A screenshot a page names but that does not exist
fails the audit.
Every page starts with a small frontmatter block (title,
icon, summary, description,
tags); summary renders under the page title,
description is meta-only, and tags become
clickable badges plus a site-wide /tags/ index. Scaffold
a new one with bxSites page:new --path=guides/setup.md,
or move one (rewriting every relative Markdown link that pointed at
it) with bxSites page:rename --from=... --to=....
The homepage is not Markdown. docs/.theme/ is an ejected
copy of the bx-sites bootstrap theme (an override wins
outright, so it has to be the whole theme), and its
home.bxm hardcodes the landing page;
docs/index.md only selects it with layout:
home, and its body is kept for search and the MCP index. The
look lives in docs/.theme/assets/agents-home.{css,js},
every class there is prefixed bxa- so nothing collides
with bootstrap, and agents-data.js holds the real
scaffolder output and HTTP capture the page shows. The walkthrough
videos under docs/assets/video/ are recordings of real
runs. When bx-sites ships theme changes you want, re-eject
bootstrap and carry home.bxm over.
bxsites.yaml turns on generateOgImages (a
distinct 1200x630 social card per page, built from its
title/description, falling back to
ogImage: assets/home-banner.jpg for anything the
generator can't handle) and pageActions (the per-page
copy/view-as-Markdown/open-in-AI-chat/PDF/share menu).
sitemap.xml, robots.txt and
llms.txt are generated for free once baseURL
is an absolute URL, which it already is here - no extra config needed.
The Spanish translation under
docs/versions/1.0.x/i18n/es/ covers page content; the
surrounding theme chrome (search placeholder, "On this
page," "Edit this page," the 404 page, ...) is
translated automatically too - bx-sites ships built-in
es/de/ja chrome translations
out of the box, so nothing extra needs configuring for those locales.
Note the path: a translation has to live inside the tree that actually
builds at the site root (docs/versions/1.0.x/, per
versions.default), not under docs/i18n/ -
see CONTRIBUTING.md for why. German and
Japanese are parked under translations-wip/ until they
reach parity.
.github/workflows/docs.yml publishes straight to the site
root (https://bxagents.ai) for
whichever branch it runs on. Versioning is handled inside the docs
themselves via bx-sites' own versions: support -
bxsites.yaml's versions.default
(1.0.x) builds at the root, and in-progress docs build
under /next/.
This follows bx-sites'
own documented deployment approach: the workflow builds
site/ and pushes it to a
gh-pages
branch with keep_files: true.
The repository's Settings -> Pages -> Build and
deployment -> Source must be Deploy from a
branch ->
gh-pages
->
/ (root)
. The first successful run creates gh-pages, so
set it after that run completes; no workflow file can set it for itself.
Do not point that setting at
development (or any other source branch), and do
not add a root .nojekyll to quiet a
failing Jekyll build. A branch source other than gh-pages
makes GitHub run its built-in Jekyll pipeline over the whole
repository root - which is not a Jekyll site - and a
.nojekyll would only make that pipeline succeed,
publishing the raw repo over these docs.
BoxLang is a professional open-source project and it is completely funded by the community and Ortus Solutions, Corp. Ortus Patreons get many benefits like a cfcasts account, a FORGEBOX Pro account and so much more. If you are interested in becoming a sponsor, please visit our patronage page: https://patreon.com/ortussolutions
"I am the way, and the truth, and the life; no one comes to the Father, but by me (JESUS)" Jn 14:1-12
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
meta() (group, usage, actions, options, examples) and does its work in handle() or handle<Action>(); BaseVerb checks the project root, picks the action, answers --json once and gives the helpers for options, results and output. The help, the shell completions and the usage, actions and options of docs/cli-reference.md are made from meta(), so a flag is described once. What a person sees is the same: a snapshot of every help page pins it./embeds) has a search (name and websites), a state filter (All, On, Off, Expired), a switch to turn each embed on or off at once, and Edit and Delete. New (/embeds/new) and Edit (/embeds/<id>) are separate pages, each with its own handler action and view; saving a new embed keeps the page, which is then the edit of that embed. Leaving with changes that are not saved asks first.POST /embeds/delete, bxAgents embed delete --id=..., and Delete on the page). It removes the embed for good, with its signing key and its counters; turning it off stays the way to keep one. The API has 89 routes now.look, limits or target keeps the fields it does not send; a 429 of an embed carries Retry-After; a colour or tool name with a line break after it is refused; an origin written with the scheme's own port (:443, :80) is stored without it, as a browser sends it.endpoints) and extra parameters (params, such as access_type: offline) on an app: own method, and OAuthApp does the authorization code flow with PKCE, keeps the tokens sealed per person in the vault, renews them and revokes them on disconnect. The admin sets GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET once. A connector can say onDisconnect: purge: the agent notes which conversations used it, and when the person disconnects it the answers in those conversations are replaced by a note (their own messages stay). Also fixed: the tools drawer of a public (no sign in) server listed its tools through the sign in side and failed.header and prefix on a bearer method: Bigdata.com, Meltwater, Metricool, Daloopa, Wix). A host can be chosen from a fixed list (https://{site}/mcp with an option of target: host and its choices: Datadog, and Mixpanel's US, EU and India regions). A web connector can be a public server with no sign in (auth: none: Excalidraw). A sign in can use an app of the admin's own (app: own with envVars naming the client id and secret, read when the agent starts and never written to a file: Slack, Asana, Box, Canva, HubSpot, X Ads); until it is set the connector says an admin has to set it up. The web page, the terminal and connectors show explain each. Connectors with a token in another header or a host list are offered as connectors only, not by --mcp.category (Developer, Productivity, Sales, Finance, Analytics, Microsoft 365, Social Media, Advertising or Apps). GET /connectors returns categories and a category on each row; the web page shows one section per category, bxAgents connectors, connect and /connect print a heading for each, and the docs page is written by category. The wizard's "Leave out any connectors?" list and --connectors now cover every connector, including the ones a person only signs in to (it listed only those with a token before). Icons of the connector files are checked against the web app's sprite by a spec.new can set up LM Studio and llama.cpp. Both are in the provider list of the wizard (no key). Each asks for the model id the server lists and the address it listens on, with the usual one filled in (http://127.0.0.1:1234/v1 and http://127.0.0.1:8080/v1), writes the model as openai-compatible/<id> and the address under providers: in Agent.yml. Without the wizard: --model=openai-compatible/<id> --base-url=<address>.look.icon for an embed, and agentApi.embeds: false. An admin picks the widget's button icon from five built-in glyphs (chat is the default, so nothing changes for an embed that has none). agentApi.embeds: false is a master switch that writes no embed route, hides the Embeds page and leaves the embed operations out of the OpenAPI document.<bx-agent mode="preview">, drawn from the form, no network), the snippet panel gives HTML, iframe, web component and curl with a note and a Copy button each, and the last seven days are real counters or "No visits yet". Save, Disable and Rotate key (both ask first). Admin only, from the new embeds capability. Browser tests cover the page and visitors of other websites from real servers on other ports; axe checks the page in light, dark, desktop and phone.widget.js is a plain-JavaScript <bx-agent> element (launcher and panel, or the whole page with mode="page") with the look from /config, a streamed answer, a transcript kept in localStorage, and the accessibility the spec asks for (focus management, Esc, a polite status region, reduced motion, colour contrast chosen from the embed's colour). One <script data-embed> tag adds it. The hosted page (/embed/<id>/frame) runs on the agent's own origin, which is now always accepted, and a same-origin GET is recognised by Sec-Fetch-Site. Found by running it in a browser: the hosted page drew nothing before that.TurnRunner sets usageMetadata.embedId from the verified session) it takes the tools the embed does not list out of what the model is offered, and refuses a call to one that is not listed; any other turn is left alone and reads no database. It follows the embed's list as the admin changes it and allows no tool for an embed that is off, expired or unreadable. Measured on a served app: the visitor's model was offered only docs_search, the admin's four tools, and a delete_all the visitor asked for did not run.GET <api>/embed/widget.js, GET /embed/<id>/config, POST /embed/<id>/session, POST /embed/<id>/events (an SSE stream, run in this process through the same TurnRunner), POST /embed/<id>/cancel, GET /embed/<id>/history and GET /embed/<id>/frame (with Content-Security-Policy: frame-ancestors for the embed's websites). They sit outside the token gate and the address guards, with their own checks: the embed is live (an unknown, off or expired one all answer 404), the Origin is one of its websites (403, counted), a session signed with the embed's own key and bound to the website it was issued to (401), a per-visitor limit per minute, a daily cap and a message length limit. A visitor is a Caller of the new least-privilege scope embed (v:<visitor>), made only from a verified session; no regular route accepts one. Conversation ids are made by the server from the visitor. build.gradle now packs models/embed/*.js into the module. Not yet: the embed filter middleware (tool list), the real widget, the Embeds page.bxAgents embed (increment 1 of the agent on another website, for anonymous visitors). An embed is a record in the agent's database (embeds and embed_usage, schema version 15): the look, the tools a visitor may use, the websites that may show it, three limits and a signing key of its own that no route returns. EmbedService validates every field on save and says every problem at once (an origin is exactly scheme, host and optional port: no wildcard, no path, null refused; at least one is required). The admin routes GET/POST /embeds, GET /embeds/get, POST /embeds/update, POST /embeds/rotate, GET /embeds/snippets and GET /embeds/usage are admin only and bring the API to 88 routes; bxAgents embed create|list|show|disable|rotate does the same from a terminal. The public routes, the widget and the Embeds page come next. Spec: Embeds.mcp/) built but failed on every request. The generated Application.bx registered the server's tools with aiToolRegistry().get( name ) before aiToolRegistry().scan( "app.tools" ) had run, so the served app answered No item found in registry for key [search] (examples/mcp-agent and examples/advanced-agent both did). The scan now comes first when a project hosts an MCP server. verifyExamples only builds, so it never saw this; a spec checks the order./skills ran a long skill name into the next column (bxagents-gateways-connecbxagents). The name column is now as wide as the longest name.examples/demo.md is the presenter's script for four live demos (the smallest agent, a team on two models, the web app, the API and MCP) against LM Studio, with the exact Agent.yml lines (providers: openai-compatible: options: baseURL), a pre-flight, recovery lines and a scripted fallback (examples/demo-model.json). tools/demo/fakellm.bxs answers GET /v1/models. examples/api-agent/client.bxs makes a new token name on every run (a second run failed with HTTP 409), and examples/webui-agent/README.md describes the current web app (the page is /chat, not /chat/index.html).agent and every message answered conflict: This conversation belongs to helper. GET /history now also answers agent, the agent the conversation belongs to (new Conversations.ownerOf, owner-checked like the rest of the route), and the chat takes it from there. Covered by a spec and an end-to-end test against a sub-agent of the UI dev agent.GET /routines?all=1 returned only the admin's own routines, and a member asking for all was ignored. The generated handler read all with a flag that accepts only a real JSON true, so the query value 1 (what the Routines page and the contract say) counted as false, while ?all=true worked. Query flags (all on /routines and /sessions, facets) now share one queryFlag(): 1, true and yes in any case are on, 0, false, no, blank or anything else are off, which is what /sessions already accepted. A member who asks for all on /routines now gets 403 forbidden, as on /sessions. Body flags (all, apply of /routines/reports/clean) still need a JSON boolean, and a member who does not ask for all sees what they saw before.GET /sessions, while POST /memory/clear with all: true clears every conversation of every user. The button now reads "Clear everyone's conversation memory", the confirmation says it is everyone's and gives the real totals ("all 12 conversations of all 4 people", from GET /sessions?all=1; "of everyone" when more than 100 conversations make the people count unknown), and an admin with no conversations of their own sees the button when others have some. A member never sees it.POST /cancel and POST /steer passed the client's thread id straight to bx-ai, which keeps its runs by thread id alone, and the client chooses that id (the web page's fallback on plain http is "t-" + Date.now() + ...), so any signed-in member who named another person's id could stop their run or add text to it, and two callers who picked the same id shared one slot. TurnRunner now hands bx-ai u:<caller id, URL-encoded>:<thread id> for every turn, cancel, steer, pending and resume, so a caller can only reach runs it started; the frames and answers the client receives carry its own id. The caller id is URL-encoded so one containing a colon cannot collide with another caller's scope. There is no admin override. The routines' report and notes tools, the usage log and the terminal's stop and steer read or build the same id. A run paused for approval at upgrade time cannot be resumed: its checkpoint is stored under the old id, so /resume finds nothing. Ask again.bxAgents models test failed on the default model of an openai-compatible or Docker Model Runner project with "Provider [OpenAICompatible] is not supported". bx-ai reports such a provider by its display name, and the probe passed that name on instead of the provider id. The probe now maps the name to its id first.bxAgents test printed Error: -1 and exited 0 when a project had no environments.test. The agent could not be built for the test run and TestBox recorded that as a bundle error the runner never read. The run now says which bundle could not start and why, explains how to add environments.test (or a test() in Agent.bx), and exits 1.routines reports, logs, the /routine command and the logs' last-error time were wrong. They used the CFML mask yyyy-mm-dd HH:nn, but BoxLang reads mm as minutes and MM as the month, so 24 November 2026, 13:07 printed as 2026-07-24 13:00. They now use yyyy-MM-dd HH:mm, and the docs examples that used 'yyyy-mm-dd' say 'yyyy-MM-dd'. A spec fails if either wrong mask comes back.src/main/bx/bxagentsui/includes/build/ is git-ignored. ./gradlew uiBuild (npm ci, then npm run build in ui/) makes it, is skipped when ui/ has not changed, and createModuleStructure depends on it, so shadowJar, a release and a snapshot always ship a fresh web app. There is no skip flag: a missing Node or npm, or a major other than 24, fails the build with what to install. ui/.nvmrc and engines pin Node 24, every workflow that runs Gradle sets up Node 24, and the git diff --exit-code freshness check is gone. npm run stack stops with a message when the build is missing. A generated project still never needs Node.images: [ { path } ] in a turn request went to MessageBuilder, which embedded any png, jpg, gif or webp the server could read and answered There is no image file [path] for one it could not. TurnRunner now takes images only when it was built with localImages, which only the in-process terminal does (a caller's source comes from a request header, so it is no proof). Over HTTP, from a gateway or a routine the key is dropped and logged by name; pictures travel as attachments with base64 data.TurnRunner.prepareTurn passed the caller's options and params to bx-ai whole. bx-ai reads options._resumeContext and, with it, runs the tool calls the request carries without reaching the approval middleware, so a caller with chat scope could run any approval-gated tool (for example skill_save, a shared and persistent prompt injection) with one POST to /invoke, /stream, /batch or /events. The same pass-through let params.model and options.apiKey override the agentApi.profiles list. A new TurnOptions keeps only options.profile, and for params everything the model accepts except model, messages, contents, system, tools and any _ key at any depth (the body sent to the provider is { model, messages } plus params, so those would replace the model, the conversation, the prompt or the tool set). The rest is dropped without an error and its names are logged. Nothing that this repo sends needed another key: the web page, AgentApiClient, the terminal and the routines send options.profile at most. Docs: "What a turn accepts" in the Agent API guide.tools/demo/fakellm.bxs) to a packaged agent, with nine new lessons (a model that needs no key, approvals, memory and notes, routines and reports, users, roles and tokens, the vault, layered settings, logs usage and backups, a capstone), a rewritten web app lesson that comes earlier, and a checkpoint at the end of each lesson. Lesson files keep their names, so URLs and saved progress are unchanged; the order is docs/data/courses.yaml and titles carry no lesson number. tools/course/ has the checker (boxlang tools/course/check-course.bxs: static checks, and a replay of every lesson's commands against the scripted model that also keeps the checkpoints honest) and the kit a learner downloads. The scripted model gained noTool, {tools} and a --script that is read from the current folder first.app/ and public/, like the ColdBox BoxLang template. bxAgents build writes .build/app (the generated code), .build/public (the web root and the only folder a server serves), .build/lib (ColdBox and its modules), .build/runtime (the engine config, the bx-agents module with internal alias bxagents, and the BoxLang home), .build/boxlang_modules and .build/miniserver.json. Rebuild every existing app: serve refuses a build made before this layout and says so. .build/app is no longer the web root, so anything that served it (a script, a Dockerfile of your own, a .bxaignore whose patterns were relative to .build/app, which are now relative to .build) has to follow. The template is carried in the module as a pinned snapshot (templates/coldbox-boxlang, version and commit in its VERSION, refreshed with tools/refresh-coldbox-template.sh) and the build never reads the network.public/ is served. The old layout served the whole app folder, so /config/agent-settings.json, /project/Agent.yml, /agent/instructions.md and a listing of /config/ and /skills/ answered 200 to anyone who could reach the port, token or not. All of them answer 404 now, and so does every other file outside public/. The server now runs only index.bxm (a passPredicate in miniserver.json): a .bx class under the app, or a ColdBox module, is no longer executed by address (it answered 200 with an empty body). An address nothing routes is a small JSON 404 and not ColdBox's 500 error page. Covered over HTTP by ServedLayoutSpec. public/includes/ lists its file names (the server turns directory listing on in code and miniserver.json has no key for it); it holds only what the browser loads.bx-agents module (internal alias bxagents) is loaded. serve used to add the machine's own module directory to the served app, which loaded every module installed there. The module is now copied into .build/runtime/modules/bx-agents (to a work folder, then renamed, and skipped while a stamp of its box.json and jars is unchanged), runtime/ is the BoxLang home, and no module directory of the machine is named anywhere: the test verb's child loads the module alone through a link as well. A decoy module in ~/.boxlang/modules does not load in the served app, and does load in a server without that home (spec).public/Application.bx is derived from the template's and changed. It ends as a thin class that extends the generated base app/bxagents/Application.bx, or is your own root Application.bx pointed at that base (bxagents.Application is still the name you write). The base carries what the template's file does (the COLDBOX_* settings, the bootstrap call, loadColdbox(), onRequestStart()) plus the app name, sessions, datasource, schedulers, the data home and the registrations; the template's onApplicationEnd, onSessionStart, onSessionEnd and onMissingTemplate are not carried. Settings and the hooks before(), after() and beforeRequest() (and the lifecycle methods themselves) are what you can customize. See Application.bx.config/ColdBox.bx (ColdBox loads config/Coldbox.bx, so on a case-sensitive file system it was never loaded) with coldbox = { and moduleSettings = { (an unscoped assignment is local to configure() in BoxLang). The generated app name and qb's SQLite grammar and default datasource had therefore never taken effect. The file is Coldbox.bx with variables. and a real-boot spec reads the settings back..build into /srv/bxapp (ENV APP_DIR=/srv/bxapp, BOXLANG_HOME=/srv/bxapp/runtime, host 0.0.0.0). It is not /app: that is also the ColdBox mapping name, so BoxLang resolved /app/app/config/bxai-settings.json through the mapping to /app/app/app/config/... and the first request failed with "Failed to load application descriptor"; do not install an app under a folder named /app. In the container /__bxagents/health, /chat/ and its assets answer 200 and /config/..., /project/Agent.yml, /app/config/bxai-settings.json and /runtime/boxlang.json answer 404. Not verified: a model call from the container.AGENTS.md and the serve comments said the web runtime's whitespace compression removes the blank line that ends each SSE frame, so a native stream carried no terminators. Measured on BoxLang and boxlang-miniserver 1.19.0, it does not: /__bxagents/stream has 14 terminators, 14 frames and 8 content deltas with the setting on and off (route().toSSE() 5 and an SSE() page 4, the same both ways). Only a hand-written writeOutput( "...\n\n" ) stream loses them (0 against 3). The vendored runtime/boxlang.json keeps the setting off as a safety net.getSystemSetting() keeps its first answer per key for the life of the process (so tests pass the module folder as an option and never change BXAGENTS_MODULE_DIR mid-process); directoryDelete( path, true ) follows links, and a test run had emptied the built module through the link it used: it, and clean, now delete without following links. aiToolRegistry().scan() expands its dotted path against a mapping, so the scan is app.tools, a mapping path and not one relative to the app; skillsDirectory is /app/skills. A project under a path with a space does not start (the boxlang-miniserver launcher script does not quote BOXLANG_HOME, for any layout).tui:, from two files that are both called Agent.yml: ~/.bxagents/Agent.yml for every agent and ~/.bxagents/<agent>/Agent.yml for one. They apply when bxAgents build runs and again when a built app starts, from one merge (SettingsLayers), over the author's Agent.yml, environments: and boxlang.json. A map merges, a plain value or a list replaces, key+: appends (a list, or text such as instructions), key-: removes entries from a list and key: ~ removes the key. chat: is valid only in a person's file. Everything except name, data.home and environments can be set. What a built app can not change without a rebuild (agentApi, gatewaySession, routines, subAgents, data) is reported at start with its file. /info lists each setting that came from a person's file, and /settings model ollama/qwen3 [--global] writes any setting to the agent's own file or the one for every agent, keeping the rest of the file. Extension values now follow the same rule: the person's win over the project's. See layered settings..yml for the connector catalog too: the files under src/main/bx/catalog/connectors/ are <id>.yml (were <id>.yaml), and the catalog check and the packaging read that name. Agent.yaml is not accepted as the agent's file by the admin file view either. The docs site's own bxsites.yaml and docs/data/ files keep their names.bxAgents.yml) and the person's file for one agent (was settings.yml) are all Agent.yml. Agent.yaml is no longer read. The old names are dropped with no fallback.fullscreen, header, spacing, theme, animations, thinking, tools, markdown, menuRows, notify, terminalTitle, plus the message box's prompt and widgets), in the same tui: block of four places: the flag of one run (--inline, --fullscreen), the agent's own Agent.yml in its data home, your ~/.bxagents/Agent.yml (the fallback for every agent), and the project's Agent.yml, then the default. /settings opens a panel that shows each value and where it comes from, changes it with the arrow keys and saves it, after asking once for each file, and /settings name value [--global] does it from the message box. Only the tui: lines of a file are editedheader: compact or hidden shrink the header, --inline or fullscreen: false keep the old inline behaviour. The top bar of the box now says only who is writing by default, so the default widgets are none at the top and folder, git, ctx and profile at the bottombxagents-build-agent, bxagents-tools-and-skills, bxagents-subagents-routines, bxagents-gateways-connectors, bxagents-chat and bxagents-operate) are given to every agent as skills available on request: only a name and a description are in the context until the model asks for one. A skill of the project with the same name wins, the agent's own cannot take their names, /skills and GET /skills list them with the origin bxagents, and skills.builtin: false in Agent.yml leaves them out
$
box install bx-agents