{"slug": "hermes-agent-tutorial-all-the-code-and-prompts", "title": "Hermes Agent Tutorial All the Code and Prompts", "summary": "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.", "body_md": "Docker Container Yaml file:\n\n```\nservices:\n  hermes-agent:\n    image: ghcr.io/hostinger/hvps-hermes-agent:latest\n    restart: unless-stopped\n    ports:\n      - \"4860\"\n      - \"8644:8644\"\n    labels:\n      - traefik.enable=true\n      - traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_PROJECT_NAME}.${TRAEFIK_HOST}`)\n      - traefik.http.routers.${COMPOSE_PROJECT_NAME}.entrypoints=websecure\n      - traefik.http.routers.${COMPOSE_PROJECT_NAME}.tls.certresolver=letsencrypt\n      - traefik.http.services.${COMPOSE_PROJECT_NAME}.loadbalancer.server.port=4860\n    env_file:\n      - .env\n    volumes:\n      - ./data:/opt/data\n\n  chrome:\n    image: chromedp/headless-shell:latest\n    restart: unless-stopped\n    network_mode: \"service:hermes-agent\"\n    depends_on:\n      hermes-agent:\n        condition: service_started\n        restart: true\n```\n\nDeployment Webhook Prompt:\n\n```\nGitHub Actions workflow_run event received.\n\nRepo: {repository.full_name}\nWorkflow: {workflow_run.name}\nStatus: {workflow_run.status}\nConclusion: {workflow_run.conclusion}\nBranch: {workflow_run.head_branch}\nCommit: {workflow_run.head_sha}\nRun URL: {workflow_run.html_url}\nActor: {sender.login}\n\nOnly act when Status is completed. If it's in_progress do not answer.\n\nIf Conclusion is failure, cancelled, timed_out, or action_required:\nSend Lama Dev a clear failure report with repo, workflow, branch, commit, actor, and run URL. Explain that the workflow did not pass.\n\nIf Conclusion is success:\nvisit 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.\n```\n\nPull Request Webhook Prompt:\n\n```\nGitHub Pull Request webhook received.\n\nRepository: {repository.full_name}\nAction: {action}\n\nPR #{pull_request.number}: {pull_request.title}\nURL: {pull_request.html_url}\n\nAuthor: {pull_request.user.login}\nBase branch: {pull_request.base.ref}\nHead branch: {pull_request.head.ref}\nState: {pull_request.state}\nDraft: {pull_request.draft}\nMergeable: {pull_request.mergeable}\n\nPR body:\n{pull_request.body}\n\nReview 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.\n```\n\nVPS connection Codes\n\n```\nssh-keygen -t rsa\n\npbcopy < ~/.ssh/id_rsa.pub\n```\n\nCloudflare Monitoring Cron Job Prompt\n\n```\nI added CLOUDFLARE_API_TOKEN, CLOUDFLARE_ZONE_ID and CLOUDFLARE_ZONE_NAME to the Hermes environment.\n\nCreate a cron job:\n\nI want you to visit my shopping app and send the traffic reports every day.\n\nInclude requests, visitors, page views, threats, cache status, and all other recommended analytics.\n```", "url": "https://wpnews.pro/news/hermes-agent-tutorial-all-the-code-and-prompts", "canonical_source": "https://gist.github.com/safak/9fa815d3432746fcf4def85191612b7b", "published_at": "2026-07-01 12:16:35+00:00", "updated_at": "2026-07-04 01:18:33.311927+00:00", "lang": "en", "topics": ["ai-agents", "developer-tools", "large-language-models", "mlops", "ai-infrastructure"], "entities": ["Hostinger", "Hermes Agent", "GitHub Actions", "Cloudflare", "Docker", "Chrome", "Lama Dev"], "alternates": {"html": "https://wpnews.pro/news/hermes-agent-tutorial-all-the-code-and-prompts", "markdown": "https://wpnews.pro/news/hermes-agent-tutorial-all-the-code-and-prompts.md", "text": "https://wpnews.pro/news/hermes-agent-tutorial-all-the-code-and-prompts.txt", "jsonld": "https://wpnews.pro/news/hermes-agent-tutorial-all-the-code-and-prompts.jsonld"}}