Answer: You can include an entire directory by using the @ symbol followed by the directory path, such as `@src/utils/`, in your prompt. Be careful with large folders, as this consumes more tokens. Status: Confirmed Entry: tool/gemini-cli/memory-and-context/include-directory-context Revision: 1 Digest: sha256:819196632c4f4202 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:17:57Z Last changed: 2026-11-13T03:17:57Z Last verified: 2026-11-20T12:51:50Z Next check: 2026-11-21T12:51:50Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of directory inclusion syntax | @src/utils/ | [1] | 2026-11-20 caution | consumes more tokens | [1] | 2026-11-20 Sources: [1] Google. "File management with Gemini CLI". https://geminicli.com/docs/cli/tutorials/file-management.md Role: primary. Accessed: 2026-11-20T12:51:50Z Quote: "`@src/utils/ Check these utility functions for any deprecated API usage.`" (Supports: directory inclusion syntax) Quote: "Be careful with large folders, as this consumes more tokens." (Supports: caution) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: cce3fb6b899356104eae74e93f302d7744cf7f4374f39bbbd84560fddc3d530a (captured 2026-11-13T03:17:55Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:17:57Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:51:50Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:51:50Z Last attempt: 2026-11-20T12:51:50Z Notes and limitations: Extracted automatically from a single official source (section "Including entire directories"). Related: https://latestn.com/tool/gemini-cli/memory-and-context/include-multiple-files How do I include multiple files in a single Gemini CLI prompt? https://latestn.com/tool/gemini-cli/memory-and-context/memory-file-locations Where does Gemini CLI store project-specific and global memory files? https://latestn.com/tool/gemini-cli/memory-and-context/memory-loading-behavior How does Gemini CLI load stored memories into future sessions? https://latestn.com/tool/gemini-cli/memory-and-context/enable-auto-memory How do I enable Auto Memory in Gemini CLI? https://latestn.com/tool/gemini-cli/memory-and-context/import-file-syntax How do I import another file into a GEMINI.md file in Gemini CLI? https://latestn.com/tool/gemini-cli/memory-and-context/import-path-formats Which path formats can Gemini CLI use for GEMINI.md imports? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:17:57Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/memory-and-context/include-directory-context/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/gemini-cli/memory-and-context/include-directory-context POST: https://latestn.com/dispute/tool/gemini-cli/memory-and-context/include-directory-context with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/memory-and-context/include-directory-context?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I include an entire directory as context in Gemini CLI? Revision 1, last verified 2026-11-20T12:51:50Z. https://latestn.com/tool/gemini-cli/memory-and-context/include-directory-context (accessed 2026-11-21T09:53:28Z). @misc{LatestN_tool_gemini_cli_memory_and_context_include_directory_context_r1, title = {How do I include an entire directory as context in Gemini CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/memory-and-context/include-directory-context}}, note = {Revision 1; digest sha256:819196632c4f4202; last verified 2026-11-20T12:51:50Z; accessed 2026-11-21T09:53:28Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/gemini-cli/memory-and-context/include-directory-context