AI Help

How do I give an AI coding agent only the logs needed to diagnose a build failure?

Provide the failing command, first substantive error and enough surrounding output to reproduce it. Include runtime and commit details.

Steps to follow

  1. Capture the command, working directory, exit code and relevant dependency or runtime version.
  2. Extract the first meaningful failure and its surrounding stack or compiler context. Remove secrets and private payloads.
  3. Include the minimal source or fixture needed to reproduce and clarify expected behavior. Preserve full logs privately if further context becomes necessary.

Example in practice

Illustrative example. A TypeScript build failure needs the diagnostic, file location and build command more than thousands of unrelated installation lines.

Related AI help

Official guidance

OpenAI documentation