How to Make Agent mode Aware of Codebases and Documentation
Learn how to give your Agent mode access to codebases and documentation for more context-aware assistance
Agent mode works best when it understands the context of your project. This guide shows you how to give agent mode access to codebases and documentation, making it more helpful and accurate.
Make Agent Mode Aware of Your Open Codebase
When agent mode understands your current codebase, it can provide more relevant suggestions and answers.
Let Agent Mode Explore the Codebase Using Tools
Agent mode can use built-in tools to navigate and understand your code:
File exploration tools: The agent can read files, search for patterns, and understand project structure
Code search: Use search to find relevant code snippets
Git integration: Access commit history and understand code evolution
Create Rules to Help the Agent Understand Your Codebase
Rules guide agent mode’s behavior and understanding. Place markdown files in .continue/rules in your project to provide context:
# Project ArchitectureThis is a React application with:- Components in `/src/components`- API routes in `/src/api`- State management using Redux in `/src/store`## Coding Standards- Use TypeScript for all new files- Follow the existing naming conventions- Write tests for all new features
Place rules files at different levels of your project hierarchy to scope when
they trigger
Sometimes you need agent mode to understand code beyond your current project.
Public Codebases
For open-source projects and public repositories, you have several options:
Rules with Hyperlinks
Create rules that point to external codebases:
# External DependenciesOur authentication system is based on:- [Auth.js documentation](https://authjs.dev/)- [Example implementation](https://github.com/nextauthjs/next-auth-example)When implementing auth features, reference these patterns.
GitHub and GitLab CLIs
Enable gh or glab CLI access for agent mode to interact with repositories.Add rules to guide CLI usage:
# Repository AccessYou can use the `gh` CLI to:- Search for issues: `gh issue list --repo owner/repo`- View pull requests: `gh pr list --repo owner/repo`- Clone repositories: `gh repo clone owner/repo`
DeepWiki MCP
DeepWiki MCP lets agent mode explore any public GitHub repository.Once configured, agent mode can explore repositories like:
“Explore the React repository structure”
“Find how authentication is implemented in NextAuth.js”
Internal Codebases
For private and internal repositories, you need additional setup:
Custom MCP Servers
Create an MCP server that has access to your internal repositories.
Custom Code RAG
For faster retrieval and lower costs with very large internal codebases, consider implementing a custom code RAG system. This is an advanced approach that requires more setup but can provide performance benefits at scale.
Make Agent Mode Aware of Relevant Documentation
Documentation provides crucial context for agent mode to understand APIs, frameworks, and best practices.
Context7 MCP enables agent mode to search and retrieve information from public documentation:Agent mode can then answer questions like:
“How do I use React hooks?”
“What’s the syntax for Tailwind CSS animations?”
Internal Documentation
For private documentation and wikis:
Rules with Internal Links
Create rules that reference internal resources:
# Internal DocumentationOur team documentation is available at:- API Documentation: https://internal.docs/api- Architecture Guide: https://internal.docs/architecture- Deployment Process: https://internal.docs/deploymentAlways follow our internal standards when suggesting code.
Custom MCP Servers for Docs
Create an MCP server that accesses your internal documentation.
Migrating from Deprecated Context Providers
If you were previously using the @Codebase or @Docs context providers, here’s how to migrate to the new approach:
Migrating from @Codebase
The @Codebase context provider has been deprecated. Instead:
Use built-in tools: Agent mode can now use file exploration and search tools to understand your codebase
Add rules: Create .continue/rules files to provide context about your project structure
Use MCP servers: For external codebases, use DeepWiki MCP or custom MCP servers
Migrating from @Docs
The @Docs context provider has been deprecated. Instead:
Use Context7 MCP: For public documentation, Context7 MCP provides similar functionality
Add documentation links in rules: Create rules that reference documentation URLs
Use custom MCP servers: For internal documentation, create an MCP server with access to your docs
The new approach provides better integration with Continue’s Agent mode features and more intelligent context selection.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Continue","colors":{"primary":"#6b7280","light":"#ffffff","dark":"#000000"},"logo":{"light":"https://mintcdn.com/continue-docs/yLvvok3t5fsANVuc/logo/light.svg?fit=max\u0026auto=format\u0026n=yLvvok3t5fsANVuc\u0026q=85\u0026s=d29138cded83272c3abce7d14b9babbf","dark":"https://mintcdn.com/continue-docs/yLvvok3t5fsANVuc/logo/dark.svg?fit=max\u0026auto=format\u0026n=yLvvok3t5fsANVuc\u0026q=85\u0026s=1b6ad23e7547d7e23ca62b5158cbd769","href":"https://docs.continue.dev"},"favicon":"https://mintcdn.com/continue-docs/MAZs5HfWToDNrM6Q/favicon.png?fit=max\u0026auto=format\u0026n=MAZs5HfWToDNrM6Q\u0026q=85\u0026s=5f9adbe1ffc0c30befe85270f63e3240","background":{"color":{"dark":"#1a1a1a"}},"navbar":{"primary":{"type":"github","href":"https://github.com/continuedev/continue"}},"footer":{"socials":{"x":"https://twitter.com/continuedev","github":"https://github.com/continuedev/continue","linkedin":"https://linkedin.com/company/continuedev","youtube":"https://www.youtube.com/@continuedev"}},"integrations":{"ga4":{"measurementId":"G-M3JWW8N2XQ"}},"contextual":{"options":["copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"continue-docs","hasAudioNarration":false,"actualSubdomain":"continue-docs","customDomains":[],"gitSource":{"type":"github","owner":"continuedev","repo":"continue","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae92aa358f344c3168b47de:success","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"IDE Extensions","count":87},{"language":"default","tag":"Customize","count":49},{"language":"default","tag":"Model Providers","count":29},{"language":"default","tag":"Features","count":22},{"language":"default","tag":"More Providers","count":16},{"language":"default","tag":"Popular Providers","count":12},{"language":"default","tag":"CLI","count":10},{"language":"default","tag":"Guides","count":9},{"language":"default","tag":"Deep Dives","count":8},{"language":"default","tag":"Model Roles","count":7}]},"assistantConfig":{},"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":"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":"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":"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":"turbopuffer-dual-write","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":"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}],"starterQuestions":[],"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}}.dark [role=\"dialog\"].bg-background{background-color:#1a1a1a;border-color:#333}.dark .bg-popover{background-color:#1a1a1a}.dark .text-popover-foreground{color:#e5e5e5}.dark [cmdk-item]{color:#e5e5e5}.dark [cmdk-item][data-selected=\"true\"]{background-color:#333}.dark [cmdk-input]{color:#e5e5e5}.dark [cmdk-separator]{background-color:#333}.dark [cmdk-group-heading]{color:#999}"}]}
{"page":{"pagePath":"guides/codebase-documentation-awareness","slug":"/guides/codebase-documentation-awareness","pageMetadata":{"title":"How to Make Agent mode Aware of Codebases and Documentation","description":"Learn how to give your Agent mode access to codebases and documentation for more context-aware assistance","keywords":["agent","codebase","documentation","MCP","context","RAG","tools"],"sidebarTitle":"Codebase and Documentation Awareness","href":"/guides/codebase-documentation-awareness"},"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 to give your Agent mode access to codebases and documentation for more context-aware assistance\"\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`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Agent mode works best when it understands the context of your project. This guide shows you how to give agent mode access to codebases and documentation, making it more helpful and accurate.`}),`\n`,_jsx(Heading,{level:`2`,id:`make-agent-mode-aware-of-your-open-codebase`,children:`Make Agent Mode Aware of Your Open Codebase`}),`\n`,_jsx(_components.p,{children:`When agent mode understands your current codebase, it can provide more relevant suggestions and answers.`}),`\n`,_jsx(Heading,{level:`3`,id:`let-agent-mode-explore-the-codebase-using-tools`,children:`Let Agent Mode Explore the Codebase Using Tools`}),`\n`,_jsx(_components.p,{children:`Agent mode can use built-in tools to navigate and understand your code:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`File exploration tools`}),`: The agent can read files, search for patterns, and understand project structure`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Code search`}),`: Use search to find relevant code snippets`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Git integration`}),`: Access commit history and understand code evolution`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`create-rules-to-help-the-agent-understand-your-codebase`,children:`Create Rules to Help the Agent Understand Your Codebase`}),`\n`,_jsxs(_components.p,{children:[`Rules guide agent mode’s behavior and understanding. Place markdown files in `,_jsx(_components.code,{children:`.continue/rules`}),` in your project to provide context:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`markdown`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`markdown`,children:_jsxs(_components.code,{language:`markdown`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#569CD6`,\"--shiki-dark-font-weight\":`bold`},children:`# Project Architecture`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`This is a React application with:`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#6796E6`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Components in `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:\"`/src/components`\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#6796E6`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` API routes in `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:\"`/src/api`\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#6796E6`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` State management using Redux in `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:\"`/src/store`\"})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#569CD6`,\"--shiki-dark-font-weight\":`bold`},children:`## Coding Standards`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#6796E6`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Use TypeScript for all new files`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#6796E6`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Follow the existing naming conventions`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#6796E6`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Write tests for all new features`})]}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Place rules files at different levels of your project hierarchy to scope when\nthey trigger`})}),`\n`,_jsxs(_components.p,{children:[`Learn more about `,_jsx(_components.a,{href:`/customize/deep-dives/rules`,children:`rules configuration`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`make-agent-mode-aware-of-other-codebases`,children:`Make Agent Mode Aware of Other Codebases`}),`\n`,_jsx(_components.p,{children:`Sometimes you need agent mode to understand code beyond your current project.`}),`\n`,_jsx(Heading,{level:`3`,id:`public-codebases`,children:`Public Codebases`}),`\n`,_jsx(_components.p,{children:`For open-source projects and public repositories, you have several options:`}),`\n`,_jsx(Heading,{level:`4`,id:`rules-with-hyperlinks`,children:`Rules with Hyperlinks`}),`\n`,_jsx(_components.p,{children:`Create rules that point to external codebases:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`markdown`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`markdown`,children:_jsxs(_components.code,{language:`markdown`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#569CD6`,\"--shiki-dark-font-weight\":`bold`},children:`# External Dependencies`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Our authentication system is based on:`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#6796E6`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Auth.js documentation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`](`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-light-text-decoration\":`underline`,\"--shiki-dark\":`#D4D4D4`,\"--shiki-dark-text-decoration\":`underline`},children:`https://authjs.dev/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#6796E6`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Example implementation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`](`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-light-text-decoration\":`underline`,\"--shiki-dark\":`#D4D4D4`,\"--shiki-dark-text-decoration\":`underline`},children:`https://github.com/nextauthjs/next-auth-example`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`When implementing auth features, reference these patterns.`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`github-and-gitlab-clis`,children:`GitHub and GitLab CLIs`}),`\n`,_jsxs(_components.p,{children:[`Enable `,_jsx(_components.code,{children:`gh`}),` or `,_jsx(_components.code,{children:`glab`}),` CLI access for agent mode to interact with repositories.`]}),`\n`,_jsx(_components.p,{children:`Add rules to guide CLI usage:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`markdown`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`markdown`,children:_jsxs(_components.code,{language:`markdown`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#569CD6`,\"--shiki-dark-font-weight\":`bold`},children:`# Repository Access`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`You can use the `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:\"`gh`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` CLI to:`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#6796E6`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Search for issues: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:\"`gh issue list --repo owner/repo`\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#6796E6`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` View pull requests: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:\"`gh pr list --repo owner/repo`\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#6796E6`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Clone repositories: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:\"`gh repo clone owner/repo`\"})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`deepwiki-mcp`,children:`DeepWiki MCP`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://continue.dev/deepwiki/deepwiki-mcp`,children:`DeepWiki MCP`}),` lets agent mode explore any public GitHub repository.`]}),`\n`,_jsx(_components.p,{children:`Once configured, agent mode can explore repositories like:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`“Explore the React repository structure”`}),`\n`,_jsx(_components.li,{children:`“Find how authentication is implemented in NextAuth.js”`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`internal-codebases`,children:`Internal Codebases`}),`\n`,_jsx(_components.p,{children:`For private and internal repositories, you need additional setup:`}),`\n`,_jsx(Heading,{level:`4`,id:`custom-mcp-servers`,children:`Custom MCP Servers`}),`\n`,_jsx(_components.p,{children:`Create an MCP server that has access to your internal repositories.`}),`\n`,_jsx(Heading,{level:`4`,id:`custom-code-rag`,children:`Custom Code RAG`}),`\n`,_jsxs(_components.p,{children:[`For faster retrieval and lower costs with very large internal codebases, consider implementing a `,_jsx(_components.a,{href:`/guides/custom-code-rag`,children:`custom code RAG`}),` system. This is an advanced approach that requires more setup but can provide performance benefits at scale.`]}),`\n`,_jsx(Heading,{level:`2`,id:`make-agent-mode-aware-of-relevant-documentation`,children:`Make Agent Mode Aware of Relevant Documentation`}),`\n`,_jsx(_components.p,{children:`Documentation provides crucial context for agent mode to understand APIs, frameworks, and best practices.`}),`\n`,_jsx(Heading,{level:`3`,id:`public-documentation`,children:`Public Documentation`}),`\n`,_jsx(Heading,{level:`4`,id:`rules-with-documentation-links`,children:`Rules with Documentation Links`}),`\n`,_jsx(_components.p,{children:`Guide agent mode to relevant documentation:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`markdown`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`markdown`,children:_jsxs(_components.code,{language:`markdown`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#569CD6`,\"--shiki-dark-font-weight\":`bold`},children:`# Documentation Resources`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`For framework-specific questions, refer to:`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#6796E6`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` React: https://react.dev/reference/react`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#6796E6`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Next.js: https://nextjs.org/docs`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#6796E6`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Tailwind CSS: https://tailwindcss.com/docs`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Always cite documentation when explaining concepts.`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`context7-mcp`,children:`Context7 MCP`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://continue.dev/upstash/context7-mcp`,children:`Context7 MCP`}),` enables agent mode to search and retrieve information from public documentation:`]}),`\n`,_jsx(_components.p,{children:`Agent mode can then answer questions like:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`“How do I use React hooks?”`}),`\n`,_jsx(_components.li,{children:`“What’s the syntax for Tailwind CSS animations?”`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`internal-documentation`,children:`Internal Documentation`}),`\n`,_jsx(_components.p,{children:`For private documentation and wikis:`}),`\n`,_jsx(Heading,{level:`4`,id:`rules-with-internal-links`,children:`Rules with Internal Links`}),`\n`,_jsx(_components.p,{children:`Create rules that reference internal resources:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`markdown`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`markdown`,children:_jsxs(_components.code,{language:`markdown`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#569CD6`,\"--shiki-dark-font-weight\":`bold`},children:`# Internal Documentation`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Our team documentation is available at:`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#6796E6`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` API Documentation: https://internal.docs/api`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#6796E6`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Architecture Guide: https://internal.docs/architecture`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#6796E6`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Deployment Process: https://internal.docs/deployment`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Always follow our internal standards when suggesting code.`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`custom-mcp-servers-for-docs`,children:`Custom MCP Servers for Docs`}),`\n`,_jsx(_components.p,{children:`Create an MCP server that accesses your internal documentation.`}),`\n`,_jsx(Heading,{level:`2`,id:`migrating-from-deprecated-context-providers`,children:`Migrating from Deprecated Context Providers`}),`\n`,_jsxs(_components.p,{children:[`If you were previously using the `,_jsx(_components.code,{children:`@Codebase`}),` or `,_jsx(_components.code,{children:`@Docs`}),` context providers, here’s how to migrate to the new approach:`]}),`\n`,_jsx(Heading,{level:`3`,id:`migrating-from-@codebase`,children:`Migrating from @Codebase`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`@Codebase`}),` context provider has been deprecated. Instead:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Use built-in tools`}),`: Agent mode can now use file exploration and search tools to understand your codebase`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Add rules`}),`: Create `,_jsx(_components.code,{children:`.continue/rules`}),` files to provide context about your project structure`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Use MCP servers`}),`: For external codebases, use DeepWiki MCP or custom MCP servers`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`migrating-from-@docs`,children:`Migrating from @Docs`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`@Docs`}),` context provider has been deprecated. Instead:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Use Context7 MCP`}),`: For public documentation, Context7 MCP provides similar functionality`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Add documentation links in rules`}),`: Create rules that reference documentation URLs`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Use custom MCP servers`}),`: For internal documentation, create an MCP server with access to your docs`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`The new approach provides better integration with Continue’s Agent mode features and more intelligent context selection.`}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next Steps`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Learn more about `,_jsx(_components.a,{href:`/reference/continue-mcp`,children:`MCP servers`})]}),`\n`,_jsxs(_components.li,{children:[`Explore `,_jsx(_components.a,{href:`/customize/deep-dives/rules`,children:`rules configuration`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Set up `,_jsx(_components.a,{href:`/guides/understanding-configs`,children:`other custom configurations`}),` with specific knowledge domains`]}),`\n`]}),`\n`]}),`\n`]})]})}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":"How to Make Agent mode Aware of Codebases and Documentation","description":"Learn how to give your Agent mode access to codebases and documentation for more context-aware assistance","keywords":["agent","codebase","documentation","MCP","context","RAG","tools"],"sidebarTitle":"Codebase and Documentation Awareness","href":"/guides/codebase-documentation-awareness"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Make Agent Mode Aware of Your Open Codebase","slug":"make-agent-mode-aware-of-your-open-codebase","depth":2,"children":[{"title":"Let Agent Mode Explore the Codebase Using Tools","slug":"let-agent-mode-explore-the-codebase-using-tools","depth":3,"children":[]},{"title":"Create Rules to Help the Agent Understand Your Codebase","slug":"create-rules-to-help-the-agent-understand-your-codebase","depth":3,"children":[]}]},{"title":"Make Agent Mode Aware of Other Codebases","slug":"make-agent-mode-aware-of-other-codebases","depth":2,"children":[{"title":"Public Codebases","slug":"public-codebases","depth":3,"children":[]},{"title":"Rules with Hyperlinks","slug":"rules-with-hyperlinks","depth":4,"children":[]},{"title":"GitHub and GitLab CLIs","slug":"github-and-gitlab-clis","depth":4,"children":[]},{"title":"DeepWiki MCP","slug":"deepwiki-mcp","depth":4,"children":[]},{"title":"Internal Codebases","slug":"internal-codebases","depth":3,"children":[]},{"title":"Custom MCP Servers","slug":"custom-mcp-servers","depth":4,"children":[]},{"title":"Custom Code RAG","slug":"custom-code-rag","depth":4,"children":[]}]},{"title":"Make Agent Mode Aware of Relevant Documentation","slug":"make-agent-mode-aware-of-relevant-documentation","depth":2,"children":[{"title":"Public Documentation","slug":"public-documentation","depth":3,"children":[]},{"title":"Rules with Documentation Links","slug":"rules-with-documentation-links","depth":4,"children":[]},{"title":"Context7 MCP","slug":"context7-mcp","depth":4,"children":[]},{"title":"Internal Documentation","slug":"internal-documentation","depth":3,"children":[]},{"title":"Rules with Internal Links","slug":"rules-with-internal-links","depth":4,"children":[]},{"title":"Custom MCP Servers for Docs","slug":"custom-mcp-servers-for-docs","depth":4,"children":[]}]},{"title":"Migrating from Deprecated Context Providers","slug":"migrating-from-deprecated-context-providers","depth":2,"children":[{"title":"Migrating from @Codebase","slug":"migrating-from-@codebase","depth":3,"children":[]},{"title":"Migrating from @Docs","slug":"migrating-from-@docs","depth":3,"children":[]}]},{"title":"Next Steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/continue-docs/aa273768f340ac0a/c15t-cookie-banner.js","/_mintlify/custom/continue-docs/ab03fe239db5493d/reo-tracking.js"],"subdomain":"continue-docs","siteName":"Continue","title":"How to Make Agent mode Aware of Codebases and Documentation - Continue","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-31T01:02:33.517Z","originalFileLocation":"guides/codebase-documentation-awareness.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 to give your Agent mode access to codebases and documentation for more context-aware assistance\">\u003cmeta data-mint-head name=\"application-name\" content=\"Continue\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/continue-docs/Hq0qDFgWbWVSlDpO/_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/continue-docs/Hq0qDFgWbWVSlDpO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/continue-docs/Hq0qDFgWbWVSlDpO/_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/continue-docs/Hq0qDFgWbWVSlDpO/_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/continue-docs/Hq0qDFgWbWVSlDpO/_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/continue-docs/Hq0qDFgWbWVSlDpO/_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/continue-docs/Hq0qDFgWbWVSlDpO/_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/continue-docs/Hq0qDFgWbWVSlDpO/_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/continue-docs/Hq0qDFgWbWVSlDpO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"How to Make Agent mode Aware of Codebases and Documentation - Continue\">\u003cmeta data-mint-head property=\"og:description\" content=\"Learn how to give your Agent mode access to codebases and documentation for more context-aware assistance\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Continue\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://continue-docs.mintlify.app/guides/codebase-documentation-awareness\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://continue-docs.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=How+to+Make+Agent+mode+Aware+of+Codebases+and+Documentation\u0026amp;description=Learn+how+to+give+your+Agent+mode+access+to+codebases+and+documentation+for+more+context-aware+assistance\u0026amp;theme=28e005016caf216e859d159b\u0026amp;signature=1fbd7651fa26e0c87c08d4e3b504ad6e6ec0a4d19a16252e722617bb3bd37cbe\">\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=\"How to Make Agent mode Aware of Codebases and Documentation - Continue\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Learn how to give your Agent mode access to codebases and documentation for more context-aware assistance\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://continue-docs.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=How+to+Make+Agent+mode+Aware+of+Codebases+and+Documentation\u0026amp;description=Learn+how+to+give+your+Agent+mode+access+to+codebases+and+documentation+for+more+context-aware+assistance\u0026amp;theme=28e005016caf216e859d159b\u0026amp;signature=1fbd7651fa26e0c87c08d4e3b504ad6e6ec0a4d19a16252e722617bb3bd37cbe\">\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/continue-docs/Hq0qDFgWbWVSlDpO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Continue\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6b7280\">\u003clink data-mint-head rel=\"canonical\" href=\"https://continue-docs.mintlify.app/guides/codebase-documentation-awareness\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/codebase-documentation-awareness.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://continue-docs.mintlify.app/#organization\",\"name\":\"Continue\",\"url\":\"https://continue-docs.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/continue-docs/yLvvok3t5fsANVuc/logo/light.svg?fit=max\u0026auto=format\u0026n=yLvvok3t5fsANVuc\u0026q=85\u0026s=d29138cded83272c3abce7d14b9babbf\"}},{\"@type\":\"WebSite\",\"@id\":\"https://continue-docs.mintlify.app#website\",\"name\":\"Continue\",\"url\":\"https://continue-docs.mintlify.app\",\"publisher\":{\"@id\":\"https://continue-docs.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://continue-docs.mintlify.app/guides/codebase-documentation-awareness#webpage\",\"url\":\"https://continue-docs.mintlify.app/guides/codebase-documentation-awareness\",\"name\":\"How to Make Agent mode Aware of Codebases and Documentation\",\"description\":\"Learn how to give your Agent mode access to codebases and documentation for more context-aware assistance\",\"dateModified\":\"2026-01-31T01:02:33.517Z\",\"isPartOf\":{\"@id\":\"https://continue-docs.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://continue-docs.mintlify.app/guides/codebase-documentation-awareness#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://continue-docs.mintlify.app/guides/codebase-documentation-awareness#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://continue-docs.mintlify.app/guides/understanding-configs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Make Agent mode Aware of Codebases and Documentation\",\"item\":\"https://continue-docs.mintlify.app/guides/codebase-documentation-awareness\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://continue-docs.mintlify.app/guides/codebase-documentation-awareness#article\",\"headline\":\"How to Make Agent mode Aware of Codebases and Documentation\",\"name\":\"How to Make Agent mode Aware of Codebases and Documentation\",\"description\":\"Learn how to give your Agent mode access to codebases and documentation for more context-aware assistance\",\"url\":\"https://continue-docs.mintlify.app/guides/codebase-documentation-awareness\",\"mainEntityOfPage\":{\"@id\":\"https://continue-docs.mintlify.app/guides/codebase-documentation-awareness#webpage\"},\"dateModified\":\"2026-01-31T01:02:33.517Z\",\"keywords\":\"agent, codebase, documentation, MCP, context, RAG, tools\",\"publisher\":{\"@id\":\"https://continue-docs.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://continue-docs.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Continue\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Continue\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/codebase-documentation-awareness.md","siteName":"Continue","nav":{"global":{},"tabs":[{"tab":"IDE Extensions","groups":[{"group":"Getting Started","icon":"rocket-launch","pages":[{"title":"Install","href":"/ide-extensions/install"},{"title":"Quick Start Tutorial","sidebarTitle":"Quick Start","href":"/ide-extensions/quick-start"},{"title":"Customization Overview","href":"/customize/overview"}]},{"group":"Features","icon":"star","expanded":false,"pages":[{"group":"Agent","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 Continue – 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","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 Continue","sidebarTitle":"Recommended Chat Models","href":"/ide-extensions/chat/model-setup"},{"title":"How to Customize Chat","href":"/ide-extensions/chat/how-to-customize"},{"title":"Chat Mode Context Selection","sidebarTitle":"Context Selection","href":"/ide-extensions/chat/context-selection"}]},{"group":"Autocomplete","pages":[{"title":"Quick Start with Continue Autocomplete","sidebarTitle":"Autocomplete Quick Start","href":"/ide-extensions/autocomplete/quick-start"},{"title":"How Autocomplete Works in Continue","sidebarTitle":"How Autocomplete Works","href":"/ide-extensions/autocomplete/how-it-works"},{"title":"Recommended Models for Autocomplete in Continue","sidebarTitle":"Recommended Autocomplete Models","href":"/ide-extensions/autocomplete/model-setup"},{"title":"“Customize Autocomplete Settings in Continue”","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","pages":[{"title":"Quick Start with Continue 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":"Customize","icon":"sliders","expanded":false,"pages":[{"title":"Customization Overview","href":"/customize/overview"},{"title":"Models","href":"/customize/models"},{"title":"MCP servers","href":"/customize/mcp-tools"},{"title":"Rules","href":"/customize/rules"},{"title":"Prompts","href":"/customize/prompts"},{"group":"Model Providers","pages":[{"title":"Model Providers Overview","href":"/customize/model-providers/overview"},{"group":"Popular Providers","pages":[{"title":"How to Configure Anthropic Claude Models with Continue","sidebarTitle":"Anthropic","href":"/customize/model-providers/top-level/anthropic"},{"title":"How to Configure Azure AI Foundry with Continue","sidebarTitle":"Azure AI Foundry","href":"/customize/model-providers/top-level/azure"},{"title":"How to Configure Amazon Bedrock with Continue","sidebarTitle":"Amazon Bedrock","href":"/customize/model-providers/top-level/bedrock"},{"title":"How to Configure Gemini with Continue","sidebarTitle":"Gemini","href":"/customize/model-providers/top-level/gemini"},{"title":"Hugging Face","href":"/customize/model-providers/top-level/huggingfaceinference"},{"title":"How to Configure Inception with Continue","sidebarTitle":"Inception","href":"/customize/model-providers/top-level/inception"},{"title":"LM Studio","href":"/customize/model-providers/top-level/lmstudio"},{"title":"How to Configure Ollama with Continue","sidebarTitle":"Ollama","href":"/customize/model-providers/top-level/ollama"},{"title":"How to Configure OpenRouter with Continue","sidebarTitle":"OpenRouter","href":"/customize/model-providers/top-level/openrouter"},{"title":"How to Configure OpenAI Models with Continue","sidebarTitle":"OpenAI","href":"/customize/model-providers/top-level/openai"},{"title":"Tetrate Agent Router Service","sidebarTitle":"Tetrate Agent Router Service","href":"/customize/model-providers/top-level/tetrate_agent_router_service"},{"title":"How to Configure Vertex AI with Continue","sidebarTitle":"Vertex AI","href":"/customize/model-providers/top-level/vertexai"}]},{"group":"More Providers","pages":[{"title":"Ask Sage","href":"/customize/model-providers/more/asksage"},{"title":"How to Configure ClawRouter with Continue","sidebarTitle":"ClawRouter","href":"/customize/model-providers/more/clawrouter"},{"title":"DeepSeek","href":"/customize/model-providers/more/deepseek"},{"title":"DeepInfra","href":"/customize/model-providers/more/deepinfra"},{"title":"How to Configure Groq with Continue","sidebarTitle":"Groq","href":"/customize/model-providers/more/groq"},{"title":"Llama.cpp","href":"/customize/model-providers/more/llamacpp"},{"title":"Llama Stack","href":"/customize/model-providers/more/llamastack"},{"title":"How to Configure Xiaomi Mimo with Continue","sidebarTitle":"Xiaomi Mimo","href":"/customize/model-providers/more/mimo"},{"title":"Mistral","href":"/customize/model-providers/more/mistral"},{"title":"Moonshot AI","href":"/customize/model-providers/more/moonshot"},{"title":"Nous Research","href":"/customize/model-providers/more/nous"},{"title":"NVIDIA","href":"/customize/model-providers/more/nvidia"},{"title":"Tensorix","href":"/customize/model-providers/more/tensorix"},{"title":"Together AI","sidebarTitle":"Together AI","href":"/customize/model-providers/more/together"},{"title":"xAI","href":"/customize/model-providers/more/xAI"},{"title":"Z.ai","href":"/customize/model-providers/more/zai"}]}]},{"group":"Model Roles","pages":[{"title":"Intro to Roles","href":"/customize/model-roles/00-intro"},{"title":"Chat Role","href":"/customize/model-roles/chat"},{"title":"Autocomplete Role in Continue Models","sidebarTitle":"Autocomplete Role","href":"/customize/model-roles/autocomplete"},{"title":"Edit Role","href":"/customize/model-roles/edit"},{"title":"Apply Role","href":"/customize/model-roles/apply"},{"title":"Embed Role","href":"/customize/model-roles/embeddings"},{"title":"Rerank Role","href":"/customize/model-roles/reranking"}]},{"group":"Deep Dives","pages":[{"title":"How to Configure Continue","sidebarTitle":"Configuration","href":"/customize/deep-dives/configuration"},{"title":"How to Create and Manage Rules in Continue","sidebarTitle":"Rules","href":"/customize/deep-dives/rules"},{"title":"How to Create and Manage Prompts in Continue","sidebarTitle":"Prompts","href":"/customize/deep-dives/prompts"},{"title":"Continue Autocomplete Setup and Configuration Guide","sidebarTitle":"Autocomplete","href":"/customize/deep-dives/autocomplete"},{"title":"How to Collect and Manage Development Data in Continue","sidebarTitle":"Development Data","href":"/customize/deep-dives/development-data"},{"title":"How to Set Up Model Context Protocol (MCP) in Continue","sidebarTitle":"Model Context Protocol (MCP)","href":"/customize/deep-dives/mcp"},{"title":"Mcp examples","href":"/customize/deep-dives/mcp-examples"},{"title":"Context Providers","href":"/customize/deep-dives/custom-providers"},{"title":"How to Configure Model Capabilities in Continue","sidebarTitle":"Model Capabilities","href":"/customize/deep-dives/model-capabilities"}]}]},{"group":"Reference","icon":"code","expanded":false,"pages":[{"title":"config.yaml Reference","href":"/reference"},{"title":"Migrating Config to YAML","href":"/reference/yaml-migration"},{"title":"Continue Documentation MCP Server","href":"/reference/continue-mcp"},{"title":"config.json Reference (Deprecated)","href":"/reference/json-reference"},{"title":"Context Providers (Deprecated)","href":"/reference/deprecated-context-providers"},{"title":"@Codebase (Deprecated)","href":"/reference/deprecated-codebase"},{"title":"@Docs (Deprecated)","href":"/reference/deprecated-docs"}]},{"group":"Guides","icon":"compass","expanded":false,"pages":[{"title":"How to Understand Configuration","href":"/guides/understanding-configs"},{"title":"Configuring Models, Rules, and Tools","description":"Learn how to work with Continue's configuration system. Understand how to use models, rules, and tools, create local configurations, and organize your setup for maximum reusability.","href":"/guides/configuring-models-rules-tools"},{"title":"How to Make Agent mode Aware of Codebases and Documentation","sidebarTitle":"Codebase and Documentation Awareness","href":"/guides/codebase-documentation-awareness"},{"title":"Using Plan Mode with Continue","description":"Plan Mode gives you a safe, read-only environment to explore your codebase, map out solutions, and collaborate with AI before making any changes. Think of it as your sandbox for understanding and strategy.","href":"/guides/plan-mode-guide"},{"title":"Using Ollama with Continue: A Developer's Guide","href":"/guides/ollama-guide"},{"title":"Using Instinct with Ollama in Continue","href":"/guides/instinct"},{"title":"How to Run Continue Without Internet","href":"/guides/running-continue-without-internet"},{"title":"How to Build Custom Code RAG","href":"/guides/custom-code-rag"},{"title":"How to Self-Host a Model","href":"/guides/how-to-self-host-a-model"}]},{"group":"Help","icon":"book-open","expanded":false,"pages":[{"title":"FAQs","href":"/faqs"},{"title":"Troubleshooting","href":"/troubleshooting"}]}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/quickstart"}]}]},"basePath":"","title":"How to Make Agent mode Aware of Codebases and Documentation - Continue","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":[],"chunks":[]}