@arthai/agents 1.0.7 → 1.0.8

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
@@ -18,56 +18,103 @@ npx @arthai/agents install forge .
18
18
 
19
19
  Don't have a key? Contact us at arthai.dev/pricing
20
20
 
21
+ ## Explore Before Installing
22
+
23
+ No license needed to browse:
24
+
25
+ ```bash
26
+ # See all available bundles with descriptions
27
+ npx @arthai/agents list
28
+
29
+ # See what's inside a specific bundle (agents, skills, hooks)
30
+ npx @arthai/agents info forge
31
+
32
+ # See what's inside every bundle
33
+ npx @arthai/agents info prime
34
+ ```
35
+
21
36
  ## Install
22
37
 
23
38
  ```bash
24
39
  # Install a bundle into your project
25
40
  npx @arthai/agents install forge .
26
41
 
27
- # Install multiple bundles
42
+ # Install multiple bundles at once
28
43
  npx @arthai/agents install forge spark shield .
29
44
 
30
- # See all available bundles (no license needed)
31
- npx @arthai/agents list
45
+ # Install everything
46
+ npx @arthai/agents install prime .
47
+ ```
32
48
 
33
- # Show what's in a bundle (no license needed)
34
- npx @arthai/agents info forge
49
+ ### What gets installed
50
+
51
+ When you install a bundle, these files are created in your project:
52
+
53
+ ```
54
+ your-project/
55
+ .claude/
56
+ skills/ # slash commands (/planning, /implement, /qa, etc.)
57
+ agents/ # specialized AI agents (architect, backend, QA, etc.)
58
+ hooks/ # automation hooks (guardrails, deploy health, etc.)
59
+ settings.json # hooks registered here
60
+ CLAUDE.md # project context file (created if missing)
61
+ .gitignore # updated with toolkit entries
35
62
  ```
36
63
 
64
+ ### How skills, agents, and hooks work
65
+
66
+ | Component | What it is | How you use it | Example |
67
+ |-----------|-----------|----------------|---------|
68
+ | **Skills** | Slash commands with structured workflows | Type `/skillname` in Claude Code | `/planning my-feature` — spawns PM + Architect + DA for adversarial planning |
69
+ | **Agents** | Specialized AI personas with domain expertise | Skills spawn them automatically, or use Agent tool directly | `architect` — designs systems, `backend` — writes backend code, `qa` — validates |
70
+ | **Hooks** | Shell scripts that fire on events | Automatic — run on session start, before/after commands | `pre-bash-guard` — blocks dangerous commands, `escalation-guard` — circuit breaker on 3 failures |
71
+
72
+ **Skills are what you interact with. Agents and hooks work behind the scenes.**
73
+
37
74
  ## Bundles
38
75
 
39
76
  Pick what you need. Each bundle is a self-contained set of agents, skills, and hooks.
40
77
 
41
78
  ### Development
42
79
 
43
- | Bundle | Command | What you get |
44
- |--------|---------|-------------|
45
- | **forge** | `npx @arthai/agents install forge .` | Full dev workflow: `/planning`, `/implement`, `/qa`, `/pr`, `/precheck`, `/review-pr` + 6 agents (architect, PM, backend, frontend, QA, code-reviewer) + triage router hook |
46
- | **scalpel** | `npx @arthai/agents install scalpel .` | Bug fixing: `/fix`, `/ci-fix`, `/issue` + code-reviewer agent + edit guard hook |
47
- | **spark** | `npx @arthai/agents install spark .` | Project setup: `/onboard`, `/calibrate`, `/scan`, `/setup` + setup and explore agents |
80
+ | Bundle | What you get |
81
+ |--------|-------------|
82
+ | **forge** | Full dev workflow: `/planning`, `/implement`, `/qa`, `/pr`, `/precheck`, `/review-pr` + architect, PM, backend, frontend, QA, code-reviewer agents + triage router + escalation guard |
83
+ | **scalpel** | Bug fixing: `/fix`, `/ci-fix`, `/issue` + code-reviewer + troubleshooter agents |
84
+ | **spark** | Project setup: `/onboard`, `/calibrate`, `/scan`, `/setup` + setup and explore agents |
48
85
 
49
86
  ### Operations
50
87
 
