OpenProject Agent Engine Automates Workflow with Docker and API Integration
The OpenProject Agent Engine automates workflow by polling work packages, dispatching agents, and managing status transitions internally, relying on Docker, OpenProject 17, and API v3 for setup and execution.
System Workflow and Automation
The OpenProject Agent Engine automates workflow by polling work packages and dispatching agents to perform tasks. According to Hacker News Show, the system identifies eligible tickets and assigns them to the pi coding agent for execution. The engine claims work, creates a per-agent clone, generates a prompt, runs the agent, and verifies the outcome against GitHub and OpenProject. It also manages all status transitions internally. Hacker News Show notes that OpenProject serves as the system of record, ensuring consistency across platforms. Hacker News Show outlines the ticket flow, showing how the engine reacts to different states, such as moving a ticket from 'New' to 'In Progress' or from 'Rejected' to 'On Hold.' Once a ticket is 'On Hold,' the engine ceases to act on it until a human intervenes, highlighting the system's reliance on human oversight for certain decisions.
Setup and Configuration Requirements
The OpenProject Agent Engine requires specific setup and configuration to function properly. It depends on Docker and OpenProject 17 with API v3 enabled, along with a project and one-time administrator access (Hacker News Show). A one-time instance setup is necessary, including defining statuses, adding the GIT_REPO project custom field, the AGENT work-package custom field, and the Agent Worker role, as detailed in docs/OPENPROJECT_SETUP.md (Hacker News Show). Additionally, the URL must be accessible from within the engine container, as outlined in docs/CONFIG.md (Hacker News Show). These steps ensure the engine can interact with OpenProject and execute automated workflows effectively.
Agent and Role Management
The OpenProject Agent Engine introduces a structured approach to agent and role management, assigning fixed roles to specific accounts and tokens. Each agent is tied to a unique login and kind, such as FRONTEND, BACKEND, LEAD_DESIGNER, or REVIEWER, ensuring clear responsibilities within the workflow. The model used by the script is specified as AGENT_MODEL=openrouter/deepseek/deepseek-v4.1-flash-1017, according to Hacker News Show. When a reviewer switches to a dedicated account, they can submit an approving review before merging, as noted in Hacker News Show. However, if both tokens belong to the same account, branch protection rules requiring a different approver may still block the merge, as described in Hacker News Show. This highlights the importance of aligning token assignments with repository policies to ensure smooth workflow execution.
Deployment and Container Management
The deployment and container management process for the OpenProject Agent Engine is streamlined through Docker. To begin, users can clone the repository and navigate to the docker/ directory, where an interactive setup script (agent-init.sh) facilitates initial configuration. Re-running this script is safe and does not interfere with existing setups. Once initialized, the stack can be started with docker compose up -d, and logs can be monitored using docker compose logs -f engine.When changes are made to a project’s GIT_REPO or AGENT configuration in OpenProject, the engine container should be restarted with docker compose restart engine. Additionally, if modifications are made to the docker/.env file, users must run docker compose up -d engine to ensure the container is recreated with the updated environment variables.
Documentation and Licensing
The OpenProject Agent Engine’s documentation is organized into several key files, including DOCKER.md for image internals and troubleshooting, OPENPROJECT_SETUP.md for setup details like the AGENT work-package custom field, and CONFIG.md for environment variables and CLI references. A read-only web UI is available via DASHBOARD.md, and RUNBOOK.md outlines procedures for managing agent status and recovery. The ACCEPTANCE.md file provides a fake-agent test and manual checklist, while CURRENT_STATE.md describes the implemented architecture and control flow. The project is open source and released under the MIT License, as stated in the license documentation. Contributions are welcomed through issues and pull requests. Branches follow the format op--, with a limit of MAX_RUNS_PER_AGENT runs per agent, defaulting to one. All engine comments begin with ENGINE: for clarity.
Sources and reporting notes
Based on published source material. No independent hands-on testing is claimed.