Changelog

Unreleased · 550 changes · page 4 of 10

coding.sh v0.1.8

MCP 26

  • # Added A work tool pages the queue coding.sh work --json prints, with the index's age, which status now carries too. session_current finds a running subagent or worktree delegate, sessions_list counts the child sessions it leaves out (hiddenChildren), and a session_get tail cursor past 20,000 events keeps its place while the session grows. MCP
  • # Added The work tool takes id (a work id, a prefix of one, or a session id) and answers with that one item, found as coding.sh work show finds it, hidden items too. Before, reading one item meant paging every item. An unknown id is a tool error, and so is a shared prefix, which lists the matches. (docs)
  • # Added The eval_candidates tool answers with rejected, the count coding.sh eval candidates --json gives, and rejectedBy, the count for each reject reason. Both cover every session it considered, not only the rows it lists. Before, it could not say how many sessions it turned down or why. (docs)
  • # Changed The tools that take a session id, and coding.sh work show, take a unique prefix, a subagent's own id or latest; an ambiguous prefix lists its matches. Hints and session_tree and subagents rows use the shortest id that resolves, so more rows fit on a page. search and status keep full ids, with shortId beside them. Concepts
  • # Fixed The first calls after an upgrade answer within a few seconds. While the index is folded again, every result carries index.refolding: true, and a session not yet refolded shows its older stats whole. latency keeps to its time budget on very large stores, where it could fail before. Configuration
  • # Fixed sessions_list says which time window it read: a window with the since and until from its arguments and any since: or until: clause in where, the tighter of each. Given only until, it still lists every session before it. MCP
  • # Fixed session_get, session_current and sessions_list add repoMain, the main checkout's root, for a session in a linked worktree, as show --json does. The session resource's Repo line names it too. MCP
  • # Fixed session_get with tail pages back to the first entry with nextCursor. A since after until is an error naming both times. A 2024-11-05 client gets 2024-11-05 and results without structuredContent. Error results carry no structuredContent; details are in _meta. status lists the top 5 work items, not 10. MCP
  • # Fixed session_get reads a session once when it shrinks a page to fit, about 8 times faster on long sessions. harness_changes, exp_session_summary and eval_from_session answer an error for a missing repo path or unknown id, and since equal to until no longer advises a swap. MCP
  • # Fixed Reading codingsh://latest on an empty store returns the "No sessions captured yet" next step instead of Resource not found. session_get refuses turn: 0 rather than returning the whole session, and the session digest says "1 turn". Ask your agent
  • # Fixed session_get on a session whose last turn is still under way now gives one turn count: turnCount and the out-of-range turn error count closed turns, as session.turns and coding.sh show do, and the turn under way stays in the index marked open, reachable with turn: -1. MCP
  • # Fixed The search tool's agent picks sessions by the session's agent and each hit's agent is the session's, as coding.sh search --agent and sessions_list do. Before, it went by each event's agent, so agent: "t3code" found nothing in Claude Code sessions run from T3 Code and their hits said claude-code. Ask your agent
  • # Fixed The latency tool lists T3 Code's request_secret card under waitingTools with waitsOn: "human", like AskUserQuestion. Before, the minutes it stayed open until you pasted the secret topped slowestTools and slowestCalls. Ask your agent
  • # Fixed Following the search tool's nextCursor returns every hit once, in the order of coding.sh search --json. Before, hits that ranked the same could repeat on one page and never show on any. The session_get summary and the session resource also report failed model calls (llmErrors: count, first status and error). MCP
  • # Fixed sessions_list lists subagent sessions when its where names id:, parent: or is:child, as sessions --where does, instead of an empty list without includeSubagents. On Windows, session_current and the repo argument match paths whatever their case and slash direction, so c:/work/app, C:\work\app and a session stored with forward slashes are one folder. Query language
  • # Fixed On Windows, mcp config prints register commands whose paths survive Git Bash: forward slashes, with double quotes around a path that holds a space. Before, Git Bash dropped the backslashes, so C:\Users\me\cli.mjs arrived as C:Usersmecli.mjs. CLI reference
  • # Fixed eval_init errors name its arguments, such as command, url and force: true, where eval init names CLI flags, and no longer suggest --draft, which eval_init does not take. MCP server
  • # Fixed latency reads every session in the window, not only the newest 300 with calls, so a filter no longer finds a slower call than the unfiltered answer. window says how much it read (sessionsRead, eventsRead); after 30 seconds it stops, sets truncated and says why in truncatedNote. MCP server
  • # Fixed The codingsh://session/<id> resource stays under 25,000 characters: it lists the first 40 subagent lines, with descriptions cut to 120 characters, names the subagents and session_tree tools for the rest, and shortens the timeline to fit. Before, a session with many subagents could return a resource past the limit. MCP server
  • # Fixed session_get and the session resource split a session into the turns stats.turns counts: a turn a background task's notification starts is its own turn, and a prompt sent while a turn runs stays in it. Before, turnCount could disagree with the turn list, and those turns could not be opened. MCP server
  • # Fixed session_get, session_current and the codingsh://session/<id> resource print durations as the CLI does: 119.6 s is 2m00s, not 1m60s, and 8,975,379 ms is 2h30m, not 2h29m. (docs)
  • # Fixed resources/read takes the session ids the tools take: codingsh://session/<id> accepts a unique prefix of 4 or more characters, latest and a subagent's own id. A prefix several sessions share fails with invalid params and lists them, as the tools do. Before, only a whole id was found. (docs)
  • # Fixed The status tool shows a password in the store URL as ***, as coding.sh status does, and so does the error of a store that fails to open. Before, the password went into the agent's context. (docs)
  • # Fixed On Windows, coding.sh no longer exits when it runs git in a folder whose path is 259 characters or longer, so the MCP server answers a tool call that names one. That git call, or one in a missing folder, fails with an error that says why. (docs)
  • # Fixed The MCP server and read commands no longer exit when they cannot start the background ingest they hand pending captures to, as when an upgrade removed the node binary they run on. The captures wait for the next ingest. (docs)
  • # Fixed session_replay is no longer marked read-only, since its fork argument sends a step's model call to the provider again. The MCP page lists score_add_batch with the tools that write and are marked destructive. (docs)

