# Make your coding harness your own in H v0.6.0

> Source: <https://www.lukasrieder.com/blog/h-v0-6-0-web-extensions/>
> Published: 2026-12-02 01:25:00+00:00

**Key takeaway:** H v0.6.0's H.Extension.configure/2 accepts a :web map for registering LiveView pages at /ext/:slug, nav items, session sidebar widgets positioned by :top, :bottom, {:before, anchor} or {:after, anchor}, and static assets served from <package_path>/priv/static at /ext-assets/:ext_id/*path, so custom

# Make your coding harness your own in H v0.6.0

H v0.6.0 opens up hiweb to custom LiveView pages and sidebar widgets, ships local cost and latency analytics alongside a turn-metrics sidebar extension, and normalizes the web UI onto Tailwind CSS v4 and DaisyUI v5.

- Published
- Reading time
- 10 min read

A few days ago, a coding session felt painfully slow. I was running a couple of newer models side by side and wanted hard numbers instead of a hunch: how much slower were the turns, how often was I hitting prompt cache, and how much was this repository actually costing me over a week of heavy agentic work?

I could have hacked a one-off script against the session logs, or bolted a dashboard directly into `hiweb`. Instead, I realized this was the exact moment to open up `hiweb` itself. I already had a small token-and-speed chart sitting inside the session sidebar, and now I wanted a full Analytics view across active, archived, and imported sessions. Neither belonged hardcoded inside core `hiweb`. If I want a harness I can keep shaping around my own workflow, the web workbench needs clean extension seams so anyone can add pages, navigation items, and sidebar widgets without forking the project.

