MemoSimagent-based modeling studio
Docs

The field manual

Five minutes to a first model, then the parts that matter when something goes wrong: the plan gate, pinned experiments, versions, and what the assistant does when a provider fails.

Tutorial

First model

From an empty window to a running experiment, in five steps.

Behaviour

The assistant

Plan policy, the work log, pinning, finish step, restore.

Reference

Offline manual

The whole manual ships with the app, as one HTML file and one PDF. Works with no network.

Quickstart

Five steps to a first run

Nothing here needs an account. Steps 3–5 need a provider; 1, 2 and 6 do not.

  1. Install. Drag MemoSim to Applications, right-click → Open the first time. On Windows, run the installer past SmartScreen. Downloads and checksums →
  2. Open a model. File → Open, and pick anything from the library. The Segregation model is the shortest path: two sliders, one plot.
  3. Connect a provider. Settings → AI connection: choose OpenAI-compatible or Anthropic-compatible, paste the endpoint and the key. A local server works here too. Keys, cost and privacy →
  4. Ask for a change in plain language. "Add a monitor for the mean share of same-group neighbours." The assistant answers with a plan, not a diff.
  5. Approve, then run. Press Approve & build. When the code change lands, define an experiment and run it: the model is pinned while it runs.
  6. Question it. Open the work log, read the diff, open Model history and restore the version before your change. Nothing is lost.
The assistant

What it will and will not do

The assistant is a collaborator with a gate, not an oracle. These are its rules, as implemented in 1.1.4.

Plan

It proposes before it writes

The propose_plan step restates your request and describes how the model will address it: agents, environment, rules, measured outputs, levers, assumptions, and what will change. Nothing is written until you press Approve & build; Change something sends a correction and it re-plans.

Policy is per workspace: auto (new models and structural changes need a plan, small tweaks do not), always, or off. Writing tools refuse to run while the gate is closed and say why.

Log

One work log per turn

Every tool call, notice, duration and code diff of a turn lives in one collapsible block. While the turn runs, the header shows the phase, a monotonic action count, thinking tokens and elapsed time with an indeterminate bar — no invented "step 3 of 12".

Each row expands to the arguments and the result; failures open with the error text.

Pin

The approved model cannot drift

define_experiment pins the model: code, widget and world edits are refused until the run finishes or you press Unlock in the header.

run_experiment refuses to start if the model changed after the experiment was defined, and estimates how many runs the parameter space implies before it begins.

Versions

Every change is restorable

Each successful change is stored as a version; Model history restores any of them. Finish step stops gracefully after the current step and keeps what was applied.

When a provider fails

Failures are classified — rejected key, rate limit, wrong URL, unsupported model, context overflow, upstream error, network, timeout — each with its own handling and a one-line instruction. A stalled stream is a timeout that is retried; a stream that dies on its own is retried too; pressing Stop still stops immediately. Connection diagnostics in the header show the model, endpoint, latency of a live test and recent events.

Experiments

Repetitions, sweeps, and the clock

Experiments run through BehaviorSpace on the desktop engine. The web edition of a model has no experiments.

An experiment is a saved definition: which parameters vary, how many repetitions per combination, a time limit, and which reporters are recorded. Ask for one in plain language — "sweep min-fraction from 0 to 0.7 in steps of 0.1, 12 repetitions, 150 ticks, record the mean same-group share" — and the assistant writes it, then runs it headless.

The run writes a table, one row per run at the recording interval, with the parameter values prepended. That table is what the Memos publish beside their sentences.

This engine's experiment format does not accept a value set inside one file, so a sweep is written as one model copy per value. The Memo files and their READMEs show exactly how.

Setup
your setup procedure
Step
your go procedure
Time limit
ticks per run
Repetitions
runs per parameter combination
Metrics
reporters recorded at the end of each run
Output
CSV table, plus the model file it ran
Reference

Offline, because a lab machine is often offline

The app ships the manual, the language dictionary and the licences as local files. Nothing here fetches a page.

PDF

Field manual

The complete manual as one printable PDF, inside docs/ in the app. Also published here: 7.5 MB, no network needed.

Open the manual (PDF)

HTML

Single-file manual

The same content as one self-contained HTML file, searchable, with the dictionary built in. Opens in any browser, including on a machine where MemoSim is not installed.

Dictionary

Language reference

Every NetLogo primitive, offline, with the adapted language reference. The assistant reads the dictionary before it reads the web.

Troubleshooting

The five things that actually go wrong

SymptomWhat it meansWhat to do
macOS: “cannot verify the developer”The app is ad-hoc signed and not notarised.Right-click → Open once, or xattr -dr com.apple.quarantine /Applications/MemoSim.app.
Windows: SmartScreen blocks the installerNo Authenticode signature.More info → Run anyway after checking the SHA-256.
“Rejected key” in the assistantThe provider refused the credential or the endpoint path.Open Connection diagnostics: it shows the endpoint, a live latency test and the failing request.
The assistant stops with a plan card instead of buildingThe plan gate is doing its job.Approve & build, or Change something. Policy is per workspace: auto, always, off.
“Model changed after the experiment was defined”The pin refused a run on a drifted model.Unlock in the header, re-define the experiment, or restore the version the experiment used.