Skip to content

Releases

Peras 0.5.0

Choose a tag to compare

@Vertias3u Vertias3u released this 30 Oct 13:23
  • Burn lines. peras set 5h rate 15/5m pause acts when a window rises 15 points within 5 minutes, at any level, so an agent that empties its 5-hour window in minutes is stopped on the way up instead of at 95%. A pause holds until you resume or the window resets; peras resume lets that burst go, and a new burst can stop it again. A warning clears when the burst ends. New default: 5-hour +20 points in 10 minutes → warn.
  • New subagents wait during a burn. While any burn line is crossed, Claude Code's Agent and Codex's spawn_agent calls are refused and the agent goes on without them. peras resume lifts it.
  • Subagent lines. peras set agents 3 ask acts on one prompt's 4th subagent. Subagents' own tool calls run under the parent's session, so a whole tree counts as one prompt. The next prompt starts fresh.
  • Agent to agent. Claude Code running codex exec while Codex is paused is refused with Codex's reason, and Codex running claude -p while Claude Code is paused likewise. Past a warning line, the call goes ahead with a one-line note. Commands are matched as typed: a wrapper script or alias isn't caught.
  • During a burn, or with a burn line set, Codex's hooks read usage at most 10 seconds old instead of a minute. On Claude Code 2.1.97 and later, setup asks the status line to re-run every 10 seconds (a shorter interval of yours stays).
  • A burn warning's notification has a Pause now button. A refused subagent is told as a warning, not counted as a pause.
  • In the app: a burn badge beside the bar ("+22 in 2 min") while a window climbs fast, "3 subagents this prompt" under the agent, settings rows for burn and subagent lines, and "2 burns stopped, biggest +22 in 6 min" in the weekly recap.
  • When it empties. While a window burns, the app adds a line under the bars saying when it empties at that rate ("5-hour window empty in ~7 min at this rate"). A burn stop tells the agent and the notification the same: "At that rate the 5-hour window empties in about 7 minutes." It's an estimate from the burst, and it isn't shown when the window resets first.
  • Codex saved resets. peras status and the app's Codex row show saved Codex resets and when the next one expires. A notification comes a day before one expires (under Warnings), and a Codex stop for usage mentions it so the agent can tell you. Peras never spends one.
  • On a Homebrew install, peras update says to run brew upgrade peras, then peras setup, instead of installing a second copy with npm, and peras doctor says how it was installed.
  • peras setup stops, changing nothing, when the installed Peras app is from another version line: the 0.4 app can't run 0.5. The 0.5 app comes with your purchase.
  • Going back to 0.4 keeps working: 0.4 ignores the new lines and state. Running 0.4's peras set removes the new lines from the config.

Peras 0.4.1

Choose a tag to compare

@Vertias3u Vertias3u released this 21 Oct 08:16

The downloaded Peras app now runs from where Peras installs it, so it opens at login and peras menubar quit / peras update --app find it. Installed with 0.4.0? Run peras update, then peras menubar install --native --app ~/.peras/native/Peras.app. The app itself is unchanged; no new download is needed.

Peras 0.4.0

Choose a tag to compare

@Vertias3u Vertias3u released this 20 Oct 13:35

Peras v0.4.0

Peras 0.4.0 adds a macOS menu bar app for watching Claude Code and Codex usage and controlling pauses. The CLI, hooks and SwiftBar menu remain free and MIT-licensed.

What's new

  • The Peras app: usage and reset times for each agent, pause controls, weekly pacing, a keyboard shortcut, a pinned panel, setup checks and a weekly recap with a private-by-default share image. SwiftBar is optional.
  • The signed app costs €4.99, with app updates included in the purchase, at peras.vertias.eu/app. Download updates through your purchase downloads. This GitHub release has notes only; no app ZIP is attached.
  • peras agents on adds both agents' saved usage beside your prompt when useful context changes. peras usage and peras usage --json provide it on request.
  • Safer hooks keep pause and resume controls separate from hook bookkeeping. Runtime updates stage a complete copy before replacement.
  • Usage reminders have one owner, and late-day Extras end no later than midnight or the weekly reset.

Install or upgrade

Node 18 or later is required. Set up either provider or both:

npx peras-cli setup
npx peras-cli codex setup

For Codex, review and trust the hooks in /hooks. Restart open agent sessions after setup or an upgrade.

Existing installations:

peras update

On macOS 13 or later, download and unzip the purchased app, then install it:

peras menubar install --native --app ~/Downloads/Peras.app

The installer checks and opens the app before moving Peras's SwiftBar plugin aside. The CLI and hooks also work without a menu. Use peras menubar install for the free SwiftBar menu.

With the app installed, ordinary updates target its own 0.x line. To move to another line, download its matching app and run:

peras update --app ~/Downloads/Peras.app

Build the app yourself

The app source is MIT-licensed. See Build the app yourself for the requirements and npm run build:app instructions.

