Skip to main content
loomcycle
§ story · v1.153.0

150 environment variables, gone.

In loomcycle v1.153.0 every setting has one place, and the runtime tells you which lines to change

1. How a runtime ends up with 318 knobs

Before this release, loomcycle read about 318 environment variables. Nobody planned that number. It grew one feature at a time. A new tool came with a size limit, and the limit came with a variable. A new subsystem came with an on/off switch, and the switch came with a variable. When we later added a yaml config file, many of those settings got a yaml key as well, and the old variable stayed because someone might be using it.

Each step made sense on its own. Together they made a system that was hard to reason about. The same setting could be given in two places. Many variables were switches that every deployment set to the same value. Many were limits that nobody ever changed. And two deployments could differ in ways neither operator could see, because the difference lived in an environment file on one host and not in any config you could read or review.

In v1.153.0, released on 14 November 2026, we cut 150 of those variables. The runtime no longer reads them. This post explains the rule we used to decide what stays, what moved, and what disappeared, and what you need to do before you upgrade.

2. Two kinds of settings, two places

The idea behind the change is simple. A setting is either about this host, or about how the system should behave. Those belong in different places.

The environment keeps three things:

The yaml config keeps policy and tuning: retention, concurrency, provider options, timeout scaling, the embedder limits, metrics, login origins, the two hooks: allow-lists and the telemetry lists under observability:. Policy should be the same on every replica, should be reviewable, and should be something a config layer or a preset can carry.

And then there is a third place, which is nowhere. A value that no deployment needed to change is now a constant of the runtime.

Where a setting still has both an environment form and a yaml form, there is now one rule: the environment wins. A variable that is set replaces the yaml value. There are two exceptions. auth.mode takes the stricter of the two values, and a provider's yaml base_url is used in place of its *_BASE_URL variable.

A variable that is read "for now" keeps both places alive, and the deployment that never migrates is the one that later differs without anyone noticing.

3. What moved to the yaml

Retention is the clearest example. It used to be sixteen variables, with ages written in milliseconds. Here is part of what a deployment might have set before:

LOOMCYCLE_RETENTION_ENABLED=1
LOOMCYCLE_RETENTION_INTERVAL_MS=86400000
LOOMCYCLE_RETENTION_EXPORT_DIR=/data/retention-exports
LOOMCYCLE_RETENTION_CHATS_MODE=export+prune
LOOMCYCLE_RETENTION_CHATS_MAX_AGE_MS=7776000000
LOOMCYCLE_RETENTION_DEFS_MODE=prune
LOOMCYCLE_RETENTION_DEFS_MAX_AGE_MS=2592000000

And the same thing after, as one yaml block with durations you can read:

retention:
  enabled: true
  interval: 24h
  export_dir: /data/retention-exports
  chats:
    mode: export+prune
    max_age: 90d
  defs:
    mode: prune
    max_age: 30d

Nobody has to work out that 7776000000 milliseconds is 90 days anymore. The block can be reviewed in a pull request, and it is the same on every replica.

Concurrency limits, provider options such as an Ollama context window, timeout scaling, embedder limits and the process metrics sampler moved the same way. The migration guide has a worked example for each area.

4. What became a fixed value

A large group of variables were limits: how big an agent definition may be, how big a skill body may be, how many bytes a Git clone may pull, how many Crypto calls a run may make, how large a channel message or a Memory value may be. We looked at them and found that deployments did not change them. So each became a fixed value.

Each fixed value is the default the variable already had. A deployment that never set the variable sees no change at all. A few examples from the guide:

Some debug switches went too. LOOMCYCLE_AUTH_VERBOSE, LOOMCYCLE_CHANNEL_DEBUG and LOOMCYCLE_OLLAMA_DEBUG_THINK are gone, and their output now shows up as ordinary log lines at LOOMCYCLE_LOG_LEVEL=debug.

5. Seven switches that no longer exist

Seven features used to have an on/off switch. Now they are always on: the scheduler, the inbound webhook receiver, channel hooks, code agents, code hooks, Bashbox, and the resume of a fan-out parent.

Each of these does nothing until you define something for it. A scheduler with no schedules fires nothing. A webhook receiver with no webhook definitions answers nothing. So for most people, always on just means one less thing to remember.

But there is a catch, and it is the one we want every operator to read. If you defined a schedule, a webhook or a channel hooks: block while the feature was switched off, it starts working at the first boot of v1.153.0. Before you upgrade, list those definitions in every tenant and disable or delete the ones you do not want.

There is also a security point for shared installations. With code agents and code hooks always on, anyone who may author an agent or a hook definition in a tenant can run JavaScript inside the loomcycle process. A body is bounded in time, not in memory. If you need memory isolation between tenants, run them in separate processes. Bashbox is removed from an agent registered over MCP unless LOOMCYCLE_MCP_ALLOW_PRIVILEGED_TOOLS=1 is set.

6. Settings the runtime now works out for itself

Three settings used to be explicit switches, even though the answer was already visible in the rest of the config. Now loomcycle infers them.

Every start logs which store it chose and whether that came from the yaml or was inferred.

7. Two presets that stand for a whole installation

Most people do not want to assemble a config from parts. So we added two presets, each standing for a complete installation:

Neither preset sets a volume, a sign-in gate, retention, a listen address or a secret. Those are yours to decide. For a personal install, the whole minimum yaml is now one line:

presets: [personal]

loomcycle init writes the personal profile's short config, loomcycle init --profile server writes the server one, and examples/profiles/ has a complete minimal configuration for each, the server one with a compose file and Postgres.

8. Before you upgrade: read this part

We chose not to keep the old variables working for a compatibility period. They are deleted, with no fallback read. In return, the runtime tells you about every removed variable you still set, and it refuses to start when ignoring one would make your deployment looser or move its data.

A deployment that changes nothing gets one of three outcomes:

  1. It starts with advisories. A warning line names each variable the runtime no longer reads and says what to do instead. Nothing else changed for that variable.
  2. It refuses to start. One error names every removed variable whose value asked for something this version does not apply: a tighter limit, a feature kept off, another store, data kept or deleted differently, or a setting that moved to the yaml and is not there. Values are never printed, only names.
  3. It starts and behaves differently. This is the dangerous one. It happens where the old behaviour came from a variable you did not set, so there is nothing to warn about. The always-on features above are one case. Retention is another: remove the old LOOMCYCLE_RETENTION_* lines without writing the retention: block, and retention stops with nothing said. A SQLite deployment whose environment also carries LOOMCYCLE_PG_DSN, for example from a shared environment file, would now open Postgres; set storage.backend: sqlite first. A container that kept its store at the old ./data default must now set LOOMCYCLE_DATA_DIR to that path. And LOOMCYCLE_CONFIG_FILES is gone: set and not empty, it stops the boot.

The way through is short:

This release adds no new feature. It removes 150 ways for two deployments to quietly drift apart. Secrets and host details stay in the environment, behaviour lives in a yaml file you can read and review, and values nobody changed are no longer settings at all.

For an agentic kernel that runs on laptops, home servers and shared clusters, that matters more than another feature would. When something behaves strangely, the answer should be in one place you can open and read. Start with docs/SETTINGS_MIGRATION.md, and let the new binary tell you what it thinks before you let it start for real.