🔗 Connect your local project files seamlessly with ChatGPT for real-time coding assistance.
Created by Anas Nafees
When using ChatGPT for coding assistance, developers face a challenge: how to provide the AI with access to their project files in real-time? Uploading individual files is cumbersome and interrupts your workflow.
CodeLinkGPT solves this by:
- Creating a direct connection between your local project and ChatGPT
- Enabling intelligent file requests with autocomplete suggestions
- Automatically providing file content when requested
- Maintaining context throughout your chat session
- Live Context AI Chat: Connect your project directly to ChatGPT
- Intelligent File Autocomplete: Type
@
to see file suggestions as you type - Smart File Detection: AI can request files using
@filename.ext
syntax or natural language - Automatic Large File Handling: Seamlessly uploads larger files as attachments
- Real-time File Access: ChatGPT can access your project files as needed during the conversation
- Project Structure Overview: Share your project structure with ChatGPT for better context
- Safe & Private: All operations happen locally in your browser
- Clone this repository
- Open Chrome and navigate to
chrome://extensions/
- Enable "Developer mode" (toggle in the top-right corner)
- Click "Load unpacked" and select the extension directory
- The extension should now appear in your Chrome toolbar
The extension will be available on the Chrome Web Store after initial testing.
- Navigate to ChatGPT
- Click the CodeLinkGPT icon in your Chrome toolbar
- Click "Live Context AI Chat"
- Click "Initialize Live Chat" and select your project folder
- The extension will automatically set up project context
- Request files in three easy ways:
- Type
@
and use autocomplete to select files - Use the
@filename.ext
syntax (e.g.,@index.js
) - Use natural language (e.g., "Show me the manifest.json file")
- Type
- The extension automatically adds file content to your conversation
The extension monitors your conversation with ChatGPT and:
- Detects when ChatGPT requests a specific file
- Finds the file in your project
- Adds the file content to your prompt box automatically
- Formats the code with proper syntax highlighting
- For large files, uploads them as attachments to avoid chat clutter
- Clean, Minimalist Interface: Focus on your conversation without distractions
- File Autocomplete Dropdown: Quick access to all project files by typing
@
- Visual File Icons: Easily identify file types at a glance
- Status Notifications: Clear feedback when files are processed
- Responsive Design: Works seamlessly on any screen size
- Dark Mode Compatible: Respects your ChatGPT theme preferences
- Keyboard Navigation: Use arrow keys and enter to select files from autocomplete
- The extension requires Chrome's File System Access API, which is only available in Chrome and Chromium-based browsers
- It currently only works on the ChatGPT website
- Binary files and certain file types are excluded
CodeLinkGPT operates entirely locally in your browser. No data is sent to any server, and your project files never leave your computer. The extension only requests necessary permissions to access files you explicitly select.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Created with ❤️ by Anas Nafees