Agents
Your AI team: status, workload, teams, marketplace
Agent Setup Guide
Step-by-step instructions for every agent type. Agents communicate with HAPM via webhooks — they receive assignments, do work, and post proposals back for your review.
How the flow works
You assign a task to an agent → HAPM sends a webhook to the agent-bridge → the bridge does the work (web search, code changes, research) → posts proposals back → you review and approve. Nothing executes without your sign-off.The agent-bridge is a small Express server in apps/agent-bridge. It receives webhooks from HAPM and runs Claude. It must be reachable from HAPM — either run it on a server or expose your local machine with ngrok.
cd apps/agent-bridge
cp .env.example .env
# Fill in:
# ANTHROPIC_API_KEY=sk-ant-...
# HAPM_API_URL=https://your-hapm-instance.com (or http://localhost:3001 locally)
# PORT=3099pnpm dev # inside apps/agent-bridgengrok http 3099
# → https://abc123.ngrok.iohttps://your-url/webhookWhen assigned a coding task, Claude Code runs non-interactively in your repo with Bash, Read, Write, Edit, Glob, and Grep access. It makes real file changes, then posts a summary proposal for you to review.
yt-dlp is not needed here — but ensure the agent-bridge machine has Node.js access to your repo.Type: CLAUDE_CODE
Skills: CODE
Webhook URL: https://your-bridge/webhook
Repo path: /absolute/path/to/your/codebase ← on the bridge machine
System prompt: (optional) You are a senior engineer on this project. Focus on clean, minimal changes.Assignments → New → pick "Claude Code" agent
Context: "Refactor the auth module to use JWT. Update all call sites."repoPath. Files are changed on disk. When done, a proposal appears in your Review inbox with a summary of what was changed.Good tasks for Claude Code
- Refactor a module or rename a function across the codebase
- Implement a feature from a spec you write in the context field
- Write tests for an existing file
- Fix a specific bug described in the context
Research agents use Claude's built-in web search tool to find current information. Results are written automatically to your Obsidian vault athapm/research/{date}-{title}.md — no approval needed for the note itself. Task proposals (next steps) still go through review.
Type: CUSTOM
Skills: RESEARCH
Webhook URL: https://your-bridge/webhook
System prompt: (optional) You are a thorough research analyst. Always cite sources.Context: "Research the best birthday party venues in Berlin under €500.
Compare at least 3 options with capacity, price, and vibe. Suggest the best pick."Good tasks for a Research agent
- Market research ("What are competitors doing in space X?")
- Venue / vendor / tool comparisons
- Technical deep-dives ("How does X work? What are the tradeoffs?")
- News monitoring ("What happened this week in AI?")
OpenClaw acts as a project manager bot. It receives a complex goal, breaks it into 3-7 concrete subtasks, and routes each to the best available agent by skill. You get multiple parallel proposal sets back.
Agent "Leo-Dev" type=CLAUDE_CODE skills=[CODE] repoPath=/path/to/repo
Agent "Leo-Research" type=CUSTOM skills=[RESEARCH] webhook=…/webhook
Agent "Leo-Writer" type=CUSTOM skills=[WRITING] webhook=…/webhook
Agent "Leo-Orch" type=OPENCLAW skills=[ORCHESTRATION] webhook=…/webhookType: OPENCLAW
Skills: ORCHESTRATION
Webhook URL: https://your-bridge/webhookContext: "Plan our product launch for Q2. We need a landing page,
a blog post, social media content, and the backend API ready."POST /assignments/:id/subtasks. HAPM auto-routes each subtask to the right specialist agent.Good tasks for OpenClaw
- Product launches (copy + code + research + design)
- Sprint planning decomposition
- Event planning across multiple workstreams
- Any goal that naturally has 3+ independent parallel threads
Paste a video URL anywhere in HAPM (capture page, Telegram) and the system auto-detects it. If you have a Claude Code agent configured, it runs yt-dlp locally to transcribe and analyze the video. Otherwise the media worker handles it server-side.
pip install yt-dlp
# or: brew install yt-dlphapm/captures/video-{date}-{id}.md.autoAssign: true in the capture body to skip the confirmation step.What the vault note contains
- YAML frontmatter with source URL, platform, and date
- AI-generated summary (2-3 sentences)
- Key lessons extracted from the transcript
- Suggested tasks checklist
- Full transcript (truncated at 8,000 chars)
Feature implementation
- Write a task on the board: title + description with the spec
- Assign it to your Claude Code agent
- Agent reads the repo, implements the feature, posts summary proposal
- You review the diff, approve the proposal to log it, or reject and add feedback
Deep research + next steps
- Create an objective or task with the research question as context
- Assign to your Research agent
- Vault note is written automatically — open it in Obsidian
- Approve the task proposals in the Review inbox to turn findings into action
Brain dump from Telegram
- Send a voice note or text to the Telegram bot
- HAPM analyses it and shows a preview with tasks, ideas, OKR updates
- Tap ✅ Save everything or ⏭ Skip tasks
- Items appear in the Review inbox and Daily page
Video tutorial → actionable tasks
- Paste a YouTube tutorial URL in the Capture page
- Confirm the agent assignment in Agents page
- Vault note with transcript + key lessons is written
- Approve suggested task proposals to add them to the board
Questions? Open an issue or send a Telegram message to the bot.
Go to Agents →