Skip to content

v1.5.0

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Nov 23:23
f1ac283

1.5.0 (2026-11-29)

From a field report: the weekly limit ran out with twelve agents mid-work and
no tool could see the spend; the lead kept its queue in a Markdown file next
to the board because the store did not exist yet.

  • The store sets itself up. The first write (a note, a board item, a
    spend or a meter reading) in a project with no .libellus/ creates it where
    libellus init would, and the reply says so once (store_created). Reads
    against a missing store answer plainly (ls: no notes yet; board: the
    board is empty; ledger: no ledger yet; brief: says the first write
    creates it) and create nothing. libellus init still works. The Claude Code
    hooks stay silent in a project with no store. Tests:
    the_first_write_creates_the_store_and_says_so_once,
    reads_against_a_missing_store_answer_plainly_and_create_nothing.
  • A ledger that is fed. libellus spend --stdin reads one JSON object
    per line (agent, task, step, model, tokens_in, tokens_out,
    cache_read, cache_write, context, key, at, note,
    cost_micro_usd; agent and task are required, and so is at least one
    number). A line whose key is already in that agent's ledger changes
    nothing, so the same records may be sent twice. The whole call is all or
    nothing: a bad line, or an unknown field (refused by name, with its line
    number), writes nothing. Each agent's ledger is locked once, read once and
    written once, so a few hundred lines cost one write. The one-entry form
    (spend --agent A --task T ..., and libellus_spend) takes the same new
    fields. Tests: stdin_records_many_lines_and_a_repeated_key_changes_nothing,
    a_bad_line_writes_nothing_and_unknown_fields_are_named,
    eight_writers_feed_overlapping_keys_and_each_key_counts_once.
  • Readings and a projection. libellus reading --limit weekly --percent 87 [--at TIME] (over MCP: libellus_spend with limit and percent)
    records what the owner read from the host meter, in
    .libellus/readings.jsonl. libellus ledger (--json is accepted and
    is the default) now also returns by_agent, by_day, context (each
    agent's latest context size, refresh: true past 350,000 and within 12
    hours), readings and projection: the burn rate in percent per hour,
    calibrated from the readings and the tokens recorded between them, and the
    time the 80% and 100% lines are reached. With fewer than two readings it
    says what is missing. Settings: LIBELLUS_CONTEXT_WARN (default 350000),
    LIBELLUS_PAUSE_AT (default 80). Test:
    two_readings_give_a_projection_and_one_says_what_is_missing, and unit
    tests in src/meter.rs.
  • A warning in the brief. libellus brief adds Spend: lines when
    there is something to say: the latest reading with its projection, and the
    agents past the context figure (spend_watch in the JSON). Test:
    the_brief_warns_about_the_limit_and_a_big_context.
  • The board says what waits on what. A task has an optional waits_on
    (a task id or one line), set with libellus_plan add or set. The brief
    shows it on your tasks, and lists blocked tasks owned by others with what
    they wait on. Test: the_brief_shows_what_is_blocked_and_on_what.
  • libellus ready [--json]: one line saying whether the store exists and
    what it holds. ready means a call will work now with no set-up step, so
    a missing store (the first write creates it) answers ready: true with
    state: "missing". Test: ready_answers_in_one_line.
  • tools/list marks libellus_get, libellus_ls, libellus_brief and
    libellus_board with readOnlyHint. Hints in the brief and the board never
    name a switched-off group, and follow MEM_HARNESS_TOOL_PREFIX. Tests:
    read_only_tools_are_marked_and_the_others_are_not,
    hints_never_name_a_switched_off_group_and_follow_the_prefix.
  • tools/list budget raised from 8,500 to 9,200 bytes for all of the above.

Upgrading from 1.4

Nothing to run. A 1.4 ledger reads unchanged: the new fields (cache_read,
cache_write, context, key) are optional and are written only when set,
so a line typed the 1.4 way is byte for byte what 1.4.1 wrote. The other
direction does not hold: a ledger that holds a line with a new field is
refused by 1.4 ("unknown field"), so upgrade every writer before feeding it.
ledger.meta gains cache_read and cache_write; a cache without them is
read as zero. Board task files may carry waits_on; 1.4 refuses a task file
with that key, so the same rule applies. Meter readings are the new file
.libellus/readings.jsonl with a lock locks/readings.lock.