Repository navigation
feat(agents): sync instructions to workers by tag - #59
Merged
Merged
Conversation
nixuuu
force-pushed
the
feat/agent-environment-1
branch
from
November 4, 2026 15:44
846c532 to
0143afe
Compare
nixuuu
marked this pull request as ready for review
November 4, 2026 16:28
nixuuu
added a commit
that referenced
this pull request
Nov 4, 2026
Stage 2 of the agent environment plan (stacked on #59). Skill library: safe upload of a folder or ZIP (SKILL.md validation, size/file-count limits, no path traversal or escaping symlinks), versions with per-computer pins, assignment by tags/computers with overrides, worker reconcile into the homes Claude, Codex and Grok actually read (incl. isolated platform homes), ownership manifests so removal/rollback touch only what Canopy installed, drift with keep/overwrite/import, offline catch-up, older-worker fallback. Instructions and skills share a new tag picker (chips, suggestions with matching-computer counts, inline new tag, live "Applies to N computers"). Tests: 18 skill integration tests with temp HOMEs (upload validation, install per home, tag targeting, versions, removal leaves user skills, drift, offline, owner scoping); check:tmp 863 pass / 0 fail. Large folder uploads need the web BFF `BODY_SIZE_LIMIT` raised (to be handled in the stack).
This was referenced Nov 13, 2026
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.
Stage 1 of the agent environment plan (docs/agent-environment.md; stacked, the whole stack merges into
devtogether when done).Settings → Agent environment: a library of instruction documents for Claude (
CLAUDE.md) and Codex (AGENTS.md) built from fragments; worker tags (automatic: os, arch, desktop/server, available CLIs; plus manual); assignments (every computer / tags with exclusions / specific computers) and per-machine overrides; live preview per machine and agent file. Workers reconcile the desired state into a Canopy-managed block (local text outside it is kept) in every home Canopy runs agents with — the isolated platform homes and, optionally, the device CLI's global file — atomically, with drift detection and "keep mine / overwrite / import into library". Offline workers catch up on connect; older workers skip it (capability).Research with sources in the doc (Codex supports plugins;
CODEX_HOMEalone does not isolate skills in~/.agents/skills). Skills (stage 2), sources/updates incl.npx skills add(stage 3) and marketplaces/plugins (stage 4) follow.Tests: gateway↔worker integration with temp HOMEs (tags, composition per worker incl. a Windows-only fragment not reaching Linux, managed block, drift resolutions, offline catch-up, owner scoping); check:tmp 845 pass / 0 fail; lint, format, typecheck, gen:check, web build.