Repository navigation
Bind a folder of repositories once as a workspace - #7
Merged
Merged
Conversation
A command test that does not chdir runs in the package directory, where project discovery resolves whatever Project lies above the source tree. Once discovery can reach a workspace above a repository, such a test acts on a real Project: the stub test ran `workspace off` on one and unhooked its repositories. Every command test now starts in an empty temporary directory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Taking Atlas's hooks or memory entry out of a JSON config that held
nothing else wrote it back as "{}". In a git repository that is an
untracked .mcp.json, and a workspace leaves one in every member
repository. The file is removed instead, as the Codex, Copilot and
OpenCode writers already do with theirs; a file that keeps other keys is
written as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Some teams keep one folder per product with each part (frontend/, backend/, ...) its own git repository. Discovery stopped at the repository, so an agent started in backend/ found no Project. `atlas-cli init --workspace` binds the folder once (ADR-0015). The marker is a sidecar, .atlas/workspace.json, so sessions.db stays the app's schema. Discovery walks past a repository's root only to a bound workspace: sessions from every member land in the workspace's store, and memory lives in the workspace folder, shared by all of them. Agent and git hooks go into every member. `atlas-cli workspace` lists the members and which agents are hooked in each, hooks new ones (sync), converts a bound folder (on, off) and takes folders without git (add, remove). A workspace captures every repository below it, so it is opt-in: on a terminal init asks with "This folder only" pre-selected, and without one it only names the repositories and `atlas-cli workspace on`. Shell changes and commit links in member repositories are not captured yet: git still runs in the workspace folder, which is outside git. 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
Bind a folder of repositories once; agents started in any of them record into that one Project and share one memory (ADR-0015).
Also in this PR:
workspace offon a real one.{}, which became an untracked.mcp.jsonin every member repository.Not yet: shell changes and commit links in member repositories (git still runs in the workspace folder, which is outside git).
Evidence
Sandbox: Docker, a clean copy of the sources, no network except the model download.
Before (the v0.6.1 binary, same end-to-end script): 14 passed, 42 failed. An agent in
backend/gets "not initialised" and nothing is recorded.After: 62 of 62 workspace checks pass:
Unit tests:
go testand-racepass on all 34 packages. The earlier end-to-end checks pass (20 offline, 7 online). Lint reports 0 issues,go mod tidy -diffis clean, and the four release targets cross-compile.make release-checkpasses,make snapshotbuilds the archives, and install.sh installs the snapshot from them.Merge Danger
Door: two-way for the code. Without
.atlas/workspace.jsonevery folder behaves as in v0.6.1, andatlas-cli workspace offreturns a workspace to a single folder. Sessions captured in a cloud-bound workspace and already synced stay in that cloud Project.Blast Radius: discovery
Every command and hook resolves its Project through
Discover. Folders without a workspace marker resolve as before; tests cover a plain binding above a repository, a marker without a binding, and nested bindings. A config file that held only Atlas's entries is now deleted on removal rather than rewritten as{}.🤖 Generated with Claude Code