@trygentic/agentloop 0.4.2-alpha.5 → 0.6.0-alpha.6
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 +24 -5
- package/bin/agentloop +60 -83
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -63,14 +63,33 @@ npm run build
|
|
|
63
63
|
```bash
|
|
64
64
|
# Start interactive mode
|
|
65
65
|
agentloop
|
|
66
|
+
```
|
|
66
67
|
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
### First-Time Setup
|
|
69
|
+
|
|
70
|
+
On first launch, AgentLoop opens the **Model Selection** screen. Choose how you want to connect:
|
|
71
|
+
|
|
72
|
+
1. **AgentLoop Subscription** - Use subscription credits for premium models
|
|
73
|
+
2. **Free Models** - Provided by OpenCode, no API key required
|
|
74
|
+
3. **Bring Your Own API Key** - Connect your preferred provider:
|
|
75
|
+
- **Anthropic** - Direct API key or Claude Code CLI (recommended for Pro/Max subscribers)
|
|
76
|
+
- **OpenAI** - Direct API key
|
|
77
|
+
- **Google Gemini** - Direct API key
|
|
78
|
+
- **OpenRouter** - Access 100+ models
|
|
69
79
|
|
|
70
|
-
|
|
71
|
-
|
|
80
|
+
For Claude models with your Pro/Max subscription:
|
|
81
|
+
```bash
|
|
82
|
+
# Install Claude Code CLI
|
|
83
|
+
npm install -g @anthropic-ai/claude-code
|
|
84
|
+
|
|
85
|
+
# Authenticate
|
|
86
|
+
claude
|
|
72
87
|
```
|
|
73
88
|
|
|
89
|
+
Then restart AgentLoop—your Claude models will appear automatically.
|
|
90
|
+
|
|
91
|
+
To change models later, use the `/models` command.
|
|
92
|
+
|
|
74
93
|
### Interacting with AgentLoop
|
|
75
94
|
|
|
76
95
|
In interactive mode, you can communicate with agents using natural language—just type your message and press Enter. No slash commands required for conversations. AgentLoop uses tool calls behind the scenes to update the kanban board, manage tasks and dependencies in the DAG, and delegate work to specialized agents like Engineer and QA.
|
|
@@ -604,7 +623,7 @@ agentloop config
|
|
|
604
623
|
|
|
605
624
|
## Requirements
|
|
606
625
|
|
|
607
|
-
- Node.js >=
|
|
626
|
+
- Node.js >= 22.0.0
|
|
608
627
|
- npm or yarn
|
|
609
628
|
- Podman (optional, for container sandboxing)
|
|
610
629
|
|
package/bin/agentloop
CHANGED
|
@@ -1,83 +1,60 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
console.error(`Expected package: ${packageName}`);
|
|
62
|
-
console.error(`\nTry reinstalling: npm install -g @trygentic/agentloop`);
|
|
63
|
-
process.exit(1);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
const binary = findBinary();
|
|
67
|
-
const child = spawn(binary, process.argv.slice(2), {
|
|
68
|
-
stdio: "inherit",
|
|
69
|
-
env: process.env,
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
child.on("error", (err) => {
|
|
73
|
-
console.error(`Failed to start agentloop: ${err.message}`);
|
|
74
|
-
process.exit(1);
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
child.on("exit", (code, signal) => {
|
|
78
|
-
if (signal) {
|
|
79
|
-
process.kill(process.pid, signal);
|
|
80
|
-
} else {
|
|
81
|
-
process.exit(code ?? 0);
|
|
82
|
-
}
|
|
83
|
-
});
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Shim script for agentloop
|
|
3
|
+
# This file is auto-generated by build-binary.mjs. Do not edit manually.
|
|
4
|
+
#
|
|
5
|
+
# Handles multiple scenarios:
|
|
6
|
+
# 1. Local development (npm link) - uses agentloop-cli in the same directory
|
|
7
|
+
# 2. npm install fallback - finds platform binary in node_modules if postinstall symlink failed
|
|
8
|
+
|
|
9
|
+
set -e
|
|
10
|
+
|
|
11
|
+
# Resolve symlinks to find the actual script location
|
|
12
|
+
SOURCE="${BASH_SOURCE[0]}"
|
|
13
|
+
while [ -h "$SOURCE" ]; do
|
|
14
|
+
DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
|
|
15
|
+
SOURCE="$(readlink "$SOURCE")"
|
|
16
|
+
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
|
|
17
|
+
done
|
|
18
|
+
DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
|
|
19
|
+
|
|
20
|
+
# Option 1: Local development - agentloop-cli exists in same directory
|
|
21
|
+
if [ -x "$DIR/agentloop-cli" ]; then
|
|
22
|
+
exec "$DIR/agentloop-cli" "$@"
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
# Option 2: npm install fallback - find platform-specific binary
|
|
26
|
+
PLATFORM="$(uname -s | tr '[:upper:]' '[:lower:]')"
|
|
27
|
+
ARCH="$(uname -m)"
|
|
28
|
+
|
|
29
|
+
case "$PLATFORM" in
|
|
30
|
+
darwin) PLATFORM="darwin" ;;
|
|
31
|
+
linux) PLATFORM="linux" ;;
|
|
32
|
+
mingw*|msys*|cygwin*) PLATFORM="windows" ;;
|
|
33
|
+
esac
|
|
34
|
+
|
|
35
|
+
case "$ARCH" in
|
|
36
|
+
x86_64|amd64) ARCH="x64" ;;
|
|
37
|
+
arm64|aarch64) ARCH="arm64" ;;
|
|
38
|
+
esac
|
|
39
|
+
|
|
40
|
+
# Check for musl on Linux
|
|
41
|
+
SUFFIX=""
|
|
42
|
+
if [ "$PLATFORM" = "linux" ]; then
|
|
43
|
+
if ldd --version 2>&1 | grep -q musl || [ -f /etc/alpine-release ]; then
|
|
44
|
+
SUFFIX="-musl"
|
|
45
|
+
fi
|
|
46
|
+
fi
|
|
47
|
+
|
|
48
|
+
PACKAGE_NAME="@trygentic/agentloop-${PLATFORM}-${ARCH}${SUFFIX}"
|
|
49
|
+
NODE_MODULES="$DIR/../node_modules"
|
|
50
|
+
PLATFORM_BIN="$NODE_MODULES/$PACKAGE_NAME/bin/agentloop-cli"
|
|
51
|
+
|
|
52
|
+
if [ -x "$PLATFORM_BIN" ]; then
|
|
53
|
+
exec "$PLATFORM_BIN" "$@"
|
|
54
|
+
fi
|
|
55
|
+
|
|
56
|
+
echo "Error: Could not find agentloop executable" >&2
|
|
57
|
+
echo "Tried:" >&2
|
|
58
|
+
echo " - $DIR/agentloop-cli (local development)" >&2
|
|
59
|
+
echo " - $PLATFORM_BIN (npm package)" >&2
|
|
60
|
+
exit 1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trygentic/agentloop",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0-alpha.6",
|
|
4
4
|
"description": "AI-powered autonomous coding agent",
|
|
5
5
|
"bin": {
|
|
6
6
|
"agentloop": "./bin/agentloop"
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"postinstall": "node ./scripts/postinstall.mjs"
|
|
10
10
|
},
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"@trygentic/agentloop-darwin-arm64": "0.
|
|
13
|
-
"@trygentic/agentloop-linux-x64": "0.
|
|
14
|
-
"@trygentic/agentloop-windows-x64": "0.
|
|
12
|
+
"@trygentic/agentloop-darwin-arm64": "0.6.0-alpha.6",
|
|
13
|
+
"@trygentic/agentloop-linux-x64": "0.6.0-alpha.6",
|
|
14
|
+
"@trygentic/agentloop-windows-x64": "0.6.0-alpha.6"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=18.0.0"
|