Variable: claude-code-ide-share-opened-file
claude-code-ide-share-opened-file is a customizable variable defined
in claude-code-ide-mcp.el.
Value
t
Documentation
Non-nil reports the file you are in to Claude even without a region.
The CLI then shows an "In <file>" label in its prompt and attaches an opened-file reminder to the next prompt. When nil, only active regions are reported: a region is shared while it is active and dropped when it is deactivated, and the file itself is never mentioned.
Source Code
;; Defined in /nix/store/yjvbhwl7p6zrbw9xlnni7y4hra8sa3pl-emacs-packages-deps/share/emacs/site-lisp/claude-code-ide-mcp.el
;;; Customization
(defcustom claude-code-ide-share-opened-file t
"Non-nil reports the file you are in to Claude even without a region.
The CLI then shows an \"In <file>\" label in its prompt and attaches an
opened-file reminder to the next prompt. When nil, only active regions
are reported: a region is shared while it is active and dropped when it
is deactivated, and the file itself is never mentioned."
:type 'boolean
:group 'claude-code-ide)