Console guide

The AgentSpaces Groovy Console

A desktop notebook for AgentSpaces. Each notebook tab runs its own peer, so you can write Groovy and Clojure cells, browse what a fleet holds, and publish a notebook as a card, all from one window.

JDK 21 or newerGroovy 6.0.0 and Clojure 1.12.7 built inone child JVM per notebookApache-2.0
aspace://guide/console/intro

Introduction

What it is

The AgentSpaces Groovy Console is a Swing desktop notebook. You write code in cells, run them, and watch the result land in a live fleet. It is open source, in the console folder of the agentspaces-groovy repository.

A few words first:

  • A peer is one process that has joined a fleet. A group is a set of peers that share data. A space is a named place in a group where peers write typed entries.
  • An agent is code that takes or watches entries and writes new ones. A card is an advertisement that tells the group what a peer offers.

Each notebook tab owns its own peer, its own variables, and its own output. The console runs each tab in a separate child JVM, so a stuck cell in one tab never freezes the others.

A notebook holds four kinds of cell:

  • Code cells, in Groovy or Clojure. A code cell has a role: setup, action, worker, or publish.
  • Markdown cells, for instructions and notes. The preview renders headings, lists, bold text, code, and images from your project folder.
  • Note cells, plain text kept from older notebooks.
  • Inspector cells, which save a group, space, type, and bounded query, and show matching entries once the peer runs.
The Groovy Console window with a Markdown cell open
The console window. The left pane has Project, Fleet, and Recipes. The notebook sits in the middle with Run notebook and the cell controls. The right pane has Space Details, Shared Files, and Chat; Execution and Errors sit below. Captured by the console's own desktop test.
Note. The developer guide's fleet console is a different thing: a read-only web peer that the Spring starter serves for operators. The Groovy Console is a desktop notebook for developers.

Install

Requirements:

  • JDK 21 or newer, and Maven, to build from source.
  • Nothing else for the console itself: it carries Groovy 6.0.0 and Clojure 1.12.7.
  • Groovy 6 on your path only if you want to run an exported script with the groovy command.

From source. Clone the agentspaces-groovy repository, build it once, and start the launcher from the repository folder:

mvn -B -ntp package -DskipTests
console/bin/agentspaces-groovy-console
  • The package step writes console/target/runtime-classpath.txt. The launcher reads that file, so it refuses to start until you have built once.
  • Use mvn -B -ntp verify instead to run the tests as well.
  • On Windows, run console/bin/agentspaces-groovy-console.ps1 from PowerShell.

Native bundle. A Python script builds a desktop application with its own Java runtime inside, so the target machine needs no Java or Maven. It needs Python 3 and a full JDK 21 or newer with jlink and jpackage. Build on the operating system you are packaging for:

mvn -B -ntp -pl console -am verify
python3 console/tools/package-desktop.py --skip-build --smoke-test
  • The app image lands in console/target/desktop/, with a zip and a SHA-256 checksum beside it. Add --installer to also ask for a dmg, msi, or deb.
  • The bundle is unsigned. It is a development artifact, and macOS notarization is still release work.
  • It is qualified on macOS aarch64 only. The Windows and Linux recipes exist but have not had their native runs yet.
  • On macOS, the first LAN join asks for Local Network access. If a join across machines fails, check AgentSpacesGroovy under System Settings, Privacy & Security, Local Network.

Coordinates. The console's Maven artifact is ai.badmonkey.agentspaces:agentspaces-groovy-console:0.7.0. A program that depends only on agentspaces-groovy pulls in no GUI code.

First run

Start the launcher with no file. The console opens the Getting started: shared shop notebook: Markdown instructions, a catalogue of products, and a shipping worker. Opening a notebook never runs it.

  1. Click ▶ Run notebook. The console starts a local development peer on a free port, then runs every enabled code cell in order, workers included. It stops at the first failure.
  2. Look at the Objects table on the right. It shows three products in the catalogue space.
  3. Select orders in the left pane and the shop.Shipment type to see the shipment the worker wrote.

There are four ways to run code:

  • A cell: its ▶ Run button, or Control+Enter (Command+Enter on macOS). Shift+Enter runs the cell and moves to the next one. Running one cell starts the notebook's peer first if it is not running.
  • A selection: select some lines and click the cell's Selection button.
  • A notebook: ▶ Run notebook runs every enabled code cell, top to bottom.
  • Every open notebook: the play icon in the top bar runs the tabs left to right, with a two-second pause between them so the peers can find each other.

For two peers, open the checked-in example. The worker listens on port 7751; then use Open notebook / script… to open producer.agconsole.json beside it in a second tab, and run that too. It joins from port 7752 and sends an order.

console/bin/agentspaces-groovy-console examples/console-orders/worker.agconsole.json
Note. The tutorial and the examples use the dev-local security profile over plain loopback TCP. Use it on a laptop, never on a shared network.
aspace://guide/console/cells

Writing cells

Groovy cells

A Groovy cell sees a set of ready-made variables once its notebook's peer runs:

fleet                        // this notebook's FleetRuntime
spaces                       // its AgentSpaces facade
group('shop')                // explicit group context
space('orders')              // workspace's configured default group
agent('worker') { /* verbs */ }
bind(agentDefinition)        // managed by this run

Two more helpers come from console:

  • console.manage(handle) ties a resource to the cell, so Stop closes it.
  • console.onClose { } runs your own cleanup when the cell stops.

bind already registers every agent it starts. Register anything else yourself:

subscription = console.manage(
    group('shop').space('orders').notify(shop.Order, lease: '2m') { event ->
        println event
    }
)
console.onClose { println 'stopping this block' }

What carries from one cell to the next:

  • Variables. orders = ... without def becomes a shared variable that later cells can read. def orders = ... stays inside its own cell.
  • Imports. An import from a cell that ran successfully carries over to later cells.
  • Types. A record or class compiled in one cell stays usable in later cells.

When you edit a record or class, choose Worker tools… → Reset Context, then rerun the cell that defines it and the cells that use it.

Simple Groovy is one large editor with the output below it, like the classic Groovy console. Open it with New → New Groovy File. A .groovy file opens there and saves back as plain source.

To leave the console behind, Export… → Groovy script turns the enabled code cells into an ordinary script. See Export.

Clojure cells

Every notebook worker embeds Clojure 1.12.7. You can write a whole notebook in Clojure or mix the two languages:

  • New → New Clojure notebook opens a notebook of Clojure cells. New → New Clojure File opens a single .clj editor.
  • The cell menu's Language submenu switches one cell between Groovy and Clojure. The text stays as it is; translate it yourself.

A Clojure cell runs only when you press Run and returns the value of its last form. Each notebook gets a private namespace, so definitions persist from cell to cell but no other notebook sees them. Reset Context clears the namespace.

