Skip to content

Docs with no shell: new pages only, and a blank ask is Docs (v1.0.4) - #4

Merged
jamescalam merged 3 commits into
mainfrom
skill-425-noshell
Dec 1, 2026
Merged

jamescalam merged 3 commits into
mainfrom
skill-425-noshell

Conversation

@jamescalam

@jamescalam jamescalam commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Docs couldn't be used by an agent with no shell (a Shepherd turn, or the spacesheep MCP alone): SKILL.md's first step is node docs.js start. This adds a no-shell path, as the Design skill has.

What changed

  • docs/references/shepherd.md (new): how a no-shell agent makes a Docs page. It copies references/page.html whole, keeping <meta name="ss-edit" content="open"> (the page opens in Edit) and <meta name="docs-ledger" content="">, left empty.
    • New pages only: a blank page or a first draft, in one write, on a new space or, in a Shepherd turn, on one whose page is empty. Through the MCP it makes a new space with create_space (files, label) and never calls create_version, whose parent merges onto newer edits. A page with anything on it, and through the MCP any existing space, is never saved over: the agent proposes the change (a comment through the MCP), or says an agent with a shell can make it.
    • Why the ledger stays empty: its block hashes are sha256 of each block's markup, which the agent can't compute. Empty means docs.js counts every block on the page as the person's, so it never rewrites one without a yes.
  • A blank ask ("a blank doc I can write on"): the page gets its title (<title> and one <h1>, no id) and nothing else, no outline. With a shell, docs.js blank "<title>" makes the same page, and refuses any space that isn't blank. Its title goes in through replacer functions, so $& or $' in it is written as typed.
  • SKILL.md: its first line sends a no-shell agent to references/shepherd.md; the description names a blank document the person writes themselves.
  • CHANGELOG v1.0.4, folder hash 51887724c53f.

Tests

node tests/run.js: 76 passed (was 70). tests/noshell.js reads shepherd.md's own examples, so the words and the tool can't drift:

  • blank: the page shepherd.md describes is byte-for-byte what docs.js blank makes; both marks kept; no ledger
  • first draft: the example document on page.html keeps both marks, uses only the allowed tags, and start, outline and blank all refuse it, nothing drawn or saved
  • a page a person typed in: blank refuses it and changes nothing; the blank page with the person's typing stays theirs
  • a title of R$&D $' $ $$ & : one <title>, one , the title escaped in both (failed before the fix with two <title>`s)
  • the MCP save names create_space and only fields it takes (from spacesheep's shared/doors.json), and no skill, keep_others or parent

blank is also in tests/ownership.js's walk over a page a person has changed (refused there). skills lint: no problems.

Look closely at

  • Shepherd's tool words in shepherd.md (create_space on the dashboard and through the MCP, an @page block on a space) follow the Design skill's shepherd.md; they weren't run against the app here.
  • Whether the app's Edit mode saves typing into a bare <h1> with no data-ss-id (the blank page's title), as it does for the person's own typed lines.

jamescalam and others added 3 commits December 1, 2026 18:47
…m page.html, its marks kept and its ledger empty; a blank ask gets the title and nothing else (docs.js blank with a shell)

Co-authored-by: Pointman <noreply@pointman.ai>
Co-authored-by: Claude <noreply@anthropic.com>
…ank ask is Docs, with the folder's hash

Co-authored-by: Pointman <noreply@pointman.ai>
Co-authored-by: Claude <noreply@anthropic.com>
…never create_version; docs.js blank writes a title with $ patterns as typed

Co-authored-by: Pointman <noreply@pointman.ai>
Co-authored-by: Claude <noreply@anthropic.com>
@jamescalam
jamescalam merged commit af4f320 into main Dec 1, 2026
4 checks passed
@jamescalam
jamescalam deleted the skill-425-noshell branch December 2, 2026 03:07
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.

1 participant