Clones (or updates) a repository from the AEA Bitbucket organization and, where
possible, opens VS Code in the directory with REPLICATION.md preloaded. Used
during editing and sign-off.
aeagit (number|name) [method] [--no-editor | --finalize]
aeagit --all [method]Arguments¶
number — a plain number (e.g.
aeagit 1234) gets theaearep-prefix, cloningaeaverification/aearep-1234.name — a value with non-numeric characters (e.g.
aeagit train-123) is cloned as given, with no prefix.method —
sshorhttps(abbreviable). Defaults tosshon Linux/macOS andhttpson Windows/Codespaces. HTTPS uses a Bitbucket entry in~/.git-credentials, elseP_BITBUCKET_USERNAMEandP_BITBUCKET_PAT(see Authentication), else git’s own credential helper.-a/--all— process every pre-approved case instead of a single repository (see below).-n/--no-editor— skip opening VS Code. Also honored via theAEAGIT_NO_EDITORenvironment variable.-f/--finalize— after opening VS Code, open the Claude Code extension in that window with the/aea-report-finalizeskill as the prompt (viacode --open-url, after a 4-second wait for the window to open). OverridesAEAGIT_NO_EDITOR; cannot be combined with--allor--no-editor.
Clipboard¶
After a single-repository clone or update, aeagit prints cd <repo> and
copies that command to the clipboard, so it can be pasted to enter the
directory. The copy is best-effort and skipped silently if no clipboard tool
works:
Windows —
clip. Tk is not used: it crashes with an access violation inclipboard_clearon some Windows Pythons (e.g. 3.14).Linux / macOS —
tkinterwhen a display is available, thenpyperclipif installed, thenxclip/xsel(orclip.exeunder WSL) on Linux andpbcopyon macOS.
--all does not copy anything.
Claude Code settings¶
When ~/.claude-aea exists, VS Code is launched with
CLAUDE_CONFIG_DIR=~/.claude-aea, so the Claude Code extension uses the AEA
configuration, and an info notice is printed. Otherwise a warning notes that
Claude Code uses its default settings.
If a running VS Code already has a window on the repository directory (checked
via code --status, by folder name), that window is reused with the settings
it was started with; a warning says so and suggests closing it and rerunning.
All pre-approved cases¶
--all clones or updates the repository of every AEAREP ticket currently in
Pre-Approved status, in ticket order. A ticket’s repository is the value of its
Bitbucket short name field, falling back to the ticket key (aearep-1234) when
that field is empty; a repository named by more than one ticket is processed
once.
aeagit --all # into the current directory, using the default method
aeagit --all https # force HTTPSNo editor is opened, and a repository that fails to clone or pull does not stop the others: each is reported as it is processed, the failures are listed at the end, and the exit code is 1 if there were any.
This mode reads Jira and needs JIRA_USERNAME and JIRA_API_KEY to be set (see Authentication).