What’s included
- Slack Socket Mode bot for app mentions and DMs
- Thread transcript context
- Claude Agent SDK runtime
- Local MCP-style tool registration
- Optional Slack email allowlist
- Dockerfile that starts the agent through
agent-vault run - Two starter tools:
echoand a constrained read-only HTTP API example - Mocked tests for the included tools
Copy the template
Clone Agent Vault, then copy the example into a new project:Configure the agent
Edit.env:
Create the Slack app
- Create a Slack app from
slack-app-manifest.json. - Enable Socket Mode.
- Create an app-level token with
connections:write. - Install the app to your workspace.
- Set
SLACK_BOT_TOKENandSLACK_APP_TOKEN.
Run locally
Try the CLI harness:Run through Agent Vault
For hosted deployments, store real credentials in Agent Vault and pass placeholders to the agent process:agent-vault run configures proxy and CA environment variables for the child process. Your tools should call normal upstream URLs and let Agent Vault inject credentials at the proxy boundary.
Add your own tools
Start fromsrc/tools/example-api.ts, then replace it with service-specific tools.
Good tools are narrow:
- define structured inputs with Zod
- validate IDs, paths, and enum values before making requests
- call real upstream URLs with normal HTTP clients
- never accept raw credentials as tool input
- return compact Slack-readable text
- include mocked tests
src/agent.ts.