Going back to 0.3

Quit the app before installing 0.3.2, refresh the hooks you use, and reinstall the SwiftBar menu:

peras menubar quit
npm install --global peras-cli@0.3.2
peras setup
peras codex setup
peras menubar install

Run only the provider setup commands you need, then restart agent sessions. The app removes its login item when it encounters the older runtime. Existing rules, manual pauses and usage history retain their compatible formats.

Known limits

  • Built for macOS 13 or later, Apple silicon and Intel. macOS 13 and Intel execution remain untested.
  • Usage is account-wide. Other sessions can contribute to observed increases and per-prompt limits; project attribution is an estimate.
  • Hooks are a guard, not a security boundary. Default failures can let work proceed; strict failure handling is optional for supported Claude Code versions. Pauses do not cancel requests already in flight or cover tools outside the providers' supported hooks.

spend the last of your week on purpose.

Peras 0.3.2

Choose a tag to compare

@Vertias3u Vertias3u released this 17 Oct 11:03
  • The menu uses about half the CPU it did. It was re-encoding every image in the menu eight times a second; images that don't change between frames are now encoded once, and a menu that hasn't changed (mascots paused or hidden) isn't sent to SwiftBar again. Walking mascots look exactly as before.
  • When Codex answers in a shape Peras doesn't recognize, Peras now says so ("run peras update") instead of quietly treating it as a fresh reading with nothing in it, which kept an old reading on screen with no error. The menu backs off as for any failed read.
  • Peras only reads Codex's own usage meter: a single-meter answer that names a different meter is no longer taken for Codex's.
  • If Codex says the 5-hour window isn't there (some accounts have run weekly-only), Peras drops it instead of showing, and pausing on, the last reading until its old reset. Only a clear answer does that: when Codex leaves a window's length out, or sends a window Peras can't read, the last reading and any stop on it stay.

Peras 0.3.1

Choose a tag to compare

@Vertias3u Vertias3u released this 16 Oct 23:57
  • A peras pause or peras resume typed while a Claude Code or Codex hook was running could be undone: the hook wrote back the state it had read a moment earlier. Hooks now keep your pause and resume as they are on disk when they save. The window narrows to the moment of the write, not the whole hook run.
  • The menu no longer starts codex app-server every second while Codex reads fail (offline, logged out, not installed). It retries after 2, 5, 15, 30, then every 60 seconds, still shows the last error, and one success ends the wait. Hooks keep trying on every call.
  • Right after Codex's 5-hour window resets, the menu looks for the new one every second for 15 seconds, then every 5 and 15 seconds, settling back to once a minute after 5 minutes. A window started from ChatGPT shows up within about a second instead of up to a minute.

Peras 0.3.0

Choose a tag to compare

@Vertias3u Vertias3u released this 15 Oct 19:26
  • Workday pacing splits spendable weekly allowance above a chosen reserve across remaining working days. Today's share stays fixed while working, and switching back to a profile with the same plan keeps it; changing the reserve or working days recalculates it from current usage. On non-working days agents get no share, so the plan's warn, ask or pause applies all day. peras pace 20 starts a Monday–Friday plan.
  • Named allowance profiles save and restore rules, allowances and pacing without resetting usage counters or clearing pauses; switch them from the menu or editor.
  • Temporary extra points extend a daily/pacing or project allowance for an hour or until midnight. Other stops remain in force; grants can be revoked and expire at weekly reset too.
  • Session overview shows recent observed hook activity, folders and applicable rules, with no claim that the sessions are still running.
  • Weekly comparison shows peak, last-known remaining and retained intervention changes between two completed observed weeks, with coverage caveats.
  • Native macOS notification actions open Status, resume the original unchanged pause for an hour, or snooze an unused-allowance reminder. Actions work through the pear helper after the original sender exits.
  • Daily allowances cap observed percentage-point increases in weekly usage and reset at local midnight. peras budget daily 10 pause; Codex supports the same commands.
  • Project allowances conservatively estimate account increases while a session in that folder is active. peras budget --here weekly 5 pause. Parallel account use can count too; gaps can miss usage. Totals reset with the provider's week.
  • Rules and allowances… in the pear menu, or peras settings, opens a private local editor for both agents' rules, schedules, folder overrides, allowances, and notification/display preferences.
  • Weekly review… in the menu shows usage charts, last-observed remaining allowance, gaps, and retained intervention counts. peras review and peras codex review provide the same summaries in Terminal.
  • When an agent pauses, the menu and Status show the other agent's remaining allowance if both of its windows have fresh readings and it has no active stop.
  • Opt-in Use it or lose it reminders notify once per weekly window when at least 20% remains and reset is within 48 hours. peras notify unused on enables them.
  • macOS notifications use a native Peras app with the pixel pear icon. peras notify test waits for the sender and reports permission or delivery errors. The universal helper is bundled; users need no compiler.