@mndrk/agx 1.4.8 → 1.4.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mndrk/agx",
3
- "version": "1.4.8",
3
+ "version": "1.4.9",
4
4
  "description": "Unified AI Agent Wrapper for Gemini, Claude, and Ollama",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1,69 +1,130 @@
1
- # agx - Autonomous AI Agents
1
+ # agx - Task Orchestrator for Autonomous AI Agents
2
2
 
3
- Run AI agents that work autonomously until done. One command starts everything.
3
+ Run AI agents that work autonomously across sessions. Uses `mem` for persistent memory.
4
4
 
5
- ## Autonomous Mode
5
+ ## Core Concept: Wake-Work-Sleep Cycle
6
+
7
+ Agents have NO memory between sessions. All continuity comes from `mem`:
8
+
9
+ ```
10
+ WAKE → Load state from mem → WORK → Save state to mem → SLEEP → repeat
11
+ ```
12
+
13
+ ## Quick Start
6
14
 
7
15
  ```bash
16
+ # Create and run a task
17
+ agx new "Build a REST API with auth"
18
+ agx run build-rest-api
19
+
20
+ # Or one command for autonomous mode
8
21
  agx -a -p "Build a REST API with auth"
9
- # ✓ Created task: build-rest-api
10
- # ✓ Daemon started (wakes every 15m)
11
- # ✓ Working...
12
22
  ```
13
23
 
14
- The agent continues working automatically until `[done]` or `[blocked]`.
24
+ ## Task Management
15
25
 
16
- ## One-Shot Mode
26
+ ```bash
27
+ agx new "<goal>" # Create task
28
+ agx run [task] # Run task (loads context, wakes agent)
29
+ agx tasks # List all tasks
30
+ agx status # Current task status
31
+ agx context [task] # View task context
32
+ agx pause [task] # Pause task
33
+ agx remove [task] # Remove task
34
+ ```
35
+
36
+ ## Steering: Nudge a Task
17
37
 
18
- For quick questions without persistence:
38
+ Send guidance to an agent for its next wake cycle:
19
39
 
20
40
  ```bash
21
- agx -p "explain this code"
22
- agx claude -p "fix this bug" -y
41
+ agx nudge <task> "focus on auth first" # Add nudge
42
+ agx nudge <task> # View pending nudges
23
43
  ```
24
44
 
25
- ## Output Markers
45
+ Nudges are shown to the agent on wake and then cleared.
46
+
47
+ ## Memory Commands (via mem)
26
48
 
27
- Use these in your output to control state:
49
+ Agents use these to persist state:
50
+
51
+ ### Define Objective
52
+ ```bash
53
+ mem goal "<objective>" # Set/update goal
54
+ mem criteria add "<text>" # Add success criterion
55
+ mem constraint add "<rule>" # Add boundary/constraint
56
+ ```
28
57
 
29
- ### Progress (parsed automatically)
58
+ ### Track Progress
59
+ ```bash
60
+ mem next "<step>" # Set what you're working on
61
+ mem checkpoint "<msg>" # Save progress point
62
+ mem criteria <n> # Mark criterion #n complete
63
+ mem progress # Check progress %
30
64
  ```
31
- [checkpoint: message] # Save progress
32
- [learn: insight] # Record learning
33
- [next: step] # Set next step
34
- [criteria: N] # Mark criterion #N complete
65
+
66
+ ### Learn & Adapt
67
+ ```bash
68
+ mem learn "<insight>" # Task-specific learning
69
+ mem learn -g "<insight>" # Global learning (all tasks)
70
+ mem stuck "<reason>" # Mark blocker
71
+ mem stuck clear # Clear blocker
35
72
  ```
36
73
 
37
- ### Stopping Markers
74
+ ### Build Playbook
75
+ ```bash
76
+ mem learnings -g # List global learnings
77
+ mem promote <n> # Promote learning to playbook
78
+ mem playbook # View global playbook
38
79
  ```
39
- [done] # Task complete, stop
40
- [blocked: reason] # Need human help, pause
41
- [approve: question] # Need approval first
80
+
81
+ ### Complete
82
+ ```bash
83
+ mem done # Mark task complete
42
84
  ```
43
85
 
44
- **Default:** Keep working. Only use stopping markers when genuinely done or stuck.
86
+ ## Agent Workflow
87
+
88
+ When an agent wakes, it should:
45
89
 
46
- ## Checking Tasks
90
+ 1. **Orient** - Read state (goal, criteria, progress, next step)
91
+ 2. **Plan** - Define criteria if missing, set intent with `mem next`
92
+ 3. **Execute** - Work toward criteria, save learnings
93
+ 4. **Checkpoint** - Save progress with `mem checkpoint`
94
+ 5. **Adapt** - Handle blockers or ask user for nudge
95
+
96
+ ## Daemon Mode
97
+
98
+ Run tasks on a schedule:
47
99
 
48
100
  ```bash
49
- agx status # Current task
50
- agx tasks # All tasks
51
- agx progress # % complete
52
- agx daemon logs # Recent activity
101
+ agx daemon start # Start daemon
102
+ agx daemon stop # Stop daemon
103
+ agx daemon status # Check status
104
+ agx daemon logs # View logs
53
105
  ```
54
106
 
55
107
  ## Providers
56
108
 
57
- | Provider | Alias |
58
- |----------|-------|
59
- | claude | c |
60
- | gemini | g |
61
- | ollama | o |
109
+ ```bash
110
+ agx claude [args] # Claude (alias: c)
111
+ agx gemini [args] # Gemini (alias: g)
112
+ agx ollama [args] # Ollama (alias: o)
113
+ ```
62
114
 
63
115
  ## Key Flags
64
116
 
65
117
  ```bash
66
- -a, --autonomous # Full auto mode (task + daemon + work until done)
118
+ -a, --autonomous # Full auto: create task + daemon + work until done
67
119
  -p, --prompt # The prompt/goal
68
- -y, --yolo # Skip confirmations (implied by -a)
120
+ -y, --yolo # Skip confirmations
121
+ --continue <task> # Continue specific task
69
122
  ```
123
+
124
+ ## Key Principles
125
+
126
+ - **Memory is everything** - Agents forget between sessions. Save state.
127
+ - **Criteria drive completion** - No criteria = no way to know when done.
128
+ - **Checkpoint often** - Sessions can die anytime.
129
+ - **Ask when stuck** - Get a nudge from the user vs. spinning.
130
+ - **Learn & promote** - Build the playbook for future tasks.