Hermes Agent Tutorial All the Code and Prompts Hostinger released a tutorial for its Hermes Agent, an AI-powered DevOps tool that automates deployment monitoring, pull request reviews, and cloud infrastructure management. The tutorial includes Docker Compose configurations, webhook prompts for GitHub Actions and pull requests, and a cron job for Cloudflare analytics. The agent uses headless Chrome for end-to-end UI testing and provides automated feedback on code quality and deployment status. Docker Container Yaml file: services: hermes-agent: image: ghcr.io/hostinger/hvps-hermes-agent:latest restart: unless-stopped ports: - "4860" - "8644:8644" labels: - traefik.enable=true - traefik.http.routers.${COMPOSE PROJECT NAME}.rule=Host ${COMPOSE PROJECT NAME}.${TRAEFIK HOST} - traefik.http.routers.${COMPOSE PROJECT NAME}.entrypoints=websecure - traefik.http.routers.${COMPOSE PROJECT NAME}.tls.certresolver=letsencrypt - traefik.http.services.${COMPOSE PROJECT NAME}.loadbalancer.server.port=4860 env file: - .env volumes: - ./data:/opt/data chrome: image: chromedp/headless-shell:latest restart: unless-stopped network mode: "service:hermes-agent" depends on: hermes-agent: condition: service started restart: true Deployment Webhook Prompt: GitHub Actions workflow run event received. Repo: {repository.full name} Workflow: {workflow run.name} Status: {workflow run.status} Conclusion: {workflow run.conclusion} Branch: {workflow run.head branch} Commit: {workflow run.head sha} Run URL: {workflow run.html url} Actor: {sender.login} Only act when Status is completed. If it's in progress do not answer. If Conclusion is failure, cancelled, timed out, or action required: Send Lama Dev a clear failure report with repo, workflow, branch, commit, actor, and run URL. Explain that the workflow did not pass. If Conclusion is success: visit the shopping app url and perform an end-to-end UI test. Verify all visible UI elements render correctly, check accessibility basics keyboard navigation, labels, contrast, focus states , and validate all navigation links and buttons. Log in using demo@shop.com / password123, browse products, add a product to the cart, and proceed through checkout. Click the final checkout button no payment processing is required . Confirm that the user is redirected to the Orders page and verify that all functionality works as expected. Report any bugs, broken links, UI issues, accessibility problems, console errors, or unexpected behavior. Pull Request Webhook Prompt: GitHub Pull Request webhook received. Repository: {repository.full name} Action: {action} PR {pull request.number}: {pull request.title} URL: {pull request.html url} Author: {pull request.user.login} Base branch: {pull request.base.ref} Head branch: {pull request.head.ref} State: {pull request.state} Draft: {pull request.draft} Mergeable: {pull request.mergeable} PR body: {pull request.body} Review the pull request, analyze the code changes, and provide feedback on potential bugs, code quality issues, security concerns, performance improvements, and adherence to best practices. VPS connection Codes ssh-keygen -t rsa pbcopy < ~/.ssh/id rsa.pub Cloudflare Monitoring Cron Job Prompt I added CLOUDFLARE API TOKEN, CLOUDFLARE ZONE ID and CLOUDFLARE ZONE NAME to the Hermes environment. Create a cron job: I want you to visit my shopping app and send the traffic reports every day. Include requests, visitors, page views, threats, cache status, and all other recommended analytics.