Skip to content

fix(patchy): new pages and tools get a stable home instead of the agent's scratch folder - #658

Merged
allisonmahmood merged 5 commits into
mainfrom
fix/patch-files-stable-home
Oct 13, 2026
Merged

allisonmahmood merged 5 commits into
mainfrom
fix/patch-files-stable-home

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

On a first company setup the person asked their agent, "if I tell you to make a patch, where do you keep those files?" The agent had no answer, because the global skill never said, so it had been working in its session's scratch folder. That loses patches: a page is found again by its file path, and a tool's repo is the only copy of its source, since publish sends what it built. Onboarding also wrote welcome.html into whatever folder the agent was in.

The skill now has a short Where patch files live section:

  • The person's choice wins: a folder they name, the patch repo they're in, or the file a page was published from. A developer can keep a patch anywhere and open an agent there.
  • Otherwise new work goes in ~/Patchy ("$HOME\Patchy" in PowerShell): pages as ~/Patchy/<file>.html, tools with patchy init ~/Patchy/<folder>. The agent creates the folder first, because init refuses a missing parent.
  • Session scratch and temp folders are never used. Look captures and other throwaway work are exempt.
  • A new page takes an unused file name and publishes the first time with --new, because a cache entry can outlive a deleted file. The agent tells the person where the files are.

Onboarding writes the welcome page to ~/Patchy/welcome.html and keeps it to one page per person. The file cache is per machine, so onboarding first looks for an earlier welcome page with patchy list --mine --state all --json. It updates a live one with --patch <id>, leaves a retired or deleted one to the person, and creates one with --new only when none exists. A member's look draft is copied out of the preview file, which the next preview overwrites, before it is published.

No git init, on purpose: Patchy's own version control (#546) will hold source, and git repos now would complicate that migration.

SKILL.md changed, so the skills-lock.json hash is refreshed and skillLock.test.ts passes. GPT 6.1 Sol reviewed it over several rounds. Its findings were the welcome page's target selection across machines and lifecycle states, the look draft's file name, and the login-resume example. All are fixed here.

Closes #651.

Made by Claude Opus 5.5 via Claude Code in T3 Code

@github-actions github-actions Bot added area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:docs Touches the docs area size:s Under 100 changed lines labels Oct 13, 2026
allisonmahmood and others added 5 commits October 13, 2026 14:35
…nt's scratch folder

The global skill never said where to write a page or start a tool, so agents
used their session's scratch folder. A page is found again by its file path and
a tool's repo is its only source, so both were lost with the folder. New work now
defaults to ~/Patchy unless the person picks a place, and a redo of onboarding
updates the existing welcome page by id.

Closes #651

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ublishing

The file cache is per machine, so a redo on another machine would still have
published a second welcome page. The look draft also gets an unused file name
and a fresh patch rather than reusing a fixed one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he new rules

A welcome page on this machine is updated through its file; one from elsewhere is
found across states by its welcome or welcome-<n> name, asking when unsure. The
look draft publishes the copy it made, and login resumes with a first publish's
--new.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…shing

A leftover welcome.html does not prove its patch is live: delete clears the cache
but leaves the file. One lookup path replaces the file check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood
allisonmahmood force-pushed the fix/patch-files-stable-home branch from 26b621f to 9584e95 Compare October 13, 2026 12:35
@allisonmahmood
allisonmahmood merged commit f2c2492 into main Oct 13, 2026
13 checks passed
@allisonmahmood
allisonmahmood deleted the fix/patch-files-stable-home branch October 13, 2026 12:45
allisonmahmood added a commit that referenced this pull request Oct 13, 2026
…when Patchy is out of date (#659)

Release 10's What's new entry, written through `64458b2`. It ships as
`patchy` `0.10.0`.

**Changes**
- Fixed: New pages and tools no longer get lost in a temporary folder
(#658)
- Fixed: Your agent hears when its copy of Patchy is out of date (#649,
#654)
- Improved: See a sample tool in your look before you approve it (#656)
- Improved: Publishing the company look says who it's for (#655)

**Behind the scenes**
- Connections to your company's data now record what kind of service
each one reaches (#648)

**No line:** #642, a rename of the glossary docs.

This is the first release with its own version number. After it deploys,
global CLIs from earlier deploys (all `0.0.1`) are refused on file
publish, `init` and `look publish` with the installer line. Patch repos
are told to `pnpm patchy refresh`, as on any release.

Made by Claude Opus 5.5 via Claude Code.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:docs Touches the docs area size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(patchy): new pages and tools get a stable home instead of the agent's scratch folder

1 participant