Cost 26

  • # Added Plan usage for the 5-hour and weekly windows: the Claude Code status line ends with 5h 62% 7d 41% when Claude Code sends it, coding.sh quota prints each agent's windows with the reset time, quota wait blocks until a window has room, and the MCP status tool includes the same rows. CLI reference
  • # Added coding.sh usage --by mcp, --by skill and --by subagent show what each MCP server, skill tag and subagent type costs; an MCP server's cost is its result tokens at the session model's input price. Every --json row has "basis": "attributed". Track cost
  • # Added coding.sh budget set day|week|month <usd> sets a spend budget for every session, one agent or one repo, and budget status shows the estimated spend, limit, percent and reset. The status line adds budget 82% past 80%, and proxy --enforce-budget answers 429 to a call over a budget. Track cost
  • # Added coding.sh budget set day 5 --where 'user:alice' gives the sessions a query matches a budget of their own, with their subagents' cost; budget status --json adds where. The status line counts only day budgets on session keys, and proxy --enforce-budget never applies them. Track cost
  • # Added usage --cache, show and the MCP usage tool split the estimated cost into cache reads, cache writes, uncached input and output, with each part's share; usage --json adds estimatedCostByTokenType. Reported and gateway-billed costs are not split and are named apart. Track cost
  • # Added coding.sh usage --repo <path|name> keeps one repo, read as sessions --repo and a repo budget read it, so usage with a budget's --agent and --repo over its period gives the total budget status shows. -r is its short form. (docs)
  • # Fixed coding.sh work show, work --json and the Work page count a session's whole cost when part of it is estimated from token counts. Before, an item, a workflow phase or an agent with some reported and some estimated cost counted only the estimated part. Work
  • # Fixed The status line's today cost counts subagent sessions, so it matches budget status, usage --since today and the budget percent next to it. Status line
  • # Fixed usage --reprice and the refresh that runs when prices change update the events and sessions in a Postgres store. Before, both skipped Postgres: estimates kept old prices, calls to a newly priced model kept no cost, and older estimates had no split by token type. Where cost comes from
  • # Fixed coding.sh proxy --enforce-budget adds x-should-retry: false to its 429, so the Anthropic and OpenAI SDKs raise the budget error at once. The Anthropic SDK used to wait the whole Retry-After, up to the next reset, before it showed anything. (docs)
  • # Fixed The budget 429 from coding.sh proxy --enforce-budget and the proxy's blocked a call line show amounts under $1 to four decimals, as coding.sh budget status does, instead of $0.00 spent of $0.00. The line gives the reset as 5h 20m, not in seconds. (docs)
  • # Fixed coding.sh proxy --enforce-budget counts in its start note only the budgets that can block a call, and says when a --repo or --where budget, which never blocks one, is set, as proxy --help now says too. Before, it counted every budget. (docs)
  • # Fixed GPT-6.2 Astra and Sol and Gemini 4 Neon, Hydrogen and Carbon have their own price rows. GPT-6.2 Astra was estimated at GPT-6 Astra's higher rates, and the three Gemini models had no cost. GPT-6.2 flex calls get standard rates, and its Ultrafast is 3x. Antigravity's -orchestrator models are priced as the Gemini 4 model they run. (docs)
  • # Fixed GPT-6 Rosalind is priced at OpenAI's promotional $10 input and $50 output per million tokens, which OpenAI says runs at least through December 31, 2026. Before, it was priced at $15 and $75. GPT-6 Cyber prompts over 272K tokens get its long-context rates; before, they got short-context rates. (docs)
  • # Fixed A token count below 0 or not a finite number bills nothing: a model call no longer gets a negative, NaN or infinite cost estimate, and stored estimates are recomputed once. Tool evals, benchmarks and replays bill it as nothing too, and a tool eval no longer takes it off another call's tokens. (docs)
  • # Fixed Repricing removes an estimate that no price makes any more, such as one from a deleted [prices] row, so the call has no cost, as a model with no price has none. Before, the old estimate stayed in the call and its session. Stored estimates are checked once. (docs)
  • # Fixed Repricing no longer undoes what an ingest or a refold wrote to a session meanwhile, and one stopped between a session's costs and totals no longer leaves the totals on the old costs. Where the refold's lock file can't be made, it waits for a run that can, and usage --reprice fails. (docs)
  • # Fixed While stored estimates are repriced, a read's note says a re-parse or repricing is running, and the repricing has the captures reads leave waiting ingested between its steps where it can. Before, the note named only a re-parse, and those captures waited for the next ingest. (docs)
  • # Fixed A model call nested in another that reported a cost, even $0 as a free model under a framework's span does, now beats the outer call's estimate, also an estimate of $0 from a [prices] row of 0. Before, the session took the estimate. Stored sessions are folded again once. (docs)
  • # Fixed After coding.sh gateway enrich, a model call nested in another counts at what the gateway billed for it when the outer call's cost is an estimate. Before, the session took the call's cost before the bill. A billed call no longer adds its nested calls' cost to the bill. (docs)
  • # Fixed A gateway's bill counts once when coding.sh gateway enrich linked its generation to two copies of one call, such as the proxy's copy and the agent's own record. Before, the session added the bill's difference from the call's cost twice. Stored sessions are folded again once. (docs)
  • # Fixed After coding.sh gateway enrich, a session costs what the gateway billed, also when new prices are applied to its calls while enrich runs. Before, a call's new estimate could be added on top of the bill. (docs)
  • # Fixed coding.sh usage marks a row with ~ whenever part of its cost is estimated, even when the estimate rounds to $0.0000, and prints the note that explains ~. Before, such a row read as all reported. (docs)
  • # Fixed After coding.sh gateway enrich, a billed call adds nested bills for other generations and, with no usage, its nested calls' tokens. A nested bill replaces an outer call's cost. Of a response's copies, one billed or with a nested bill counts first, then one a bill covers, then the one checked first. Stored sessions are folded again once. (docs)
  • # Fixed A Claude Code subagent transcript copied under another session is stored once, under the session that wrote it, even when its first line is cut short or corrupt, so its calls and cost count once. (docs)
  • # Fixed Fractional token counts and counts over 2^53 - 1 now bill nothing and add nothing to totals, as negative ones already did. Adapters read all three as missing before working out other counts like the uncached input; only new proxy and OTLP calls get that input. An OTLP cost below 0 no longer hides the next cost attribute. (docs)

