forgecode icon indicating copy to clipboard operation
forgecode copied to clipboard

✨ Feature Request: Add `--debug` flag (`forge --debug`) for request logging

Open dttran-glo opened this issue 7 months ago • 1 comments

Summary

Currently, to capture raw requests for debugging (e.g. when triaging errors like #2874), users are asked to manually edit .forge.toml:

debug_requests = "request.jsonl"

as suggested in this comment.

Proposal

Add a top-level CLI flag so users can enable request logging without editing config files:

forge --debug

Behavior expect same as claude --debug

dttran-glo avatar Apr 20 '26 16:04 dttran-glo

FORGE_DEBUG_REQUESTS="requests.jsonl" forge

Is already supported.

tusharmath avatar Apr 21 '26 11:04 tusharmath