Skip to content

v0.2.0-beta.1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 11 Oct 20:04
· 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: in config.yaml groups repos (a repo is in at most one
    project) with a daily or monthly budget marked soft or hard, 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 own repos: entry.
    See docs/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 from docs/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. See docs/web-chat.md, docs/web-projects.md,
    docs/web-settings.md and docs/web-daemon-status.md.
  • Settings in the web UI. The Settings tab reads and edits config.yaml in place:
    per-repo overrides against the defaults, projects (add, edit, delete), a diff before
    every save, validation beside the field, a config.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-settings signed 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
    (must or should), an optional check command, applies_to globs and when tags.
    The rules that apply to a lane go into the one brief every agent gets, plan_first
    is part of it, and a must rule's check runs before a push. A repo's own standards
    win. Repo profiles gain standards, standards_docs, standards_pack_dir and
    standards_when; shepherd standards list, show and init inspect them, and an
    example house pack is written on first start. See docs/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, the usage_stats tool, the web Usage page and a usage
    line in shepherd run show answer 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 dismiss and run undismiss (and the
    run_dismiss and run_undismiss tools) take a failed or stopped run off the board
    without hiding it from history.
  • The OpenCode agent. shepherd lane run --agent opencode runs OpenCode headless
    for small mechanical edits on a local model. opencode.bin, opencode.endpoint,
    opencode.idle_timeout, opencode.context and opencode.output configure it; a run
    that changes nothing or hangs fails with a diagnosis. Not for tests in a typed
    codebase. See docs/opencode.md.
  • Front desk session rotation. The daemon's front desk ends its session past
    desk.rotate_tokens (default 150000) or desk.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 at desk.tool_output_chars (default 4000). A desk_rotated item appears in the
    feed. See docs/desk.md.
  • A daemon on another machine. A named host in ~/.shepherd/hosts.yaml is reached
    over an SSH tunnel with --host NAME (or SHEPHERD_HOST), with --workspace and
    --repo to choose what to act on; shepherd host list and host check list and
    test the hosts. The daemon stays loopback-only.
  • Chat conveniences. Links in shepherd chat are clickable OSC 8 hyperlinks
    (chat.hyperlinks, also in Settings), and !command runs 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, or off) and opencode.chunk_timeout (default 10 minutes, at least
    10 seconds) set the per-request and stream-chunk limits Shepherd writes when
    opencode.endpoint is set. These defaults raise the previous hard-coded 15 minute
    request limit and 2 minute chunk limit. off disables the request limit. The chunk
    limit cannot be turned off. See docs/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 as SHEPHERD_TOKEN with the API
    address in SHEPHERD_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. See docs/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/interrupt and POST /v1/desk/new. Swarm events wake it on its own
    as the new desk.wake setting says (attached, the default, always or never),
    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 as desk spend. shepherd chat keeps its
    own desk for now. See docs/design.md §3.18.
  • A feed stream. GET /v1/feed/stream sends the feed as server-sent events, each
    item with its event kind, resumable by id or Last-Event-ID, with a heartbeat every
    15 seconds and a limit on subscribers. GET /v1/feed is 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 build builds 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 (--print prints it instead; --sign-out-all ends every browser session).
    Opening the link sets a session cookie (HttpOnly, SameSite=Strict, for /v1 only,
    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 new web role: 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. See web/README.md.
  • A Work section on the project page. Each repo may keep docs/WORK.md: a ## Work
    heading and one table with the columns ID | 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 (and GET /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, a doing row whose lane is closed or unknown, and a repo with no file.
    Rows the parser cannot read are reported as warnings. See docs/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 by shepherd models and
    the models_list tool) and a per-run effort for lane run, run continue, lane_run
    and run_continue; the front desk chooses model and effort from the permitted list.
  • An install script (bin/install.sh), docs/INSTALL.md with 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
    and POST /v1/config/preview), history (GET /v1/history/lanes and
    /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), and GET /v1/feed/stream.
    GET /v1/status?detail=1 adds a detail object; 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 dismiss and run undismiss, and the global --host, --workspace
    and --repo; shepherd web gains --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 the opencode block (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}/work and GET /v1/unassigned/work, and the
    client call ProjectWork.
  • New optional config keys opencode.request_timeout and opencode.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 worker commands and shepherd mcp, when started with SHEPHERD_TOKEN
    set, call the daemon at SHEPHERD_URL with 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/signout and DELETE /v1/web/sessions (operator). Paths
    outside /v1 now serve the web UI. New command: shepherd web.
  • An unknown path under /v1 is 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 its Host header; anything else is answered 421, against DNS rebinding. A request
    with a token that carries an Origin other 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 (Origin and Sec-Fetch-Site are checked) and, if it changes anything, carry
    Origin and the session's CSRF token in X-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-run overrides),
    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 restart and install check 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.endpoint set, a model such as openrouter/qwen/qwen3-coder used to make
    Shepherd define an openrouter provider at the local host. Now only a bare model name
    or local/<model> runs on the endpoint; any other provider/model is passed to
    OpenCode as written and uses its own provider and login. A prefix other than local/
    no longer names a local provider. The run's closing log line reports a priced
    provider's cost instead of always saying no cost. See docs/opencode.md.
  • shepherd daemon reload no 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_CLIENT from the daemon. A daemon started from
    the front desk's tools passed desk on 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 through glab. 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 and verified-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 read daemon.json and 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 --print avoids 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.