(def shipments [{:id "S1" :slack 6} {:id "S2" :slack 30}])
(filterv #(< (:slack %) 12) shipments)

With the peer running, four names are bound:

  • fleet: the notebook's runtime.
  • console: the same helpers Groovy cells get, such as (.register console SomeRecord) and the publish methods.
  • aspace-group: a one-argument function that returns a group.
  • aspace-space: a one-argument function that returns a space in the notebook's default group.

From there you use the Java Space API directly:

(import '(ai.badmonkey.agentspaces.api.space Template))
(import '(ai.badmonkey.agentspaces.groovy.console.readiness ReadinessProtocol$Shipment))
(def lane (.space (aspace-group "readiness") "shipments"))
(.readAll lane (Template/of ReadinessProtocol$Shipment) 200)

Know the limits:

  • Clojure vars are not Groovy variables, and Groovy imports are not Clojure imports.
  • The Variables snapshot lists Groovy bindings only. Clojure results still show in Result and Objects.
  • Export… → Groovy script rejects a notebook with Clojure cells. Save the .clj source, or export HTML or a project instead.
aspace://guide/console/fleet

Working with a fleet

Exploring a fleet

The console gives you three views of the fleet a notebook has joined.

The fleet explorer is the left pane's Fleet tab:

  • Cards lists the cards peers advertise, grouped by group: AssetCards and ModelCards first, then AgentCards and AppCards. Select a card to read its properties in Space Details → Card details. Right-click it and choose Add to cell for starter client code.
  • Topology is the tree of groups, spaces, peers, and advertisements. Right-click a capability to insert code that lists its providers.

The space and object browser is the right pane's Space Details. Choose a group, a space, and a local record type:

  • The Objects table shows up to 200 live entries of that type. Details / metadata shows an entry's id, issuer, tags, and lease.
  • + New object… writes a new entry from a form. Send entry writes one from JSON, after a preview you confirm.
  • Browsing never takes work, renews a lease, or writes anything. The console never loads a class from a type name another peer sent.

Event history is the Events tab in Space Details. It keeps the last 5,000 observations in a table of time, event, and space. Select a row for its full metadata, and tick Follow latest to keep the newest row in view. Traffic beside it shows transport counters.

Discovery takes time: a new card can take a moment to appear, and a stopped provider's card stays until its lease runs out.

The Recipe Book

The left pane's Recipes tab is a library of working examples. Select one to read what it does, then click Insert recipe, double-click it, or press Enter. Selecting and inserting run nothing.

SectionWhat it holds
AgentSpaces FeaturesWork queue, publish and subscribe, pipeline, routing, fork and join, running reduction, request and reply, beacon, discovery, content, voting, aggregation, semantic discovery
Data RecipesWorking with Data, then map and enrich, filter, reduce by key, and an HTML report
Groovy RecipesCollections, closures, escaped CSV, and dates, with no peer needed
ConnectREST GET and POST, REST into a space, OIDC discovery, OAuth2 client credentials
ChartsLine, bar, scatter, histogram, pie, and a chart from space data
Card CatalogPublisher starters for the fifteen example card providers, in both languages
WorkflowsGroovy and Clojure workflow starters
Clojure AgentSpaces, Data, Recipes, Connect, ChartsThe same patterns in Clojure

Most AgentSpaces recipes insert four cells: instructions, the types, a managed worker, and a sample that sends work and checks the result. Run them in order, or use Run notebook.

Each insertion makes fresh type names, so two insertions never collide. To share one protocol across peers, copy the inserted cells instead of inserting the recipe again on the other peer.

The Clojure recipes are ordinary .clj files, and the console bundles them as they are. This one writes a task, takes it under a lease, and completes it with a result:

;; clj-take.clj
(import '(java.time Duration) '(java.util UUID))
(import '(ai.badmonkey.agentspaces.api.space Lease Template Matchers))
(import '(ai.badmonkey.agentspaces.groovy.console.recipes ClojureRecipeProtocol$Item ClojureRecipeProtocol$Result))
(.register console ClojureRecipeProtocol$Item)
(.register console ClojureRecipeProtocol$Result)
(def recipe-group (aspace-group "shop"))
(def recipe-input (.space recipe-group "orders"))
(def recipe-output (.space recipe-group "results"))
(def recipe-lease (Lease/of (Duration/ofSeconds 60)))
(defn recipe-matching [type field value] (.where (Template/of type) field (Matchers/eq value)))

;; A bounded take claims one entry; completion removes it and publishes its result.
(let [id (str (UUID/randomUUID))]
  (.write recipe-input (ClojureRecipeProtocol$Item. id "task" 7) recipe-lease)
  (let [taken (.take recipe-input (recipe-matching ClojureRecipeProtocol$Item "id" id)
                     (Lease/of (Duration/ofSeconds 10)) (Duration/ofSeconds 1))]
    (if (.isPresent taken)
      (let [claim (.get taken) result (ClojureRecipeProtocol$Result. id 14)]
        (.complete recipe-input claim result recipe-lease)
        {:status "completed" :result result})
      {:status "not ready" :next "No matching task was claimed."})))

A take can run again after a failure, so code with outside effects still needs to be idempotent. The recipes do not promise exactly-once work.

Joining by beacon

A beacon is a small signed web document that tells another peer how to join your group. The Beacon / share a fleet recipe, under AgentSpaces Features, inserts a worker cell that serves one from your notebook's peer:

import ai.badmonkey.agentspaces.beacon.BeaconDocumentSource
import ai.badmonkey.agentspaces.beacon.BeaconServer
import java.net.InetSocketAddress

def beaconSource = BeaconDocumentSource.of(fleet.node(), fleet.identity())
def beacon = console.manage(new BeaconServer(beaconSource, 50d, null))
beacon.start(new InetSocketAddress('127.0.0.1', 0))
println "Beacon URL: ${beacon.url()}"
...
beacon.url()
  • The beacon listens on loopback, on a port the system picks. Its path is /.well-known/agentspaces/beacon.json.
  • It serves discovery data only. There is no endpoint that runs notebook code.
  • Stop on the cell closes it. Reset Context, closing the tab, and stopping the worker close it too.

To join from a second notebook, open Configure peer…, use the same group name and founding label, and paste the printed Beacon URL. For this local HTTP example, tick Allow HTTP and private addresses. The equivalent group configuration is:

name: shop
founding: shop-v1
spaces: [{name: orders}]
bootstrap:
  url: http://127.0.0.1:PORT/.well-known/agentspaces/beacon.json
  url-allow-plain: true
  url-allow-private: true

The console fetches the URL when the peer starts, checks the signature, and adds the seeds it lists. A beacon does not bypass admission. For another machine, bind the beacon to a reachable address and give the peer a reachable bind address too.

Publishing a notebook as a card

A notebook can offer a service to the whole group. Its last cell, a Publish cell, starts the provider and advertises the card that describes it. The Publish… menu above the notebook inserts starters:

  • AssetCard: a dataset other peers can query.
  • ModelCard: a model other peers can call for predictions.
  • Advanced paths: an AgentCard for a running agent, and an AppCard for an HTML page the notebook serves.
console.publishAsset {
    name 'prepared-orders'
    version '1'
    group 'shop'
    space 'orders'
    description 'Validated rows prepared by this notebook'
    shape 'orders.rows.v1'
    snapshot(dataRows)
    freshness 'snapshot'
}

Run the preparation cells first, then run Publish. Inserting a starter runs nothing.

  • A published card lives for 60 seconds and renews every 20 seconds while the cell runs.
  • Space Details → Publications lists what this notebook publishes, flags source edits as changes pending, and offers Stop.
  • An asset snapshot is bounded to 200 rows and 2 MiB.

Headless serving. A published notebook can also run with no window, on a server for example:

console/bin/agentspaces-groovy-console --serve notebook.agconsole.json --yaml peer.yaml
console/bin/agentspaces-groovy-console --serve-project project.json

The server runs the notebook's cells once, in order, prints a PUBLICATIONS JSON line once the cards are live, and keeps serving until you stop it. If a cell fails, it closes every worker and exits.

Workflows

A workflow is a named set of stages. Each stage takes a typed entry from a space and writes the next one. The workflow advertises one AgentCard, and it needs no language model. There are two ways to build one in the console.

The designer. New → Workflow designer… opens a canvas. Drag stages and catalog cards onto it, connect them, click Validate, then Generate notebook. The generated notebook holds the types, the publishers, and a sample client.

The workflow designer with three connected stages
The workflow designer. The palette on the left lists stages and catalog card starters. The canvas holds a three-stage working example (input, map, output). Generate notebook writes the cells; nothing runs until you run them.

The Workflow API. Recipes → Workflows inserts the same thing as code. First a cell with the records:

package example.flow
record Request(String runId, int value) {}
record Prepared(String runId, int value) {}
record Report(String runId, String text) {}

Then a Publish cell that defines two stages and publishes them:

import example.flow.*
import ai.badmonkey.agentspaces.groovy.workflow.Workflows

workflowDefinition = Workflows.workflow('readiness-report', version: 1) {
    defaults(space: 'work', key: 'runId', lease: '2m', resultLease: '10m')

    take('prepare', Request, returns: Prepared) { input ->
        new Prepared(input.runId(), input.value() * 2)
    }

    take('report', Prepared, returns: Report) { input ->
        new Report(input.runId(), 'Processed value: ' + input.value())
    }
}
workflowPublication = console.publishWorkflow([group: 'analysis'], workflowDefinition)
workflowPublication

The same workflow in a Clojure cell uses the agentspaces.workflow namespace:

(require '[agentspaces.workflow :as wf])
(import '(example.flow Request Prepared Report))

(def definition
  (wf/workflow
    {:id "readiness-report" :version 1
     :defaults {:space "work" :key "runId"
                :lease "2m" :result-lease "10m"}
     :stages
     [(wf/take :prepare Request {:returns Prepared}
        (fn [input ctx]
          (Prepared. (.runId input) (* 2 (.value input)))))
      (wf/take :report Prepared {:returns Report}
        (fn [input ctx]
          (Report. (.runId input) (str "Processed value: " (.value input)))))]}))

(def publication (wf/publish! console "analysis" definition))

Submit work from a later cell with console.submitWorkflow, and wait for the result with await. Fleet → Cards shows the workflow's AgentCard with its stages as actions. Stopping the Publish cell unbinds the stages.

Data and charts

The console bundles a small data toolkit, so a notebook can load, query, chart, and model data with no extra setup:

  • DuckDB for SQL over in-memory tables.
  • GINQ, Groovy's query syntax, over collections and space records.
  • FuzzyCSV for aligning CSV headers.
  • XChart and Java2D for charts.
  • Tribuo, an Apache-2.0 machine-learning library, for classifiers, regression, and anomaly detection.

Load in the top bar opens complete examples. Each opens as separate, unstarted notebook peers:

  • Readiness Notebooks: Operations, Data, ML, Report, and Workflow. Data uses FuzzyCSV, DuckDB, GINQ, and XChart and publishes an AssetCard. ML trains a Tribuo classifier and publishes a ModelCard. Report publishes an AppCard.
  • Clojure market analysis: the same shape in Clojure over synthetic market data.
  • Card catalog · Groovy and Card catalog · Clojure: seven example providers composed into a CSV, profile, SQL, classifier, and chart pipeline.

Charts. Return a chart as the last value of a cell and it shows in the cell's Chart tab. Open chart… shows it larger, and HTML export embeds it.

import ai.badmonkey.agentspaces.groovy.console.NotebookCharts
NotebookCharts.plot('bar', 'Orders by region', ['EU', 'US'], [170, 80])
;; clj-chart.clj
(import '(ai.badmonkey.agentspaces.groovy.console NotebookCharts))
(let [chart (NotebookCharts/plot "bar" "Regional quantities" ["East" "West" "North"] [50 25 35])]
  (.put chart "renderer" "xchart")
  chart)
A bar chart of average utilization by region
A chart from the card catalog. The catalog's chart service rendered this XChart bar chart from the guided pipeline's data.

Charts take one series of up to 200 values. They are static: no zoom and no multiple series yet.

REST and OIDC. The Connect recipes call web APIs from a cell. They use public demo services by default, and environment variables such as AGCONSOLE_REST_BASE and AGCONSOLE_OIDC_ISSUER point them at your own. The helper uses HTTPS for remote calls, follows no redirects, caps a response at 1 MiB, and never returns a token to your cell.

aspace://guide/console/sharing-output

Sharing and output

Sharing and chat

Two people can work in one notebook from two consoles. The Share… button at the upper right holds both sides:

  1. The host clicks New share, picks a nickname and an address, then Copy beacon URL, and sends the URL to a friend.
  2. The friend clicks Join share, pastes the URL, picks a nickname and an address, and joins.
  3. The host clicks Share notebook. The friend chooses Edit shared notebook to open it in a Shared tab.

The default address 127.0.0.1 works on one computer. Across a LAN, each person picks their own LAN address.

What sharing does:

  • Chat sits beside Space Details, and Pop out chat opens it in its own window. Every message goes to the whole share.
  • Edits travel to the owner, who applies them in order. When two people change the same cell, the second sees a conflict and keeps a draft.
  • Each person runs cells on their own worker, with their own variables and output. The space data is shared.
  • Receiving source never runs it.
Note. A share is a development share that uses the dev-local profile. Traffic is not encrypted, and any peer that can reach yours can join. The console checks the beacon's signature, but there are no invitations and no admission control yet. Anything typed in a cell, secrets included, goes to everyone in the share. Do not use it as a private channel.

New window opens another window with its own share and peer identity. Leave share stops that window's share.

Export

The console exports a notebook in three ways:

  • Export… → HTML presentation saves one self-contained HTML file: the source, rendered Markdown, outputs, charts, variables, and a bounded snapshot of the objects in the notebook's spaces. It has no JavaScript and runs nothing when opened.
  • The print icon in the top bar exports every open notebook into one HTML file, one chapter per tab.
  • Export… → Groovy script writes an ordinary Groovy script and a launch recipe from the enabled code cells.

The script export lifts records and classes to the top and keeps your packages and imports. It refuses console-only helpers and conflicting packages, and names the cell, so you can replace them. Copy the peer's YAML beside the script and run it with the console's classpath:

groovy -cp "$(cat console/target/runtime-classpath.txt)" application.groovy agentspaces.yaml

A script with a worker runs until you interrupt it. A producer closes its peer when its cells finish.

For a whole set of notebooks, Project… → Save project writes project.json, and Export project ZIP… packs the notebooks and their data files. Opening a project starts nothing.

Logs and troubleshooting

Every console process and every notebook worker writes its own log:

~/.aspace/console/logs/aspace-groovy.<pid>.log

The log holds standard error: runtime messages, full stack traces, and save, share, and worker failures. A cell's own println output stays in the Execution pane. The Errors tab keeps the last 500 failures from all notebooks. Double-click one, or choose Go to cell, to jump to the cell that failed.

Worker tools… holds three ways to recover, from lightest to heaviest:

ActionWhat it doesUse it when
Reset ContextCloses managed resources, clears variables, imports, and compiled types. The peer keeps running.You changed a record or class.
Restart PeerStops the worker and peer and starts fresh ones from the notebook's YAML.You changed the peer configuration, or the peer is in a bad state.
Force stop workerKills the notebook's child JVM and anything it started. Your source and history stay.A cell ignores Interrupt, or cleanup takes longer than five seconds.

None of these undoes entries already written or work another peer already finished. Other notebooks keep running throughout.

Common problems:

  • "No AgentSpaces peer is running". A cell called group(...) or space(...) before the peer started. Use Run notebook, or configure the peer.
  • A join across two machines fails. Use a LAN address, keep the host open, and on macOS allow Local Network access.
  • Unsaved edits after a crash. The console keeps a recovery copy: beside a saved notebook, or under ~/.agentspaces-groovy-console/recovery/ for an unsaved one. Accept the recovery prompt when you reopen it.
aspace://guide/console/appendix

Appendix: how it works

Child JVMs

How. The window process keeps the editors and the displayed history. Each notebook tab starts a child JVM, using the same Java runtime, that owns the peer, the Groovy compiler, the Clojure runtime, and every live value. The two talk over local length-prefixed JSON pipes; frames are capped at 16 MiB and output queues are bounded.

  • The child gets a 512 MiB maximum heap by default. Set the host system property agentspaces.console.worker.heap (for example 1g) to change it.
  • Interrupt asks the code to stop. Force stop worker ends the process and its descendants. The console never calls Thread.stop.

Why. A notebook runs code you are still writing. A separate process means an endless loop or a leaked thread in one tab can always be killed without losing the others. The boundary is for recovery and is not a security sandbox: scripts keep your user's file and network permissions. The pipes are local, and the console opens no execution listener.

The notebook file

A notebook saves as <name>.agconsole.json: versioned UTF-8 JSON with a stable id for every cell. This is the start of the checked-in worker example:

// worker.agconsole.json
{
  "formatVersion" : 1,
  "id" : "8b8ca381-9af8-474d-81ee-695201a8e34b",
  "title" : "Shared shop: worker",
  "session" : {
    "configRef" : "worker.yaml",
    "defaultGroup" : "shop"
  },
  "blocks" : [ {
  ...
    "id" : "c19106b7-f1cd-484c-a337-8b9453c9c7b5",
    "kind" : "code",
    "title" : "Types",
    "enabled" : true,
    ...
    "role" : "setup"
  }, {
  ...
  "layout" : {
    "mode" : "stack",
  ...
  • session.configRef names the peer's YAML, relative to the notebook. defaultGroup is the group space(...) uses.
  • Each block has a kind (code, markdown, note, inspector), a role for code, and a language when it is Clojure.
  • The file holds source, queries, configuration references, and layout. Output, results, live handles, and credentials never go in.

Why. The console saves through a temporary sibling file and an atomic rename where the file system supports it, with a backup as the fallback. Credentials stay in your peer configuration and identity files, and results stay in the running worker, so a saved notebook carries neither. Source can still contain anything you type, so keep secrets out of cells.

Command-line flags

The launcher's usage line is agentspaces-groovy-console [--yaml agentspaces.yaml] [--project directory] [notebook.agconsole.json|script.groovy ...].

Flag or argumentMeaning
No fileOpen the Getting started notebook.
notebook.agconsole.json, script.groovyOpen each file in its own tab. A path that does not exist yet opens as a new, unsaved file.
project.jsonRestore a saved project in a new window.
--yaml fileUse this peer configuration for the notebooks you open.
--project directoryRoot the Project Explorer at this folder. It must exist.
--serve notebook.agconsole.json [--yaml peer.yaml]Run one notebook headless and keep serving its publications.
--serve-project project.jsonRun a saved project headless, notebook by notebook.
--helpPrint the usage and exit.
--check-worker, --check-editor, --check-sharePackaging self-tests: a child worker, the bundled editor, and a two-JVM share. The bundle's smoke test runs them.

Two host system properties change defaults: agentspaces.console.worker.heap (the worker heap) and agentspaces.console.logDirectory (the log folder). The launcher passes its arguments to the program, so set them with JAVA_TOOL_OPTIONS.

Ports

The console fixes no port of its own. Everything it opens picks a free port when it starts:

  • The Getting started notebook binds its peer to a free loopback port when you run it.
  • A share uses a random group id, a free TCP port for its peer, and a beacon HTTP port the system assigns.
  • A beacon cell and a published AppCard page bind port 0 and print or advertise the real address.

Only the checked-in examples name ports, in their YAML: 7751 and 7752 for the two-peer orders example, 7761 to 7765 for the readiness notebooks. Give every peer you run at the same time its own port and its own identity folder.

Why. Several consoles, and several windows in one console, often run on one machine. Free ports let them all start without a clash. The desktop starts no HTTP console, gateway, or broker, so nothing listens unless a cell you ran asked for it.

Where to read next