51
- | Bundle | Command | What you get |
52
- |--------|---------|-------------|
53
- | **sentinel** | `npx @arthai/agents install sentinel .` | SRE + ops: `/sre`, `/incident`, `/restart` + SRE and ops agents + deploy health + git state hooks |
54
- | **prism** | `npx @arthai/agents install prism .` | Deep QA: `/qa`, `/qa-learn`, `/qa-incident` + 6 QA agents (qa, e2e, domain, challenger, baseline, promoter) |
55
- | **shield** | `npx @arthai/agents install shield .` | Safety guardrails: bash guard, edit guard, session bootstrap, triage router hooks (no skills — hooks only) |
88
+ | Bundle | What you get |
89
+ |--------|-------------|
90
+ | **sentinel** | SRE + ops: `/sre`, `/incident`, `/restart` + SRE, ops agents + deploy health, port guard, crash watcher hooks |
91
+ | **prism** | Deep QA: `/qa`, `/qa-learn`, `/qa-incident` + 6 QA agents (qa, e2e, domain, challenger, baseline, promoter) |
92
+ | **shield** | Safety guardrails only: bash guard, edit guard, session bootstrap, triage router, escalation guard (no skills — hooks only) |
56
93
 
57
94
  ### Strategy
58
95
 
59
- | Bundle | Command | What you get |
60
- |--------|---------|-------------|
61
- | **canvas** | `npx @arthai/agents install canvas .` | Design: `/planning` + design-studio agents (think, create, critique) + frontend agent |
62
- | **compass** | `npx @arthai/agents install compass .` | Product: `/planning` + PM, GTM, user researcher, content strategist agents |
63
- | **counsel** | `npx @arthai/agents install counsel .` | Consulting: 13 skills (client-discovery, proposals, deliverables, ROI, etc.) + 4 consulting agents |
96
+ | Bundle | What you get |
97
+ |--------|-------------|
98
+ | **canvas** | Design: `/planning` + design-studio agents (think, create, critique) + frontend agent |
99
+ | **compass** | Product: `/planning` + PM, GTM, user researcher, content strategist agents |
100
+ | **counsel** | Consulting: 13 skills (client-discovery, proposals, deliverables, ROI, etc.) + 4 consulting agents |
64
101
 
65
102
  ### Power
66
103
 
67
- | Bundle | Command | What you get |
68
- |--------|---------|-------------|
69
- | **cruise** | `npx @arthai/agents install cruise .` | Autonomous mode: `/autopilot` — picks up issues, implements, QAs, creates PRs. Auto-installs forge + scalpel + sentinel. |
70
- | **prime** | `npx @arthai/agents install prime .` | Everything. All 25 agents, 37 skills, 16 hooks. |
104
+ | Bundle | What you get |
105
+ |--------|-------------|
106
+ | **cruise** | Autonomous mode: `/autopilot` — picks up issues, implements, QAs, creates PRs. Auto-installs forge + scalpel + sentinel. |
107
+ | **prime** | Everything. All agents, skills, and hooks. |
108
+
109
+ ### Which bundle should I start with?
110
+
111
+ | You want to... | Install |
112
+ |----------------|---------|
113
+ | Build features end-to-end | `forge` |
114
+ | Fix bugs with formal pipeline | `scalpel` |
115
+ | Get set up on a new project | `spark` |
116
+ | All of the above | `forge spark scalpel` |
117
+ | Everything including SRE, QA, design, consulting | `prime` |
71
118
 
72
119
  ## Workflows
73
120
 
@@ -96,7 +143,7 @@ After installing, use skills in Claude Code:
96
143
 
97
144
  **Autonomous mode:**
98
145
  ```
99
- /autopilot # picks up issues implements QAs creates PRs
146
+ /autopilot # picks up issues, implements, QAs, creates PRs
100
147
  ```
101
148
 
102
149
  **Operations:**
@@ -106,49 +153,94 @@ After installing, use skills in Claude Code:
106
153
  /restart # restart local dev servers
107
154
  ```
108
155
 
109
- ## Uninstall
156
+ ## Updating
110
157
 
111
158
  ```bash
112
- npx @arthai/agents uninstall forge .
159
+ # Update to latest version (re-run install with @latest)
160
+ npx @arthai/agents@latest install forge .
113
161
  ```
114
162
 
115
- Remove everything:
163
+ ### When to update
164
+
165
+ - **After a new release** — check the changelog or Discord #deployments
166
+ - **When a skill isn't working as expected** — updates often fix edge cases
167
+ - **After `npx` cache issues** — clear cache and reinstall:
116
168
 
117
169
  ```bash
