Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
Release v2.40.0
Released: 2026-08-08
Highlights
Coding agents
- Cursor's agent CLI ships as a first-class provider in both headless and interactive flavors, disabled by default and selectable anywhere a process provider is. "Refresh Models" pulls your account's real catalog from the binary rather than the shipped 27-model slice.
- Refreshing a provider's model list is now the server's decision instead of a client-side guess at it, so the button appears exactly where it works — and when a refresh fails, the toast finally says why.
- A provider whose display name mentions another vendor is no longer refreshed against that vendor's catalog; the binary it actually runs decides.
- Adding a new coding-agent vendor is one registry row instead of eight coordinated edits across five files, with a test that walks every shipped provider through each launch step so a missed one fails in CI rather than in a dead agent session.
Agent reliability
- A provider that goes down mid-queue no longer takes every waiting task with it — provider-attributable failures now sideline that provider for a cooldown scaled to the cause, so retries land on a fallback instead of repeating the same three-second death.
- Grok and Kimi agents actually start now, and an agent that fails to spawn reports the real reason immediately instead of sitting in "initializing" until a sweeper calls it a crash.
- Pull requests opened under a "merge when CI is green" policy get merged again; the watch no longer depends on an optional scheduled task that ships disabled. It currently drains on CoS evaluation — daemon start and an explicit Evaluate — so a PR that turns green mid-session may wait for the next one; giving it its own timer is tracked in #3630. It also now honors the auto-run mode, so
offanddry-runno longer merge.
Code review
- Every reviewer row can pin a reasoning-effort tier alongside its model, offering only the tiers that reviewer's CLI actually accepts.
- A configured reviewer whose CLI isn't installed on this machine is flagged before the run instead of after the PR is already open — and the Antigravity reviewer, which was being invoked under a command name that exists nowhere, no longer silently degrades into a self-review.
Brain & Comms
- Pasting a GitHub repo into Brain capture can hand the clone to an agent: opt in to a read-only malware scan, a clean-room "study this for ideas" run that files what it finds, or both. Queued scans are now visible on the link they're scanning.
- Comms gains an X page with visibility and reach diagnostics plus review-gated compose handoffs — no stored credentials, no automatic posting.
- Stacker News triage is newest-first, capped per sync, and every item carries explicit reply / zap / moderation / analysis actions behind the existing human review gate.
Fit and finish
- The claim-issue author gate gains a "Me + collaborators" setting between "Filed by me only" and "Any author".
- The series list is readable on a phone again, and LoRA training dataset image labels no longer wash out over bright photos or collide with each other.
- The Antigravity Usage card parses quota again after
agy1.1.x renamed its limit rows.
Code Review Defaults
- Each code reviewer can now be pinned to a reasoning-effort tier. The reviewer table already let you pick which model a reviewer runs; how hard that model thinks was stuck at whatever its CLI defaults to, so the only way to buy a more careful review (or a cheaper, faster one) was to change the model. Every reviewer row now has an Effort column alongside Model, on the AI Providers → Code Review Defaults panel, the task form, the CoS schedule config, and the
/do:nextrun drawer. Each row offers only the tiers that reviewer actually accepts — Codex'sminimal…ultra, Claude'slow…max, Antigravity'slow/medium/high, andlow/medium/highfor the local LM Studio / Ollama reviewers — so the picker can't offer a level the CLI rejects, and Copilot, Grok, and@usernamereviewers show no control at all because they have no such knob. Because slashdo's--review-withgrammar has no effort suffix, the pinned tier travels on the invocation instead: ascodex -c model_reasoning_effort=high/claude --effort high/agy --effort lowwhen an agent drives the reviewer CLI, and as aneffortfield on the local review request when PortOS runs it. Leaving a row unset keeps that reviewer's own default, exactly as before. - [issue-3606] A Review Loop reviewer whose CLI isn't installed is now flagged up front. Previously the only way to find out a configured reviewer (Claude, Antigravity, Codex, or Grok) couldn't actually run was to wait for the review loop itself to discover its command was missing — after PortOS had already opened the PR and spent an agent run. The Code Review Defaults panel, task form, schedule config, and
/do:nextrun drawer now show a "not installed" badge next to any reviewer whose CLI binary isn't found on this machine. It's informational only — the reviewer stays selectable, since a federated peer machine (or a later install) may still be able to run it.
Cursor Agent provider
- [issue-3615] "Refresh Models" now works for Cursor, and pulls your account's real catalog. The Cursor providers shipped with a hand-curated 27-model slice, and the Refresh button was hidden for them because nothing on the server could answer — so the only way to reach a model Cursor offers you but PortOS didn't list was to type the id into the provider's model list yourself. Refresh now asks the binary directly (
cursor-agent models) and stores everything it reports: 177 ids on a current account, including the-fastpriority-compute twin of most tiers, and Cursor's ownautorouter at the top. Because that catalog varies by account, plan, and binary version, it's the only authoritative answer — which is also why a refresh that can't reachcursor-agent(not installed, or not on the server's PATH) reports the failure and leaves your existing list untouched, rather than quietly re-saving the shipped 27 and telling you it refreshed. The button appears for both the CLI and TUI providers, since--modelapplies to interactive sessions too. - A failed "Refresh Models" now tells you what actually went wrong. Every refresh failure — any provider, not just Cursor — used to surface as "Provider not found or not an API type", which is simply false when the provider exists and its type is fine; the real reason (the binary isn't on the server's PATH, the endpoint timed out, that CLI has no catalog to fetch) only ever reached the server log. The toast now carries the actual message. A model list that comes back legitimately empty still saves as empty — an empty answer and a failed one stay distinguishable, which is the whole reason a failed probe refuses to fall back to the shipped list.
- A provider whose name mentions another vendor is no longer refreshed against the wrong catalog. Refresh picked its fetcher by checking the display name for vendor words before checking which binary the provider actually runs. So naming a Cursor provider "Cursor Claude Opus", or an Antigravity provider "Antigravity Claude Sonnet 4.6" — the natural name for a second provider pinned to that model, and Antigravity's own catalog does list Claude models — silently replaced its model list with Anthropic's, ids those tools reject. In the Antigravity case it also dropped the "use agy's own configured default" entry while the provider was still set to it, which blanked the model dropdown and read as though nothing was selected. The binary a provider runs now decides, and only falls back to the name when no binary matches.
Series Pipeline
- The series list is readable on a phone again. Each row put the series' logline and the row's controls — the sync badge, share, sync-to-peer, and delete — side by side in one line. Those controls won't compress below their own width, so on a narrow screen they took the row and left the logline a column about one word wide, turning a two-line premise into a thirty-line ribbon that pushed the next series off the screen entirely. The controls now drop to their own line beneath the text on small screens, so the logline gets the card's full width; on a tablet or desktop the row is unchanged.
Added
Cursor's agent CLI ships as a provider, in both CLI and TUI flavors.
cursor-agentis a harness-capable coding agent, but PortOS had no entry for it — using it meant hand-rolling a custom provider and guessing at its flags. It now ships ascursor-cli(headless one-shot) andcursor-tui(interactive PTY), mirroring the Codex/Antigravity/Grok/Kimi pairs. Both ship disabled, so nothing changes until you enable them, and once enabled they're selectable anywhere a process provider is — CoS agents, runners, pipeline stages, TUI sessions. The headless path runscursor-agent --printwith the prompt on stdin; the TUI path runs the interactive agent. Both inject--force, which is doing more work than the name suggests: besides auto-approving tool calls, it clears Cursor's workspace-trust gate, and without itcursor-agentprints "Workspace Trust Required" and exits — which in a fresh CoS worktree is every single run. The model list is a 27-entry slice of the account catalog (Composer, Claude, GPT, Gemini families), each id verified against the live binary; the default is Cursor's ownautorouter, so unlike Grok/Kimi/Antigravity no configured-default sentinel was needed. Cursor bakes reasoning effort into the model id (…-thinking-high,…-xhigh,…-max) rather than exposing a flag, so no Effort control is offered for it. Existing installs pick the pair up on restart via migration231-cursor-providers. If your account offers a model outside the shipped 27 (the full catalog runs to 177 ids, most of them-fasttwins), "Refresh Models" pulls the whole list from the binary — see above.X account diagnostics and review-gated compose handoffs. Comms now has an X page that stores bounded public snapshots, checks profile/search visibility and post reach through the managed browser, captures visible metrics, and routes drafts through Review Hub before opening X for a final manual submission. It does not store X credentials, post automatically, or claim that ordinary low reach proves a shadowban.
Pasting a GitHub repo into Brain capture can now hand it to an agent. A bare repo URL captured in the Brain has always been saved as a link and cloned in the background, but nothing said so and nothing followed. Both capture boxes (the Quick Capture dashboard widget and the Brain → Inbox form) now recognize a repo URL, name the
owner/repothat will be cloned, and offer two opt-in checkboxes: Scan for malware runs the same read-only static audit as the Links tab's Scan button, ending in a CLEAN / CAUTION / DANGEROUS report you open from the link; Study for PortOS ideas queues an agent that reads the clone for implementation ideas worth adopting and files the good ones as issues (or PLAN.md items, whichever tracker this install is configured for). Both preferences stick, so "always scan what I clone" is a one-time tick. The agents only start once the clone actually lands — a failed clone queues nothing — and the study run is clean-room by contract: it never executes anything from the clone, never edits it, reads its LICENSE before proposing anything, and describes techniques in its own words rather than copying code. Re-pasting a repo you already saved re-queues nothing, since there's no new clone to read.Stacker News triage is newest-first and action-oriented. Each community sync is capped to a configurable newest-item count (30 by default), preserves source timestamps for stable ordering, captures direct image posts for Ollama vision analysis, and gives every newest item explicit reply, zap-handoff, moderation-handoff, and analysis actions behind the existing human review gate.
The claim-issue author gate has a "Me + collaborators" setting. Until now the only way to let an agent work on a teammate's issue was "Any author", which also opens the queue to drive-by issues from strangers — so a repo with any real collaborators had to choose between ignoring their issues and claiming everyone's. The new option trusts you plus every account the forge already grants access to (GitHub collaborators, GitLab project members including group-inherited ones), which is the same set that could push the code anyway. It sits between "Filed by me only" (still the default) and "Any author" in the CoS → Schedule author-filter dropdown, in the per-app override, and in the
/do:nextrun drawer, and applies toclaim-issueandclaim-workalike. Neither CLI's--authorflag accepts more than one account, so the gate is applied to the issue listing rather than pushed into the query — both the work detector and the agent prompt resolve the trusted set first, then filter. If that lookup fails (a token without push access can't read the collaborator list), PortOS reports it and retries rather than quietly narrowing back to your own issues or widening to everybody — and because that failure repeats identically on every retry, both the run drawer and the "Run now" toast name the filter and the way out instead of the generic "try again shortly".
Changed
- [issue-3618] A newly added coding-agent provider can no longer silently miss one of the steps that launch its interactive session. Adding a vendor means teaching several independent launch steps about it, and forgetting one is invisible from the outside: the provider appears in the picker and spawns, then either runs the wrong binary or comes up without the flags that let it work unattended and stalls on its first approval prompt with nobody there to answer. A test now walks every provider in the shipped catalog through those steps, so a vendor any of them doesn't recognize fails in CI instead of in a dead agent session. No shipped provider's behavior changed.
Documentation
- Updated documentation index and feature references. Added missing feature deep dive links for Quota-burn automation (
QUOTA-BURN.md), Three.js procedural 3D models (THREEJS_MODELS.md), Stacker News stewardship (stacker-news.md), and the PortDeck native companion app API contract (COMPANION_APP_API.md) acrossREADME.mdanddocs/README.md. Improved inline JSDoc comments for client and server utility modules.
Fixed
- A genuine Claude usage limit sidelines the provider again. The provider-sidelining gate above keys on whether the failure came from the provider rather than from the agent's own output — which is right, but the detector only granted that provenance to a few phrasings, and Claude Code's actual banners ("Claude usage limit reached. Your limit will reset at 5pm.", "5-hour limit reached · resets 3am") were not among them. So the exact case the sideline exists for — a five-hour window opening mid-queue — was the one it missed, and every subsequent task re-picked the dead provider and died the same way. Those vendor-branded banners are now recognized as provider chrome. Generic phrasings a task's own failing test can print ("quota exceeded", "daily limit") are deliberately still NOT promoted, so an agent's transcript cannot sideline a healthy provider.
- Auto-run set to
offordry-runno longer merges pull requests. The pending-merge drain that keeps "merge when CI is green" PRs moving ran whenever CoS was not globally paused — but it did not consult the auto-run mode, so the one action that writes to a default branch was also the one action a user could not switch off, including on the evaluation that runs at boot. It now requires auto-run to be inexecute, like every other autonomous tier. - Upgrading with Stacker News items already stored no longer re-sorts the whole triage list. This release folded a post's image URLs into the digest that decides whether an item changed since the last sync, which changes that digest for every row already on disk. The first sync after upgrading would therefore have treated the entire back catalogue as freshly changed — re-running analysis on all of it, re-stamping arrival times, and pushing months of old items to the top of the queue — while any action already awaiting or holding review would have failed permanently with "Source content changed after review" about content that had not changed. Both comparisons now accept the previous digest as equal, and each row quietly adopts the new one the next time it is seen.
- A provider that goes down mid-queue no longer takes every waiting task with it. When an agent run failed because the provider failed, PortOS sidelined that provider only if the failure was a usage or rate limit. Every other provider-side failure — an expired credential, a refused account, an Antigravity install still waiting on Google to verify eligibility — left it marked healthy, so the next task off the queue picked the same provider and died the same way, and the next, and the next. The most visible version:
agyreporting "We're finishing verifying your account eligibility… please try again shortly" would burn down a whole queue of tasks in about a minute, each in three seconds, with nothing to show for it. A failure the run can attribute to the provider itself now sidelines it for a cooldown scaled to the cause (minutes for a transient block, longer for something needing a human), which is what makes the retries land on a fallback provider instead of repeating the failure; the sideline expires on its own, so the provider comes back without anyone visiting settings. Failures that describe the request rather than the provider — a bad model id, a content refusal, an off-shape response — still never sideline anything, since the provider's other models are fine. And a failure diagnosed only by keyword-matching the agent's own transcript can't sideline a provider either; that takes a structured signal from the provider itself. One shared cooldown policy now answers this for both agent runs and one-shot prompts, which previously disagreed about how long the same failure was worth. - The Antigravity account-verification banner no longer blocks the task it interrupts. PortOS recognized the banner and failed the run promptly rather than waiting out the idle reaper, but filed it as something a human had to fix — which blocked the task outright, over a condition whose own error message says it clears itself. It now takes the ordinary retry path, which (with the provider sidelined per the entry above) lands on a fallback rather than re-reading the same banner three seconds later.
- A
--modelyou baked into a TUI provider's own arguments is now honored instead of silently overridden. The CoS-agent TUI spawn path respected a hand-pinned--modelfor OpenCode providers only; for every other TUI it appended the UI's model choice as a second--modelflag, and last-flag-wins meant your pin was quietly discarded (or the CLI rejected the duplicate outright). It now honors the pin for every provider, matching what the one-shot TUI path and the CLI path already did, and what the rest of the app documents. This only affects providers whose saved arguments hand-pin a model — no shipped provider does. - The AI Providers page no longer offers "Refresh Models" on providers the server can't refresh. The button's visibility was decided by a deny-list of command names that had drifted from the server's actual dispatch, so Codex and Kimi Code — both shipped providers — showed the button and produced an error toast on every click. It is now an allowlist mirroring that dispatch's real shape: routed on provider type first, then the same per-vendor tests the server applies — including that its TUI path, unlike its CLI path, never consults the provider name. A test walks every shipped provider against a transcription of the server dispatch, so the next provider added without a matching client branch fails there rather than in the UI. (One deliberate non-change: the server matches
claude/geminion the exact command string, so a renamed provider pointed at an absolute binary path still shows no button — widening both sides is tracked separately in #3616 rather than making the client optimistically disagree.) - On a Bedrock box, a TUI provider that isn't Claude Code no longer has its model id rewritten. Claude Code on AWS Bedrock needs region-prefixed model ids (
global.anthropic.claude-opus-5), so PortOS rewrites bare Claude ids just-in-time whenCLAUDE_CODE_USE_BEDROCKis set. That rewrite keyed only on the model id containing "claude" and was applied by default to every TUI provider — so any vendor that labels Anthropic models under its own ids got captured by it. Cursor is exactly that case:claude-opus-5-thinking-highwould have been sent to Cursor's router asglobal.anthropic.claude-opus-5-thinking-high, an id it has never heard of. The rewrite now keys on the launch command actually being Claude Code, which is what it always meant. Two independent copies of that model-injection step (the one-shot TUI prompt path and the CoS-agent TUI spawn path) had already drifted apart on this; both now share one implementation, so the next provider can't be fixed in one and missed in the other. No shipped provider's behavior changes; a custom TUI provider running a non-claudebinary against a claude-ish model id will stop being rewritten, which is the correct result for a non-Claude-Code binary. - The Antigravity card on the Usage page loads quota again after
agy1.1.x renamed its limit rows. The/usagepanel still groups Gemini / Claude+GPT windows the same way, but each window header grew a trailing "Remaining" (Weekly Limit Remaining,Five Hour Limit Remaining). The parser required the line to end on bareLimit, so it found the groups and returned zero meters — the card looked broken with "No quota data found." Both the new labels and the older bare-Limitform parse to the same keys. - Grok and Kimi agents now actually start, and an agent that fails to spawn says why. Picking the Grok or Kimi provider for a CoS agent produced a task that never opened a shell: the durable agent runner keeps an allowlist of CLI commands it is permitted to spawn, and
grokandkimiwere never added to it even though both ship as selectable providers. Both are allowlisted now, and a test keeps that list in step with the shipped provider catalog so the next provider added without an entry fails in CI rather than in a silent agent. The reporting around it was the worse half of the bug: a rejected spawn was logged and dropped, never reaching the agent record. A TUI agent sat in "initializing" for a minute until the zombie sweeper finalized it as "Agent process terminated unexpectedly" — a message that named no cause — and the CLI equivalent was worse still, staying "working" indefinitely because the stale in-memory entry made every cleanup sweep skip it. Both paths now finalize immediately with the runner's actual error, the runner names the offending command instead of returning one opaque "missing or invalid fields", and an agent reaped without ever having recorded a process id is reported as never having started rather than as a crash. - The labels on LoRA training dataset images are readable again. The source chip ("upload", "generated", "sheet crop", "gallery") and the view label ("front three-quarter") were tinted overlays — 20%-opacity color on top of whatever the training image happened to be — so over a bright photo, or under a light theme, the text all but disappeared. They were also pinned to opposite corners of the thumbnail, so a long view label collided with the source chip in a narrow column and the two printed on top of each other. Both chips now carry their own near-opaque plate with light text, and they share one wrapping row so a long label drops to a second line instead of overlapping.
- The Antigravity code reviewer no longer looks like it isn't installed. Antigravity's command is
agy, but every agent prompt named the reviewer by its internal slug,antigravity— a command that exists on no machine. A review-loop agent went looking for it, found nothing, concluded there was no reviewer available, reviewed its own work instead, and merged the PR. Prompts now name the actual command, and a reviewer whose command genuinely isn't installed blocks the merge with a note on the PR instead of quietly being replaced by a self-review. - A queued malware scan is now visible on the link that's being scanned. Clicking Scan in Brain → Links queued the run and toasted, but recorded nothing on the link — so a reload showed no sign of it and the button re-armed, with the second click rejected as a duplicate. A pending scan now shows a "Scan queued" chip, and the "Scan Reports" filter no longer lists links whose report the agent hasn't written yet (clicking through went to a 404).
- Pull requests opened by a CoS agent under a "merge when CI is green" policy now actually get merged. The check that watches those PRs only ran when an app's optional "PR Watcher" scheduled task fired — and that task ships disabled, since its default prompt is a review-and-comment agent most setups don't want. So PortOS was queueing green PRs into a list nothing ever read: they sat open indefinitely, and because the retry counter never advanced, the safety net that gives up and notifies you after a few hours never fired either. The watch now runs on the normal CoS cadence, independent of that task.
Internal
- A one-off "read the code and file what you find" agent run no longer has to impersonate a scheduled task type. PortOS exempts tracker-filing runs from the "did it leave a commit?" success check, because a run that files GitHub issues legitimately leaves the tree clean — but the exemption was keyed on the task carrying a scheduled type name. The only way for a hand-queued run to qualify was to claim one, which would also enroll it in the scheduler's per-type consecutive-failure ledger and eventually auto-park (and notify about) a "type" no schedule owns. The gate now also accepts the tracker marker the dispatch already stamps, which one-off runs carry honestly. Alongside it, the four-part "resolve the tracker, render its filing instructions, and derive the two metadata flags from that same answer" step — previously a third hand-copy in each new caller — moved into
lib/workTracker.jsnext to the wording table it reads. - [issue-3618] Adding a coding-agent provider is now one table row instead of eight coordinated edits. Teaching PortOS about a new vendor's CLI/TUI meant editing open-coded dispatch branches across five files — argv builders, prompt-delivery rules, TUI posture flags, the command allowlist — and two of those sites (the TUI model-injection paths) had already drifted apart once before being collapsed into a shared helper. A
PROVIDER_VENDORSregistry now holds one row per vendor (claude, codex, antigravity, opencode, grok, kimi, cursor), and every one of those dispatch points reads from it instead of hand-rolling its own if-chain. No vendor's argv-building logic changed — this only relocates dispatch, verified against the full existing test suite plus a byte-for-byte check that the derived command allowlist still matches the prior hand-maintained list exactly. - The six provider-seed migrations share one shell instead of six copies of it. Every migration that ships a new AI provider to already-installed setups (OpenCode Ollama, its TUI sibling, Grok, Cerebras, Kimi, Cursor) repeated the same byte-identical read → validate → add-missing-ids → write body, so any hardening of it was a six-file sweep nobody did — and none of the six had picked up the reserved-key guard (
__proto__/constructor/prototype) the split-migration family already applies. They now call a sharedmakeProviderSeedMigrationfactory that carries that guard, and each migration keeps only its own frozen provider payload, since a migration is the historical record of what it installed. Their duplicated shell tests collapse into one suite against the factory; every payload assertion each migration already made still runs unchanged. - Whether a provider can refresh its model list is now the server's answer, not the client's guess. The "Refresh Models" button used to be gated by a hand-written client-side re-derivation of the server's model-refresh dispatch — a mirror kept in step by a comment, backed by a parity test that transcribed the same dispatch a second time (so it only ever proved the mirror matched the test's copy). It drifted, silently, in both directions: too generous showed a button that errored on every click, too stingy hid the feature with no error at all. A gemini provider configured by absolute path was in the second bucket. The server now derives the answer from one per-vendor table and sends it on the providers payload as
canRefreshModels; the client just reads it. The three keying conventions that had accumulated as prose above each branch (exact command string, path-tolerant command basename, display-name substring — and which of them a TUI provider is allowed to use) are columns in that table now, so adding the next vendor is one row instead of four coordinated edits across two repos' worth of files. The field is computed per response and never stored, so it can't go stale against the dispatch it describes. No shipped provider's button visibility changes; the one behavior that does is that a provider whose command is literallygemininow refreshes as gemini even if someone named it "Claude Something", which is the same "an exact command beats a display-name substring" rule the dispatch had already grown for cursor and Antigravity. - Federated peers stop mis-grading each other's one-off agent runs across this version boundary. Two of this release's task-metadata additions — the
workTrackerdispatch marker and the per-reviewerreviewerEffortspins — change how a task runs, not how it validates, so an older peer accepts a synced task and then executes it wrong: it doesn't know the tracker marker exempts a run from the "did it leave a commit?" check, so a run that correctly filed issues and left the tree clean is graded a failure, dragged through that provider's learning bucket, and pushed back onto the newer machine as damaged state. ThecosTaskswire version bumps 3 → 4 so a machine still on v2.39.x gently pauses cos-task sync with a clear "schema ahead" log until it upgrades, instead of silently corrupting run outcomes. Only cos-task sync pauses; every other sync category is unaffected.
Full Changelog
Full Diff: https://github.com/atomantic/PortOS/compare/v2.39.0...v2.40.0