@agenttrail/cli 0.2.3 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -106,6 +106,38 @@ committed, commit that change), and removes the `.gitignore` lines it added if t
106
106
  committed. `logout` removes the enforcement settings from both files; the
107
107
  `.git/info/exclude` lines stay, because the files they hide can still hold your own settings.
108
108
 
109
+ ## Already using AgentTrail Guard?
110
+
111
+ You don't need to uninstall it. Run `setup --agent claude` in each project you want AgentTrail OS
112
+ to decide in; AgentTrail Guard keeps protecting every other project.
113
+
114
+ 1. **Setup checks your AgentTrail Guard first, before writing anything.** If your version can't
115
+ stand down for AgentTrail OS, setup stops and prints how to update it (or to uninstall it, or to
116
+ use `--global`, which offers to remove it).
117
+ 2. **It shows what AgentTrail OS won't enforce yet**, after enforcement is verified: your own rules,
118
+ library rules your organization turned off, and stricter actions. With nothing missing, AgentTrail
119
+ Guard stands down in this project. Otherwise setup asks (default no); without a terminal, pass
120
+ `--accept-guard-gap`. An organization with no enabled policies never gets AgentTrail Guard stood
121
+ down. After you apply the import, `setup --stand-down-guard` stands it down.
122
+ 3. **Standing down is recorded only on this machine**, in `~/.agenttrail/os/enforced-projects.json`
123
+ (mode 0600). AgentTrail Guard steps aside in a project only when that record, the enforcement
124
+ settings, the credential and the enabled plugin all agree, so a repository's own settings can't
125
+ make it stand down. When anything disagrees, both run: two prompts, never none.
126
+ 4. **Your settings come with you through a file.** Setup writes `~/.agenttrail/os/guard-import.json`
127
+ (mode 0600, no token in it) and prints its SHA-256. In the app, **Governance → Import from Guard**
128
+ reads it in your browser, shows every change in full, and applies the ones you tick. Your
129
+ allowlist and any action you made weaker don't carry over.
130
+ 5. **What changes:** setup prints it, computed from your settings: what happens when AgentTrail can't
131
+ be reached, `ask` rules becoming holds in the approval queue, and that your `permissions.allow`
132
+ rules can't skip an approval while a reviewer can still answer it.
133
+
134
+ `status` says whether AgentTrail Guard stands down in the current project, and lists what isn't
135
+ enforced until your import is applied. `logout` takes the project out of the record, and AgentTrail
136
+ Guard enforces there again from the next tool call.
137
+
138
+ For Cursor, setup stops while AgentTrail Guard's Cursor hooks are installed: remove them with
139
+ `npx -y @agenttrail/guard@latest uninstall --agent cursor` first.
140
+
109
141
  ## Cursor (`--agent cursor`)
110
142
 
111
143
  ```bash
@@ -169,6 +201,8 @@ Each runs as `npx -y @agenttrail/cli@latest <command> --agent <claude|cursor|cod
169
201
  | `--global` | Configure `~/.claude` + `~/.agenttrail/config.json` (per-user; prints a privacy warning). Refused by `setup --agent cursor` — Cursor is per project only. |
170
202
  | `--no-capture-content` | `--agent claude`: turn OFF prompt/tool-content capture, which is **on by default** (prompts, commands, file paths and tool output). Setup writes the three content flags as `"0"`, and a later rerun without a flag keeps that opt-out. |
171
203
  | `--capture-content` | `--agent claude`: turn capture back on after `--no-capture-content` (on is already the default). `--agent cursor`: turn ON prompt/tool-content capture. Ingest scrubs it server-side under your org's config; with `--agent cursor` it is also scrubbed **on this machine** before it is queued — the scrubber reads the whole value, and the 8192-character cap applies to what is kept afterwards. Scrubbing is shape-based, so it reduces exposure rather than guaranteeing none; the cap is a size limit on what is stored, not a safety measure. |
204
+ | `--accept-guard-gap` | `setup --agent claude` with AgentTrail Guard installed: stand AgentTrail Guard down in this project even though it enforces rules your organization doesn't (setup lists them). Without it, a run with no terminal leaves both running. |
205
+ | `--stand-down-guard` | `setup --agent claude`: stand AgentTrail Guard down here now, after you have applied your import in the app. Never with an organization that has no enabled policies. |
172
206
  | `--unregister` | `setup --agent cursor` only: disconnect this project — remove its entries and its registry record, leaving every other project connected and this device signed in. |
173
207
 
174
208
  ## Key facts