Changesets · Branches · Tags · Compare
| Changeset | eeccfdae2b71b9e6a8285b0c903cb8fab20a824dc6165e0022abee2204d5b287 |
|---|---|
| Author | BekahHW <rhawrot@gmail.com> · 2025-09-04 10:39 -04:00 |
| Committer | BekahHW <rhawrot@gmail.com> · 2025-09-04 10:39 -04:00 |
| Parents | d532729017d2 |
1 file changed
modified docs/guides/codebase-documentation-awareness.mdx +12 −4
| @@ -1,11 +1,10 @@ | ||
| 1 | 1 | --- |
| 2 | -title: How to make your agent aware of codebases and documentation | |
| 2 | +title: How to Make Your Agent Aware of Codebases and Documentation | |
| 3 | 3 | description: Learn how to give your AI agent access to codebases and documentation for more context-aware assistance |
| 4 | 4 | keywords: [agent, codebase, documentation, MCP, context, RAG, tools] |
| 5 | +sidebarTitle: Codebase and Documentation Awareness | |
| 5 | 6 | --- |
| 6 | 7 | |
| 7 | -# How to make your agent aware of codebases and documentation | |
| 8 | - | |
| 9 | 8 | AI coding agents work best when they understand the context of your project. This guide shows you how to give your agent access to codebases and documentation, making it more helpful and accurate. |
| 10 | 9 | |
| 11 | 10 | ## Make your agent aware of your open codebase |
| @@ -28,18 +27,21 @@ | ||
| 28 | 27 | # Project Architecture |
| 29 | 28 | |
| 30 | 29 | This is a React application with: |
| 30 | + | |
| 31 | 31 | - Components in `/src/components` |
| 32 | 32 | - API routes in `/src/api` |
| 33 | 33 | - State management using Redux in `/src/store` |
| 34 | 34 | |
| 35 | 35 | ## Coding Standards |
| 36 | + | |
| 36 | 37 | - Use TypeScript for all new files |
| 37 | 38 | - Follow the existing naming conventions |
| 38 | 39 | - Write tests for all new features |
| 39 | 40 | ``` |
| 40 | 41 | |
| 41 | 42 | <Tip> |
| 42 | - Place rules files at different levels of your project hierarchy to scope when they trigger | |
| 43 | + Place rules files at different levels of your project hierarchy to scope when | |
| 44 | + they trigger | |
| 43 | 45 | </Tip> |
| 44 | 46 | |
| 45 | 47 | Learn more about [rules configuration](/customize/deep-dives/rules). |
| @@ -60,6 +62,7 @@ | ||
| 60 | 62 | # External Dependencies |
| 61 | 63 | |
| 62 | 64 | Our authentication system is based on: |
| 65 | + | |
| 63 | 66 | - [Auth.js documentation](https://authjs.dev/) |
| 64 | 67 | - [Example implementation](https://github.com/nextauthjs/next-auth-example) |
| 65 | 68 | |
| @@ -76,6 +79,7 @@ | ||
| 76 | 79 | # Repository Access |
| 77 | 80 | |
| 78 | 81 | You can use the `gh` CLI to: |
| 82 | + | |
| 79 | 83 | - Search for issues: `gh issue list --repo owner/repo` |
| 80 | 84 | - View pull requests: `gh pr list --repo owner/repo` |
| 81 | 85 | - Clone repositories: `gh repo clone owner/repo` |
| @@ -86,6 +90,7 @@ | ||
| 86 | 90 | [DeepWiki MCP](https://hub.continue.dev/deepwiki/deepwiki-mcp) lets your agent explore any public GitHub repository. |
| 87 | 91 | |
| 88 | 92 | Once configured, your agent can explore repositories like: |
| 93 | + | |
| 89 | 94 | - "Explore the React repository structure" |
| 90 | 95 | - "Find how authentication is implemented in NextAuth.js" |
| 91 | 96 | |
| @@ -115,6 +120,7 @@ | ||
| 115 | 120 | # Documentation Resources |
| 116 | 121 | |
| 117 | 122 | For framework-specific questions, refer to: |
| 123 | + | |
| 118 | 124 | - React: https://react.dev/reference/react |
| 119 | 125 | - Next.js: https://nextjs.org/docs |
| 120 | 126 | - Tailwind CSS: https://tailwindcss.com/docs |
| @@ -127,6 +133,7 @@ | ||
| 127 | 133 | [Context7 MCP](https://hub.continue.dev/upstash/context7-mcp) enables your agent to search and retrieve information from public documentation: |
| 128 | 134 | |
| 129 | 135 | Your agent can then answer questions like: |
| 136 | + | |
| 130 | 137 | - "How do I use React hooks?" |
| 131 | 138 | - "What's the syntax for Tailwind CSS animations?" |
| 132 | 139 | |
| @@ -142,6 +149,7 @@ | ||
| 142 | 149 | # Internal Documentation |
| 143 | 150 | |
| 144 | 151 | Our team documentation is available at: |
| 152 | + | |
| 145 | 153 | - API Documentation: https://internal.docs/api |
| 146 | 154 | - Architecture Guide: https://internal.docs/architecture |
| 147 | 155 | - Deployment Process: https://internal.docs/deployment |