Skip to content

Add experimental code map - #136

Merged
yottadynamics merged 1 commit into
mainfrom
feature/code-map-mvp
Jul 27, 2026
Merged

yottadynamics merged 1 commit into
mainfrom
feature/code-map-mvp

Conversation

@yottadynamics

Copy link
Copy Markdown
Owner

Summary

Adds an experimental Code Map capability behind the code_map feature flag. The MVP introduces a shared internal/codemap index, a single /map TUI surface with useful submodes, and read-only agent tools for structure, symbols, dependencies, impact, cycles, and Mermaid diagrams.

The TUI path includes /map here for changed-file neighborhoods and Enter-to-insert @path prompt references, so the map can help assemble context instead of only displaying an outline. The implementation is Go-import based for dependency/impact queries, uses LSP symbols when available, falls back to conservative regex symbols, and caches snapshots with source-file fingerprint invalidation.

Also adds docs/code-map.md as the roadmap for later suggested-context, better impact ranking, language coverage, and live-index phases.

Related issue

None.

How was this tested?

  • go test ./internal/tui ./internal/codemap ./internal/agent ./internal/oneshot ./internal/lsp ./internal/experimental
  • go test ./...
  • go vet ./...

Checklist

  • go test ./... passes
  • go vet ./... is clean
  • Tests added or updated — a new capability ships with tests, a bug fix ships with a regression test
  • Docs updated in the same change if behavior or surface changed (relevant docs/ guide)
  • PR is focused on one logical change

@yottadynamics
yottadynamics merged commit c0c4fcf into main Jul 27, 2026
5 checks passed
@yottadynamics
yottadynamics deleted the feature/code-map-mvp branch July 27, 2026 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant