Skip to content

feat: clearer agent admin and review, per-tab chat, lighter tool context - #102

Merged
albanm merged 22 commits into
mainfrom
feat-better-config-ui
Nov 18, 2026
Merged

albanm merged 22 commits into
mainfrom
feat-better-config-ui

Conversation

@albanm

@albanm albanm commented Nov 18, 2026

Copy link
Copy Markdown
Member

Make autonomous agents easier to administer and review, and cut the size of the tool definitions sent to the model.

  • Agent page: one level of activity tabs, list-style tasks, a page per run (…/runs/<runId>; old ?tab=history&run= links redirect).
  • Review: turns folded into the thread, participants named, who let each call run and the cards people decided. Each run records what the model was sent beyond the stored messages: recap, cleared results and removed images, per-step instructions, and the tools offered (stored once per distinct set, tool-definitions collection), in the review page and the export.
  • Memory: per-document history as diffs, markdown editor, clearer authors, deleted documents listed for restore.
  • Chat: the conversation belongs to its tab; a tab that loses it to another can continue there; a page action asks before leaving a chosen agent's conversation.
  • Reliability: a short 429/503 retried once by web and file fetches, a 429 no longer cached; tripwire and moderation calls labelled on the run; approval reviewer with a stage 1 on the rules' own question and a bounded stage 2 analysis (thinking off); short task outcome summaries (≤500 chars).
  • Smaller tool context: code_mode signatures without repeated descriptions and with the MCP return type named once; no portal argument (every call acts on the home site); guard-eval and specs on openapi-mcp 0.14 form_* names; update_task points to plan_task's notes.

Why: admins needed to see what an agent did and was told, and a full-scope agent's first request was ~120k tokens, mostly tool definitions. With the denser platform tools now merged in data-fair, portals, catalogs, processings and data-fair/mcp, this brings it to an estimated ~55k.

Heads-up:

  • A multi-host agent can no longer target a portal explicitly: everything goes through the home site.
  • An admin toolFilter naming a form tool by its old per-service name stops matching under openapi-mcp 0.14.
  • The approval reviewer's prompts and stage-2 mode changed; check the production-model eval before release.
  • Task outcome summaries over 500 characters are now refused once and shortened.

albanm and others added 21 commits November 16, 2026 11:13
… authors

- History is reached from a document (History action, deleted documents list)
  and shows each version as a line diff against the one before, instead of a
  store-wide feed of full copies. New GET /api/memory/.../deleted route.
- The chat's read-only memory dialog shows current documents only.
- Document form is a vjsf form: description textarea, content in the
  vjsf-markdown editor. Its preview and the read-only view go through the
  chat's sanitizing renderer (the plugin's own rendering is unsanitized and
  memory text can come from tool output). Input is not debounced, so a save
  right after typing keeps the last edit.
- Author labels: "by the agent, in a conversation / in a planned task run",
  "by the agent's daily memory review", "by {name}".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…runs on the review component

- Activity tabs: Conversations | Task runs | Scheduled tasks (no nested toggle).
  Conversations reuses ReviewList with a new agentId filter on the review list
  route: one row per conversation instead of one per turn.
- Task runs and scheduled tasks use the same compact list as conversations;
  a task row keeps its switch and Run now, the rest moves to a menu.
  Wider notifications dialog.
- A task run has its own page (agents/:agentId/runs/:runId) rendered with
  ConversationReview, which now takes a loaded run beside a conversation id
  (same bar, detail panel and export), with the outcome and Abort in a header
  slot. A conversation run's page redirects to its conversation's review.
  TaskRunView is removed.
- Notification links (tasks, tripwire, approval reviewer) come from one helper
  and point at the run page; old ?tab=history&run= links redirect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… runs list

The no-outcome line hung off the reminder line's v-else-if, so in the list
(which carries no messages) every run that reported an outcome also said it
reported none. A finished run with an outcome now shows only the outcome chip,
and a list row clips the summary to one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The summary was capped at 10,000 characters and models wrote their whole
report there, which became the notification body and the runs list row.
It is now asked for at about 300 characters (one to three sentences) and
refused over 500, the reviewer's asked/limit split: a model counts
characters loosely. A run that could not do its work says so, never in a
sentence that reads as a result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both share the moderator role, so a tripwire call on a task run read as
moderation, which never runs there (two simulation judges were misled).
Each is now noted `tripwire` or `moderation` on the run's calls. The
web-watch case's persona no longer says monthly for a weekly task.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…click

The test still expected the reason a decision carried before refusals
became one click (143f8ec): the person's reason is their next message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A turn started by an action button is stored wrapped in <hidden-context>.
The chat split it out, but the review page and the conversations list
showed the raw wrapper ahead of what the person asked. The split is now
in the one mapper every reader uses: the chat shows the visible prompt,
the review page the hidden context folded under the bubble, and the list
previews the visible prompt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tools model role was removed (16442e9), and the settings PUT now
refuses it: both tests of the spec failed at setup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stored messages are never rewritten, but the model is sent a
transformed view of them, so the review showed results it no longer had
and token counts that could not be explained. Each transformation now
records what it did on the run's `context`, as it does it:

- the compaction recap the turn began with (its summary on the run that
  wrote it, the conversation's recap naming that run);
- each tool result sent as a placeholder, cleared or an image not sent,
  from the step it first was;
- a step's other instructions (page skills changed, the tripwire's
  explanation request) and the repeated-call reminder.

