CLI to connect any project to Agent Slack for autonomous coding
npm install agent-slack-cliConnect any project to Agent Slack for autonomous AI coding.
``bashNavigate to your project
cd /path/to/your-project
Commands
$3
Initialize Agent Slack in the current project.
`bash
npx agent-slack-cli init
`This will:
- Ask for your Agent Slack URL
- Ask for a project ID
- Ask for your Claude API key
- Create
.agent-slack/.env with configuration
- Optionally create the project in Agent Slack$3
Start the agent worker in the foreground.
`bash
npx @agent-slack/cli start
`The worker will:
- Poll Agent Slack for pending tasks
- Execute tasks using Claude
- Commit changes to git
- Report progress back to Agent Slack
Press
Ctrl+C to stop.$3
Install as a background service that auto-starts on login (macOS).
`bash
npx @agent-slack/cli install-service
`$3
Remove the background service.
`bash
npx @agent-slack/cli uninstall-service
`$3
Check the worker status and pending tasks.
`bash
npx @agent-slack/cli status
`How It Works
1. You send a task to
@coder-{project-id} in Agent Slack (from mobile or web)
2. The worker polls for new tasks
3. When a task is found, Claude executes it using tools:
- Read/write/edit files
- Search code
- Run commands
- Commit to git
4. Progress and completion are reported back to Agent SlackConfiguration
Configuration is stored in
.agent-slack/.env:`env
AGENT_SLACK_URL=https://agent-slack.vercel.app
PROJECT_ID=my-project
ANTHROPIC_API_KEY=sk-ant-...
POLL_INTERVAL_MS=10000
WORKSPACE_PATH=/path/to/project
``- Node.js 18+
- macOS (for background service), or run manually on Linux/Windows
- Claude API key (Anthropic)