@aman_asmuei/aman-agent 0.41.0 → 0.43.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 +179 -42
- package/bin/aman-setup.sh +36 -0
- package/dist/delegate.js +3 -1
- package/dist/delegate.js.map +1 -1
- package/dist/index.js +6811 -5876
- package/dist/index.js.map +1 -1
- package/package.json +4 -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
|
|
|
@@ -296,6 +343,8 @@ npx @aman_asmuei/aman-agent
|
|
|
296
343
|
|
|
297
344
|
---
|
|
298
345
|
|
|
346
|
+
> **New to the ecosystem?** See [docs/ecosystem.md](docs/ecosystem.md) for "which package do I install, and when" + the full package relationship diagram.
|
|
347
|
+
|
|
299
348
|
## Architecture at a Glance
|
|
300
349
|
|
|
301
350
|
aman-agent is the **runtime** at the center of the aman ecosystem — 78 TypeScript modules that stitch together memory, identity, orchestration, and any LLM into one coherent system.
|
|
@@ -396,22 +445,70 @@ flowchart TB
|
|
|
396
445
|
|
|
397
446
|
---
|
|
398
447
|
|
|
399
|
-
##
|
|
448
|
+
## Install tiers — pick what you need
|
|
400
449
|
|
|
401
|
-
|
|
450
|
+
The aman ecosystem is ~10 packages. You don't need them all. Pick a tier:
|
|
451
|
+
|
|
452
|
+
### Minimal (2 packages, 2 minutes)
|
|
453
|
+
|
|
454
|
+
Just `aman-agent` + persistent memory. Standalone CLI, works with any LLM provider. Best for "does this feel useful?" evaluation.
|
|
402
455
|
|
|
403
456
|
```bash
|
|
404
|
-
|
|
405
|
-
|
|
457
|
+
npm install -g @aman_asmuei/aman-agent @aman_asmuei/amem-core
|
|
458
|
+
# or, once you have Node 18+:
|
|
459
|
+
curl -fsSL https://raw.githubusercontent.com/amanasmuei/aman-agent/main/bin/aman-setup.sh | bash
|
|
460
|
+
```
|
|
406
461
|
|
|
407
|
-
|
|
408
|
-
npm install -g @aman_asmuei/aman-agent
|
|
462
|
+
What you get: `aman-agent` CLI, per-message memory recall, memory extraction, `/memory` commands.
|
|
409
463
|
|
|
410
|
-
|
|
411
|
-
|
|
464
|
+
### Productive (5 packages, 10 minutes)
|
|
465
|
+
|
|
466
|
+
Minimal + identity + guardrails + Claude Code integration. Adds your AI's personality, rules the LLM must respect, and first-class Claude Code plugin support.
|
|
467
|
+
|
|
468
|
+
```bash
|
|
469
|
+
npm install -g @aman_asmuei/aman-agent @aman_asmuei/amem-core \
|
|
470
|
+
@aman_asmuei/acore-core @aman_asmuei/arules-core @aman_asmuei/aman-mcp
|
|
471
|
+
# + install the Claude Code plugin:
|
|
472
|
+
# see aman-claude-code repo README
|
|
412
473
|
```
|
|
413
474
|
|
|
414
|
-
|
|
475
|
+
What you get (on top of Minimal): named companion ("Aman" by default), rule enforcement via `/rules`, auto-loaded ecosystem context at session start, MCP tools for memory/identity/rules from inside Claude Code.
|
|
476
|
+
|
|
477
|
+
### Complete (all packages, 30 minutes)
|
|
478
|
+
|
|
479
|
+
Everything: orchestration, multi-agent delegation, showcase personalities, tool installer, skill manager, VS Code Copilot integration.
|
|
480
|
+
|
|
481
|
+
```bash
|
|
482
|
+
# After Productive, add:
|
|
483
|
+
npm install -g @aman_asmuei/aman-copilot @aman_asmuei/akit @aman_asmuei/askill @aman_asmuei/aman-showcase
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
What you get (on top of Productive): `/orchestrate` DAG task decomposition, `/delegate` + `/team` multi-agent workflows, `/showcase` 13 personality templates, `/akit` CLI tool manager, `/askill` skill library. VS Code Copilot users also get `aman-copilot` for inline Copilot Chat memory.
|
|
487
|
+
|
|
488
|
+
**Not sure which tier?** Start with Minimal. You can layer Productive or Complete on top whenever you want — nothing gets overwritten, just extended.
|
|
489
|
+
|
|
490
|
+
---
|
|
491
|
+
|
|
492
|
+
## Quick Start
|
|
493
|
+
|
|
494
|
+
### Claude Code plugin (recommended)
|
|
495
|
+
|
|
496
|
+
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.
|
|
497
|
+
|
|
498
|
+
```bash
|
|
499
|
+
claude plugin marketplace add amanasmuei/aman-claude-code
|
|
500
|
+
claude plugin install aman-claude-code@aman
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
Then reload Claude Code (`/reload-plugins` or restart). That's it — type anything and aman-agent is already remembering you.
|
|
504
|
+
|
|
505
|
+
> **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.
|
|
506
|
+
|
|
507
|
+
### Run
|
|
508
|
+
|
|
509
|
+
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.
|
|
510
|
+
|
|
511
|
+
If you went with the [standalone CLI](#standalone-cli-install) instead:
|
|
415
512
|
|
|
416
513
|
```bash
|
|
417
514
|
# Start a conversation
|
|
@@ -448,7 +545,7 @@ No env var? First run prompts for your LLM provider and model:
|
|
|
448
545
|
|
|
449
546
|
**Ollama** — local models, no account needed.
|
|
450
547
|
|
|
451
|
-
###
|
|
548
|
+
### First Launch — You'll Be Asked About You
|
|
452
549
|
|
|
453
550
|
On first run, a quick interactive setup captures who you are:
|
|
454
551
|
|
|
@@ -463,10 +560,10 @@ On first run, a quick interactive setup captures who you are:
|
|
|
463
560
|
|
|
464
561
|
Takes ~30 seconds. Update anytime with `/profile edit`.
|
|
465
562
|
|
|
466
|
-
###
|
|
563
|
+
### Talk
|
|
467
564
|
|
|
468
565
|
```bash
|
|
469
|
-
# Override model per session
|
|
566
|
+
# Override model per session (standalone CLI)
|
|
470
567
|
aman-agent --model claude-opus-4-6
|
|
471
568
|
|
|
472
569
|
# Adjust system prompt token budget
|
|
@@ -475,6 +572,25 @@ aman-agent --budget 12000
|
|
|
475
572
|
|
|
476
573
|
---
|
|
477
574
|
|
|
575
|
+
## Standalone CLI install
|
|
576
|
+
|
|
577
|
+
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.
|
|
578
|
+
|
|
579
|
+
```bash
|
|
580
|
+
# One-liner install (no Node.js required) — Linux, macOS, Raspberry Pi
|
|
581
|
+
curl -fsSL https://raw.githubusercontent.com/amanasmuei/aman-agent/main/install.sh | bash
|
|
582
|
+
|
|
583
|
+
# Or via npm (if you already have Node.js 18+)
|
|
584
|
+
npm install -g @aman_asmuei/aman-agent
|
|
585
|
+
|
|
586
|
+
# Or via Docker
|
|
587
|
+
docker run -it -e ANTHROPIC_API_KEY=sk-... ghcr.io/amanasmuei/aman-agent
|
|
588
|
+
```
|
|
589
|
+
|
|
590
|
+
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.
|
|
591
|
+
|
|
592
|
+
---
|
|
593
|
+
|
|
478
594
|
## Usage Guide
|
|
479
595
|
|
|
480
596
|
A step-by-step walkthrough of how to use aman-agent day-to-day. Click any section below to expand.
|
|
@@ -631,6 +747,27 @@ You > Let's add a new endpoint
|
|
|
631
747
|
/decisions View your decision log
|
|
632
748
|
```
|
|
633
749
|
|
|
750
|
+
### Memory mirror (markdown)
|
|
751
|
+
|
|
752
|
+
Your memory DB is great for the agent, but sometimes you want memories as **plain Markdown files** you can `grep`, edit in any editor, commit to git, or sync with Dropbox/iCloud across devices. The mirror gives you exactly that — a human-readable copy of every memory that round-trips cleanly back into the DB.
|
|
753
|
+
|
|
754
|
+
```
|
|
755
|
+
/memory export --to <dir> One-shot snapshot of all memories as .md files
|
|
756
|
+
/memory mirror status Show live mirror path, file count, last sync
|
|
757
|
+
/memory mirror rebuild Re-materialise the mirror from the DB
|
|
758
|
+
/memory sync --from <dir> Reconstitute the DB from a directory of .md files
|
|
759
|
+
```
|
|
760
|
+
|
|
761
|
+
**When you want this:**
|
|
762
|
+
|
|
763
|
+
- **Human-readable backup** — `grep -r "postgres" ~/.aman-agent/memories/` to see every memory that mentions Postgres.
|
|
764
|
+
- **Edit outside the agent** — fix a typo or retire a stale decision in your favourite editor, then run `/memory sync --from ...` (or just restart — startup auto-syncs).
|
|
765
|
+
- **Version-control your memory** — `git init ~/.aman-agent/memories/` and you get a full history of every memory the agent has ever learned.
|
|
766
|
+
- **Multi-device sync** — point the mirror dir at a synced folder (Dropbox, iCloud, Syncthing) and your memories follow you.
|
|
767
|
+
- **No lock-in** — YAML-frontmatter Markdown is readable without aman-agent ever being installed again.
|
|
768
|
+
|
|
769
|
+
Opt-out: `config.mirror.enabled = false` disables all mirror I/O. Disable auto-sync on startup only with `config.mirror.autoSyncOnStartup = false`.
|
|
770
|
+
|
|
634
771
|
</details>
|
|
635
772
|
|
|
636
773
|
<details>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# aman-setup: non-interactive Minimal install.
|
|
3
|
+
# Installs aman-agent + amem-core globally via npm. Requires Node 18+.
|
|
4
|
+
#
|
|
5
|
+
# Advanced tiers (Productive, Complete) require more choices — see
|
|
6
|
+
# the README for the relevant package lists.
|
|
7
|
+
|
|
8
|
+
set -euo pipefail
|
|
9
|
+
|
|
10
|
+
echo "=== aman Minimal install ==="
|
|
11
|
+
echo "Installs: aman-agent + amem-core"
|
|
12
|
+
echo ""
|
|
13
|
+
|
|
14
|
+
if ! command -v node >/dev/null 2>&1; then
|
|
15
|
+
echo "ERROR: node not found. Install Node 18+ first: https://nodejs.org" >&2
|
|
16
|
+
exit 1
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
NODE_VERSION_MAJOR=$(node -p "process.versions.node.split('.')[0]")
|
|
20
|
+
if [ "$NODE_VERSION_MAJOR" -lt 18 ]; then
|
|
21
|
+
echo "ERROR: Node 18+ required (you have $(node --version))" >&2
|
|
22
|
+
exit 1
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
if ! command -v npm >/dev/null 2>&1; then
|
|
26
|
+
echo "ERROR: npm not found. Reinstall Node from https://nodejs.org" >&2
|
|
27
|
+
exit 1
|
|
28
|
+
fi
|
|
29
|
+
|
|
30
|
+
echo "Installing @aman_asmuei/aman-agent + @aman_asmuei/amem-core..."
|
|
31
|
+
npm install -g @aman_asmuei/aman-agent @aman_asmuei/amem-core
|
|
32
|
+
|
|
33
|
+
echo ""
|
|
34
|
+
echo "=== Done ==="
|
|
35
|
+
echo "Run: aman-agent"
|
|
36
|
+
echo "See the README's 'Install tiers' section for Productive / Complete upgrades."
|
package/dist/delegate.js
CHANGED