Explore and analyze a local codebase
Analyze a local codebase to understand its structure, patterns, and content. Use this when you need to explore a project's architecture or find specific code without manually browsing files.
/plugin marketplace add yamadashy/repomix/plugin install repomix-explorer@repomixAnalyze a local codebase using the repomix-explorer:explorer agent.
When the user runs this command, they want to explore and understand a local project's code structure, patterns, and content.
Note: This command is part of the repomix-explorer plugin, so the repomix-explorer:explorer agent is guaranteed to be available.
The user should provide a path to a local directory:
/explore-local
/explore-local ./src
/explore-local /Users/username/projects/my-app
/explore-local . - find all authentication-related code
Provide the repomix-explorer:explorer agent with a task that includes:
Default instruction template:
"Analyze this local directory: [absolute_path]
Task: Provide an overview of the codebase structure, main components, and key patterns.
Steps:
1. Run `npx repomix@latest [path]` to pack the codebase
2. Note the output file location
3. Use Grep and Read tools to analyze the output incrementally
4. Report your findings
[Add any specific focus areas if mentioned by user]
"
The agent will:
npx repomix@latest [path]Remember: The repomix-explorer:explorer agent is optimized for this workflow. It will handle all the details of running repomix CLI, searching with grep, and reading specific sections. Your job is to launch it with clear context about which directory to analyze and what specific insights are needed.