You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,8 +104,9 @@ Run `mise tasks --all` (with `MISE_EXPERIMENTAL=1`) for the full list. Common co
104
104
-**`mise run security:secrets`** — Gitleaks at repo root.
105
105
-**`mise run security:sast`** — Semgrep on the repo (root; includes **`agent/`** Python among paths).
106
106
-**`mise run security:deps`** — OSV Scanner on **`yarn.lock`** (all JS workspaces) and **`agent/uv.lock`**.
107
-
-**`mise run security`** — Runs **`security:secrets`** then**`security:sast`**.
107
+
-**`mise run security`** — Runs **`security:secrets`**, **`security:deps`**,**`security:sast`**, **`security:grype`**, **`security:retire`**, **`security:gh-actions`**, and **`//agent:security`**.
108
108
-**`mise run security:retire`** — Retire.js on CDK, CLI, and docs packages.
109
+
-**`mise run security:gh-actions`** — Static analysis of GitHub Actions under **`.github/`** ([zizmor](https://github.com/zizmorcore/zizmor)).
109
110
-**`mise run hooks:install`** — Re-install **[prek](https://github.com/j178/prek)** git hooks (also run automatically at the end of **`mise run install`** inside a Git checkout). See [CONTRIBUTING.md](./CONTRIBUTING.md) if `core.hooksPath` blocks install.
110
111
-**`mise run hooks:run`** — Run the same **pre-commit** and **pre-push** hook stages on all files (local verification).
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ When planning edits, use **[AGENTS.md](./AGENTS.md)** at the repo root for **whe
42
42
43
43
This repository uses [mise](https://mise.jdx.dev/) for tool versions and tasks. The root **`mise.toml`** enables [monorepo tasks](https://mise.jdx.dev/tasks/monorepo.html) with **`[monorepo].config_roots`** for **`cdk`**, **`agent`**, **`cli`**, and **`docs`**.
44
44
45
-
- After cloning, run **`mise trust`** in the repository root (and in **`agent/`** if you use tasks there in isolation) so mise will load **`mise.toml`** files. See [mise trust](https://mise.jdx.dev/cli/trust.html).
45
+
- After cloning, run **`mise trust`** in the repository root (and in **`agent/`** if you use tasks there in isolation) so mise will load **`mise.toml`** files. See [mise trust](https://mise.jdx.dev/cli/trust.html).**New to mise?** Activate it in your shell first ([`eval "$(mise activate zsh)"`](https://mise.jdx.dev/getting-started.html) or the bash equivalent in `~/.zshrc` / `~/.bashrc`), run **`mise install`**, then enable **Yarn** with **`corepack enable`** and **`corepack prepare yarn@1.22.22 --activate`** before **`mise run install`** (otherwise **`yarn: command not found`** is common). Full sequence and troubleshooting: [Developer guide — Installation](./docs/guides/DEVELOPER_GUIDE.md#installation).
46
46
- Set **`export MISE_EXPERIMENTAL=1`** in your shell (or add it to your environment) when using **namespaced tasks** such as **`mise //cdk:build`** or **`mise run //agent:install`**. Root tasks like **`mise run install`** and **`mise run build`** work without cross-package references and are enough for most workflows.
47
47
- From the repo root: **`mise run install`** runs **`yarn install`** and **`mise run install`** in **`agent/`**. **`mise run build`** runs **`//agent:quality`** first (the CDK stack bundles the agent image), then **`//cdk:build`**, **`//cli:build`**, and **`//docs:build`** in order.
- A **GitHub personal access token** (PAT) with permission to access every repository you onboard (clone, push to branches, create and update pull requests)—often a fine-grained token scoped to **your fork** of `awslabs/agent-plugins` if you follow the fork workflow under **Repository preparation** at the start of this guide. After deployment, store it in the Secrets Manager secret the stack creates ([Post-deployment setup](#post-deployment-setup)); for local agent runs, export `GITHUB_TOKEN` (see **Local testing** below). Required scopes are documented in `agent/README.md`.
87
+
-[Docker](https://docs.docker.com/engine/install/) — for local agent runs and CDK asset builds.
88
+
-[mise](https://mise.jdx.dev/getting-started.html) — task runner and version manager for Node, security tools, and (under `agent/`) Python. Install from the official guide; it is **not** installed via npm.
89
+
-**AWS CDK CLI** ≥ 2.233.0 — install globally with npm **after** mise is active so it uses the same Node as this repo (see [Set up your toolchain](#set-up-your-toolchain)): `npm install -g aws-cdk`.
90
+
- A **GitHub personal access token** (PAT) with permission to access every repository you onboard (clone, push to branches, create and update pull requests)—often a fine-grained token scoped to **your fork** of `awslabs/agent-plugins` if you follow the fork workflow under **Repository preparation**. After deployment, store it in the Secrets Manager secret the stack creates ([Post-deployment setup](#post-deployment-setup)); for local agent runs, export `GITHUB_TOKEN` (see **Local testing**). Required scopes are documented in `agent/README.md`.
91
+
92
+
**Versions this repo pins via mise (no separate Node/Yarn/Python install needed for the standard path):**
93
+
94
+
| Tool | Where it is defined | When it is installed |
|**Node.js** 22.x | Root `mise.toml`|`mise install` from the repo root |
97
+
|**Yarn Classic** (1.22.x) | Not in mise — use Corepack with Node (see below) | After `corepack enable` and `corepack prepare yarn@…`|
98
+
|**Python** + **uv**|`agent/mise.toml`|`mise run install` (runs `mise run install` inside `agent/`) |
99
+
| gitleaks, semgrep, osv-scanner, grype, zizmor, prek, … | Root `mise.toml`|`mise install` from the repo root |
100
+
101
+
You do **not** need standalone installs of Node or Yarn from nodejs.org or the Yarn website if you follow [Set up your toolchain](#set-up-your-toolchain).
Reload the file (`source ~/.zshrc`) or open a new terminal. Without this step, your shell may keep using a system Node (or no `yarn`), and `mise run install` can fail with **`yarn: command not found`**.
4.**Trust this repository’s mise config.** Mise refuses to apply project-local settings until you trust them (security feature):
133
+
134
+
```bash
135
+
mise trust
136
+
```
137
+
138
+
5.**Install tools from the root `mise.toml`** (Node 22, security scanners, prek, etc.):
113
139
114
-
Install repository dependencies and run an initial build before making changes:
140
+
```bash
141
+
mise install
142
+
```
143
+
144
+
6.**Enable Yarn via Corepack.** Node ships with Corepack, but Yarn is not on your PATH until Corepack is enabled. This monorepo uses **Yarn Classic** (1.x) workspaces:
145
+
146
+
```bash
147
+
corepack enable
148
+
corepack prepare yarn@1.22.22 --activate
149
+
```
150
+
151
+
The `prepare` line installs a 1.22.x release compatible with the workspace (`yarn.lock` / engines expectations). If `yarn` is still missing, confirm step 2 (shell activation) and that `which node` points into your mise shims.
152
+
153
+
7.**Sanity check** (optional):
154
+
155
+
```bash
156
+
node --version # expect v22.x
157
+
yarn --version # expect 1.22.x
158
+
```
159
+
160
+
8.**Install the AWS CDK CLI** using the same Node as mise:
161
+
162
+
```bash
163
+
npm install -g aws-cdk
164
+
```
165
+
166
+
9.**Install workspace dependencies and build.** Namespaced mise tasks require experimental mode:
167
+
168
+
```bash
169
+
export MISE_EXPERIMENTAL=1
170
+
mise run install
171
+
mise run build
172
+
```
173
+
174
+
`mise run install` runs `yarn install` for the Yarn workspaces (`cdk`, `cli`, `docs`), then `mise run install` in `agent/` for Python dependencies, and installs [prek](https://github.com/j178/prek) git hooks when you are inside a Git checkout.
175
+
176
+
### First time with mise? Troubleshooting
177
+
178
+
Use this section if **`mise run install`** fails or versions look wrong.
179
+
180
+
| Symptom | What to check |
181
+
|---------|----------------|
182
+
|**`yarn: command not found`**| Mise shell activation (step 2), then `corepack enable` and `corepack prepare yarn@1.22.22 --activate` (step 6). |
183
+
|**`node` is not v22**| Shell activation (step 2); run `mise install` in the repo root (step 5). |
184
+
| Mise errors about **untrusted** config | From the repo root: `mise trust`, then `mise install` again. |
185
+
|**`MISE_EXPERIMENTAL` required**| Export `MISE_EXPERIMENTAL=1` for tasks like `mise //cdk:build` (see [CONTRIBUTING.md](../../CONTRIBUTING.md)). |
186
+
187
+
Minimal recovery sequence:
115
188
116
189
```bash
190
+
eval"$(mise activate zsh)"# or bash; add permanently to your shell rc file
191
+
cd /path/to/sample-autonomous-cloud-coding-agents
192
+
mise trust
193
+
mise install
194
+
corepack enable
195
+
corepack prepare yarn@1.22.22 --activate
196
+
export MISE_EXPERIMENTAL=1
117
197
mise run install
118
-
mise run build
119
198
```
120
199
121
-
`mise run install` runs `yarn install` for the workspaces and `mise run install` in `agent/` for Python dependencies.
122
-
123
200
### Suggested development flow
124
201
125
202
Use this order to iterate quickly and catch issues early:
0 commit comments