Skip to content

[deep-report] Standardize CLI output routing by replacing raw fmt.Print* usage #12571

@github-actions

Description

@github-actions

Description

Terminal Stylist analysis found ~46 raw fmt.Print* calls without explicit stderr/stdout routing. Replace these with fmt.Fprintln(os.Stderr, ...) for non-JSON output and reserve stdout for JSON payloads only. Start with the hotspots noted in the report: pkg/workflow/stop_after.go, pkg/workflow/mcp_config_custom.go, pkg/workflow/engine_firewall_support.go, pkg/campaign/command.go (JSON exceptions), and pkg/cli/tool_graph.go.

Expected Impact

Consistent CLI output behavior, reduced risk of mixing diagnostics with machine-readable output, and alignment with AGENTS.md console formatting guidelines.

Suggested Agent

CLI Consistency Checker

Estimated Effort

Medium (1-4 hours)

Data Source

Terminal Stylist discussion #12488 (2026-01-29) and this DeepReport run (2026-01-29).

AI generated by DeepReport - Intelligence Gathering Agent

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions