mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1719] [Feature]: a native agent "Harness" tab in the Strata web app (RFC) #686
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#686
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dark5un on GitHub (Oct 9, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1719
RFC: a native agent "Harness" tab in the Strata web app
Draft for the upstream feature-request issue (Niko1221/Strata). Written in the
repo's docs style: plain words, measured numbers with what they were measured
on, no claims without a measurement.
What do you want to do?
Strata today serves the model to other agents — Claude Code, Codex, Hermes,
MCP clients all point at
/v1. But the Strata app itself has no agent: to runa tool-using, multi-turn job on your own PC you still need a third-party
harness installed next to it.
I would like Strata to offer an optional fourth tab — Harness — a native
agent loop that runs against the local server in-process:
streamed live to the tab;
fork, export (markdown/JSONL);
with a durable policy event — the tab never runs a shell command without a
decision;
monitor's own numbers, compaction that shadows old spans instead of
rewriting them, spill files for oversized tool output;
depth/budget caps);
Service.metrics()— the harness compacts before the engine 400s.Goal, not implementation: "run an agent on your own PC without installing
another tool". The workaround I use today is pointing an external harness at
127.0.0.1:8080/v1, which works but keeps sessions, approvals and contextmanagement outside Strata's view.
Why this fits the project
(#980 field report, #1431 tool-call recovery in agent workloads, #1615
harnesses recognizing context-overflow, #728/#694 agentic-loop pain).
A first-party harness can handle overflow and retry policy where the server
actually knows the context state.
--harnessflag /"harness": truein theconfig, off by default. No changes to the engine, the C++ layer, the
template layer, or any existing route. The fork boundary is
serve/harness/(Python, stdlib only) +serve/web/harness.js|css+small hooks at the tail of the routes table and the tab list.
tokens.css/components.css/st-* classes and the sprite icons.
_own_pagegates on control routes, approvals default to 'ask', keys read from env or
run-config, never argv. Nothing is exposed beyond 127.0.0.1 without
--api-key.Status: it exists and is tested
I built this as a fork ("strata-harness") over the last days, on upstream
0.1.40.4:
harnessbranch);python -m unittest, plus ruff, pyright (strict onserve/harness/) andeslint gates;
test_server.py;handling) before any push.
Proposed PR series (small, reviewable)
serve/harness/package skeleton,--harnessflag,routes table tail + hidden tab button, ADRs, lint/test configs,
tools/test_harness.sh. No behaviour when the flag is off.CLI driver only (no UI).
itself split into transcript/stream, then approvals, then gauge.
steering.
Each slice is independently testable and keeps the tab hidden until the
previous one lands. Happy to re-cut the series however review prefers, and to
follow whatever contribution process you want for a feature this size — I
could not find one documented, so this issue is my RFC.
Extra notes
license.
model), which collides with #1615's "harnesses" (external clients). Easy to
rename the tab if that reads badly.