[BUG] GitHub Integration Cannot Properly Read File Contents – Regression in Project Knowledge
Environment
- Platform (select one):
- [x] Claude Pro (GitHub Integration)
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other:
- Claude CLI version: N/A (Web UI)
- Operating System: Windows 11
- Terminal: N/A
---
Bug Description
GitHub integration within Project Knowledge is broken. Repositories and file lists are visible, but file contents are not read correctly. The system returns only partial or corrupted code fragments, which makes code analysis unreliable and breaks developer workflows.
---
Steps to Reproduce
- Connect any GitHub repository to Project Knowledge.
- Request a specific file from the integration without modifying it.
- Observe that instead of returning the original file content, the system generates a completely new version of the file.
- Alternatively, ask the system to add a single function to an existing file.
- Instead of just adding the function, you will see that many other changes appear, including removals and unrelated modifications.
---
Expected Behavior
Full file content should be fetched and displayed correctly for accurate code analysis.
---
Actual Behavior
Only fragments or incorrect versions of files are returned. In some cases, the system appears to generate a new file structure instead of reading the actual file, leading to significant discrepancies.
---
Additional Context
Screenshots attached show a comparison between the file fetched from the GitHub integration and the same file uploaded directly.
🔴 The file from GitHub appears regenerated and incomplete
🟢 The file uploaded manually shows the correct code structure and includes all requested elements
I already disconnected and reconnected GitHub, followed all suggested support steps — no effect. Support confirmed this is an ongoing sync incident with no ETA.
This issue has persisted for over a week and requires immediate engineering attention.
11 Comments
I'm on the Claude MAX plan ($100/month) and have been using Claude for a long time without such problems — until now. For over a week, it’s been impossible to work properly due to a critical failure in GitHub integration.
What’s especially strange is that when I upload a file as an attachment, Claude reads it perfectly and adds functions exactly as requested. But when using GitHub integration, the same file is either unreadable or reconstructed incorrectly, with missing or broken content.
Previously there was a syncing issue (files not showing at all) — that was fixed. But now, even though the files appear in the list, Claude cannot see or interpret their contents correctly, which results in incomplete or invalid code being generated.
➡️ This completely breaks the development workflow and makes it impossible to create or maintain projects as before.
I kindly ask your engineering team to urgently test this and apply a fix, as this is a core feature of the MAX plan and critical to my work. This is the first time I've experienced such persistent problems after months of reliable use.
EXPECTED BEHAVIOR:
ACTUAL BEHAVIOR:
IMPACT:
BROWSER: [Your browser]
PROJECT TYPE: TypeScript/React GitHub repository
I’ve investigated the issue more deeply and confirmed that it occurs in projects that try to index more than 7% of their content. In such cases, Claude only sees fragmented parts of the files instead of their full content.
Sorry, I'm not sure I understand? Is this an issue with Claude Code and/or using Claude Code from with a Github Action? Or is this an issue with Github's first party solution. If the former, you'll have to report that to Github.
@DanielCyran +1, encountering the exact same problem.
+1 this is a massive issue, the github connection in Claude was previously very reliable, but it's become completely unusable in the last week or two.
Just to confirm, is this report about Claude Code or about Claude.ai's GitHub integration? It sounds like it's the latter. I'll pass this report along internally.
In general, the file limit is far too small – and this likely applies not just to GitHub integration. Here’s the response I received from support:
The current context limit in Claude AI is too low for working with larger programming projects. We kindly request an increase in this limit to enable full understanding of the project structure and code dependencies.
Since this issue is related to claude.ai and not Claude Code, I recommend going through the support channels for claude.ai since they'll be able to help you more effectively: https://support.anthropic.com/en/articles/9015913-how-to-get-support
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.