Repository navigation
Conversation
- Add a design spec for git sources, an explicit sync command, an optional prepare step, and sync state in .git. - Add a task-by-task implementation plan with tested code. - Record why OKF knowledge bundles stay out of Agentfolio core. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a design spec and an implementation plan. It changes no runtime code.
docs/superpowers/specs/2026-10-04-remote-collections-design.md: the design.docs/superpowers/plans/2026-10-04-remote-collections.md: 7 tasks with tests, code, and commits.The plan lets Agentfolio use a collection from a git source:
syncfetches the source into a managed clone, checks out one commit, validatescollection.yaml, and runs an optionalpreparecommand. All other commands stay offline. Without a source,syncrunspreparefor a local collection.Why
Today
--collectionaccepts only a local directory. A consumer must clone the collection and install its dependencies by hand. Agentfolio cannot report a missing dependency step. Withluabagg/agent-skills, a fresh clone withoutnpm cipassesdoctorandplan.applythen fails with onlyrejected request.This feature helps people who consume a collection that someone else writes. An author keeps a normal checkout and gets only
prepare.Decisions and trade-offs
version: 1.prepareis an optional top-level field. Agentfolio 0.1.x rejects it as an unknown field. Release as 0.2.0 and document that minimum version.$AGENTFOLIO_HOME/collections/<host>/<path>. Adapters link files into the collection root, so a directory per commit would break links on each update. Sync refuses a clone with changes to tracked files..git/agentfolio-sync.json. Other commands refuse a clone when the state is missing, does not matchHEAD, or has a different ref. There is no automatic rollback. The error prints the last synced commit.syncuses the network. This extends the current rule against network installs during normal operation.GIT_TERMINAL_PROMPT=0.OKF knowledge bundles
The spec records why Open Knowledge Format bundles stay out of Agentfolio core:
syncprimitive in this plan.Revisit this after
syncships, if a collection needs pinned knowledge sources.Known limitations
prepareoutput above 64 KiB per stream stops the command, because of therunProcess()limit. Collections must use quiet flags.Verification
The code in tasks 1 to 6 ran in a scratch worktree from
b60df24:npm test: 86 tests pass.check:dependencies,check:secrets, andpackage:smokepass.github:luabagg/agent-skillsinto a scratchAGENTFOLIO_HOME.plan --profile pithen printed its source and commit.On this branch,
npm test,check:secrets, andpackage:smokepass.Before release
package.jsonpublishesdocs/. Removedocs/superpowers/before the 0.2.0 release, as in7c612ae.🤖 Generated with Claude Code