Skip to content

lionagi v1.3.0

Latest

Choose a tag to compare

@ohdearquant ohdearquant released this 04 Dec 14:29
3631835

lionagi v1.3.0

Date: 2026-12-04
Previous: v1.2.0

pip install -U lionagi

Upgrading from 1.2.0

Read these before you restart anything that writes to a lionagi state store or launches Codex.

  • Run li state migrate before restarting Studio or any other writer. The state store schema moves from version 10 to version 11: schedule runs gain a notice column, and the store gains the schedule_result_heads table that result deadlines read and the interactive_sessions table that li session records into. Until the store is migrated, opening it for writing raises SchemaMigrationRequiredError (set LIONAGI_STATE_AUTO_MIGRATE=1 to let the writer migrate instead). Runs recorded before the migration have no notice. (#5293, #5331)
  • Run the Codex sandbox probe again. Run python -m lionhub.providers.openai.codex_sandbox_probe after upgrading. Probe records move to format 9, and a format 8 record admits no Codex launch under the child sandbox. li doctor now says whether the record a launch would read is present and current. (#5272, #5276, #5271)
  • Network-on Codex children now reach public hosts only through Codex's proxy. While the child sandbox is on, a network-on launch adds -c features.network_proxy=true, and a connection that bypasses the proxy, such as raw TCP or an ssh git remote, no longer reaches a public host. Loopback and the private address ranges are in the child's NO_PROXY and are reached directly, while its connects to unix sockets are refused. A launch that sets features.network_proxy another way (a config override, disable_features, the user config or the selected Codex profile) is refused. (#5272)
  • li remote run --output-dir defaults to the local run's artifacts directory. Pass --output-dir to keep outputs where scripts expect them. (#5298)

Changelog

Interactive sessions

  • li session runs Claude Code or Codex interactively under a name. li session start NAME -a PROFILE runs the program in the current terminal on the profile's account, holding that account's concurrency slot while it runs. li session list, show, end and resume list, stop and relaunch named sessions, resume optionally on another account, and li monitor shows the live ones. The MCP server offers session.list, session.show and session.end. A session's program ended by signal N makes start and resume exit with 128 + N. (#5331)

Agent runs

  • A completion marker keeps a run going until the agent clears it. li agent takes --completion-file, --completion-marker and --max-continuations, or a profile's completion_marker. While the file still holds the text when a turn ends, the run takes another turn on the same branch, up to the limit, and then ends completed_empty with the reason run.completed_empty.marker_present. run.json records each continuation, and a --notify notice carries the final state as completion_marker_state. (#5334, #5339)
  • Surfaces that do not check a completion marker say so. li orchestrate flow, li orchestrate fanout, li play and engine stages warn once per run for each profile that sets completion_marker, naming the command. A saved Studio workflow refuses to compile when a node's profile sets one, naming the node and the profile. (#5348, #5351)
  • The completion marker check stays inside the working directory. On Linux and macOS the marker is opened one path component at a time without following links, so a parent directory replaced by a link between the path check and the open makes the marker count as missing, and no file outside the working directory is read. (#5354)

Remote runs

  • li remote run hands a leg input files and brings its outputs back. --input LOCAL PATH places a file read-only at PATH in the leg's worktree, uploaded once to the leg host under its SHA-256 and kept in ~/.lionagi/leg_blobs within LIONAGI_STUDIO_LEG_HOST_MAX_BLOB_BYTES (default 64 MiB) and LIONAGI_STUDIO_LEG_HOST_MAX_STORE_BYTES (default 4 GiB). --output PATH keeps the file the leg leaves at PATH once its process group has ended, and li remote run downloads it into --output-dir, checks its size and digest, never overwrites a file, and exits non-zero when an output was not brought back. Each PATH is relative to the worktree with no . or .. part, an input path with a part named .git, .lionagi, .mcp.json or .claude is refused, and the host refuses to keep a symbolic link, a non-regular file, a file with more than one link or a file on another device. A leg host now serves every stored blob at GET /api/leg-blobs/{sha256} to any caller holding its bearer token, so uploaded inputs and kept outputs, which can hold private content, are readable by digest until the host removes a blob left unused for seven days. (#5296, #5297, #5313)
  • Remote runs are recorded on the caller's machine and stop with li kill. Each li remote run is a local run listed by li runs (kind remote) and a state store row with skill remote listed by li monitor. li kill on the row cancels the remote run and closes the row once the remote reports it ended, or exits non-zero and leaves it running when it could not be stopped. A row whose li remote run died is closed by the next li remote command for that remote, and the run's run.json is written by the same code whichever command closes it. (#5298, #5315, #5318)
  • li remote treats a remote's text and token with care. Control and format characters in a remote's error detail, a kept output's error and a run's status are printed and saved as escapes, and the remote's token is replaced with [token] should the remote echo it. A token holding a space, a control character or a non-ASCII character is refused, naming its variable and never its value. (#5311, #5316)
  • li remote commands answer promptly. li remote cancel, status and output send the request asked for before closing the rows of earlier runs, and that sweep stops starting reads after 5 seconds. --poll refuses a wait under one second or one that is not a finite number. (#5312, #5310)

Schedules

  • once_per_head runs a GitHub-triggered schedule at most once per pull request head. With "once_per_head": true in github_filter, a comment, label or title edit no longer fires the action again on a commit it already ran on. A run that started and then failed counts; a run refused before its process started, or one that never started and was ended as timed_out, does not. The match reads run history, so a head whose runs were pruned by retention can fire again. (#5285, #5287)
  • result_dir keeps each head's outcome as a file. The scheduler writes <result_dir>/<owner>/<repo>/pr-<number>/<head_sha>.md after the run ends, with a header naming the repository, pull request, head, run and status, then the last 1 MiB of the action's standard output when the run completed. The file is replaced atomically. (#5288)
  • notify sends a notice when a head's result file is written. The target goes to the delivery command terminal notices use, with the repository, pull request, head, run id, status and file path as JSON on standard input. The notice goes out after the run's records are written, a run ended by scheduler shutdown records scheduler_shutdown and runs no delivery command, and a target starting with - or failing the notify check is refused. The run's notice field records whether it went out; a notice never changes the run's outcome. (#5293, #5295, #5309)
  • result_within alerts when a head goes too long without a completed result. It takes a whole number with s, m, h or d, at most 30d, and sends one alert per head with status result_missing and a case of none or failed. A closed or moved pull request is not alerted about. A head found with its completed result is settled and not read again, GitHub is read at most 10 times per schedule per poll, and a pull request GitHub did not answer waits from a minute up to an hour before it is asked again. (#5294, #5309, #5329)

Hooks

  • li hooks run answers Claude Code and Codex hook events from hooks_external. li hooks run <event> --harness claude|codex runs the entries one at a time, global then project, and gives the harness one answer: the first refusal ends the chain, PreToolUse exits only 0 or 2, and --deadline bounds the dispatch. An imported entry not approved with li hooks trust refuses on PreToolUse and UserPromptSubmit. (#5330)
  • li hooks trust --project approves a project's settings file. It records .lionagi/settings.yaml by resolved path and SHA-256; without that record, or after the file changes, li hooks run leaves the project layer out and says so. hooks_external entries take direction: agent|harness|both and on_failure: allow|block, and parse_external_hooks returns both keys. (#5330)

Machine and account readings

  • li stats host and stats.host report machine load. They give the 1, 5 and 15 minute load averages and, on macOS, the kernel's memory pressure level, read in process, and name why a figure could not be read. (#5284)
  • li stats accounts and stats.accounts show subscription usage windows. Each declared account's windows are shown as its provider last reported them: the newest Codex token_count record, or the Claude Code stream's rate_limit_event, which an agent run now records in run.json as rate_limit. No provider is asked. (#5286)

Studio

  • Session detail shows messages before lifetime statistics. Session detail takes stats=deferred, which returns the newest message window and a link to GET /api/sessions/{id}/stats for exact counts with bounded samples; a request without stats, or with stats=inline, returns the same response as before. The statistics read only the fields they count and are asked for at most once per second while a live session grows. (#4849, #5347)

State store

  • Opening and writing the store no longer fail with database is locked in two cases. Several connections opening a new store file at once, and a statement in one process waiting while another connection there held the write lock, could both fail with that error. (#5328, #5331)
  • A writable connection no longer fails every write with "attempt to write a readonly database". That could happen when it was made while another open in the same process was reading the store's write-ahead log. (#5353)

Fixes

  • A correlation id holding a lone surrogate is refused before the run starts. It comes from --correlation-id, an MCP submit's correlation_id or check_correlation_id, and used to let the run fail later when its arguments, environment or notice were written. (#5275)
  • A Codex launch with the network on is no longer refused where Codex's proxy refuses every local socket. (#5276)
  • LIONAGI_PROJECT_SEARCH_ROOT judges a project directory by where it resolves. A .. after a link was removed as text, so inside/link/.. read the root's settings even when the link led outside the root. (#5278)
  • A cancel during a child's shutdown no longer leaves a process that ignores SIGTERM running. Ending a scheduled or remote run's child and its process group runs to its end, SIGKILL included, before the cancel is raised. (#5302)
  • A queued task longer than its five-minute lease is no longer run a second time. The worker renews the lease while the run executes, a renewal never takes back a row another holder has, and a finished task records its end, exit code and error detail on its row. (#5317)

Project

ADR-0143 is accepted and states what an account move sends (#5343), ADR-0144 records bounded session detail with separate session statistics (#4840), and a scheduler test reads the slow-witness leader's reap from its own record (#5338).

Full changelog: v1.2.0...v1.3.0