Skip to content

feat(agents): sync instructions to workers by tag - #59

Merged
nixuuu merged 1 commit into
devfrom
feat/agent-environment-1
Nov 4, 2026
Merged

nixuuu merged 1 commit into
devfrom
feat/agent-environment-1

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 4, 2026

Copy link
Copy Markdown
Member

Stage 1 of the agent environment plan (docs/agent-environment.md; stacked, the whole stack merges into dev together 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_HOME alone 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.

@nixuuu
nixuuu force-pushed the feat/agent-environment-1 branch from 846c532 to 0143afe Compare November 4, 2026 15:44
@nixuuu
nixuuu marked this pull request as ready for review November 4, 2026 16:28
@nixuuu
nixuuu merged commit bb88a87 into dev Nov 4, 2026
2 checks passed
@nixuuu
nixuuu deleted the feat/agent-environment-1 branch 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).
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