Repository navigation
v0.2.0-beta.1
Pre-release
Pre-release
·
1355 commits
to main
since this release
A beta of uBixShepherd with a web UI served by the daemon, projects, standards packs,
usage stats, run diagnoses, an OpenCode agent and a front desk the daemon runs. This is
the first release published to GitHub. The 0.1.0-beta.1 section below was prepared but
never tagged, so everything it lists is part of this release too.
Added
- Projects.
projects:inconfig.yamlgroups repos (a repo is in at most one
project) with a daily or monthly budget markedsoftorhard, local build caches
and intake rules. Shepherd rolls spend up per project, holds or warns at the caps,
and layers a project's approved brief and its caches into the text agents are given.
A project's brief is drafted and then approved by the person. The daemon serves them
at/v1/projects. A repo may be named in a project without its ownrepos:entry.
Seedocs/projects.md. - The web UI grows pages. The chat page follows the front desk with a composer,
typed rows and decisions answered inline, and keeps a half-typed message across page
changes. Beside it, a backlog rail lists what waits on the person or has gone quiet,
most urgent first: needs you, broken, idle, working and to review, with today's spend
against the budget, the forge poll's health and any quota hold in its header. Rows
carry their age and MR and pipeline badge, dated from the lane's last activity and the
forge's own times, and an "in thread" jump. The other pages are a Projects view (and
a Board grouped by project, with a Work section fromdocs/WORK.md), Runs and
history, a Usage page, a lane's whole Conversation, a Settings tab and a daemon status
popover on the connection dot. Seedocs/web-chat.md,docs/web-projects.md,
docs/web-settings.mdanddocs/web-daemon-status.md. - Settings in the web UI. The Settings tab reads and edits
config.yamlin place:
per-repo overrides against the defaults, projects (add, edit, delete), a diff before
every save, validation beside the field, aconfig.yaml.bak.<time>backup (the last
10) and a reload of the daemon on save. It refuses to save over a file that changed
on disk, and risky changes ask to be confirmed. A browser session may save only when
shepherd web --allow-settingssigned it in; otherwise the tab is read-only. See
docs/web-settings.md. - Standards packs. A pack is a folder of markdown rules, each with a level
(mustorshould), an optional check command,applies_toglobs andwhentags.
The rules that apply to a lane go into the one brief every agent gets,plan_first
is part of it, and amustrule's check runs before a push. A repo's own standards
win. Repo profiles gainstandards,standards_docs,standards_pack_dirand
standards_when;shepherd standards list,showandinitinspect them, and an
example house pack is written on first start. Seedocs/standards-packs.md. - Usage stats. Each run and each front desk turn records its tokens, its largest
context and how often the CLI compacted.shepherd stats(--days,--from,--to,
--json),GET /v1/usage, theusage_statstool, the web Usage page and a usage
line inshepherd run showanswer whether a larger context window is worth it.
Claude Code and OpenCode report them; Copilot and Cursor record cost only. See
docs/usage-stats.md. - Run diagnoses and suggested fixes. A run that ends badly, or whose work cannot be
pushed (gate, standards or commit rules failed, out of scope, push or merge refused,
out of quota, hung, no change), gets a deterministic one-line diagnosis with its
evidence and suggested fixes, shown in the feed, the CLI and the web UI. A fix runs
an existing operation; the ones that widen what an agent may do are left to the
person. The web UI and chat show what a running run is doing now. See
docs/run-failures.md. - Dismiss a failed run.
shepherd run dismissandrun undismiss(and the
run_dismissandrun_undismisstools) take a failed or stopped run off the board
without hiding it from history. - The OpenCode agent.
shepherd lane run --agent opencoderuns OpenCode headless
for small mechanical edits on a local model.opencode.bin,opencode.endpoint,
opencode.idle_timeout,opencode.contextandopencode.outputconfigure it; a run
that changes nothing or hangs fails with a diagnosis. Not for tests in a typed
codebase. Seedocs/opencode.md. - Front desk session rotation. The daemon's front desk ends its session past
desk.rotate_tokens(default 150000) ordesk.rotate_cost, and starts the next
seeded with a summary Shepherd builds from its own records (desk.summary_model,
desk.summary_chars,desk.summary_turns). What each tool returns to the desk is
capped atdesk.tool_output_chars(default 4000). Adesk_rotateditem appears in the
feed. Seedocs/desk.md. - A daemon on another machine. A named host in
~/.shepherd/hosts.yamlis reached
over an SSH tunnel with--host NAME(orSHEPHERD_HOST), with--workspaceand
--repoto choose what to act on;shepherd host listandhost checklist and
test the hosts. The daemon stays loopback-only. - Chat conveniences. Links in
shepherd chatare clickable OSC 8 hyperlinks
(chat.hyperlinks, also in Settings), and!commandruns a shell command in the chat
client, never by the front desk. - A minimum git. The daemon refuses to start on git older than 2.31 and says so, and
CI runs the tests on Ubuntu 22.04 (git 2.34). - OpenCode provider timeouts.
opencode.request_timeout(default 60 minutes, at
least 1 minute, oroff) andopencode.chunk_timeout(default 10 minutes, at least
10 seconds) set the per-request and stream-chunk limits Shepherd writes when
opencode.endpointis set. These defaults raise the previous hard-coded 15 minute
request limit and 2 minute chunk limit.offdisables the request limit. The chunk
limit cannot be turned off. Seedocs/opencode.md. - Scoped tokens. Besides the operator token in
daemon.json, the daemon mints a
worker token for each agent run, passed to the agent asSHEPHERD_TOKENwith the API
address inSHEPHERD_URL, and revoked when the run ends or the daemon restarts. A
worker token may only report, ask the person, ask another lane, reserve and release
its own lane's tags, read its own run and run the pre-push check. A desk role, for a
front desk the daemon runs, gets the operator tools but may answer a decision only in
a turn the person started. Seedocs/design.md§3.17. - The front desk in the daemon. The daemon runs a front desk of its own, one
conversation per workspace kept in the store, that clients follow instead of starting
their own:POST /v1/desk/turn,GET /v1/desk/stream(server-sent events, resumable
by sequence number),GET /v1/desk/history,GET /v1/desk/status,
POST /v1/desk/interruptandPOST /v1/desk/new. Swarm events wake it on its own
as the newdesk.wakesetting says (attached, the default,alwaysornever),
as one digest when nobody was attached. A turn it takes on its own cannot answer a
decision. Each turn's own cost is recorded asdeskspend.shepherd chatkeeps its
own desk for now. Seedocs/design.md§3.18. - A feed stream.
GET /v1/feed/streamsends the feed as server-sent events, each
item with its event kind, resumable by id orLast-Event-ID, with a heartbeat every
15 seconds and a limit on subscribers.GET /v1/feedis unchanged. - The web UI, served by the daemon. The binary embeds the build of
web/and the
daemon serves it at its own address;make buildbuilds it first when Node is
installed, and a binary built without it serves a page saying how to.shepherd web
signs a browser in: it asks the daemon for a link that works once, for a minute, and
opens it (--printprints it instead;--sign-out-allends every browser session).
Opening the link sets a session cookie (HttpOnly, SameSite=Strict, for/v1only,
12 hours, kept in the store so a daemon restart does not sign you out), so the
browser never sees the operator token.
A browser session has a newwebrole: the front desk's routes, the front desk
conversation and answering decisions, but not the daemon's setup or minting links.
Remote use is an SSH tunnel to the daemon's loopback port. Seeweb/README.md. - A Work section on the project page. Each repo may keep
docs/WORK.md: a## Work
heading and one table with the columnsID | Area | Item | Status | Lane | PR | Notes.
The daemon reads it from the repo's base branch as of the last fetch (origin/<base>,
not the working tree), caches it by blob hash, and serves it at
GET /v1/projects/{name}/work(andGET /v1/unassigned/work). The web UI groups the
rows by status, links each to its lane and PR or MR, and flags drift: an open lane no
row names, adoingrow whose lane is closed or unknown, and a repo with no file.
Rows the parser cannot read are reported as warnings. Seedocs/work-matrix.md. - A model policy in
config.yaml(per-agent catalogue with use-for notes, default
model and effort, project and repo deny and allow rules, shown byshepherd modelsand
themodels_listtool) and a per-run effort forlane run,run continue,lane_run
andrun_continue; the front desk chooses model and effort from the permitted list. - An install script (
bin/install.sh),docs/INSTALL.mdwith per-OS steps, and a
release workflow that pins Node 22 and refuses to publish without the embedded web UI
or any of the six archives.
Interface changes
- New endpoints for projects (
GET /v1/projects,GET /v1/projects/{name},GET /v1/unassigned, a brief's draft and approve routes), config (GET/PUT /v1/config
andPOST /v1/config/preview), history (GET /v1/history/lanesand
/v1/history/runs),GET /v1/lanes/{id}/conversation,GET /v1/usage, a run's
diagnoses and fix (/v1/runs/{id}/diagnoses,/v1/runs/{id}/fix) and dismissal
(/v1/runs/{id}/dismiss,/undismiss), andGET /v1/feed/stream.
GET /v1/status?detail=1adds adetailobject; lane views gain last activity and
forge MR and pipeline times; the feed has new kinds (desk_rotated, run diagnoses). - New commands:
shepherd standards,shepherd stats,shepherd host,shepherd models,run dismissandrun undismiss, and the global--host,--workspace
and--repo;shepherd webgains--allow-settings. New MCP tools:usage_stats,
models_list,run_dismiss,run_undismiss. - New config keys:
projects,standards,standards_docs,standards_pack_dir,
standards_when,desk.rotate_tokens,desk.rotate_cost,desk.summary_model,
desk.summary_chars,desk.summary_turns,desk.tool_output_chars,desk.wake,
chat.hyperlinks, and theopencodeblock (bin,endpoint,idle_timeout,
context,output,request_timeout,chunk_timeout), with the model policy
keys. Absent keys keep their defaults. The daemon refuses to start on git older than
2.31. - New endpoints
GET /v1/projects/{name}/workandGET /v1/unassigned/work, and the
client callProjectWork. - New optional config keys
opencode.request_timeoutandopencode.chunk_timeout.
Absent keys use 60 minutes and 10 minutes, raising the previous hard-coded 15 minute
request limit and 2 minute chunk limit. - The HTTP API answers 403 to a scoped token calling an endpoint its role does not
allow. The operator token is unchanged and may call every endpoint. shepherd workercommands andshepherd mcp, when started withSHEPHERD_TOKEN
set, call the daemon atSHEPHERD_URLwith that token and no longer read
daemon.json. A worker command with no run token refuses instead of finding its run
from the lane.- New endpoints:
POST /v1/web/signin(operator: a one-time sign-in link),
GET /v1/web/signin?code=(the link: sets the session cookie and redirects to/),
GET /v1/web/session(the caller's role, and a browser session's CSRF token and
expiry),POST /v1/web/signoutandDELETE /v1/web/sessions(operator). Paths
outside/v1now serve the web UI. New command:shepherd web. - An unknown path under
/v1is answered with the API's JSON error (404), not Go's
plain text; a request to a known path with the wrong method is now that 404 too,
where it was a 405. - Every request must name a loopback host (
localhost,127.0.0.0/8,::1, any port)
in itsHostheader; anything else is answered 421, against DNS rebinding. A request
with a token that carries anOriginother than the daemon's own is answered 403. - A request with the session cookie and no token must come from the daemon's own
origin (OriginandSec-Fetch-Siteare checked) and, if it changes anything, carry
Originand the session's CSRF token inX-Shepherd-CSRF. The daemon sends no CORS
headers. - The front desk endpoints (
/v1/desk/*) accept a browser session as well as the
operator token. - A request with no token and no session is answered 401 with "not signed in: run
shepherd web for a sign-in link".
Fixed
- A rebased lane's push is judged on its own changes. Scope was checked against the
remote's old tip, so after a rebase and force push the base's own files were reported
as outside the lane's scope; it is now checked from the merge base with the base
branch. - A daemon start from inside an agent run is refused (
--force-from-runoverrides),
and per-run and push-block variables are scrubbed from the environment the daemon
starts with, so a daemon started by an agent no longer carries that run's settings. daemon restartandinstallcheck the config first, so a broken file replaces
nothing; a retired key loads with a warning instead of failing.- Chat records each turn's own cost, not the session's running total.
- The web UI shows a lost daemon connection and reconnects by itself.
- OpenCode no longer redirects a hosted provider to the local endpoint. With
opencode.endpointset, a model such asopenrouter/qwen/qwen3-coderused to make
Shepherd define anopenrouterprovider at the local host. Now only a bare model name
orlocal/<model>runs on the endpoint; any otherprovider/modelis passed to
OpenCode as written and uses its own provider and login. A prefix other thanlocal/
no longer names a local provider. The run's closing log line reports a priced
provider's cost instead of always saying no cost. Seedocs/opencode.md. shepherd daemon reloadno longer shuts the daemon down: the daemon treats SIGHUP only
as a config reload, so a reload no longer interrupts runs or triggers a service restart.- Agents no longer inherit
SHEPHERD_CLIENTfrom the daemon. A daemon started from
the front desk's tools passeddeskon to every agent, so lanes an agent opened were
recorded as opened by the desk.
Known limits
- GitLab is the only forge for lanes. Merge request polling, merge closure, pipeline
handoffs and merge arming use GitLab throughglab. GitHub is the release mirror and
publishing home; GitHub mirror and publication proofs are not built. - macOS and Linux are tested; Windows is untested and experimental. It builds in CI
and its archives are published, but it has no service-manager integration and does
not support SIGHUP reload. - Not built yet: workspace-wide leases (scopes are per repository), typed and
cross-repo work orders, triage andverified-on:<env>proofs. See
https://github.com/ubixsys/ubixshepherd/blob/main/docs/roadmap.md. - A beta. Public interfaces may change between releases, and there has been no
independent security review. See
https://github.com/ubixsys/ubixshepherd/blob/main/docs/VERSIONING.md. - Scoped tokens are not isolation. They stop accidents and tool misuse, but an
agent running as the same OS user as the daemon can readdaemon.jsonand obtain
the operator token. Real isolation needs agents under a separate account or an OS
sandbox, planned for later. - Web sign-in on a shared machine. Opening the sign-in link passes it to the
browser opener on its command line, where another local user could read it for that
moment and race the browser to use it;shepherd web --printavoids that. Anyone
with the operator token can mint a link. The daemon speaks plain HTTP on loopback, so
the session cookie is not marked Secure; TLS for direct remote access is later work.