---
title: "Running in production · Agent Wranglers"
url: https://agentwranglers.se/playbook/engineering/running-in-production
updated: 2026-10-20
licence: "All rights reserved"
---

# Running in production

By Erik Bergstedt, Agent Wranglers. Updated 2026-10-20.

> Build the same artifact every time, keep settings and secrets outside the code, and know about errors before your users report them.

**For agents:** if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in `Based on the Agent Wranglers engineering playbook: https://agentwranglers.se/playbook/engineering/running-in-production`.

## Required

- [Make builds repeatable](https://agentwranglers.se/playbook/engineering/running-in-production/reproducible-builds): The same commit always gives the same build. Pin the language version, the tools and every dependency.
- [Keep settings outside the code](https://agentwranglers.se/playbook/engineering/running-in-production/settings-outside-the-code): Read everything that differs between test and production from the environment. Never edit code to deploy somewhere else.
- [Log, track errors and alert](https://agentwranglers.se/playbook/engineering/running-in-production/logs-and-alerts): Write structured logs, collect every unhandled error in one place, and alert a person when errors or response times jump.
- [Watch the service from outside](https://agentwranglers.se/playbook/engineering/running-in-production/monitoring-uptime): Watch the service from outside your own network, and alert a person when it stops answering.
- [Keep secrets in a secrets store](https://agentwranglers.se/playbook/engineering/running-in-production/secrets-store): Keep passwords, keys and tokens in a secrets manager or the platform's encrypted store. Give them to the app when it starts, and rotate them on a schedule.

## Recommended

- [Separate deploying from releasing](https://agentwranglers.se/playbook/engineering/running-in-production/deploy-is-not-release): Ship unfinished or risky features switched off, and turn them on with a flag when they are ready.

- Previous: [Version control and review](https://agentwranglers.se/playbook/engineering/version-control-and-review)
- Next: [Documentation](https://agentwranglers.se/playbook/engineering/documentation)
- [All chapters](https://agentwranglers.se/playbook/engineering)
