Repository navigation
lionagi v1.3.0
Date: 2026-12-04
Previous: v1.2.0
pip install -U lionagiUpgrading from 1.2.0
Read these before you restart anything that writes to a lionagi state store or launches Codex.
- Run
li state migratebefore restarting Studio or any other writer. The state store schema moves from version 10 to version 11: schedule runs gain anoticecolumn, and the store gains theschedule_result_headstable that result deadlines read and theinteractive_sessionstable thatli sessionrecords into. Until the store is migrated, opening it for writing raisesSchemaMigrationRequiredError(setLIONAGI_STATE_AUTO_MIGRATE=1to 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_probeafter upgrading. Probe records move to format 9, and a format 8 record admits no Codex launch under the child sandbox.li doctornow 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'sNO_PROXYand are reached directly, while its connects to unix sockets are refused. A launch that setsfeatures.network_proxyanother way (a config override,disable_features, the user config or the selected Codex profile) is refused. (#5272) li remote run --output-dirdefaults to the local run's artifacts directory. Pass--output-dirto keep outputs where scripts expect them. (#5298)
Changelog
Interactive sessions
li sessionruns Claude Code or Codex interactively under a name.li session start NAME -a PROFILEruns the program in the current terminal on the profile's account, holding that account's concurrency slot while it runs.li session list,show,endandresumelist, stop and relaunch named sessions,resumeoptionally on another account, andli monitorshows the live ones. The MCP server offerssession.list,session.showandsession.end. A session's program ended by signal N makesstartandresumeexit with 128 + N. (#5331)
Agent runs
- A completion marker keeps a run going until the agent clears it.
li agenttakes--completion-file,--completion-markerand--max-continuations, or a profile'scompletion_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 endscompleted_emptywith the reasonrun.completed_empty.marker_present.run.jsonrecords each continuation, and a--notifynotice carries the final state ascompletion_marker_state. (#5334, #5339) - Surfaces that do not check a completion marker say so.
li orchestrate flow,li orchestrate fanout,li playand engine stages warn once per run for each profile that setscompletion_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 runhands a leg input files and brings its outputs back.--input LOCAL PATHplaces a file read-only atPATHin the leg's worktree, uploaded once to the leg host under its SHA-256 and kept in~/.lionagi/leg_blobswithinLIONAGI_STUDIO_LEG_HOST_MAX_BLOB_BYTES(default 64 MiB) andLIONAGI_STUDIO_LEG_HOST_MAX_STORE_BYTES(default 4 GiB).--output PATHkeeps the file the leg leaves atPATHonce its process group has ended, andli remote rundownloads it into--output-dir, checks its size and digest, never overwrites a file, and exits non-zero when an output was not brought back. EachPATHis relative to the worktree with no.or..part, an input path with a part named.git,.lionagi,.mcp.jsonor.claudeis 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 atGET /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. Eachli remote runis a local run listed byli runs(kindremote) and a state store row with skillremotelisted byli monitor.li killon 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 whoseli remote rundied is closed by the nextli remotecommand for that remote, and the run'srun.jsonis written by the same code whichever command closes it. (#5298, #5315, #5318) li remotetreats 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 remotecommands answer promptly.li remote cancel,statusandoutputsend the request asked for before closing the rows of earlier runs, and that sweep stops starting reads after 5 seconds.--pollrefuses a wait under one second or one that is not a finite number. (#5312, #5310)
Schedules
once_per_headruns a GitHub-triggered schedule at most once per pull request head. With"once_per_head": trueingithub_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 astimed_out, does not. The match reads run history, so a head whose runs were pruned by retention can fire again. (#5285, #5287)result_dirkeeps each head's outcome as a file. The scheduler writes<result_dir>/<owner>/<repo>/pr-<number>/<head_sha>.mdafter 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)notifysends 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 recordsscheduler_shutdownand runs no delivery command, and a target starting with-or failing thenotifycheck is refused. The run'snoticefield records whether it went out; a notice never changes the run's outcome. (#5293, #5295, #5309)result_withinalerts when a head goes too long without a completed result. It takes a whole number withs,m,hord, at most30d, and sends one alert per head with statusresult_missingand acaseofnoneorfailed. 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 runanswers Claude Code and Codex hook events fromhooks_external.li hooks run <event> --harness claude|codexruns the entries one at a time, global then project, and gives the harness one answer: the first refusal ends the chain,PreToolUseexits only 0 or 2, and--deadlinebounds the dispatch. An imported entry not approved withli hooks trustrefuses onPreToolUseandUserPromptSubmit. (#5330)li hooks trust --projectapproves a project's settings file. It records.lionagi/settings.yamlby resolved path and SHA-256; without that record, or after the file changes,li hooks runleaves the project layer out and says so.hooks_externalentries takedirection: agent|harness|bothandon_failure: allow|block, andparse_external_hooksreturns both keys. (#5330)
Machine and account readings
li stats hostandstats.hostreport 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 accountsandstats.accountsshow subscription usage windows. Each declared account's windows are shown as its provider last reported them: the newest Codextoken_countrecord, or the Claude Code stream'srate_limit_event, which an agent run now records inrun.jsonasrate_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 toGET /api/sessions/{id}/statsfor exact counts with bounded samples; a request withoutstats, or withstats=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 lockedin 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'scorrelation_idorcheck_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_ROOTjudges a project directory by where it resolves. A..after a link was removed as text, soinside/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