Skip to content

feat: take the project from the working directory and the repo from config - #28

Merged
llbbl merged 2 commits into
mainfrom
feat/cwd-project-config-repo
Oct 20, 2026
Merged

llbbl merged 2 commits into
mainfrom
feat/cwd-project-config-repo

Conversation

@llbbl

@llbbl llbbl commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

--repo and --root are removed from scan, doctor, import, link, reconcile, inventory, optimize and override; init keeps both to write the config. Run commands from inside the project; the canonical repo and the tree of projects come from $AGENTSYNC_REPO / $AGENTSYNC_ROOT or the config file.

A relative $AGENTSYNC_REPO is refused with exit 2, matching $AGENTSYNC_ROOT.

scan, doctor and inventory now refuse positional arguments (exit 2) like the other commands; a path-like argument gets "Run it from the project directory instead." Previously scan --fail-on-risk ~/other silently scanned the current project and exited 0.

An empty $HOME is refused only when finding the project from the working directory; --all and inventory warn and run, and write paths still refuse.

Override's refusal no longer suggests --all.

Docs, README and usage text updated.

Closes #22

llbbl added 2 commits October 20, 2026 08:43
…onfig

`--repo` and `--root` are removed from scan, doctor, import, link, reconcile, inventory, optimize and override; `init` keeps both to write the config. Run commands from inside the project; the canonical repo and the tree of projects come from `$AGENTSYNC_REPO` / `$AGENTSYNC_ROOT` or the config file.

A relative `$AGENTSYNC_REPO` is refused with exit 2, matching `$AGENTSYNC_ROOT`.

scan, doctor and inventory now refuse positional arguments (exit 2) like the other commands; a path-like argument gets "Run it from the project directory instead." Previously `scan --fail-on-risk ~/other` silently scanned the current project and exited 0.

An empty `$HOME` is refused only when finding the project from the working directory; `--all` and inventory warn and run, and write paths still refuse.

Override's refusal no longer suggests `--all`.

Docs, README and usage text updated.

Closes #22
@llbbl
llbbl merged commit f947c93 into main Oct 20, 2026
2 checks passed
@llbbl
llbbl deleted the feat/cwd-project-config-repo branch October 20, 2026 22:45
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.

feat: take the project from the working directory and the repo from config, dropping --repo and --root

1 participant