You can include the contents of the terminal in your IDE by typing â@Terminalâ.
How to Include Git Diff
You can include all of the changes youâve made to your current branch by typing â@Git Diffâ.
How to Use Other Context Providers
You can see a full list of built-in context providers here.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Gobi","colors":{"primary":"#6b7280","light":"#ffffff","dark":"#000000"},"logo":{"light":"https://mintcdn.com/gourmand/Fufdu9C2YIS7Ue9k/logo/light.svg?fit=max\u0026auto=format\u0026n=Fufdu9C2YIS7Ue9k\u0026q=85\u0026s=75483d9dfd34deabbbdabd8b2ded02d0","dark":"https://mintcdn.com/gourmand/Fufdu9C2YIS7Ue9k/logo/dark.svg?fit=max\u0026auto=format\u0026n=Fufdu9C2YIS7Ue9k\u0026q=85\u0026s=7c8a2a893387392abc6ddce7162b1521","href":"https://gourmand.dev"},"favicon":"/favicon.png","background":{"color":{"dark":"#1a1a1a"}},"navbar":{"links":[{"label":"đ Get Started","href":"https://hub.gourmand.dev/"}],"primary":{"type":"github","href":"https://github.com/gourmand/gobi"}},"footer":{"socials":{"x":"https://twitter.com/gourmand","github":"https://github.com/gourmand/gobi","linkedin":"https://linkedin.com/company/gourmand","discord":"https://discord.gg/TODO"}},"integrations":{"ga4":{"measurementId":"G-M3JWW8N2XQ"},"posthog":{"apiKey":"phc_lBYRoFPHpgi5rYPDxRDtQmLic4ogXsJmJQlpX2wsuFi"}},"banner":{"content":"Gobi CLI v1.4.49 is live đ Learn how you can [leverage the CLI with our MCP Cookbooks](/guides/overview#mcp-integration-cookbooks)"},"contextual":{"options":["copy","view"]},"navigation":{"global":{"anchors":[{"anchor":"About Us","icon":"book-open","href":"https://gourmand.dev/about-us"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/TODO"},{"anchor":"Blog","icon":"newspaper","href":"https://gourmand.dev/blog"},{"anchor":"Release Notes","icon":"bullhorn","href":"https://changelog.gourmand.dev/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gourmand","hasAudioNarration":false,"actualSubdomain":"gourmand","customDomains":["docs.gourmand.dev"],"gitSource":{"type":"github","owner":"gourmand","repo":"gobi","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae9404573a0191ccbcb56e6:success","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Customize","count":80},{"language":"default","tag":"Guides","count":39},{"language":"default","tag":"Documentation","count":38},{"language":"default","tag":"Hub","count":26},{"language":"default","tag":"IDE Extensions","count":24},{"language":"default","tag":"Model Providers","count":23},{"language":"default","tag":"More Providers","count":11},{"language":"default","tag":"Popular Providers","count":11},{"language":"default","tag":"Cookbooks","count":9},{"language":"default","tag":"Deep Dives","count":8}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"html{scroll-behavior:smooth;scroll-padding-top:80px}h1[id],h2[id],h3[id],h4[id],h5[id],h6[id]{scroll-margin-top:80px}:target{animation:highlight 2s ease-out}@keyframes highlight{0%{background-color:rgba(255, 235, 59, 0.3)}100%{background-color:transparent}}"}]}
{"page":{"pagePath":"ide-extensions/chat/context-selection","slug":"/ide-extensions/chat/context-selection","pageMetadata":{"title":"Chat Mode Context Selection","sidebarTitle":"Context Selection","description":"Learn how Gobi selects relevant context for your chat requests, including text input, highlighted code, active files.","href":"/ide-extensions/chat/context-selection"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Learn how Gobi selects relevant context for your chat requests, including text input, highlighted code, active files.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,p:`p`,..._provideComponents(),...props.components},{Heading}=_components;if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`how-to-use-text-input`,children:`How to Use Text Input`}),`\n`,_jsx(_components.p,{children:`Typing a question or instructions into the input box is the only required context.`}),`\n`,_jsx(Heading,{level:`2`,id:`how-to-include-highlighted-code`,children:`How to Include Highlighted Code`}),`\n`,_jsx(_components.p,{children:`The highlighted code youâve selected by pressing cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains) will be included in your prompt.`}),`\n`,_jsx(Heading,{level:`2`,id:`how-to-include-the-active-file`,children:`How to Include the Active File`}),`\n`,_jsx(_components.p,{children:`You can include the currently open file as context by pressing opt/alt + enter when you send your request.`}),`\n`,_jsx(Heading,{level:`2`,id:`how-to-include-a-specific-file`,children:`How to Include a Specific File`}),`\n`,_jsx(_components.p,{children:`You can include a specific file in your current workspace by typing â@Filesâ and selecting the file.`}),`\n`,_jsx(Heading,{level:`2`,id:`codebase-search`,children:`Codebase Search`}),`\n`,_jsxs(_components.p,{children:[`For better codebase awareness, see our `,_jsx(_components.a,{href:`/guides/codebase-documentation-awareness`,children:`guide on making agent mode aware of codebases and documentation`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-to-include-documentation-sites`,children:`How to Include Documentation Sites`}),`\n`,_jsxs(_components.p,{children:[`For better documentation awareness, see our `,_jsx(_components.a,{href:`/guides/codebase-documentation-awareness`,children:`guide on making agent mode aware of codebases and documentation`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-to-include-terminal-contents`,children:`How to Include Terminal Contents`}),`\n`,_jsx(_components.p,{children:`You can include the contents of the terminal in your IDE by typing â@Terminalâ.`}),`\n`,_jsx(Heading,{level:`2`,id:`how-to-include-git-diff`,children:`How to Include Git Diff`}),`\n`,_jsx(_components.p,{children:`You can include all of the changes youâve made to your current branch by typing â@Git Diffâ.`}),`\n`,_jsx(Heading,{level:`2`,id:`how-to-use-other-context-providers`,children:`How to Use Other Context Providers`}),`\n`,_jsxs(_components.p,{children:[`You can see a full list of built-in context providers `,_jsx(_components.a,{href:`/customize/deep-dives/custom-providers`,children:`here`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Chat Mode Context Selection","sidebarTitle":"Context Selection","description":"Learn how Gobi selects relevant context for your chat requests, including text input, highlighted code, active files.","href":"/ide-extensions/chat/context-selection"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"How to Use Text Input","slug":"how-to-use-text-input","depth":2,"children":[]},{"title":"How to Include Highlighted Code","slug":"how-to-include-highlighted-code","depth":2,"children":[]},{"title":"How to Include the Active File","slug":"how-to-include-the-active-file","depth":2,"children":[]},{"title":"How to Include a Specific File","slug":"how-to-include-a-specific-file","depth":2,"children":[]},{"title":"Codebase Search","slug":"codebase-search","depth":2,"children":[]},{"title":"How to Include Documentation Sites","slug":"how-to-include-documentation-sites","depth":2,"children":[]},{"title":"How to Include Terminal Contents","slug":"how-to-include-terminal-contents","depth":2,"children":[]},{"title":"How to Include Git Diff","slug":"how-to-include-git-diff","depth":2,"children":[]},{"title":"How to Use Other Context Providers","slug":"how-to-use-other-context-providers","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/gourmand/be77c1dbc9ca84c2/c15t-cookie-banner.js"],"subdomain":"gourmand","siteName":"Gobi","title":"Chat Mode Context Selection - Gobi","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"ide-extensions/chat/context-selection.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Learn how Gobi selects relevant context for your chat requests, including text input, highlighted code, active files.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Gobi\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gourmand/qqUux6uIb1VEqf7R/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/gourmand/qqUux6uIb1VEqf7R/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gourmand/qqUux6uIb1VEqf7R/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gourmand/qqUux6uIb1VEqf7R/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gourmand/qqUux6uIb1VEqf7R/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gourmand/qqUux6uIb1VEqf7R/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gourmand/qqUux6uIb1VEqf7R/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gourmand/qqUux6uIb1VEqf7R/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gourmand/qqUux6uIb1VEqf7R/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Chat Mode Context Selection - Gobi\">\u003cmeta data-mint-head property=\"og:description\" content=\"Learn how Gobi selects relevant context for your chat requests, including text input, highlighted code, active files.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Gobi\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gourmand.dev/ide-extensions/chat/context-selection\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gourmand.mintlify.site/_mintlify/api/og/v2?division=Chat\u0026amp;title=Chat+Mode+Context+Selection\u0026amp;description=Learn+how+Gobi+selects+relevant+context+for+your+chat+requests%2C+including+text+input%2C+highlighted+code%2C+active+files.\u0026amp;theme=179f6f137887ec7cc125a15c\u0026amp;signature=c38403d1a6fb861b26dd42bb27c1999c2fa4ba02cad2e097e9a3653d4529cdc1\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Chat Mode Context Selection - Gobi\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Learn how Gobi selects relevant context for your chat requests, including text input, highlighted code, active files.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gourmand.mintlify.site/_mintlify/api/og/v2?division=Chat\u0026amp;title=Chat+Mode+Context+Selection\u0026amp;description=Learn+how+Gobi+selects+relevant+context+for+your+chat+requests%2C+including+text+input%2C+highlighted+code%2C+active+files.\u0026amp;theme=179f6f137887ec7cc125a15c\u0026amp;signature=c38403d1a6fb861b26dd42bb27c1999c2fa4ba02cad2e097e9a3653d4529cdc1\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/gourmand/qqUux6uIb1VEqf7R/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Gobi\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6b7280\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gourmand.dev/ide-extensions/chat/context-selection\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ide-extensions/chat/context-selection.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gourmand.dev/#organization\",\"name\":\"Gobi\",\"url\":\"https://docs.gourmand.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/gourmand/Fufdu9C2YIS7Ue9k/logo/light.svg?fit=max\u0026auto=format\u0026n=Fufdu9C2YIS7Ue9k\u0026q=85\u0026s=75483d9dfd34deabbbdabd8b2ded02d0\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gourmand.dev#website\",\"name\":\"Gobi\",\"url\":\"https://docs.gourmand.dev\",\"publisher\":{\"@id\":\"https://docs.gourmand.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gourmand.dev/ide-extensions/chat/context-selection#webpage\",\"url\":\"https://docs.gourmand.dev/ide-extensions/chat/context-selection\",\"name\":\"Chat Mode Context Selection\",\"description\":\"Learn how Gobi selects relevant context for your chat requests, including text input, highlighted code, active files.\",\"isPartOf\":{\"@id\":\"https://docs.gourmand.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gourmand.dev/ide-extensions/chat/context-selection#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gourmand.dev/ide-extensions/chat/context-selection#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"IDE Extensions\",\"item\":\"https://docs.gourmand.dev/ide-extensions/install\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Chat\",\"item\":\"https://docs.gourmand.dev/ide-extensions/chat/quick-start\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Chat Mode Context Selection\",\"item\":\"https://docs.gourmand.dev/ide-extensions/chat/context-selection\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.gourmand.dev/ide-extensions/chat/context-selection#article\",\"headline\":\"Chat Mode Context Selection\",\"name\":\"Chat Mode Context Selection\",\"description\":\"Learn how Gobi selects relevant context for your chat requests, including text input, highlighted code, active files.\",\"url\":\"https://docs.gourmand.dev/ide-extensions/chat/context-selection\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gourmand.dev/ide-extensions/chat/context-selection#webpage\"},\"publisher\":{\"@id\":\"https://docs.gourmand.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gourmand.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Gobi\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Gobi\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/ide-extensions/chat/context-selection.md","siteName":"Gobi","nav":{"global":{"anchors":[{"anchor":"About Us","icon":"book-open","href":"https://gourmand.dev/about-us"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/TODO"},{"anchor":"Blog","icon":"newspaper","href":"https://gourmand.dev/blog"},{"anchor":"Release Notes","icon":"bullhorn","href":"https://changelog.gourmand.dev/"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Getting Started","icon":"rocket-launch","pages":[{"title":"Welcome to Gobi","icon":"book-open","href":""}]},{"group":"CLI","icon":"terminal","pages":[{"title":"Gobi CLI (cn) Overview","sidebarTitle":"Overview","href":"/cli/overview"},{"title":"Install Gobi CLI","sidebarTitle":"Install","href":"/cli/install"},{"title":"Gobi CLI Quick Start","sidebarTitle":"Quick Start","href":"/cli/quick-start"},{"title":"Guides","url":"/guides/overview#mcp-integration-cookbooks","href":"/cli/guides"}]},{"group":"IDE Extensions","icon":"star","expanded":false,"pages":[{"title":"Install","href":"/ide-extensions/install"},{"title":"Quick Start Tutorial","sidebarTitle":"Quick Start","href":"/ide-extensions/quick-start"},{"group":"Agent","icon":"robot","pages":[{"title":"Quick Start","href":"/ide-extensions/agent/quick-start"},{"title":"How Agent Mode Works","href":"/ide-extensions/agent/how-it-works"},{"title":"Plan Mode in Gobi â Safe, Read-Only Code Exploration","sidebarTitle":"Plan Mode","href":"/ide-extensions/agent/plan-mode"},{"title":"Model Setup for Agent Mode","sidebarTitle":"Model Setup","href":"/ide-extensions/agent/model-setup"},{"title":"How to Customize Agent Mode","sidebarTitle":"Customize Agent Mode","href":"/ide-extensions/agent/how-to-customize"},{"title":"Context Selection","href":"/ide-extensions/agent/context-selection"}]},{"group":"Chat","icon":"messages","pages":[{"title":"Chat Mode Quick Start","sidebarTitle":"Quick Start","href":"/ide-extensions/chat/quick-start"},{"title":"How Chat Works","href":"/ide-extensions/chat/how-it-works"},{"title":"Recommended Models for Chat in Gobi","sidebarTitle":"Recommended Chat Models","href":"/ide-extensions/chat/model-setup"},{"title":"How to Customize Chat","description":"Learn how to customize the Chat feature in Gobi to better suit your workflow.","href":"/ide-extensions/chat/how-to-customize"},{"title":"Chat Mode Context Selection","sidebarTitle":"Context Selection","href":"/ide-extensions/chat/context-selection"}]},{"group":"Autocomplete","icon":"sparkles","pages":[{"title":"Quick Start with Gobi Autocomplete","description":"Learn how to quickly start using Gobi's AI autocomplete in your IDE, including enabling inline code suggestions and keyboard shortcuts for accepting, rejecting, or partially accepting completions.","sidebarTitle":"Autocomplete Quick Start","href":"/ide-extensions/autocomplete/quick-start"},{"title":"How Autocomplete Works in Gobi","sidebarTitle":"How Autocomplete Works","href":"/ide-extensions/autocomplete/how-it-works"},{"title":"Recommended Models for Autocomplete in Gobi","sidebarTitle":"Recommended Autocomplete Models","href":"/ide-extensions/autocomplete/model-setup"},{"title":"âCustomize Autocomplete Settings in Gobiâ","href":"/ide-extensions/autocomplete/how-to-customize"},{"title":"Context Selection","href":"/ide-extensions/autocomplete/context-selection"},{"title":"Next Edit","href":"/ide-extensions/autocomplete/next-edit"}]},{"group":"Edit","icon":"pen-to-square","pages":[{"title":"Quick Start with Gobi Edit","href":"/ide-extensions/edit/quick-start"},{"title":"How Edit Works","href":"/ide-extensions/edit/how-it-works"},{"title":"How to Set Up Edit Models","sidebarTitle":"Recommended Edit Models","href":"/ide-extensions/edit/model-setup"},{"title":"How to Customize Edit Functionality","sidebarTitle":"Customize Edit","href":"/ide-extensions/edit/how-to-customize"},{"title":"Context Selection in Edit Mode","sidebarTitle":"Context Selection","href":"/ide-extensions/edit/context-selection"}]}]},{"group":"Customization","icon":"sliders","pages":[{"title":"Customization Overview","href":"/customization/overview"},{"title":"Models","href":"/customization/models"},{"title":"MCP servers","href":"/customization/mcp-tools"},{"title":"Rules","href":"/customization/rules"},{"title":"Prompts","href":"/customization/prompts"},{"title":"Settings","href":"/customization/settings"}]},{"group":"Help","icon":"book-open","pages":[{"title":"FAQs","href":"/faqs"},{"title":"Troubleshooting","href":"/troubleshooting"},{"title":"Contributing to Gobi Documentation","sidebarTitle":"Docs Contributions","href":"/CONTRIBUTING"}]}]},{"tab":"Customize","pages":[{"title":"Customize","href":"/customize/overview"}]},{"tab":"Hub","pages":[{"title":"Hub","href":"/hub/introduction"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/overview"}]},{"tab":"Reference","pages":[{"title":"Reference","href":"/reference"}]}]},"basePath":"","title":"Chat Mode Context Selection - Gobi","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["10e4515597"],"chunks":["BannerMarkdown-CVKwuln2.js","dist-CXMB3QQU.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}