The tools offered are stored once per distinct set with their
descriptions and input schemas (`toolDefinitionsRef`), and a task run
keeps the title that heads its message, so its transcript shows the
exact text it was given. The review page marks each where it applies
(a folded recap, "not sent to the model again" on a removed result,
step notes and the outcome reminder in place, the tool definitions in
the turn detail); the export carries the tool sets as blobs and its
guide and the conversation-export skill say how to read it all.

Also drops the removed tools role from the runtime spec's settings,
which made its three context-management tests fail at setup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The shared web cache kept every status under 500, so a 429 from GitHub
answered every agent of the instance for ten minutes without GitHub
being asked again. saveAs, which skips the cache, worked: an agent
concluded fetch_url could not convert github.com's pages and wrote that
to its memory. The cache now keeps only what HTTP lets a cache keep
unasked (successes, redirects, 404, 405, 410, 414).

A 429 now says it is a rate limit, with the site's Retry-After, and
that calling again at once fails the same way, for fetch_url and saveAs
alike. The tools' descriptions state the run's call budget, an address
refused by the allowlist no longer spends a call, and saveAs says it
takes one file name, no folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The agent could learn it was rate limited but not wait, and a wait tool
would cost a model step per wait while holding the turn. The web client
and saveAs's download now retry a 429 or 503 once, after the site's
Retry-After when it asks for 20 s at most, after 5 s when it says
nothing, as HTTP clients do. A longer wait goes back to the agent at
once, and an error after the retry says it waited and tried once more.
The wait ends with the turn's abort signal, now passed to the client,
and a page's optional metadata reads are not retried.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ation

An action button addresses the assistant. When the chat showed a
conversation the person had chosen with another agent, the button
silently stopped that agent's turn and replaced the conversation. The
chat now holds the request and asks in place (ask the assistant, or
dismiss). A conversation the chat only resumed by itself is still left
without asking.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ngle deletion

- the review page names the agent (by title) and the person it was
  between; the list names agents by title instead of their id
- each turn's record is folded in the thread above the first message it
  wrote, its instructions and page context folded again, instead of a
  detail block stacked above the conversation
- an admin can no longer delete one stored conversation: review is the
  organization's record; per-person GDPR erasure stays

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- a Review section between a call's input and output: the reviewer's
  verdict and reason, then who approved or declined it and when
- a call a person decided shows, on the review page, the approval card
  they saw, read-only, with their choice where the buttons were

Read from what each call already records (toolMetadata.review and
toolMetadata.decision); the reviewer's verdict on an allowed call and
the decider were stored but not shown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…here

A ctrl-clicked tab opened the drawer (its open state was in localStorage),
resumed the person's latest conversation and took it over, the first tab
showing a bare error. Worse, that tab could still prompt: its turn ran on
the other tab's page tools and streamed there.

- The drawer's open state and the conversation are kept per tab
  (sessionStorage): a reload or a navigation resumes, a new tab starts a
  new conversation, as ChatGPT or Claude.ai do. A remembered conversation
  that can no longer be opened falls back to a new one.
- A taken-over tab gets a `displaced` frame and says the conversation
  continues in another tab, with a Continue here button (a new hello).
- The server refuses a displaced socket's prompts, approvals and Stop
  until it says hello again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… its answer

Measured on DeepSeek V4.1 Flash (GreenPT through LiteLLM), the staging moderator:
- stage 1 flagged "any concern" and any index, path or id, so 39/64 benign screens and
  83% of reviews went to stage 2; it now asks the rules' own question, as Claude Code's
  first stage does (3/96). The item and visitor-edit boundaries it carried are rules now.
- stage 2 left the model's thinking on, which is unbounded: 19/81 reviews failed with no
  verdict, p95 15 s. Thinking is off and the verdict starts with a bounded `analysis`.

Full reviewer eval, 3 runs: 3/135 misses (all ro-display-existing-item, a low-severity
stage-1 clearance, accepted), 2/117 false cards, p95 6 s. The three reviews of a staging
conversation that failed on GLM 5.3 Flash (rb-pools-*) are allowed in 9/9 runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…del already has

Every tool a script can call is one the model has in the same step, its
description in its own definition; the package wrote each again as JSDoc
in code_mode's description. On a production autonomous agent that was
109k of a 438k-character request, resent every step. Only a script-specific
description (codeDescription) stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ignatures

The package writes every return type inline: an MCP tool without an output
schema repeated the same union (string | { text, files } | record), 135 times
on a production autonomous agent, 26k characters resent every step. It is now
declared once, type ToolResult, at the top of the tools' block. The package
cannot emit a name, so the union is rendered with the package itself and that
exact text replaced; a rendering that changes leaves the description as it was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ment

A site-bound tool took an optional portal (an enum of the account's other
hosts) on every tool. data-fair's platform server is the back-office: its
tools answer the same on any site of the account, and the one tool that
depended on the site, the published catalog, is now the datasets server's
only (data-fair/mcp). The argument was about 73k characters of a production
request (135 tools, 6 portals) and grew with each portal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The form calls of the reviewer corpus take openapi-mcp 0.14's shape: form_<verb>
with a form argument, titled "Formulaire — <verb>" as a token granted several
forms sees them. The attach becomes portals_update_page_settings. Reviewer eval
on the 20 form cases, old vs new names: no regression.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eating them

The delivery, schedule and refusal notes were written in full in both
descriptions, about 2.5k characters of every request of an agent that plans
tasks. The three planning tools always come as one set, so update_task refers
to plan_task's; its approval note stays, being about its own result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@albanm
albanm merged commit 01ed163 into main Nov 18, 2026
2 checks passed
@albanm
albanm deleted the feat-better-config-ui branch November 18, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant