发布

  • Add get_architecture, manage_adr tools; rename Leiden to Louvain

    frostbyte_neo 发布于 2026-03-02 15:10:57 +00:00

    New tools:

    • get_architecture: codebase architecture overview with 12 selectable aspects
      (languages, packages, entry_points, routes, hotspots, boundaries, services,
      layers, clusters, file_tree, adr)
    • manage_adr: CRUD for Architecture Decision Records with 6 fixed sections,
      section filtering, validation, and discovery of existing architecture docs

    Architecture analysis fixes:

    • Fix qnToPackage extracting segment[2] for meaningful sub-packages instead
      of segment[1] which collapsed everything to top-level dirs
    • Filter test functions from entry_points, hotspots, and routes using both
      is_test property (Module/File nodes) and file_path pattern matching
    • Filter boundaries to Function/Method/Class nodes only
    • Add FindArchitectureDocs for discovering existing architecture documentation

    Naming corrections:

    • Rename Leiden to Louvain throughout (algorithm is simplified Louvain,
      not actual Leiden which requires CPM-based refinement)
    • leiden.go -> louvain.go with all symbols renamed
    • Remove unused ClusterInfo.Modularity field (always zero)

    Other changes:

    • Case-insensitive search by default for search_graph and search_code
    • Remove read_file and list_directory tools (handled by coding agents natively)
    • Update tool descriptions and README for 8000 char ADR limit
    下载附件