Skip to content

feat(proofread): make ChatGPT's reply the default copy - #48

Merged
DeyangChan merged 2 commits into
mainfrom
proofread-chatgpt-default
Nov 26, 2026
Merged

DeyangChan merged 2 commits into
mainfrom
proofread-chatgpt-default

Conversation

@DeyangChan

Copy link
Copy Markdown
Member

Fixes the problems found while proofreading a large docs site with the proofread skill.

  • Step 6: ChatGPT's reply is now the default copy. The agent keeps its own text only for facts, code, links, required formats, or anything the reply added.
  • No truncation: reply.js (send, wait and capture in one script) stores the reply in the page. The agent reads it back in slices of 900 characters or fewer, rejects [TRUNCATED], saves the reply to a file, then checks it against the page by length and SHA-256.
  • prepare: splits long copy into batches of 12 KB or less, and replaces code blocks with placeholders.
  • New restore command: puts back code blocks, dropped links, frontmatter and heading markup, and reports anything it could not place.
  • prompt.md: asks for no notes and no code fences around the copy.
  • Notes: say that the ChatGPT page blocks requests to localhost, so agents do not retry them.
  • Version: 6.22.0, with a changelog entry.

Evidence

  • node plugins/vstack/skills/proofread/tests/proofread.mjs: ok.
  • The host-profiles and workdir tests, build-shell check, claude plugin validate --strict on both manifests, and check-version pass.
  • reply.js is only syntax-checked, because it needs ChatGPT's page.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LWEFNLENkFt9shfESBmWby

DeyangChan and others added 2 commits November 27, 2026 00:49
- Step 6 takes the reply as the copy and keeps the agent's text only for
  changed facts, code, links, broken required formats, or additions.
- reply.js replaces send, wait and capture. It stores the reply in the page
  and returns its length; the agent reads it in slices of 900 characters or
  fewer and checks the saved file against the page with `verify`.
- `prepare` splits long copy into 12,000-character batches, one temporary
  chat each, and replaces fenced code blocks with numbered placeholders.
- `restore` joins the replies, unwraps fences, unescapes frontmatter,
  unbolds headings, and puts back code blocks and dropped links.
- The prompt asks for no notes and no code fence around the copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LWEFNLENkFt9shfESBmWby
@DeyangChan
DeyangChan merged commit f3ca4c4 into main Nov 26, 2026
13 checks passed
@DeyangChan
DeyangChan deleted the proofread-chatgpt-default branch November 26, 2026 17:04
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