Alerts 7

  • # Added coding.sh alert add sets a threshold on failure rate, cost, sessions or one flag over the last hour, day or week. Each change of state sends a signed JSON POST to a webhook or the same JSON to a command. alert check runs from cron, and coding.sh serve runs it every minute. CLI reference
  • # Added coding.sh alert add --measure score:<name> alerts on the mean of a numeric or boolean session score over the window, and --under with --warn-under fires when the value falls below the threshold, so a falling eval score notifies. The webhook body adds direction: "under" for these alerts. CLI reference
  • # Changed alert list --json and alert add --json give an alert's states as a list, one entry per group with agent under --by agent, so Windows PowerShell 5.1's ConvertFrom-Json reads them. Before, the states were keyed by group, and the empty key of an alert without --by made it fail. alerts.json is unchanged. (docs)
  • # Fixed Alert webhooks and monitor add --http evaluators get X-Coding-Sh-Timestamp and X-Coding-Sh-Signature-V2, which signs the timestamp and the body, so a receiver can refuse a request more than 5 minutes old. X-Coding-Sh-Signature still signs the body alone; a copy of a request still passes it. (docs)
  • # Fixed When an alert command fails, the error alert list and alert check show keeps the start and the end of its stderr, where cmd, PowerShell and Python name the problem. Before, it kept one line, so a missing program read operable program or batch file. with no program named. (docs)
  • # Fixed A notification that was not delivered is sent again. Each alert check sends the change until a delivery gets through, with previous set to the state the target last got; before, the new state was saved and the change was lost. The cut-off after 5 failed deliveries in a row still applies. (docs)
  • # Fixed alert add --help shows a command target for Windows, "command:node C:\alerts\notify.mjs", beside the notify-send one, and on Windows the error for an empty --notify command: suggests it. A command target runs in cmd.exe there, where notify-send fails. (docs)

Scores 3

  • # Added coding.sh monitor add <name> --judge rubric.md or --run "<command>" scores each session once after it ends, in coding.sh ingest, the viewer and coding.sh serve, with --where, --sample and a daily judge spend limit. The MCP tool score_add_batch writes up to 100 scores, all or none. CLI reference
  • # Added coding.sh review create <queue> --where <query> --config <name> makes a queue of sessions to score by hand, with --sample and --assign. review next, done, skip, status and list work through it, and /api/review does the same in coding.sh ui and serve. Each answer is a human score. CLI reference
  • # Fixed POST /api/scores with an id that is already stored replaces the score only when the caller wrote it and can see its session. Other callers get 404 and the score is unchanged. Scores API

From CHANGELOG.md · RSS · All releases