Repository navigation
Setup profiles: give a new environment the CLIs, agent config and sign-ins of the one you already work on #29777
Replies: 2 comments
|
+1 on the problem. One thought on the "instruction files" part of the profile: copying CLAUDE.md or AGENTS.md to every new environment works, but each copy starts drifting the moment you edit one of them. The check-and-apply step you describe handles that well for persistent machines. For sandboxes that get created and thrown away, it may be easier to not copy the instructions at all. What has worked for me is keeping the rules, a short profile and per-project notes as plain markdown files in one cloud folder, and letting each environment read them through a remote MCP connector. A new devbox or sandbox then only needs the connector URL in its MCP config, and it sees the same rules as every other environment without a sync step. If you edit a rule once, all of them pick it up on the next session. That only covers the instruction and context layer. It does nothing for the CLIs or the sign-ins, so your detect and apply flow is still needed for those. But it could shrink the "agent config" group in the profile to one MCP entry plus a short pointer in AGENTS.md. Disclosure: I built Cloud Alter Ego, which does this (files stay in your own OneDrive, Google Drive, Dropbox, GitHub or Azure DevOps, behind a remote MCP connector). Docs: https://cloudalterego.cafeboon.com/docs.html and the open source template: https://github.com/SebastiaanBoon/cloud-alter-ego. The same layout works with a plain git repo and no connector at all if you prefer to avoid a service. |
|
One tip: keep one shared file and import it in each CLAUDE.md with The hard part is that the file still has to be synced to every machine, and Codex's AGENTS.md is a separate copy to keep up to date. At Substrate we built our memory to solve this: all your agents read one memory, and you choose what each one sees. Which environment drifts the most for you? |
Uh oh!
There was an error while loading. Please reload this page.
Problem
A new environment starts bare. A devbox you just paired, or a sandbox from #27949, has T3 and a provider CLI, but none of what agents use on your main machine: the CLIs they call (
gh, a cloud provider's CLI,psql), the harness config (CLAUDE.md/AGENTS.md, skills, subagents, plugins, MCP servers), or the sign-ins those need. Agents still run there, but they can't query what they query locally, and the results get worse.Today the only fix is to set the machine up by hand. For a persistent devbox that's annoying once. For sandboxes it happens on every create, or you snapshot a template that goes stale as soon as you add a skill.
Proposal
Settings → Environments → Setup profile, owned by one environment you pick as the source:
Secrets are never copied by value by default. Each sign-in is either:
MCP servers keep only their URL or command, plus the header names.
CLIs install through small, idempotent recipes (check, then install). A built-in recipe exists for common tools, and you can write your own for anything else. This is not a package manager.
How it relates to existing threads
Scope for a first version
Questions for maintainers
I'm prototyping this as a user-side script on my own devbox first, and will post what works and what doesn't here before opening anything.
All reactions