Async Task
Run and manage long tasks exceeding HTTP timeouts by starting, updating, and completing them asynchronously with immediate responses.
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 0 · 2.6k · 8 current installs · 9 all-time installs
MIT-0
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Name/behavior match: the skill implements start/done/push/status commands, auto-detects OpenClaw/Clawdbot CLI sessions, and optionally posts to a custom HTTP endpoint. It does not request unrelated credentials or system access.
Instruction Scope
SKILL.md instructs only to run the async-task CLI, optionally configure a push endpoint, and to pair start/done; the runtime instructions and examples stay within the stated purpose and do not direct the agent to read unrelated host files or credentials.
Install Mechanism
There is no automated install spec in the registry (instruction-only). SKILL.md suggests manual npm install/git clone or copying the script to PATH — user-executed steps only. The included code is plain JS from a GitHub repo; no opaque download URLs or automatic extraction are present.
Credentials
Only optional env vars are documented (OPENCLAW_SESSION, ASYNC_TASK_PUSH_URL, ASYNC_TASK_AUTH_TOKEN, and state-dir fallbacks). These are proportionate to the feature set. The script writes a small state file under a per-user directory (default ~/.openclaw), which is expected for tracking tasks.
Persistence & Privilege
Skill is not always-loaded and does not request elevated privileges. It persists a local state file in the user's home directory (normal for a CLI helper) and does not modify other skills or global agent configuration.
Assessment
This skill appears coherent with its purpose and is implemented as a simple CLI wrapper. Before installing: (1) Inspect async-task.js yourself (it's included) and only copy it to system PATH if you trust it. (2) Be cautious if you set ASYNC_TASK_PUSH_URL — messages (sessionId and content) will be POSTed to that endpoint, so do not point it at untrusted servers or leak sensitive output there. (3) The tool uses your openclaw/clawdbot CLI when available; ensure that CLI is configured correctly. (4) The script stores state under ~/.openclaw by default; if that is a concern, configure OPENCLAW_STATE_DIR. Overall this is internally consistent and doesn’t request unrelated secrets.Like a lobster shell, security has layers — review code before you run it.
Current versionv0.1.0
Download ziplatest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
SKILL.md
OpenClaw Async Task
Description
Execute long-running tasks without HTTP timeouts. Use when you need to:
- Run commands that may take more than 5 seconds
- Analyze large files or codebases
- Perform multi-step operations
- Call external APIs with unpredictable latency
IMPORTANT: When a task might timeout, you MUST use this skill to avoid empty response from server errors.
Triggers: "async task", "long running", "timeout", "background task", "push result"
Installation
# Clone and link globally
git clone https://github.com/Enderfga/openclaw-async-task.git
cd openclaw-async-task
npm link
# Or just copy async-task.js to your PATH
chmod +x async-task.js
cp async-task.js /usr/local/bin/async-task
Commands
async-task start "<description>" # Start task, returns immediately
async-task done "<result>" # Complete task, push result to user
async-task fail "<error>" # Task failed, push error message
async-task push "<message>" # Push message directly (no start needed)
async-task status # Show current task status
Usage Flow (MUST follow strictly)
- Start:
async-task start "Scanning files..." - Execute: Run your actual commands
- Push result:
async-task done "Found 42 files"
Example
User asks: "Count all TypeScript files in this project"
# Step 1: Acknowledge immediately
async-task start "Counting TypeScript files..."
# Step 2: Do the actual work
count=$(find . -name "*.ts" | wc -l)
# Step 3: Push the result
async-task done "Found $count TypeScript files"
How It Works
startsaves task state and returns confirmation immediately- You execute whatever commands needed
done/failuses OpenClaw/Clawdbot CLI to push result to the active session
Zero configuration required - automatically detects active session via openclaw sessions or clawdbot sessions.
Advanced: Custom Push Endpoint
For custom webchat or notification systems:
export ASYNC_TASK_PUSH_URL="https://your-server.com/api/push"
export ASYNC_TASK_AUTH_TOKEN="your-token"
The endpoint receives:
{
"sessionId": "session-id",
"content": "message",
"role": "assistant"
}
Environment Variables
| Variable | Required | Description |
|---|---|---|
OPENCLAW_SESSION | No | Target session (auto-detected) |
ASYNC_TASK_PUSH_URL | No | Custom HTTP push endpoint |
ASYNC_TASK_AUTH_TOKEN | No | Auth token for custom endpoint |
Requirements
- Node.js 16+
- OpenClaw or Clawdbot CLI installed
Critical Rules
- MUST pair
startwithdoneorfail - NEVER start without completing
- NEVER say "will push later" then forget
Links
Files
4 totalSelect a file
Select a file to preview.
Comments
Loading comments…