That idea turned into [H v0.6.0](https://gitlab.com/parlant-co/harness/-/releases/v0.6.0). Alongside a proper web extension host, the release ships two real extensions built on top of it (`analytics` and `turn_metrics`), moves the web UI onto Tailwind CSS v4, DaisyUI v5, and Lucide icons, speeds up session loading and local Workspace browsing with [Scandir 0.2.0](https://hex.pm/packages/scandir/0.2.0), and upgrades provider settings and file review.

## Web extensions in hiweb

In [H v0.4.0](https://www.lukasrieder.com/blog/h-parked-gates-and-remote-agents/), I introduced startup-loaded daemon extensions through `<data_dir>/extensions.json` so packages could contribute harnesses, execution environments, and post-commit observers. In v0.6.0, the same `H.Extension.configure/2` contract gains a `:web` map that `hiweb` validates at boot:

- `:pages` registers owner-authenticated LiveView modules at`/ext/:slug` and`/ext/:slug/*subpath` using the`HWeb.Extension.Page` behaviour and the shared`HWeb.Extension.shell/1` app bar.
- `:nav_items` injects entries into the main navigation drawer, sorted by order and highlighted automatically when active.
- `:session_sidebar` mounts Phoenix function components directly into the session details sidebar with relative positioning (`:top` ,`:bottom` ,`{:before, anchor}` , or`{:after, anchor}` against built-in anchors such as`"session-agent"` or other extension slots).
- `:stylesheets` and`:scripts` serve static assets read-only from`<package_path>/priv/static` at`/ext-assets/:ext_id/*path` , so an extension can ship its own CSS and LiveView client hooks without touching core bundles.

Here is the entire web registration from `Extensions.Analytics.configure/2`:

```
web: %{
  pages: [
    %{slug: "analytics", module: Extensions.Analytics.Live, title: "Analytics"}
  ],
  nav_items: [
    %{id: "analytics", label: "Analytics", slug: "analytics", order: 30}
  ],
  stylesheets: ["analytics.css"],
  scripts: ["analytics.js"]
}
```

Extensions load at daemon startup from prebuilt local artifacts (`mix extension.build`), and `hi daemon restart` picks up a new build cleanly. Keeping extensions separate from core session transitions means you can iterate on a custom page or sidebar widget freely without putting active runs at risk.

## Turn metrics in the session sidebar

The first widget I moved onto the new seam was the per-turn chart I had previously hardcoded in the session sidebar. It now lives in `extensions/turn_metrics`. In `configure/2`, it claims `{:after, "session-agent"}` in `:session_sidebar`, and both its position and `max_turns` can be overridden in `extensions.json`.

Moving that chart out of core `hiweb` proved the sidebar seam right away: sidebar space is now open to custom widgets just like built-in panels. While cleaning up around it, I condensed the Agent block into a single row (`Provider · Model · Reasoning effort` with a Lucide cogwheel), moved the persisted running context summary onto a full-width toggle under the session title so you can orient yourself quickly in tool-heavy threads, and scoped the Subsessions toggle strictly to sessions visible in the current sidebar list.

## Measuring agentic development costs

The second bundled package, `extensions/analytics`, is the one I am most excited about. It runs a read-only background indexer (`Extensions.Analytics.Scanner` and `Store`) over every native active session, native archived session, and imported archive in your H data directory. It reads storage files directly without waking idle session processes, listens to post-commit observer events to pick up fresh turns, and renders CSP-safe Vega-Lite charts at `/ext/analytics`.

Every time I open it, I learn something concrete about how I work. Filtering to `diy-harness` over the seven days leading up to `v0.6.0` gives me an immediate breakdown of spend per day, output token volume, prompt cache efficiency, tool error rates, and latency by model. I can switch the timeframe between `24h`, `7d` (the default), `30d`, `90d`, and `All`, slice by root sessions versus delegated subsessions, or jump to the Workspaces tab to see how much agentic development costs per project.

The Models, Tools, Workspaces, and per-session waterfall views turn vague impressions (“this model feels sluggish” or “bash calls keep failing”) into numbers you can act on. Watching token volume pile up from noisy build output also led straight to another v0.6.0 improvement: the built-in `bash` tool now strips ANSI escape sequences, colors, and carriage-return progress redraws by default (`sanitize: false` opts back into raw output).

You can expect more introspective tools like this in upcoming releases. Once your harness owns structured session history and lets you attach read-only analysis views to it, you can iterate on your model mix, prompt caching habits, tool reliability, and delegation setup using your own data.

## Tailwind CSS v4, DaisyUI v5, and Lucide icons

While polishing the `0.6.0` UI, I noticed small misalignments creeping in across buttons and pills. An inbox counter pill had uneven left padding while the Send button looked balanced, and our hand-drawn SVG icons looked rough next to everything else. Looking closely at `app.css`, I had accumulated over three thousand lines of hand-rolled CSS for buttons, cards, badges, and pills.

So I stopped patching individual pixels and normalized the whole web workbench. `hiweb` now runs on Tailwind CSS v4, DaisyUI v5, and `lucide_icons`, with the same shared theme tokens carried into the `analytics` and `turn_metrics` extensions. Buttons, badges, form controls, tabs, and icons come from one component vocabulary instead of one-off rules. I also removed the manual “Refresh Inbox” and “Refresh sessions” menu items that had no place in a Phoenix LiveView app.

## Faster sessions, Workspace browsing, and provider controls

The rest of v0.6.0 clears out day-to-day friction across the workbench.

Session opens are noticeably snappier now. The daemon warms `LLMDB` asynchronously on boot, stops accumulating historical revisions of latest-only documents (`live`, `inbox`, `usage`, `summary`) in storage snapshots, skips redundant fetches during disconnected LiveView mounts, and shows a delayed global loading bar if a navigation takes real time. Recognized transient Finch and Mint transport errors also enter `H.Session.Server.Generation`’s persisted retry policy instead of pausing a run prematurely.

Workspace browsing is now progressive too. `H.Daemon.WorkspaceScan` streams local directories through [Scandir 0.2.0](https://hex.pm/packages/scandir/0.2.0) and its short-lived bounded listing cache so large folders paint immediately before `.git` probes finish, while Inbox and Workspace share the same session filters and let you start a session straight inside an empty filtered folder. I covered the cursor and dirty-I/O design in the [Scandir architecture article](https://www.lukasrieder.com/blog/scandir-directory-scanning-in-elixir/), and the macOS filesystem boundary in [H v0.5.0](https://www.lukasrieder.com/blog/h-subagent-status-and-macos-permissions/).

On the provider side, `/settings/accounts` is now a two-pane tabbed view combining Providers and models (with official local SVG provider logos and custom OpenAI-compatible endpoints), API key profiles, Codex device accounts, and a live Allow Codex workspace credits toggle shared with the new vertical-tabbed Agent settings dialog (where you can also edit an existing `AGENTS.md` directly). OpenRouter Auto (`openrouter/auto`) preserves validated reasoning details across tool turns and records provider-reported routed model and cost metadata; see [`docs/providers.md`](https://github.com/parlant/harness/blob/v0.6.0/docs/providers.md) for the routing and billing limits.

Finally, file review now shares a reusable `HWeb.FilePane` component across both `/sessions/:id/review` (landing directly on the Files tree, with line wrap on by default, safe Markdown preview, and 64 KiB byte paging for oversized working-tree files) and inline review panes opened from `workspace:` links or `/review <file>` beside the conversation.

## Build on it and make it your own

H exists because I wanted a coding harness I could inspect, trust, and adapt as my own workflow evolves. With v0.6.0, you do not have to wait for me to build the exact view, metric, or workflow helper you want. Take a look at [`extensions/turn_metrics`](https://github.com/parlant/harness/tree/v0.6.0/extensions/turn_metrics) for a compact sidebar widget or [`extensions/analytics`](https://github.com/parlant/harness/tree/v0.6.0/extensions/analytics) for a full multi-tab LiveView page with its own background store and Vega-Lite charts, copy the [extension template](https://github.com/parlant/harness/tree/v0.6.0/examples/extension_template), and tailor H to how you actually build software.

[H v0.6.0](https://gitlab.com/parlant-co/harness/-/releases/v0.6.0) is available as signed Apple Silicon and Linux bundles on [hiness.dev](https://hiness.dev/releases/), [hiness.app](https://hiness.app/releases/), [GitLab](https://gitlab.com/parlant-co/harness/-/releases/v0.6.0), and [GitHub](https://github.com/parlant/harness/releases/tag/v0.6.0). The OTP engine is published on Hex as [`hiness 0.6.0`](https://hex.pm/packages/hiness/0.6.0) (`{:harness, "~> 0.6.0", hex: :hiness}`) with [HexDocs](https://hiness.hexdocs.pm/0.6.0/). Note that compiling from Hex builds Scandir’s Rust NIF from source and requires Rust/Cargo and a native linker, while the signed native bundles ship with it precompiled.
