@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/README.md +137 -43
- package/index.js +1663 -500
- package/package.json +1 -1
- package/skills/agx/SKILL.md +96 -35
- package/todo-api/package-lock.json +841 -0
- package/todo-api/package.json +15 -0
- package/todo-api/server.js +327 -0
package/package.json
CHANGED
package/skills/agx/SKILL.md
CHANGED
|
@@ -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
|
|
3
|
+
Run AI agents that work autonomously across sessions. Uses `mem` for persistent memory.
|
|
4
4
|
|
|
5
|
-
##
|
|
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
|
-
|
|
24
|
+
## Task Management
|
|
15
25
|
|
|
16
|
-
|
|
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
|
-
|
|
38
|
+
Send guidance to an agent for its next wake cycle:
|
|
19
39
|
|
|
20
40
|
```bash
|
|
21
|
-
agx
|
|
22
|
-
agx
|
|
41
|
+
agx nudge <task> "focus on auth first" # Add nudge
|
|
42
|
+
agx nudge <task> # View pending nudges
|
|
23
43
|
```
|
|
24
44
|
|
|
25
|
-
|
|
45
|
+
Nudges are shown to the agent on wake and then cleared.
|
|
46
|
+
|
|
47
|
+
## Memory Commands (via mem)
|
|
26
48
|
|
|
27
|
-
|
|
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
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
###
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
80
|
+
|
|
81
|
+
### Complete
|
|
82
|
+
```bash
|
|
83
|
+
mem done # Mark task complete
|
|
42
84
|
```
|
|
43
85
|
|
|
44
|
-
|
|
86
|
+
## Agent Workflow
|
|
87
|
+
|
|
88
|
+
When an agent wakes, it should:
|
|
45
89
|
|
|
46
|
-
|
|
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
|
|
50
|
-
agx
|
|
51
|
-
agx
|
|
52
|
-
agx daemon logs
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
|
118
|
+
-a, --autonomous # Full auto: create task + daemon + work until done
|
|
67
119
|
-p, --prompt # The prompt/goal
|
|
68
|
-
-y, --yolo # Skip confirmations
|
|
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.
|