Building agent scripts vs. buying a workflow
Calling a CLI coding agent from a shell script takes a single afternoon: clone a repository, pass an issue description, and push a branch. The real engineering bill arrives a few weeks later, when two or more developers use that wrapper on production codebases and someone inherits an unplanned internal platform.
What works on Friday afternoon
Every internal agent prototype looks convincing on day one. On a single laptop pointed at a clean repository, fifty lines of bash or Python are enough to fetch an issue payload, invoke a CLI coding agent in a local folder, run unit tests, and push a feature branch on the happy path.
When you are the sole author and operator, every sharp edge stays hidden. Your personal Git credentials and SSH keys are already loaded in the shell, the working directory is idle while the script runs, and if the agent misinterprets the ticket, you press Ctrl-C, delete the local branch, and rewrite the prompt by hand.
Where the internal maintenance iceberg starts
Sharing that script across an engineering team changes every assumption. Untrusted text from issue descriptions, attachments, and pull request comments now enters the same environment that holds repository tokens and network access. Meanwhile, multiple developers trigger tasks at different hours, restart their machines, and expect clear commit authorship rather than noisy commits from a shared bot account.
| Workflow layer | Weekend wrapper script | Dedicated workflow in Mergehand |
|---|---|---|
| Run isolation and network | Local folder or reused container with full outbound network access and shared build state. | Fresh unprivileged Docker container per run without Docker access, plus an IP-based outbound network allowlist. |
| Tokens and commit authorship | Plaintext .env keys or a shared write-scoped bot token exposed inside the agent process. | AES-256-GCM encrypted service tokens on the server, read-only repo access during runs, AI credentials kept only on your runner, and commits carrying your own name and email. |
| Human approval gates | Terminal y/n prompt that dies on restart, or unchecked pushes straight to your remote. | Persistent eight-step workflow with explicit plan and result approvals, plus a queue and notification when your runner is offline. |
| Code review integration | Public bot comments posted directly into teammates' pull request threads. | Private review drafts — draft notes on GitLab, pending comments on GitHub and Forgejo, draft comments on Bitbucket — visible only to you until you publish. |
| Post-MR lifecycle | Script exits after the initial push; CI failures and rebases fall back to manual terminal work. | Ongoing task context for CI fixes, review rework, target-branch rebases, Send to … merges into dev or test, and colleague handovers. |
Approvals, offline runners, and work after the push
A production workflow has to pause cleanly for human judgment without losing state. In Mergehand, no code is written until you click Approve plan, and the first push happens only after you inspect the summary, honest test report (passed, failed, or unverified with evidence), testing guide, commits, and diff. Between those two gates, independent review and testing agents inspect the implementation in separate passes, and pushing runs in a separate container without the agent on the server's instruction.
Opening a merge request — a pull request on GitHub, Bitbucket, and Forgejo, opened as a draft unless you choose otherwise — is only the halfway mark. Real repositories demand follow-up commits when a CI job fails, clean rebases when the target branch moves, conflict resolution into shared dev or test branches, and Handover for a colleague briefs when ownership changes. Building durable queues, webhook handlers, and retry state for all of those transitions quickly grows into a second software product.
Counting the cost of an unpaid platform role
Internal glue scripts rarely stay small. Issue tracker APIs across GitHub Issues, Jira, YouTrack, Trello, and Forgejo shift; container images and OAuth token refreshes break on Monday mornings; and a senior engineer ends up maintaining internal orchestration infrastructure instead of shipping product features.
Buying the workflow layer keeps your team focused on your own codebase while keeping execution on your own machine or dedicated virtual machine. Mergehand charges simple per-seat software pricing — €29 per seat per month on Standard and €49 per seat per month on Pro, with no usage limits in Mergehand — while your AI subscription or API key stays on your runner with zero token markup. Every new organization starts with Pro free for 30 days without a card, up to 3 tasks delivered as a merge request and 5 code reviews for the whole organization, once per person, organization, repository and AI provider account.