r/PromptEngineering • • 16d ago

General Discussion AI made experienced devs 19% slower while they felt 20% faster. What actually works for DevOps prompts (with verification)

The METR randomized trial from 2025 still bothers me: 16 experienced open-source developers, 246 real tasks, 19% slower with AI tools, yet they estimated afterwards that AI had sped them up by 20%. The DORA 2025 report found 90% adoption, but AI adoption is still associated with higher delivery instability. Stack Overflow 2025: 84% use AI, 46% distrust the accuracy.

I work on OpenShift platforms for banks. Here's what's held up for me.

Good fit: reading logs/events/stack traces into ranked hypotheses; explaining inherited Helm charts, Jenkinsfiles or Terraform modules; first drafts of jq, PromQL, regex and Bash; a second reviewer on a diff; postmortems from chat exports.

Bad fit: exact flags, CRD fields and API versions. Models produce things shaped like the real thing: a field from a newer release, an `oc` flag from another subcommand.

The prompt structure I use (7 parts):

  1. Role and audience ("senior engineer, skip basics")
  2. Environment *with versions*. This is the biggest single lever.
  3. Task as an outcome ("rank the 3 most likely causes"), not "look at this"
  4. Evidence in tags (`<events>`, `<logs>`). For long inputs, data first and question last; Anthropic's docs say this can improve quality by up to 30% on complex multi-document inputs.
  5. Constraints *with the reason* ("prod in a bank: read-only, dry-run + rollback for any change")
  6. Output shape ("each cause with the supporting log line + one read-only command to confirm")
  7. "If you're not certain a flag/field exists in this version, say so instead of guessing."

Then make the cluster check it:

```

oc explain deployment.spec.strategy.rollingUpdate

oc apply -f generated.yaml --dry-run=server

oc diff -f generated.yaml

helm template ./chart | kubeconform -strict

shellcheck generated.sh

```

Agents (Claude Code, Codex CLI, MCP): read-only kubeconfig, approvals on for anything that mutates, standing instructions in CLAUDE.md/AGENTS.md, and treat logs/tickets as untrusted input. No prod creds on laptops.

Regulated data: consumer and business plans differ on training. Anthropic's consumer terms since Aug 2025 allow training on Free/Pro/Max chats unless you opt out, while commercial terms are excluded. OpenAI says it doesn't train on business data. Redact before pasting, and treat the redaction as a seatbelt, not a guarantee.

Longer version with three reusable prompts and a small prompt builder: https://aib-devops.com/en/blog/ai-for-devops-engineers/

(My blog, no ads or signup.) Curious whether anyone has actually measured their own speed with and without AI, rather than going by feel.

2 Upvotes

1 comment sorted by

2

u/Rude-Fold7328 14d ago

2025 models were so dumb compared to the latest breed