@aman_asmuei/aman-agent 0.17.2 → 0.21.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
 
@@ -105,19 +105,38 @@ export OPENAI_API_KEY="sk-..." # → uses GPT-4o
105
105
  # Or if Ollama is running locally # → uses llama3.2
106
106
  ```
107
107
 
108
- No env var? First run prompts for your LLM provider, API key, and model.
108
+ No env var? First run prompts for your LLM provider and model:
109
109
 
110
- ### 2. (Optional) Set up your companion
110
+ ```
111
+ ◇ LLM provider
112
+ │ ● Claude (Anthropic) — recommended, uses Claude Code CLI
113
+ │ ○ GitHub Copilot — uses GitHub Models API
114
+ │ ○ GPT (OpenAI)
115
+ │ ○ Ollama (local) — free, runs offline
116
+ ```
111
117
 
112
- ```bash
113
- # Guided wizard — pick a persona preset
114
- aman-agent init
118
+ **Claude** — authentication handled by Claude Code CLI (`claude login`). Supports subscription (Pro/Max/Team/Enterprise), API billing, Bedrock, and Vertex AI. No API key needed.
119
+
120
+ **GitHub Copilot** — authentication handled by GitHub CLI (`gh auth login`). Uses GitHub Models API with access to GPT-4o, Claude Sonnet, Llama, Mistral, and more.
121
+
122
+ **OpenAI** — enter your API key directly.
123
+
124
+ **Ollama** — local models, no account needed.
125
+
126
+ ### 2. First Launch — You'll Be Asked About You
127
+
128
+ On first run, a quick interactive setup captures who you are:
115
129
 
116
- # Choose from: Coding Partner, Creative Collaborator,
117
- # Personal Assistant, Learning Buddy, or Minimal
130
+ ```
131
+ What should I call you?
132
+ ◆ What's your main thing? (developer, designer, student, manager, generalist)
133
+ ◆ How deep in the game? (beginner → expert)
134
+ ◆ How do you like answers? (concise, balanced, thorough, socratic)
135
+ ◆ What are you working on? (optional)
136
+ ◆ Want a companion specialty? (13 pre-built personalities from aman-showcase)
118
137
  ```
119
138
 
120
- Or just skip this aman-agent auto-creates a default profile on first run.
139
+ Takes ~30 seconds. Update anytime with `/profile edit`.
121
140
 
122
141
  ### 3. Talk
123
142
 
@@ -137,17 +156,18 @@ A step-by-step walkthrough of how to use aman-agent day-to-day.
137
156
 
138
157
  ### Your First Conversation
139
158
 
140
- On first run, the agent introduces itself and asks your name. Just talk naturally:
159
+ On first run, you set up your profile, then the agent greets you personally:
141
160
 
142
161
  ```
143
162
  $ aman-agent
144
163
 
145
164
  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.
165
+ ✓ Auto-detected Anthropic API key. Using claude-sonnet-4-6.
166
+ Profile saved for Aman
167
+ Loaded: identity, user, guardrails (2,847 tokens)
168
+ Memory consolidated
169
+ MCP connected
170
+ ✓ Aman is ready for Aman. Model: claude-sonnet-4-6
151
171
 
152
172
  You > Hey, I'm working on a Node.js API
153
173
 
@@ -412,9 +432,45 @@ aman-agent init
412
432
 
413
433
  Set any to `false` to disable.
414
434
 
415
- ### Agent Profiles
435
+ ### Showcase Templates
436
+
437
+ Give your companion a pre-built specialty from [aman-showcase](https://github.com/amanasmuei/aman-showcase):
438
+
439
+ | Template | What it does |
440
+ |:---|:---|
441
+ | **Muslim** | Islamic daily companion — prayer times, hadith, du'a |
442
+ | **Quran** | Quranic Arabic vocabulary with transliteration |
443
+ | **Fitness** | Personal trainer — workout tracking, nutrition |
444
+ | **Freelancer** | Client & invoice tracking for independents |
445
+ | **Kedai** | Small business assistant (BM/EN) |
446
+ | **Money** | Personal finance & budget tracker |
447
+ | **Monitor** | Price/website/keyword watchdog |
448
+ | **Bahasa** | Malay/English language tutor |
449
+ | **Team** | Standups, tasks, team memory |
450
+ | **Rutin** | Medication reminders for family |
451
+ | **Support** | Customer support with escalation |
452
+ | **IoT** | Sensor monitoring for smart homes |
453
+ | **Feed** | News aggregation & filtering |
454
+
455
+ Install during onboarding or anytime:
456
+
457
+ ```bash
458
+ npx @aman_asmuei/aman-showcase install muslim
459
+ ```
460
+
461
+ Each template includes identity, workflows, rules, and domain skills — all installed into your ecosystem.
462
+
463
+ ### Your Profile vs Agent Profiles
464
+
465
+ **Your profile** is who YOU are — name, role, expertise, communication style. Set during onboarding, injected into every conversation:
466
+
467
+ ```
468
+ /profile me View your profile
469
+ /profile edit Edit a field
470
+ /profile setup Re-run full setup
471
+ ```
416
472
 
417
- Run different AI personalities for different tasks:
473
+ **Agent profiles** are different AI personalities for different tasks:
418
474
 
419
475
  ```bash
420
476
  aman-agent --profile coder # direct, code-first
@@ -422,7 +478,7 @@ aman-agent --profile writer # creative, story-driven
422
478
  aman-agent --profile researcher # analytical, citation-focused
423
479
  ```
424
480
 
425
- Each profile has its own identity, rules, and skills — but shares the same memory. Create profiles:
481
+ Each agent profile has its own identity, rules, and skills — but shares the same memory. Create profiles:
426
482
 
427
483
  ```
428
484
  /profile create coder Install built-in template
@@ -780,7 +836,7 @@ Every operation that can fail logs to `~/.aman-agent/debug.log` with structured
780
836
  |:---|:---|
781
837
  | `/help` | Show available commands |
782
838
  | `/plan` | Show active plan `[create\|done\|undo\|list\|switch\|show]` |
783
- | `/profile` | Manage agent profiles `[create\|list\|show\|delete]` |
839
+ | `/profile` | Your profile + agent profiles `[me\|edit\|setup\|create\|list\|show\|delete]` |
784
840
  | `/delegate` | Delegate task to a profile `[<profile> <task>\|pipeline]` |
785
841
  | `/team` | Manage agent teams `[create\|run\|list\|show\|delete]` |
786
842
  | `/identity` | View identity `[update <section>]` |
@@ -811,6 +867,7 @@ On every session start, aman-agent assembles your full AI context:
811
867
  | Layer | Source | What it provides |
812
868
  |:---|:---|:---|
813
869
  | **Identity** | `~/.acore/core.md` | AI personality, your preferences, relationship state |
870
+ | **User** | `~/.acore/user.md` | Your name, role, expertise level, communication style |
814
871
  | **Memory** | `~/.amem/memory.db` | Past decisions, corrections, patterns, conversation history |
815
872
  | **Reminders** | `~/.amem/memory.db` | Overdue, today, and upcoming reminders |
816
873
  | **Tools** | `~/.akit/kit.md` | Available capabilities (GitHub, search, databases) |
@@ -828,7 +885,7 @@ All layers are optional — the agent works with whatever you've set up.
828
885
  Layers are included by priority when space is limited:
829
886
 
830
887
  ```
831
- Identity (always) → Guardrails → Workflows → Tools → Skills (can truncate)
888
+ Identity (always) → User (always) → Guardrails → Workflows → Tools → Skills (can truncate)
832
889
  ```
833
890
 
834
891
  Default budget: 8,000 tokens. Override with `--budget`.