Coding Agents & IDEsDocumentedScanned

agentlens

Navigate and understand codebases using agentlens hierarchical documentation.

Share:

Installation

npx clawhub@latest install agentlens

View the full skill documentation and source below.

Documentation

AgentLens - Codebase Navigation

Before Working on Any Codebase

Always start by reading .agentlens/INDEX.md for the project map.

Navigation Hierarchy

LevelFilePurpose
L0INDEX.mdProject overview, all modules listed
L1modules/{slug}/MODULE.mdModule details, file list
L1modules/{slug}/outline.mdSymbols in large files
L1modules/{slug}/memory.mdTODOs, warnings, business rules
L1modules/{slug}/imports.mdFile dependencies
L2files/{slug}.mdDeep docs for complex files

Navigation Flow

INDEX.md → Find module → MODULE.md → outline.md/memory.md → Source file

When To Read What

You NeedRead This
Project overview.agentlens/INDEX.md
Find a moduleINDEX.md, search module name
Understand a modulemodules/{slug}/MODULE.md
Find function/class in large filemodules/{slug}/outline.md
Find TODOs, warnings, rulesmodules/{slug}/memory.md
Understand file dependenciesmodules/{slug}/imports.md

Best Practices

  • Don't read source files directly for large codebases - use outline.md first

  • Check memory.md before modifying code to see warnings and TODOs

  • Use outline.md to locate symbols, then read only the needed source sections

  • Regenerate docs with agentlens command if they seem stale
  • For detailed navigation patterns, see references/navigation.md
    For structure explanation, see references/structure.md