Cross-repository code exploration - search code across your org, find examples, and discover similar implementations.
Leverage Glean's code search to explore beyond your local repository.
Requires glean-core to be installed first.
claude plugin install glean-core # if not already installed
claude plugin install glean-code- code-exploration - Guidance for cross-repo code search, triggers on implementation questions
- plan-prep - Research enterprise context before entering plan mode, triggers on planning-related phrases
- codebase-navigator - Navigates internal repositories to find implementations and patterns
- plan-prep-researcher - Gathers design docs, implementations, stakeholders, and related systems for planning
/glean-code:codebase-context <system>- Get architectural context from internal repos/glean-code:find-examples <API/pattern>- Find usage examples across the org/glean-code:code-owners <component>- Identify who owns/maintains code areas/glean-code:similar-code <pattern>- Find similar implementations across repos/glean-code:plan-prep <task>- Research enterprise context before entering plan mode
# Get context before working on a system
/glean-code:codebase-context payments service
/glean-code:codebase-context auth middleware
# Find examples of how others use an API
/glean-code:find-examples AuthClient
/glean-code:find-examples retry logic
# Find who to talk to
/glean-code:code-owners billing module
/glean-code:code-owners src/auth
# Find prior art before building something
/glean-code:similar-code rate limiting
/glean-code:similar-code caching layer
# Research enterprise context before planning
/glean-code:plan-prep Add authentication to API
/glean-code:plan-prep Refactor payment service
/glean-code:plan-prep Implement webhooksLocal search tools only see your current repo. Glean Code searches across ALL repositories in your organization. This enables:
- Finding examples: "How do other teams handle authentication?"
- Understanding systems: "What repos touch the billing service?"
- Finding owners: "Who's actively working on payments?"
- Avoiding duplication: "Has someone already built a rate limiter?"
Whether your company uses a monorepo or multiple repositories, Glean Code searches across everything that's indexed.
The plan-prep command brings enterprise knowledge into your planning process:
- Research Before Planning: Use
/glean-code:plan-prepto gather design docs, similar implementations, and stakeholder info - Better Decisions: See what's been tried, what patterns are proven, and who needs to be involved
- Informed Architecture: Make decisions informed by organizational knowledge and prior art
Example workflow:
- Run
/glean-code:plan-prep "Add webhook support to payments service" - Review the enterprise context: design decisions, similar implementations, stakeholders
- Enter plan mode with this fresh knowledge
- Design your approach informed by organizational patterns and constraints
- Documentation: https://docs.glean.com/mcp
- Issues: https://github.com/gleanwork/claude-plugins/issues