--write-comments writes to .info.json reliably; parsing stdout with --dump-json was never guaranteed to include comments. Use a TemporaryDirectory, write the info.json there, read it, then let the context manager clean up. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>