118
- rm -rf .claude/skills .claude/agents .claude/hooks
170
+ # Clear npx cache if you're getting stale versions
171
+ rm -rf ~/.npm/_npx
172
+ npx @arthai/agents@latest install forge .
119
173
  ```
120
174
 
121
- Note: hooks merged into `.claude/settings.json` need to be removed manually.
175
+ ### What happens on update
122
176
 
123
- ## Troubleshooting
177
+ - Skills, agents, and hooks are **overwritten** with the latest versions
178
+ - Your `CLAUDE.md` is **never overwritten** — only the managed toolkit block is updated
179
+ - Your `.claude/settings.json` hooks are **merged** — existing hooks are preserved
180
+ - Your project-specific files (`.claude/project-profile.md`, `.claude/knowledge/`) are **never touched**
124
181
 
125
- | Problem | Fix |
126
- |---------|-----|
127
- | Skills not showing | Restart Claude Code in the project |
128
- | `/planning` says unknown skill | Verify files exist: `ls .claude/skills/planning/SKILL.md` |
129
- | Install says "not found in dist/" | Update: `npx @arthai/agents@latest install forge .` |
182
+ ## Uninstall
130
183
 
131
- ## Also available as Claude Code plugin
184
+ ```bash
185
+ # Remove a specific bundle
186
+ npx @arthai/agents uninstall forge .
132
187
 
188
+ # Remove everything
189
+ rm -rf .claude/skills .claude/agents .claude/hooks
133
190
  ```
134
- /plugin marketplace add ArthTech-AI/arthai-marketplace
135
- /plugin install forge@arthai-marketplace
136
- ```
191
+
192
+ Note: hooks merged into `.claude/settings.json` need to be removed manually. Open the file and delete entries referencing `.claude/hooks/`.
137
193
 
138
194
  ## License Activation
139
195
 
140
- A license key is required to install bundles. Browse and explore bundles without a key using `list` and `info`.
196
+ A license key is required to install bundles. Browsing (`list`, `info`) is free.
141
197
 
142
198
  ```bash
143
199
  # Activate (one time — saves key locally)
144
200
  npx @arthai/agents activate ARTH-XXXX-XXXX-XXXX-XXXX
145
201
 
146
202
  # Key is stored at ~/.arthai/license — all future installs use it automatically
147
- # You can also set ARTHAI_LICENSE_KEY env var (useful for CI/teams)
148
203
  ```
149
204
 
205
+ **For CI/teams:** Set `ARTHAI_LICENSE_KEY` environment variable instead of activating per-machine.
206
+
150
207
  **Key precedence:** `ARTHAI_LICENSE_KEY` env var > `~/.arthai/license` file > `--key` flag
151
208
 
209
+ ## Troubleshooting
210
+
211
+ | Problem | Fix |
212
+ |---------|-----|
213
+ | Skills not showing in Claude Code | Restart Claude Code in the project directory |
214
+ | `/planning` says unknown skill | Verify: `ls .claude/skills/planning/SKILL.md` |
215
+ | Install crashes on CLAUDE.md setup | Update: `rm -rf ~/.npm/_npx && npx @arthai/agents@latest install forge .` |
216
+ | "License required" after activation | Check: `cat ~/.arthai/license` — should contain your key |
217
+ | "License server unavailable" | Check internet connection. Try again in a minute. |
218
+ | Old version stuck | Clear cache: `rm -rf ~/.npm/_npx` then reinstall |
219
+ | Hooks not firing | Check `.claude/settings.json` has hook entries. Restart Claude Code. |
220
+
221
+ ## Best Practices
222
+
223
+ 1. **Start with `forge`** — it covers 80% of workflows. Add other bundles as needed.
224
+ 2. **Run `/calibrate` after install** — this teaches the toolkit your project's patterns, stack, and conventions. Without it, agents work generically.
225
+ 3. **Run `/onboard` every session** — quick briefing on open PRs, issues, and priorities.
226
+ 4. **Use `/precheck` before pushing** — catches CI failures locally in 30s instead of a 4-minute round-trip.
227
+ 5. **Don't edit files in `.claude/skills/` or `.claude/agents/`** — they get overwritten on update. Customize by adding your own files alongside them.
228
+ 6. **Keep `CLAUDE.md` up to date** — agents read it for project context. The more accurate it is, the better they perform.
229
+
230
+ ## Gotchas
231
+
232
+ - **`npx` caches aggressively** — if you're not getting the latest version, run `rm -rf ~/.npm/_npx` before reinstalling
233
+ - **Hooks stack, they don't replace** — installing a bundle twice adds duplicate hook entries to `settings.json`. Uninstall first if reinstalling.
234
+ - **`CLAUDE.md` managed block is auto-updated** — the section between `<!-- >>> claude-agents toolkit -->` markers is overwritten on install. Don't put your content there.
235
+ - **Agent teams require experimental flag** — set `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` in your Claude Code settings (auto-configured by the installer)
236
+
237
+ ## Also available as Claude Code plugin
238
+
239
+ ```
240
+ /plugin marketplace add ArthTech-AI/arthai-marketplace
241
+ /plugin install forge@arthai-marketplace
242
+ ```
243
+
152
244
  ## Requirements
