autoclaw 1.0.4 → 1.0.5

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.
Files changed (3) hide show
  1. package/README.md +15 -6
  2. package/dist/agent.js +11 -11
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,14 +1,23 @@
1
1
  # AutoClaw 🦞
2
2
 
3
- AutoClaw is a lightweight AI agent CLI tool that brings the power of Large Language Models (LLMs) directly to your terminal. It allows you to interact with your file system and execute commands using natural language.
3
+ **The Docker-Native Headless Agent for Massive Scale Automation.**
4
+
5
+ AutoClaw is a hyper-lightweight AI agent designed to live inside **Docker containers**. Unlike heavy, GUI-dependent agents, AutoClaw is built for **headless, massive-scale concurrency**.
6
+
7
+ You can run one instance to fix a local script, or orchestrate **10,000+ instances** in a Kubernetes cluster to refactor codebases, audit servers, or process data streams in parallel.
8
+
9
+ ## Why AutoClaw?
10
+ - 🐳 **Docker Native**: Built to run safely inside containers. Minimal footprint (Node.js/Alpine friendly).
11
+ - 🚀 **Massive Scalability**: Text-only, headless design means you can spawn thousands of agents without consuming graphical resources.
12
+ - 🛡️ **Sandbox Safety**: Ideal for running untrusted code when isolated in Docker.
13
+ - 🔌 **Swarm Ready**: Stateless design allows for easy orchestration via K8s, Docker Swarm, or simple shell loops.
4
14
 
5
15
  ## Features
6
16
 
7
- - 💬 **Natural Language Interface**: Chat with your terminal to perform complex tasks.
8
- - 🛡️ **Safe Execution**: All shell commands require user confirmation before execution.
9
- - 📂 **File Management**: Read and write files effortlessly.
10
- - 🧠 **Context Aware**: Automatically detects your OS, shell, and environment for accurate command generation.
11
- - 🔌 **Model Agnostic**: Compatible with OpenAI, DeepSeek, LocalLLM, or any OpenAI-compatible API.
17
+ - 📜 **Headless Execution**: No browsers, no GUIs. Pure terminal efficiency.
18
+ - 🤖 **Non-Interactive**: Intelligent flag handling (`-y`) for zero-touch automation.
19
+ - 📂 **Universal Control**: From simple file I/O to complex system administration.
20
+ - 🧠 **Context Aware**: Detects container environments to optimize command strategies.
12
21
 
13
22
  ## Installation
14
23
 
package/dist/agent.js CHANGED
@@ -25,22 +25,22 @@ System Information:
25
25
  this.messages = [
26
26
  {
27
27
  role: "system",
28
- content: `You are AutoClaw, an advanced AI agent running in a CLI environment.
29
- Your goal is to help the user perform tasks on their computer.
30
- You have access to tools to execute shell commands and read/write files.
28
+ content: `You are AutoClaw, a Docker-Native Autonomous Agent designed for massive scale automation.
29
+ You are likely running inside a container or headless server, possibly as one of thousands of parallel units in a swarm.
31
30
 
32
31
  CONTEXT:
33
32
  ${systemInfo}
34
33
 
34
+ ENVIRONMENT CONSTRAINTS:
35
+ 1. HEADLESS: No GUI available. Do not try to open browsers or apps.
36
+ 2. CONTAINER-OPTIMIZED: Assume you are in a sandbox. You can be aggressive with file creation but robust with errors.
37
+ 3. NON-INTERACTIVE: Always use flags to suppress prompts (e.g., 'apt-get -y', 'rm -rf').
38
+
35
39
  GUIDELINES:
36
- 1. Use the System Information above to generate platform-specific commands (e.g., use 'dir' for Windows, 'ls' for Linux).
37
- 2. When asked to perform a task, analyze if you need to use tools.
38
- 3. If you need to run a command, always use 'execute_shell_command' and provide a clear rationale.
39
- 4. If you need to read a file, use 'read_file'.
40
- 5. If you need to write a file, use 'write_file'.
41
- 6. Be concise in your responses.
42
- 7. If the user's request is ambiguous, ask for clarification.
43
- 8. You are running on the user's local machine. Be careful with destructive commands (rm, etc.).
40
+ 1. EFFICIENCY: Your goal is speed and success. Write scripts that just work.
41
+ 2. ROBUSTNESS: Use standard Linux/Unix tools found in minimal images (Alpine/Debian).
42
+ 3. TOOLS: Use 'execute_shell_command' for actions, 'write_file' for code generation.
43
+ 4. CLARITY: Output concise logs. You are a worker unit, not a chat bot.
44
44
  `
45
45
  }
46
46
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoclaw",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {