
Overview
By integrating with your organization’s code repositories, Glean enriches its enterprise knowledge graph to provide:Code Search
Advanced search capabilities across current and historical code content, including pull requests and commits, helping developers quickly find relevant code examples and references.
Code Generation
Intelligent code snippet generation that aligns with your organization’s standards, accelerating feature development and bug fixes while maintaining consistency.
Key Benefits
Rapid Error Resolution
Quickly identify and resolve issues using a comprehensive database of code snippets, documentation, and previous solutions.
Automated Code Generation
Boost productivity with automatic generation of code snippets for both routine tasks and new feature development.
Knowledge Sharing
Facilitate effective communication of coding practices and standards across your organization.
Streamlined Onboarding
Accelerate new engineer integration with structured learning resources and codebase insights.
Example Queries
Code Context
- “How is
[system]
implemented at our company?” - “How do I debug/solve
[error]
?” - “Help me write code to do
X
in[language]
” - “Where is the code file that does
X
?” - “Help me write unit tests for
[file]
”
Process & Customer Context
- “What is the status of this week’s backend release?”
- “Who can I ask about
[system or feature]
?” - “How do I set up my dev environment?”
- “Which customers are using
[feature]
?” - “What customers have raised issues this week?”
Usage Scenarios
Adding to Existing Code
1
Situation
An engineer needs to create a new evalset, working with code spread across multiple files and languages. They need to leverage existing code rather than starting from scratch.
2
Example Queries
- “How do I add a new search evalset?”
- “How to create a new autocomplete evalset for history suggestions?”
3
Outcome

Debugging Errors
1
Situation
An on-call engineer encounters a panic occurring in specific product situations.
2
Example Queries
- “Help me debug [full panic error]”
- “Can you review the code and help me fix the panic?”
- “Give me a list of reviewers for this code change”
- “Can you create a PR description?”
3
Outcome


Feature Status Check
1
Situation
An engineer needs to determine a feature’s implementation status and customer requests.
2
Example Queries
- “Is [feature] enabled?”
- “What customers have asked for this feature?”
3
Outcome

Code Change Impact
1
Situation
An engineer debugging an error needs to understand recent changes affecting their component.
2
Example Queries
“What recent changes could have caused errors in runtime configs?”
3
Outcome

Implementation Guidance
1
Situation
An engineer starting a new implementation needs guidance on multi-file changes across the stack.
2
Example Queries
“Where can I add a new endpoint for QE?”
3
Outcome

FAQ
Which datasources are supported?
Which datasources are supported?
Currently, code repositories in GitHub and GitLab are supported.
What permissions are required?
What permissions are required?
The permissions match those of the Glean GitHub and GitLab connectors exactly.
Is code search supported in search results?
Is code search supported in search results?
Currently, indexed code is only used for Glean Assistant responses. Glean Search matches PR descriptions and file names, but not code contents directly, to reduce result noise.
How is my data secured?
How is my data secured?
Code snippets become part of your organization’s Glean Knowledge Graph, ensuring:
- Only users with existing code access can access it via Glean Assistant
- Code snippets follow the same privacy guarantees as all other indexed Glean content
What code file types are supported?
What code file types are supported?
Glean Assistant searches through code in:
- PR and Merge Request differentials
- Latest commit and Main/Master branch files with extensions including (but not limited to):
- Common languages: .js, .py, .java, .cpp, .go, .rb, .php
- Web technologies: .html, .css, .scss
- Configuration: .ini, .cfg, .cnf
- And many more specialized formats
For a complete list of supported file extensions, please contact Glean support.