153
245
 
154
246
  - [Claude Code CLI](https://docs.anthropic.com/en/docs/claude-code)
package/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.7
1
+ 1.0.8
package/bin/cli.js CHANGED
@@ -489,6 +489,10 @@ function handleUninstall(rawArgs) {
489
489
 
490
490
  // ── helpers ───────────────────────────────────────────────────────────────────
491
491
 
492
+ function looksLikePath(arg) {
493
+ return typeof arg === 'string' && (arg.includes(path.sep) || arg.startsWith('.') || arg.startsWith('~') || arg.startsWith('/'));
494
+ }
495
+
492
496
  // Validate bundle names: only lowercase alphanumeric and hyphens, max 64 chars.
493
497
  // Prevents path traversal via names like "../../etc/passwd".
494
498
  function isValidBundleName(name) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "canvas",
3
3
  "description": "Design-driven development — adversarial design critique + frontend",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "author": {
6
6
  "name": "Arth AI"
7
7
  }
@@ -1 +1 @@
1
- 1.0.7
1
+ 1.0.8
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "compass",
3
3
  "description": "Product strategy — PM, GTM, user research, content strategy",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "author": {
6
6
  "name": "Arth AI"
7
7
  }
@@ -1 +1 @@
1
- 1.0.7
1
+ 1.0.8
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "counsel",
3
3
  "description": "AI consulting toolkit — client discovery, proposals, deliverables",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "author": {
6
6
  "name": "Arth AI"
7
7
  }
@@ -1 +1 @@
1
- 1.0.7
1
+ 1.0.8
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cruise",
3
3
  "description": "Autopilot mode — autonomous task execution (requires forge+scalpel+sentinel)",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "author": {
6
6
  "name": "Arth AI"
7
7
  }
@@ -1 +1 @@
1
- 1.0.7
1
+ 1.0.8
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "forge",
3
3
  "description": "Full development workflow — plan, build, test, ship",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "author": {
6
6
  "name": "Arth AI"
7
7
  }
@@ -1 +1 @@
1
- 1.0.7
1
+ 1.0.8
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prime",
3
3
  "description": "Everything — all agents, skills, and hooks in one plugin",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "author": {
6
6
  "name": "Arth AI"
7
7
  }
@@ -1 +1 @@
1
- 1.0.7
1
+ 1.0.8
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prism",
3
3
  "description": "Deep QA — multi-agent testing, baseline tracking, incident analysis",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "author": {
6
6
  "name": "Arth AI"
7
7
  }
@@ -1 +1 @@
1
- 1.0.7
1
+ 1.0.8
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "scalpel",
3
3
  "description": "Surgical bug fixing — targeted fixes, CI repair, issue triage",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "author": {
6
6
  "name": "Arth AI"
7
7
  }
@@ -1 +1 @@
1
- 1.0.7
1
+ 1.0.8
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sentinel",
3
3
  "description": "Operations and reliability — SRE, incidents, deploy monitoring",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "author": {
6
6
  "name": "Arth AI"
7
7
  }
@@ -1 +1 @@
1
- 1.0.7
1
+ 1.0.8
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shield",
3
3
  "description": "Safety guardrails — bash guards, edit protection, session bootstrap",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "author": {
6
6
  "name": "Arth AI"
7
7
  }
@@ -1 +1 @@
1
- 1.0.7
1
+ 1.0.8
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "spark",
3
3
  "description": "Project setup and onboarding — calibrate, scan, bootstrap",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "author": {
6
6
  "name": "Arth AI"
7
7
  }
@@ -1 +1 @@
1
- 1.0.7
1
+ 1.0.8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arthai/agents",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "AI-powered development toolkit for Claude Code — agents, skills, and hooks",
5
5
  "bin": {
6
6
  "arthai": "bin/cli.js"