@aman_asmuei/aman-agent 0.17.1 → 0.18.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 CHANGED
@@ -43,24 +43,24 @@
43
43
 
44
44
  ---
45
45
 
46
- ## What's New in v0.16.0
46
+ ## What's New in v0.18.0
47
47
 
48
- > **Multi-agent AI companion with teams, delegation, and profiles.**
48
+ > **Personalized onboarding, showcase templates, and 10 runtime reliability fixes.**
49
49
 
50
50
  | Feature | What it does |
51
51
  |:---|:---|
52
- | **Agent profiles** | Multiple AI identities: `--profile coder`, `--profile writer`, `--profile researcher` |
53
- | **Agent delegation** | Delegate tasks to sub-agents: `/delegate writer Write a blog post` |
54
- | **Agent teams** | Named teams with pipeline, parallel, and coordinator modes |
55
- | **Auto-delegation** | AI suggests delegation/teams when appropriate asks permission first |
56
- | **Image support** | Reference local images or URLs auto base64-encoded and sent as vision content |
57
- | **Personality engine** | Adaptive tone based on time, sentiment, and energy curve |
58
- | **Skill engine** | Skills auto-trigger, level up (Lv.1→Lv.5), self-improve from your patterns |
59
- | **Persistent plans** | Multi-step plans with checkboxes that survive session resets |
60
- | **Background tasks** | Long-running tools execute concurrently without blocking conversation |
61
- | **Project-aware sessions** | Auto-detects project, scoped memory, context persistence on exit |
62
- | **Social media posting** | Post to Bluesky, X, Threads, Facebook, Instagram via aman-social |
63
- | **Docker deployment** | `aman deploy` deploy anywhere with Docker, Ollama, or systemd |
52
+ | **User onboarding** | Interactive first-run setup captures your name, role, expertise, and communication style |
53
+ | **Showcase templates** | 13 pre-built companion personalities (fitness, freelancer, Muslim, finance, etc.) from [aman-showcase](https://github.com/amanasmuei/aman-showcase) |
54
+ | **User profile** | `/profile me` to view, `/profile edit` to update — injected into every system prompt |
55
+ | **Streaming cancellation** | Ctrl+C aborts current response instead of killing the session |
56
+ | **Session checkpointing** | Auto-saves every 10 turnscrash-safe, no more lost conversations |
57
+ | **Sub-agent guardrails** | Delegated agents now enforce the same safety rules as the main agent |
58
+ | **Sub-agent memory** | Delegated agents recall relevant memories for better context |
59
+ | **MCP auto-reconnect** | Tool servers automatically reconnect on connection failure |
60
+ | **Token-safe tool loop** | Conversation trimming runs inside the tool loop — no more context blowups |
61
+ | **System prompt ceiling** | 16K token cap prevents unbounded system prompt growth |
62
+ | **Non-blocking extraction** | Memory extraction runs fire-and-forget never blocks your next message |
63
+ | **Image-aware trimming** | Image blocks properly counted in token estimates for conversation trimming |
64
64
 
65
65
  <a href="https://github.com/amanasmuei/aman-agent/releases">Full release history</a>
66
66
 
@@ -107,17 +107,20 @@ export OPENAI_API_KEY="sk-..." # → uses GPT-4o
107
107
 
108
108
  No env var? First run prompts for your LLM provider, API key, and model.
109
109
 
110
- ### 2. (Optional) Set up your companion
110
+ ### 2. First Launch You'll Be Asked About You
111
111
 
112
- ```bash
113
- # Guided wizard — pick a persona preset
114
- aman-agent init
112
+ On first run, a quick interactive setup captures who you are:
115
113
 
116
- # Choose from: Coding Partner, Creative Collaborator,
117
- # Personal Assistant, Learning Buddy, or Minimal
114
+ ```
115
+ What should I call you?
116
+ ◆ What's your main thing? (developer, designer, student, manager, generalist)
117
+ ◆ How deep in the game? (beginner → expert)
118
+ ◆ How do you like answers? (concise, balanced, thorough, socratic)
119
+ ◆ What are you working on? (optional)
120
+ ◆ Want a companion specialty? (13 pre-built personalities from aman-showcase)
118
121
  ```
119
122
 
120
- Or just skip this aman-agent auto-creates a default profile on first run.
123
+ Takes ~30 seconds. Update anytime with `/profile edit`.
121
124
 
122
125
  ### 3. Talk
123
126
 
@@ -137,17 +140,18 @@ A step-by-step walkthrough of how to use aman-agent day-to-day.
137
140
 
138
141
  ### Your First Conversation
139
142
 
140
- On first run, the agent introduces itself and asks your name. Just talk naturally:
143
+ On first run, you set up your profile, then the agent greets you personally:
141
144
 
142
145
  ```
143
146
  $ aman-agent
144
147
 
145
148
  aman agent — your AI companion
146
- ✓ Auto-detected Anthropic API key. Using Claude Sonnet 4.6.
147
- Ecosystem ready: identity, guardrails (1,204 tokens)
148
- Connected 30 MCP tools
149
- Personality: morning session, high-drive energy
150
- Aman is ready.
149
+ ✓ Auto-detected Anthropic API key. Using claude-sonnet-4-6.
150
+ Profile saved for Aman
151
+ Loaded: identity, user, guardrails (2,847 tokens)
152
+ Memory consolidated
153
+ MCP connected
154
+ ✓ Aman is ready for Aman. Model: claude-sonnet-4-6
151
155
 
152
156
  You > Hey, I'm working on a Node.js API
153
157
 
@@ -412,9 +416,45 @@ aman-agent init
412
416
 
413
417
  Set any to `false` to disable.
414
418
 
415
- ### Agent Profiles
419
+ ### Showcase Templates
420
+
421
+ Give your companion a pre-built specialty from [aman-showcase](https://github.com/amanasmuei/aman-showcase):
422
+
423
+ | Template | What it does |
424
+ |:---|:---|
425
+ | **Muslim** | Islamic daily companion — prayer times, hadith, du'a |
426
+ | **Quran** | Quranic Arabic vocabulary with transliteration |
427
+ | **Fitness** | Personal trainer — workout tracking, nutrition |
428
+ | **Freelancer** | Client & invoice tracking for independents |
429
+ | **Kedai** | Small business assistant (BM/EN) |
430
+ | **Money** | Personal finance & budget tracker |
431
+ | **Monitor** | Price/website/keyword watchdog |
432
+ | **Bahasa** | Malay/English language tutor |
433
+ | **Team** | Standups, tasks, team memory |
434
+ | **Rutin** | Medication reminders for family |
435
+ | **Support** | Customer support with escalation |
436
+ | **IoT** | Sensor monitoring for smart homes |
437
+ | **Feed** | News aggregation & filtering |
438
+
439
+ Install during onboarding or anytime:
440
+
441
+ ```bash
442
+ npx @aman_asmuei/aman-showcase install muslim
443
+ ```
444
+
445
+ Each template includes identity, workflows, rules, and domain skills — all installed into your ecosystem.
446
+
447
+ ### Your Profile vs Agent Profiles
448
+
449
+ **Your profile** is who YOU are — name, role, expertise, communication style. Set during onboarding, injected into every conversation:
450
+
451
+ ```
452
+ /profile me View your profile
453
+ /profile edit Edit a field
454
+ /profile setup Re-run full setup
455
+ ```
416
456
 
417
- Run different AI personalities for different tasks:
457
+ **Agent profiles** are different AI personalities for different tasks:
418
458
 
419
459
  ```bash
420
460
  aman-agent --profile coder # direct, code-first
@@ -422,7 +462,7 @@ aman-agent --profile writer # creative, story-driven
422
462
  aman-agent --profile researcher # analytical, citation-focused
423
463
  ```
424
464
 
425
- Each profile has its own identity, rules, and skills — but shares the same memory. Create profiles:
465
+ Each agent profile has its own identity, rules, and skills — but shares the same memory. Create profiles:
426
466
 
427
467
  ```
428
468
  /profile create coder Install built-in template
@@ -780,7 +820,7 @@ Every operation that can fail logs to `~/.aman-agent/debug.log` with structured
780
820
  |:---|:---|
781
821
  | `/help` | Show available commands |
782
822
  | `/plan` | Show active plan `[create\|done\|undo\|list\|switch\|show]` |
783
- | `/profile` | Manage agent profiles `[create\|list\|show\|delete]` |
823
+ | `/profile` | Your profile + agent profiles `[me\|edit\|setup\|create\|list\|show\|delete]` |
784
824
  | `/delegate` | Delegate task to a profile `[<profile> <task>\|pipeline]` |
785
825
  | `/team` | Manage agent teams `[create\|run\|list\|show\|delete]` |
786
826
  | `/identity` | View identity `[update <section>]` |
@@ -811,6 +851,7 @@ On every session start, aman-agent assembles your full AI context:
811
851
  | Layer | Source | What it provides |
812
852
  |:---|:---|:---|
813
853
  | **Identity** | `~/.acore/core.md` | AI personality, your preferences, relationship state |
854
+ | **User** | `~/.acore/user.md` | Your name, role, expertise level, communication style |
814
855
  | **Memory** | `~/.amem/memory.db` | Past decisions, corrections, patterns, conversation history |
815
856
  | **Reminders** | `~/.amem/memory.db` | Overdue, today, and upcoming reminders |
816
857
  | **Tools** | `~/.akit/kit.md` | Available capabilities (GitHub, search, databases) |
@@ -828,7 +869,7 @@ All layers are optional — the agent works with whatever you've set up.
828
869
  Layers are included by priority when space is limited:
829
870
 
830
871
  ```
831
- Identity (always) → Guardrails → Workflows → Tools → Skills (can truncate)
872
+ Identity (always) → User (always) → Guardrails → Workflows → Tools → Skills (can truncate)
832
873
  ```
833
874
 
834
875
  Default budget: 8,000 tokens. Override with `--budget`.