@aman_asmuei/aman-agent 0.41.0 → 0.42.0
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 +112 -42
- package/dist/delegate.js +3 -1
- package/dist/delegate.js.map +1 -1
- package/dist/index.js +291 -9
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
|
|
20
20
|
<img src="https://img.shields.io/badge/tests-917_passing-brightgreen?style=for-the-badge&logo=vitest&logoColor=white" alt="917 tests passing" />
|
|
21
21
|
|
|
22
|
+
<a href="https://github.com/amanasmuei/aman-claude-code"><img src="https://img.shields.io/badge/Claude_Code-plugin-8A2BE2?style=for-the-badge&logo=anthropic&logoColor=white" alt="Claude Code plugin" /></a>
|
|
23
|
+
|
|
22
24
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue?style=for-the-badge" alt="MIT License" /></a>
|
|
23
25
|
</p>
|
|
24
26
|
|
|
@@ -39,8 +41,9 @@
|
|
|
39
41
|
</p>
|
|
40
42
|
|
|
41
43
|
<p align="center">
|
|
42
|
-
<a href="#whats-new-in-
|
|
44
|
+
<a href="#whats-new-in-v0410"><kbd> What's New </kbd></a>
|
|
43
45
|
<a href="#quick-start"><kbd> Quick Start </kbd></a>
|
|
46
|
+
<a href="#claude-code-plugin-recommended"><kbd> Plugin </kbd></a>
|
|
44
47
|
<a href="#project-dev-mode-recommended"><kbd> Dev Mode </kbd></a>
|
|
45
48
|
<a href="#architecture-at-a-glance"><kbd> Architecture </kbd></a>
|
|
46
49
|
<a href="#features"><kbd> Features </kbd></a>
|
|
@@ -52,7 +55,12 @@
|
|
|
52
55
|
|
|
53
56
|
<p align="center">
|
|
54
57
|
<sub>
|
|
55
|
-
<b>
|
|
58
|
+
<b>Drop into Claude Code →</b> <code>claude plugin marketplace add amanasmuei/aman-claude-code</code> • <code>claude plugin install aman-claude-code@aman</code>
|
|
59
|
+
</sub>
|
|
60
|
+
</p>
|
|
61
|
+
<p align="center">
|
|
62
|
+
<sub>
|
|
63
|
+
Prefer a standalone CLI? See <a href="#standalone-cli-install">Standalone CLI install</a> below.
|
|
56
64
|
</sub>
|
|
57
65
|
</p>
|
|
58
66
|
|
|
@@ -61,11 +69,12 @@
|
|
|
61
69
|
<details>
|
|
62
70
|
<summary><strong>Table of Contents</strong></summary>
|
|
63
71
|
|
|
64
|
-
- [What's New](#whats-new-in-
|
|
72
|
+
- [What's New](#whats-new-in-v0410)
|
|
65
73
|
- [The Problem](#the-problem)
|
|
66
74
|
- [The Solution](#the-solution)
|
|
67
75
|
- [Architecture at a Glance](#architecture-at-a-glance)
|
|
68
76
|
- [Quick Start](#quick-start)
|
|
77
|
+
- [Standalone CLI install](#standalone-cli-install)
|
|
69
78
|
- [Usage Guide](#usage-guide)
|
|
70
79
|
- [Project Dev Mode](#project-dev-mode-recommended)
|
|
71
80
|
- [Your First Conversation](#your-first-conversation)
|
|
@@ -99,50 +108,88 @@
|
|
|
99
108
|
|
|
100
109
|
---
|
|
101
110
|
|
|
102
|
-
## What's New in v0.
|
|
111
|
+
## What's New in v0.42.0
|
|
103
112
|
|
|
104
|
-
> **
|
|
113
|
+
> **Your memory, as plain Markdown.** Every memory is now mirrored to `~/.aman-agent/memories/` as a `.md` file you can read, edit, git-commit, or sync via Dropbox/iCloud.
|
|
105
114
|
|
|
106
115
|
```bash
|
|
107
|
-
|
|
116
|
+
# snapshot your memory to any dir
|
|
117
|
+
aman-agent # then: /memory export --to ~/backups/amem
|
|
118
|
+
|
|
119
|
+
# see mirror status
|
|
120
|
+
/memory mirror status
|
|
121
|
+
|
|
122
|
+
# rebuild if you lose the DB but have the files
|
|
123
|
+
/memory mirror rebuild
|
|
124
|
+
|
|
125
|
+
# pull edits from a synced folder (multi-device)
|
|
126
|
+
/memory sync --from ~/Dropbox/aman-memories
|
|
108
127
|
```
|
|
109
128
|
|
|
129
|
+
**What you get:**
|
|
130
|
+
|
|
131
|
+
- Round-trip contract — files round-trip cleanly through amem-core's existing sync parser.
|
|
132
|
+
- Multi-device sync — on every `aman-agent` startup, edits in the mirror dir are imported back into the DB (disable via `config.mirror.autoSyncOnStartup = false`).
|
|
133
|
+
- No lock-in — plain YAML-frontmatter Markdown. If you ever stop using aman-agent, the memories stay useful anywhere.
|
|
134
|
+
- Opt-out with one flag: `config.mirror.enabled = false` disables all mirror I/O.
|
|
135
|
+
|
|
136
|
+
Requires `@aman_asmuei/amem-core@0.6.0` (shipped simultaneously).
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## What's New in v0.41.0
|
|
141
|
+
|
|
142
|
+
> **From companion to orchestrator — fully wired.** One command decomposes, delegates, reviews, and tracks cost.
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
/orchestrate Build user auth with JWT, password hashing, rate limiting, and tests
|
|
110
146
|
```
|
|
111
|
-
## REST API with Auth
|
|
112
|
-
**Tasks:** 5 | **Gates:** 1
|
|
113
147
|
|
|
114
|
-
- **Design API schema** → architect [advanced] (root)
|
|
115
|
-
- **Implement auth middleware** → coder [standard] (after: design)
|
|
116
|
-
- **Implement CRUD endpoints** → coder [standard] (after: design)
|
|
117
|
-
- **Write test suite** → tester [standard] (after: auth, crud)
|
|
118
|
-
- **Security review** → security [standard] (after: tests)
|
|
119
|
-
- 🔒 **Human approval before deploy** [approval]
|
|
120
148
|
```
|
|
149
|
+
Project type: api-backend (auto-detected)
|
|
150
|
+
Template: full-feature
|
|
121
151
|
|
|
122
|
-
|
|
152
|
+
## User Authentication
|
|
153
|
+
**Tasks:** 5 | **Gates:** 1
|
|
123
154
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
| **5. Enterprise** | Circuit breakers, checkpoint/resume, cost tracking with budget enforcement, 7-rule policy engine |
|
|
155
|
+
- **Design auth architecture** → architect [advanced] (root)
|
|
156
|
+
- **Implement JWT middleware** → coder [standard] (after: design)
|
|
157
|
+
- **Add rate limiting** → coder [standard] (after: design) ← parallel
|
|
158
|
+
- **Write test suite** → tester [standard] (after: jwt, rate-limit)
|
|
159
|
+
- **Security review** → security [standard] (after: tests)
|
|
160
|
+
- 🔒 **Human approval** [approval gate]
|
|
131
161
|
|
|
132
|
-
|
|
162
|
+
Status: completed (34.2s)
|
|
163
|
+
Cost: ~$0.12 (3 standard + 1 advanced)
|
|
164
|
+
Policy: passed (0 errors, 2 warnings)
|
|
165
|
+
```
|
|
133
166
|
|
|
134
|
-
|
|
135
|
-
|
|
167
|
+
**What happens in that one command:**
|
|
168
|
+
|
|
169
|
+
1. Auto-detects project type from your cwd (web-frontend, api-backend, mobile, etc.)
|
|
170
|
+
2. Selects the best orchestration template (or decomposes via LLM)
|
|
171
|
+
3. Runs policy check (7 built-in rules — requires review, testing, approval gates)
|
|
172
|
+
4. Executes DAG with parallel agent scheduling and circuit breakers
|
|
173
|
+
5. Tracks LLM cost per tier with budget enforcement
|
|
174
|
+
6. Self-review loop: reviewer + tester evaluate output before completion
|
|
136
175
|
|
|
137
|
-
**
|
|
176
|
+
**Flags:** `--template bug-fix`, `--no-review`, `--no-policy`
|
|
138
177
|
|
|
139
|
-
**GitHub-
|
|
178
|
+
**GitHub-native:** `/github plan 42` does the same thing, starting from a GitHub issue.
|
|
140
179
|
|
|
141
|
-
|
|
180
|
+
<details>
|
|
181
|
+
<summary><strong>The full stack (5 modules, 917 tests)</strong></summary>
|
|
142
182
|
|
|
143
|
-
|
|
183
|
+
| Module | What it does |
|
|
184
|
+
|:---|:---|
|
|
185
|
+
| **Orchestrator Engine** | DAG scheduler, multi-tier LLM routing (fast/standard/advanced), approval gates, structured audit trails, immutable state machine |
|
|
186
|
+
| **GitHub-Native** | Safe `gh` CLI wrapper, issue-to-DAG planner, PR manager, CI gate polling |
|
|
187
|
+
| **Agent Factory** | 4 profiles (architect, security, tester, reviewer), 3 workflow templates (full-feature, bug-fix, security-audit), self-review loop |
|
|
188
|
+
| **Project Manager** | Project type classifier, module boundary mapper for parallel agents, orchestration monitoring |
|
|
189
|
+
| **Enterprise** | Circuit breakers (closed/open/half-open), checkpoint/resume, cost tracking + budget enforcement, 7-rule policy engine |
|
|
190
|
+
| **Integration** | Unified runner (`runOrchestrationFull`), smart orchestrate (`smartOrchestrate`), profile auto-install |
|
|
144
191
|
|
|
145
|
-
|
|
192
|
+
28 new source files, 32 new test files. [Full release notes →](https://github.com/amanasmuei/aman-agent/releases/tag/v0.41.0)
|
|
146
193
|
|
|
147
194
|
</details>
|
|
148
195
|
|
|
@@ -398,20 +445,24 @@ flowchart TB
|
|
|
398
445
|
|
|
399
446
|
## Quick Start
|
|
400
447
|
|
|
401
|
-
###
|
|
448
|
+
### Claude Code plugin (recommended)
|
|
449
|
+
|
|
450
|
+
If you already use Claude Code, this is the fastest path — no new CLI to install, no Node.js, no API key to paste. Install the plugin once and your full aman ecosystem (identity, rules, memory, skills, live tools) auto-loads every session.
|
|
402
451
|
|
|
403
452
|
```bash
|
|
404
|
-
|
|
405
|
-
|
|
453
|
+
claude plugin marketplace add amanasmuei/aman-claude-code
|
|
454
|
+
claude plugin install aman-claude-code@aman
|
|
455
|
+
```
|
|
406
456
|
|
|
407
|
-
|
|
408
|
-
npm install -g @aman_asmuei/aman-agent
|
|
457
|
+
Then reload Claude Code (`/reload-plugins` or restart). That's it — type anything and aman-agent is already remembering you.
|
|
409
458
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
459
|
+
> **Also on VS Code Copilot Chat or the Copilot CLI?** The [`aman-copilot`](https://github.com/amanasmuei/aman-copilot) sibling gives you the same identity, rules, and memory on those surfaces.
|
|
460
|
+
|
|
461
|
+
### Run
|
|
462
|
+
|
|
463
|
+
Inside Claude Code with the plugin installed, you don't run anything — just start chatting. Skip to [First Launch](#first-launch--youll-be-asked-about-you) for the one-time setup prompt.
|
|
413
464
|
|
|
414
|
-
|
|
465
|
+
If you went with the [standalone CLI](#standalone-cli-install) instead:
|
|
415
466
|
|
|
416
467
|
```bash
|
|
417
468
|
# Start a conversation
|
|
@@ -448,7 +499,7 @@ No env var? First run prompts for your LLM provider and model:
|
|
|
448
499
|
|
|
449
500
|
**Ollama** — local models, no account needed.
|
|
450
501
|
|
|
451
|
-
###
|
|
502
|
+
### First Launch — You'll Be Asked About You
|
|
452
503
|
|
|
453
504
|
On first run, a quick interactive setup captures who you are:
|
|
454
505
|
|
|
@@ -463,10 +514,10 @@ On first run, a quick interactive setup captures who you are:
|
|
|
463
514
|
|
|
464
515
|
Takes ~30 seconds. Update anytime with `/profile edit`.
|
|
465
516
|
|
|
466
|
-
###
|
|
517
|
+
### Talk
|
|
467
518
|
|
|
468
519
|
```bash
|
|
469
|
-
# Override model per session
|
|
520
|
+
# Override model per session (standalone CLI)
|
|
470
521
|
aman-agent --model claude-opus-4-6
|
|
471
522
|
|
|
472
523
|
# Adjust system prompt token budget
|
|
@@ -475,6 +526,25 @@ aman-agent --budget 12000
|
|
|
475
526
|
|
|
476
527
|
---
|
|
477
528
|
|
|
529
|
+
## Standalone CLI install
|
|
530
|
+
|
|
531
|
+
For automation, CI, VPS, Raspberry Pi, or anyone who prefers the CLI directly — install the `aman-agent` binary. Everything above in Quick Start still applies once it's installed.
|
|
532
|
+
|
|
533
|
+
```bash
|
|
534
|
+
# One-liner install (no Node.js required) — Linux, macOS, Raspberry Pi
|
|
535
|
+
curl -fsSL https://raw.githubusercontent.com/amanasmuei/aman-agent/main/install.sh | bash
|
|
536
|
+
|
|
537
|
+
# Or via npm (if you already have Node.js 18+)
|
|
538
|
+
npm install -g @aman_asmuei/aman-agent
|
|
539
|
+
|
|
540
|
+
# Or via Docker
|
|
541
|
+
docker run -it -e ANTHROPIC_API_KEY=sk-... ghcr.io/amanasmuei/aman-agent
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
Works on **Linux** (x64, arm64, armv7l), **macOS** (x64, Apple Silicon), **Raspberry Pi**, **VPS**, and **servers**. The installer vendors Node.js 22 LTS invisibly — no sudo, no prerequisites.
|
|
545
|
+
|
|
546
|
+
---
|
|
547
|
+
|
|
478
548
|
## Usage Guide
|
|
479
549
|
|
|
480
550
|
A step-by-step walkthrough of how to use aman-agent day-to-day. Click any section below to expand.
|
package/dist/delegate.js
CHANGED