.gms (GAMS) files misclassified as non-text in @include
Description
GAMS files (.gms extension) are silently skipped when used in @include directives in CLAUDE.md. The debug log shows:
Skipping non-text file in @include: /home/.../inst/gams/main.gms
.gms is the standard file extension for GAMS (General Algebraic Modeling System) source files, which are plain text files containing mathematical optimization models. They are widely used in economics, energy modeling, and operations research.
Steps to reproduce
- Create a CLAUDE.md with
@path/to/file.gms - Launch Claude Code with
--debug - Check
/context-- the .gms file is missing - Debug log shows "Skipping non-text file in @include"
Expected behavior
.gms files should be recognized as text and included like .R, .py, or .md files.
Environment
- Claude Code v2.1.86
- Linux
Related
Same class of bug as #18287 (.dat files misclassified as binary). The file type detection is extension-based and the allowlist is missing common scientific/modeling extensions.
Suggestion
Add .gms to the recognized text file extensions list. Ideally, also consider making this configurable or using content-based detection.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