Skip to content

docs: add the harnesspm.tenphi.me site - #7

Merged
tenphi merged 20 commits into
mainfrom
claude/scope-gpookh
Nov 13, 2026
Merged

tenphi merged 20 commits into
mainfrom
claude/scope-gpookh

Conversation

@tenphi

@tenphi tenphi commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

What this adds

A documentation site for harnesspm, built with Cookbook 0.33.1 on Astro 7, in the style of the Glaze site. It will be served at https://harnesspm.tenphi.me.

Pages

Section Routes Source
Home / docs-site/index.mdx (splash hero)
Getting started /getting-started docs/guide/getting-started.mdx
Guides /guides/use, /guides/share, /guides/add-your-own, /guides/change-upstream, /guides/trust, /guides/monorepos, /guides/cloud, /guides/telemetry docs/guide/*.md
Reference /reference/cli, /reference/config (harnesspm.json), /reference/package-format docs/guide/reference/*.md
Specification /spec (the spec README) and /spec/overview … /spec/telemetry docs/spec/*.md, read as they are
Research /research/agent-capabilities, /research/motivating-case, /research/package-managers, /research/prior-art, plus the probe prompts docs/research/**/*.md

The header links to GitHub and to the npm package, and shows the version from package.json.

The home page

Reworked after an independent review. It has 13 short sections, and each one opens with why it matters.

  1. Hero: "Coding agents that know your dependencies." The tagline says what a harness is and what harnesspm does with it. Buttons: Get started and Share from your library. There is no hero image, so the install commands show above the fold on desktop and on phones.
  2. Install: npm, pnpm and yarn tabs, plus one sentence on what init does.
  3. Your agent doesn't know your libraries: the problem, in four bullets.
  4. How it works: a flow from harness/ in the npm package, through npm install and harnesspm sync, to the files in your project. It is a row on desktop and a column on phones.
  5. What your agent sees:
    • It defines a unit and shows a short excerpt of a real managed block. Unit IDs are highlighted, and UI Kit's patched section is marked.
    • It says plainly that UI Kit's harness is on a branch and not published yet.
  6. Your agent uses it: one observed headless Claude Code run from the UI Kit pull request (feat: ship a harness for coding agents, with uikit:colors cube-js/cube-ui-kit#1643), in four steps. The run is now recorded in docs/research/agent-capabilities.md.
  7. Upgrade the package, upgrade the rules: the real lock and AGENTS.md diff from upgrading Tasty 3.19.0 → 3.19.1.
  8. Libraries pass on what they build on: UI Kit's tree as a nested list, then the core of its plugin.json, and a note that the lint plugin is an optional peer.
  9. One source for Claude Code and Codex: one copy of each unit for both agents, and two ways to start before any library ships a harness.
  10. You decide what applies and what runs: one real harnesspm.json with patch, exclude and trust, and five short rules. It ends with real why output that shows UI Kit's patch and the app's own.
  11. Bring your own rules to every repository: add, and one sentence on doctor.
  12. Start where you are: three cards (Use, Share, Add your own) and a link to the specification.
  13. Scope today: before 1.0, the agents and package managers covered, and which packages ship a harness on npm today.

Every output on the home page comes from one app on UI Kit's branch. The one exception is the upgrade diff: UI Kit pins Tasty, so that diff comes from a Tasty-only app. The examples live in docs-site/examples/. ManagedBlock.astro and Terminal.astro show them with wrapped lines, so a phone shows every line and no copy button covers one.

Spec routes and links

docs/spec/ is also the docs index of harnesspm's own harness, so the site reads the chapters unchanged. docs.config.ts lists docs/spec/ and maps each NN-name.md to /spec/name. Cookbook resolves relative links by file path, so 06-trust.md#62-trusting-a-package becomes /spec/trust/#62-trusting-a-package. The one spec change: the four links in chapter 12 to repository files that the npm package does not ship (AGENTS.md, CLAUDE.md, harnesspm.json, harness/) now point at GitHub. npm run sync updated the docs hash in harnesspm.lock.json.

Build and output

  • npm run docs serves the site, npm run build:docs builds it, npm run docs:doctor checks the sources and npm run docs:check checks the built site.
  • The site builds into site-dist/ (gitignored), because npm run build writes the CLI to dist/. npm run build, prepack and npm pack are unchanged: the package still has the same 50 files.
  • tsconfig.json still covers only src and test, so the site's files stay out of npm run typecheck.
  • @tenphi/cookbook and astro are dev dependencies. Cookbook needs Node.js 22.19 or later; CI uses Node 24.
  • No analytics script. The logo and favicon are a new SVG (assets/harnesspm.svg): three stacked layers, for the three layers of harnesspm.

How deploy works

  • .github/workflows/deploy-docs.yml runs on every push to main and on demand. It uses Node 24, npm ci, npm run build:docs and npm run docs:check, then actions/configure-pages, actions/upload-pages-artifact with site-dist and actions/deploy-pages.
  • .github/workflows/ci.yml has a new "Docs site" step on the Node 24 job: npm run build:docs && npm run docs:check.
  • astro.config.ts sets site: 'https://harnesspm.tenphi.me', and docs.config.ts sets the same url.

What the owner sets up

In Settings → Pages:

  1. Source: GitHub Actions.
  2. Custom domain: harnesspm.tenphi.me, then turn on Enforce HTTPS once the certificate is ready.

In DNS: a CNAME record from harnesspm to tenphi.github.io.

With an Actions deployment, GitHub ignores a CNAME file, so the repository has none. AGENTS.md has a new "Docs site" section that says this, how to run the site and where pages live. It also says to update the home page when UI Kit publishes its harness.

Other changes

  • package.json: homepage is now https://harnesspm.tenphi.me, and the four scripts above. A patch changeset covers the homepage and the spec links.
  • README.md links to the site and no longer names a stale version.
  • This branch also carries 4a08838, the doctor fix that says how to turn on a pending unit once, with its own changeset.

Checks

  • npm run typecheck ✅, npm test ✅ (75 tests), npm run check ✅, npm run build ✅
  • npm run build:docs ✅ (36 pages, also with CI=true), npm run docs:check ✅ (36 pages, 67 assets, no broken links), npm run docs:doctor ✅
  • The only warning, in doctor and check-build, is a repeated heading "Instructions" in docs/research/agent-capabilities.md (one under Claude Code, one under Codex). I left the research page as it is.
  • Screenshots of the home page at 1440×900 and 390×844, light and dark, above the fold and full page. No page on the site scrolls sideways at 390 px.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV

- ci.yml: typecheck, tests and `npm run check` on Node 24, and the built
  CLI (`--help`, `check`, `sync --check`) on Node 20 for `engines`.
- release.yml: every PR publishes `0.0.0-snapshot.<sha>` under
  `pr_<number>` with a sticky comment; pushes to main open the version PR
  or publish with provenance, a `v<version>` tag and a GitHub Release.
  Both jobs use npm trusted publishing in the `release` environment.
- Changesets replace the hand-written "Unreleased" line; AGENTS.md
  describes the new flow. The 0.1.0 notes stay in CHANGELOG.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
npm refuses a provenance statement from a private repository (E422), and
with trusted publishing it adds one by itself once the repository is
public. Also print the real OIDC availability in the publish jobs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
A re-run builds the same commit, so it got the same snapshot version, and
npm never accepts a version twice. Add the attempt number on a re-run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
…ions

`harnesspm why` found only rules, skills and docs, so it answered "No unit"
for the script IDs the managed block prints. It now finds every unit kind,
shows its source file, the command that runs a script, and whether the
package of an executable unit is trusted. Test fixtures use `alex`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
A team turns on `telemetry` in harnesspm.json: which events, and a handler
that gets them, a command (JSON on stdin) or a JSON Lines file. harnesspm
sends events for script runs, MCP server starts, sync and why. With agent
events on, a person's sync writes harnesspm's own async hooks: Claude Code
reports reads of harness files, skills it loads and file-scoped rules it
loads by itself; Claude Code and Codex report session starts. The hook runs
the local binary (`track`), maps the path to a unit with an index that sync
writes, hands the event off and exits 0.

Events never hold arguments, file contents, prompts or absolute paths, and
cover only the dependency and project layers. Sending never waits or fails a
command: a command handler runs in a detached process with a 10 s limit.

A handler gets events only as a person's sync recorded it in the lock. A
model run keeps the recorded handler, so one an agent adds stays held until
a person syncs. A person opts out with DO_NOT_TRACK=1 or "telemetry": false
in harnesspm.local.json or ~/.harnesspm/config.json.

Spec: new chapter 14 (with a rule template for reporting harness problems),
terms and scenarios S14 and S15, 3.7, 4.3, 5.1, 6, 10, 11, and removed
options in 13.12. Research: hook payloads and async hooks for both agents,
from the docs, Codex source and a headless Claude Code probe.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
When a package's `extends` names a package that is not installed, sync
warns. A package can now list an extends target as an optional peer
dependency (`optional: true` in `peerDependenciesMeta`): projects that
install it get its harness through the package, and projects that do not
see no warning on every sync. Any other missing extends still warns.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
Claude Code matches a `paths` pattern without a leading `/` at any depth.
So `harness/**` loaded harnesspm's config rule whenever an agent only read
a dependency's harness files in node_modules. A probe with Claude Code
2.1.323 showed that `/harness/**` loads for the project's own folder only,
both as a plain file and as a symlink in .claude/rules/.

- harnesspm-config: `/harnesspm.json`, `/harnesspm.local.json`, `/harness/**`
- pointer lines show patterns without the leading `/`
- spec 2.5 and the export skill say how to anchor a pattern
- research: the probe result

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
The lock records the version of this repository's own harness. The
version PR raised `version` in package.json but left the lock at the old
version, so `sync --check` failed on main after every release, and the
next pull request had to carry the lock change. `version-packages` now
runs `npm run sync` after `changeset version`.

Also refreshes the lock to 0.2.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
`harnesspm doctor` answers one question: can a person work here with
harnesses, the repository's and their own, without per-machine files
reaching a commit? It changes nothing, and each problem names its fix.

- Local files: every per-machine file on disk (the ones in harnesspm's
  sections of .git/info/exclude, plus harnesspm.local.json,
  CLAUDE.local.md, .claude/settings.local.json and a telemetry file) is
  ignored by git and not tracked. Git answers through `git check-ignore`
  and `git ls-files`, so .gitignore, .git/info/exclude and a global
  excludes file all count.
- Harnesses of your own: the exclude file can be written, and each added
  harness is on this machine.
- Outputs: committed outputs are up to date (as `sync --check`), and
  per-machine links and files are in place.
- Trust: pending and held entries, and a held telemetry handler, as
  warnings.

Exits 1 when a check fails. `status` points to it when a per-machine
file has a problem. Spec: scenario S16 and section 10.5.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
…vent

A command handler that exits before reading its event closes stdin, so
writing the event fails with EPIPE. `deliver` logged that error instead
of the handler's exit code. Node still reports the exit status, so EPIPE
alone is no longer treated as a delivery failure.

CI hit this race in "a command handler gets each event as JSON on stdin".
A new test sends a 90 KB event, larger than a pipe buffer, to `exit 7`,
which makes the race certain: it fails before this fix and passes after.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
Each pending entry already ends with its fix, such as `add it to "trust" in
harnesspm.json` or `run npx harnesspm approve <package>`. `doctor` added the
trust hint again after it, which also misled for a pinned package.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
Build a documentation site with Cookbook (an Astro integration), in the
style of the Glaze site:

- a home page that shows the problem, the flow from a library's
  harness/ to the agents' files, a real managed block, a real upgrade
  diff and the main benefits;
- Getting started, eight short guides and three reference pages in
  docs/guide/, which the npm package does not ship;
- every spec chapter as it is, at /spec/<name>, and the research pages.

The site builds into site-dist/, because `npm run build` writes the CLI
to dist/. The spec's links to repository files that the package does not
ship now point at GitHub, so they work on the site and for agents.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
CI builds the site and runs Cookbook's built-output checks on every pull
request. deploy-docs.yml publishes site-dist/ to GitHub Pages on every
push to main. The custom domain is set in the repository's Pages
settings, because an Actions deployment ignores a CNAME file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

📦 Snapshot release

Published 0.0.0-snapshot.0302114.

npx @tenphi/[email protected] --help
npm install -D @tenphi/[email protected]

- Hero: a new tagline and "Share from your library", without the image,
  so the install commands show above the fold.
- Thirteen short sections, each opening with why it matters. A new
  "Your agent uses it" tells one observed headless Claude Code run from
  the UI Kit pilot, now recorded in research/agent-capabilities.md.
- Every output comes from one app on UI Kit's unpublished harness
  branch, and the page says so. The managed block excerpt is shorter and
  marks UI Kit's patch. `why` shows UI Kit's patch and the app's own.
- The per-agent table, the doctor output, the context section, the
  telemetry paragraph and the fourth card are gone. Trust and overrides
  are one section.
- Outputs and the excerpt wrap on phones, with paths breaking after a
  slash, and no copy button covers them. Inline code no longer breaks
  anywhere; only headings do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
- "Your agent uses it" says what each step means for a newcomer, and that
  none of them were in the task.
- The upgrade diff says it comes from an app that depends on Tasty
  directly, not the UI Kit app.
- "Libraries pass on what they build on" no longer reads as if UI Kit's
  harness were published.
- The `plugin.json` code block becomes one sentence (about 420 px less).
- The managed block shows UI Kit's `uikit:tokens` line, which the next
  section relies on; the `harnesspm.json` example drops `$schema`.
- Scope today lists the packages with a harness second.
- The "patched by uikit" pill keeps its shape on dark surfaces.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
@tenphi
tenphi merged commit b58879e into main Nov 13, 2026
4 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 13, 2026

This branch was previously deployed

1 inactive deployment
release — b2dca5a0 Deployed Nov 13, 2026 by tenphi via Snapshot release #21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants