Skip to content

design: org filesystem layout#3350

Open
tlgimenes wants to merge 6 commits into
mainfrom
design/org-filesystem-layout
Open

design: org filesystem layout#3350
tlgimenes wants to merge 6 commits into
mainfrom
design/org-filesystem-layout

Conversation

@tlgimenes
Copy link
Copy Markdown
Contributor

@tlgimenes tlgimenes commented May 13, 2026

Summary

RFC for a unified, git-backed filesystem per organization in Studio.

  • Each org owns one git repository (main = shared/published layer)
  • Well-known paths: AGENTS.md, skills/, artifacts/, connections/
  • Each agent lives under /agents/<slug>/ with its own AGENTS.md (frontmatter carries name, description, icon, mcps), memory.json, skills/, artifacts/, and automations/
  • Two agent modes driven by the github: frontmatter property:
    • Plain agent — freeform workspace, cwd is /agents/<slug>/
    • GitHub agent — child folders are git worktrees (one per branch), cwd is /agents/<slug>/<branch>/
  • Connections exposed as /connections/<slug>/mcp.json (public metadata only, no secrets)
  • Sharing = PR from agent branch → main

See design/org-filesystem-layout.md for the full spec.

Open questions for discussion

  • Should memory.json have a prescribed schema or be fully freeform?
  • Should automations/ have a prescribed file format (e.g. one .json per automation)?
  • Skills folder format — one file per skill, or a manifest?

🤖 Generated with Claude Code


Summary by cubic

Adds a shareable product/UX overview and an RFC for a unified, git-backed filesystem for org and user workspaces in Studio. Standardizes layout, agent modes, and PR-based sharing across /orgs and /users.

  • New Features
    • Dual-root global tree: /orgs/<org-id>/ and /users/<user-id>/ share the same layout; one git repo per org and per user (main is the shared/published layer).
    • Well-known paths: AGENTS.md, memory.json, skills/, artifacts/, automations/, connections/.
    • Agent modes: plain workspace or GitHub-linked with per-branch worktrees; cwd is the agent folder or active branch.
    • Write rules: plain agents can write only to agents/<slug>/artifacts/; GitHub agents write within their branch.
    • Connections under /connections/<slug>/mcp.json (no secrets); sharing = branch commit + PR to main.
    • Adds design/design-docs.md: now includes Home pilot routing with a findings/tasks/automations digest, progressive agent discovery through output, private agent-scoped connections with token slots, and a storefront pages browser.

Written for commit 3c10d2f. Summary will update on new commits.

Review in cubic

tlgimenes and others added 5 commits May 13, 2026 11:21
Proposes a unified git-backed filesystem per org where agents and humans
can navigate, store, and generate artifacts. Defines well-known paths
(AGENTS.md, memory.json, skills/, artifacts/, automations/, connections/)
and the two-mode agent folder convention (plain vs github/worktree).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Introduces a top-level split between org workspaces (/orgs/<org-id>/)
and personal user workspaces (/users/<user-id>/). Both share the same
internal layout — user space is a flat mirror of the org layout without
the org nesting. Paths in the well-known table are now relative to the
workspace root so they apply to both contexts equally.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
For agents without a github property, the only writable location inside
the agent folder is artifacts/. All other paths (AGENTS.md, memory.json,
skills/, automations/) are read-only at runtime — changes must go through
humans via the UI or directly in the repo. GitHub agents retain full write
access within their worktree branch.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Single shareable doc covering Studio's vocabulary, primitives,
surfaces, the morning vignette, UX principles, the filesystem
we are converging toward, and proposed answers to the open
roadmap questions.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Makes the doc self-contained for external sharing.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="design/org-filesystem-layout.md">

<violation number="1" location="design/org-filesystem-layout.md:193">
P2: Clarify the writable boundary for GitHub agents; this row is broader than the branch worktree described above.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

| Location | Plain agent | GitHub agent |
|----------|-------------|--------------|
| `agents/<slug>/artifacts/` | ✅ writable | ✅ writable |
| `agents/<slug>/` (all other paths) | ❌ read-only | ✅ writable (lands on the active branch) |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Clarify the writable boundary for GitHub agents; this row is broader than the branch worktree described above.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At design/org-filesystem-layout.md, line 193:

<comment>Clarify the writable boundary for GitHub agents; this row is broader than the branch worktree described above.</comment>

<file context>
@@ -0,0 +1,266 @@
+| Location | Plain agent | GitHub agent |
+|----------|-------------|--------------|
+| `agents/<slug>/artifacts/` | ✅ writable | ✅ writable |
+| `agents/<slug>/` (all other paths) | ❌ read-only | ✅ writable (lands on the active branch) |
+| Workspace root, `connections/`, `skills/` | ✅ writable | ✅ writable |
+
</file context>

…covery, and private connections

- Add "How the Home works" section covering the org pilot, routing heuristics,
  and the findings/tasks/automations digest
- Add "How agents surface" section — specialists surface contextually through
  output (page bar signals, findings tile, tasks), not through a catalog
- Fold Connection primitive into Agent as the integration flavor; private
  connections (dedicated token slots, agent-scoped) documented under Agent
- Update Skills: visible in agent settings, not "mostly invisible to end users"
- Add pages browser to storefront agent surface (organized by template type)
- Add "Agents surface before you go looking" to UX principles
- Update Q2 answer to cover private connection scoping and token slots

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

2 participants