A feature request arrives in a form, an issue or a support ticket. A coding agent such as Claude Code or Codex can build it, but only from what someone remembers to paste into it. This page is the path that does that handoff for you: the request lands in Hookie, a workflow writes the spec, Hookie starts the agent with that spec, and the pull request comes back to the same workflow so the request ends with a record of what shipped.
Who this is for
- Small product teams that already use Claude Code or Codex and want requests to reach the agent without someone copying and pasting.
- Founders and product leads who want a record of what was asked for, what the agent was told and what shipped.
The problem
- Requests are scattered. They arrive in forms, issues and support tickets, and the agent only sees what someone remembers to paste.
- Agents start cold. A coding agent can read the code, but not why your team made last quarter’s decisions or which customer asked for this.
- Nobody closes the loop. Once the agent opens a pull request, the request, the spec and the merge live in three different tools.
How each tool plugs in
| Tool | How it connects | What it does in the loop |
|---|---|---|
| Claude Code | Adds Hookie’s hosted MCP server with one command. Runs unattended through Claude Code’s GitHub Action when a workflow gives it a prompt. | Reads events, runbooks and memory from Hookie; writes the fix and opens the pull request. |
| Codex | Adds Hookie’s MCP server by URL and signs in over OAuth. Runs unattended through OpenAI’s Codex GitHub Action or codex exec in CI. | Same role as Claude Code. |
| Observability tools (Sentry, Datadog, Grafana, PagerDuty and others) | Alert webhooks post to a Hookie endpoint. Log excerpts can be sent with an ingest key. Custom HMAC verification where the tool signs its requests. | The trigger and the evidence: what broke, where, and the log lines around it. |
| GitHub | Signed webhooks into a Hookie endpoint (GitHub signature verification). Outbound, a destination calls GitHub’s repository dispatch API to start an Actions run. | Starts agent runs and closes the loop: pull requests, CI results and deployments come back as events. |
| Workspace Brain | Runbooks, ADRs and postmortems as searchable documents; records linked in the knowledge graph; agent memory over MCP. | Your team’s context: how you ship, what broke before, who owns what. |
The pattern is the same on every coding agent page: an event lands in Hookie, a workflow decides what to do, a destination hands a scoped task to the coding agent, the agent works with Hookie over MCP, and GitHub’s events come back so the workflow knows how it ended.
How it works
1. Requests land in one dataset
Publish a request form with Hookie’s form builder (hookie forms init), or point GitHub or Linear issue webhooks at a Hookie endpoint. Routing rules file every request into a feature_requests dataset, whole and searchable. Give the rule a {"path": "$submission.id", "key": "request_id"} mapping, so every request carries an id the rest of the flow can follow.
2. A workflow writes the spec
When an approved request lands, a workflow’s AI step turns it into a title, acceptance criteria, a size and the target repository. A knowledge graph step can first pull the linked customer and account records from the Workspace Brain, so the spec says who asked and why.
3. Hookie hands the task to your agent
Small and medium requests are emitted to an agent_jobs dataset. A destination on that dataset starts the run: a call to GitHub’s repository dispatch API that kicks off a GitHub Actions workflow running Claude Code or Codex with the spec as its prompt. Large requests go to a person for scoping first.
4. The agent builds with context
Before it writes code, the agent reads your ADRs, conventions and past decisions from Hookie over MCP. It saves any new decision back to Hookie memory, so the next agent session starts from it.
5. Hookie waits for the pull request
GitHub’s pull request webhooks come back to a Hookie endpoint. The workflow’s wait step resumes on the pull request for this request, then records the merge and posts a summary to Slack, or flags the request if nothing merged within a week.
How a webhook starts Claude Code or Codex
All three coding agent use cases start the agent the same way: with webhooks, in and out. Nobody has to open a terminal or tag a bot.
- A webhook comes in. A GitHub issue, a Sentry or Datadog alert or a form submission posts to a Hookie endpoint, which checks its signature before anything runs.
- Hookie decides it’s agent work. The workflow reads the event, pulls context from the Workspace Brain and writes a job record (task, repository, branch name, prompt) to an
agent_jobsdataset. - A webhook goes out. An HTTPS destination on
agent_jobsposts to GitHub’s repository dispatch API with a fine-grained token that Hookie stores encrypted. The body template turns the job record into GitHub’s event: an event type such ashookie-agent-job, plus the job fields as the client payload. - GitHub starts the agent. A GitHub Actions workflow listening for that event type checks out the repository and runs Claude Code’s action or the Codex action, with the prompt taken from the payload and Hookie’s MCP server configured, so the agent reads the same context Hookie used. An
hk_…API key kept in a repository secret works as the MCP server’s bearer token in CI. - A webhook comes back. When the agent pushes a branch or opens a pull request, GitHub’s own webhook posts to Hookie. A
wait_for_eventstep matches it by branch name and the workflow carries on: review, CI, deploy, notify.
If a delivery fails, Hookie retries it and keeps it in the delivery log for replay, so a GitHub outage never drops a job. Teams that run agents on their own machines can point the same destination at a small service of theirs that runs claude -p or codex exec instead.
The outgoing destination’s body template ({{id}} is the event id, {{data.…}} the job record’s fields):
{
"event_type": "hookie-agent-job",
"client_payload": {
"job_id": "{{id}}",
"branch": "{{data.branch}}",
"prompt": "{{data.prompt}}"
}
}
The GitHub Actions workflow that picks it up (Claude Code shown; for Codex, swap the step for openai/codex-action@v1):
on:
repository_dispatch:
types: [hookie-agent-job]
jobs:
agent:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
prompt: ${{ github.event.client_payload.prompt }}
Where Hookie stops, and what your agents do
Hookie does not write code, run your tests or merge anything. It receives the request, writes the brief, starts the agent, waits for the result and keeps the record. The coding agent does the engineering, and a person on your team approves the merge.
A worked example
The workflow below runs when an approved request lands in feature_requests. A destination filtered to agent_jobs, with the JSON body template above and your GitHub token as its credential, starts the agent run. A second routing rule files GitHub’s pull request webhooks into github_prs, which is where the wait step listens.
{
"name": "Feature request to coding agent",
"entry_dataset": "feature_requests",
"entry_conditions": [{ "path": "status", "op": "equals", "value": "approved" }],
"steps": [
{ "type": "call_ai",
"instructions": "Turn this request into a build spec. Reply with JSON: title, acceptance_criteria, size (small, medium or large), repo.",
"output_key": "spec", "output_dataset": "feature_specs" },
{ "type": "branch",
"conditions": [{ "path": "spec.size", "op": "equals", "value": "large" }],
"then": [
{ "type": "emit_event", "dataset": "needs_human_scoping",
"payload": { "title": "{{spec.title}}" } }
],
"else": [
{ "type": "emit_event", "dataset": "agent_jobs",
"payload": {
"repo": "{{spec.repo}}",
"branch": "hookie-{{entry.request_id}}",
"prompt": "Implement {{spec.title}}. Acceptance criteria: {{spec.acceptance_criteria}}. Read our conventions from Hookie first. Work on the branch hookie-{{entry.request_id}} and open a pull request."
} }
] },
{ "type": "wait_for_event",
"dataset": "github_prs",
"conditions": [
{ "path": "pull_request.head.ref", "op": "contains", "value": "{{entry.request_id}}" },
{ "path": "action", "op": "equals", "value": "closed" }
],
"timeout_seconds": 604800,
"on_timeout": "continue" },
{ "type": "branch",
"conditions": [{ "path": "waited_event.pull_request.merged", "op": "equals", "value": true }],
"then": [
{ "type": "emit_event", "dataset": "shipped_features",
"payload": { "title": "{{spec.title}}", "pr": "{{waited_event.pull_request.html_url}}" } }
],
"else": [
{ "type": "emit_event", "dataset": "feature_followups",
"payload": { "title": "{{spec.title}}", "note": "No merged pull request within 7 days" } }
] }
]
}
Records are insert-only, so “approved” is a request that arrives with status: approved: a reviewer’s approval form, or a rule that only files issues once they carry your approval label. A wait step cannot sit inside a branch, so a request sent to a person for scoping also waits; it ends in feature_followups after the week unless someone opens a pull request on its branch.
What you can see afterwards
- The original request, the spec the AI step wrote and the exact prompt the agent received, as records.
- The run on the workflow graph: which branch it took, when it waited and what resumed it.
- Every delivery to GitHub, with the response, retries and a replay button.
- The merged pull request linked back to the request it came from.
Flow
Request form, GitHub issue or Linear issue → Hookie endpoint → feature_requests dataset → workflow (AI spec, branch on size) → agent_jobs destination → GitHub Actions (Claude Code or Codex) → agent reads Hookie over MCP → pull request → GitHub webhook back to Hookie → wait step resumes → shipped_features and a Slack post.
Related
Orchestrate incident remediation · Patch production failures · Client context for AI agents · Connect a coding agent · AI agents and Hookie