TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/paramveer-cyber/Deployaar/llms.txt
Use this file to discover all available pages before exploring further.
agentRun router is how you trigger and observe the Deployaar coding agent. When assignAllToCodingAgent is called, it fires a coding-agent/run.requested Inngest event. An Inngest background function picks that event up, provisions an E2B sandbox, clones the linked GitHub repository, runs the AI coding loop (up to 40 tool-call iterations), commits the result to a feature branch, and opens a pull request — all without any further client interaction required.
Both procedures require authentication.
assignAllToCodingAgent additionally
requires that the feature request’s PRD has been approved and that at least
one engineering task has been generated. An already-active run (status
queued or running) blocks a new one with 409 Conflict.agentRun.assignAllToCodingAgent — mutation
Queues a new coding agent run for the specified feature request. The procedure:
- Validates organization membership for the caller
- Confirms the PRD is approved (
approvedAtis not null) - Confirms at least one engineering task exists
- Creates an
AgentRunrecord with statusqueued - Fires the
coding-agent/run.requestedInngest event
agentRun.getAgentRun to track progress.
Input
The UUID of the feature request to assign to the coding agent.
Response
agentRun.getAgentRun — query
Returns the latest agent run record for a feature request, or null if no run has ever been started. Use this to poll run status during execution.
Input
The UUID of the feature request whose latest agent run should be retrieved.
Response
AgentRunStatusResult type reference
Unique identifier for the agent run record.
The feature request this run belongs to.
Current lifecycle status of the agent run.
queued— Inngest event fired, background function not yet startedrunning— Sandbox is live, agent is executing tool callssucceeded— All tasks complete, branch pushed, PR openedfailed— Run terminated with an error (seeerrorMessage)
Number of AI reasoning steps the agent used. The agent is capped at 40 iterations; exceeding this cap results in
failed.The git branch name where the agent pushed its changes, in the format
deployaar_<featureRequestId>. Set once the sandbox is provisioned.The GitHub pull request number opened by the agent. Set only after
status reaches succeeded.Human-readable error description when
status is failed.Timestamp when the Inngest function started executing (sandbox provisioned).
Timestamp when the run completed (either
succeeded or failed).Timestamp when the agent run record was first created.
Timestamp of the last update to the agent run record.
Status transition diagram
TypeScript polling example
Use React Query’srefetchInterval to poll the agent run status until the run finishes: