Skip to content

CodeArchy: Map Your Codebase, Ownership, and AI-Written Lines

AINewss Editorial Team

CodeArchy is a free, MIT-licensed tool that maps a repository into an explorable architecture, traces request flows, shows git-blame ownership, and flags AI-written lines. This guide covers the browser, editor, CLI, and MCP entry points, ten supported languages, privacy defaults, and the exact commands to get started.

View 3 references
0 views 0 likes

Allow the functional cookie to save your likes. Privacy details

An interactive architecture graph with ownership badges and AI-authored lines highlighted in a code editor.

What is CodeArchy?

CodeArchy is an open-source, MIT-licensed tool that turns a repository into an explorable architecture map. It shows what depends on what, how requests flow, who owns each part according to git history, and how much of the code AI tools wrote. Parsing happens on your machine or in your browser tab, with nothing uploaded by default.

It runs in VS Code, Cursor, Windsurf, a browser tab, and the command line, and can expose the map to AI agents through MCP. The browser mode can open a public GitHub or GitLab repository without an install.

Source: CodeArchy official site, fetched 2026-12-02.

What does CodeArchy show you?

The Map view places packages, components, files, and symbols on one canvas, with health and test lenses for cycles, hubs, and untested code. Ownership uses git blame to show each part's owners, their share of current lines, and a bus factor that flags concentration of knowledge.

AI authorship reads evidence left in git—Co-authored-by trailers, coding-agent commits, and tool markers—and reports the share written by Claude Code, Copilot, Cursor, Codex, and others. Flows trace an HTTP route, job, or command across services down to databases and queues.

How do you install and run CodeArchy?

In VS Code or Cursor, install the extension iyinusa.codearchy and run CodeArchy: Show Architecture. In a browser, open app.codearchy.com and supply a folder, a zip, or a public repository URL. For large repos and live updates, run the local companion:

npx codearchy serve --root .

That prints a one-time pairing link for the browser app. The companion reads local files but never writes to them.

How do you connect CodeArchy to an AI agent?

CodeArchy ships an MCP server so coding agents can answer from the map rather than guessing. The bridge gives agents named tools for structure queries instead of forcing them to infer relationships from filenames. Setup takes one command once Node is available. The documented Claude Code command is:

claude mcp add codearchy -- npx -y codearchy mcp --root .

Agents gain tools such as overview, search, get_node, neighbours, explain_edge, find_flows, and read_code. Add --no-code if the agent should see only names, signatures, documentation, and structure rather than source.

Source: CodeArchy MCP listing, fetched 2026-12-02.

Which languages does CodeArchy support?

The current tool parses ten languages with each ecosystem's imports resolved: TypeScript, JavaScript, Python, Java, Kotlin, Go, Rust, C#, PHP, and Ruby, covering both frontend and backend ecosystems. The browser demo includes large public repositories such as Django, Vite, NestJS, Rails, and Tokio.

Earlier releases of the VS Code extension listed six languages—TypeScript, JavaScript, Python, Java, Go, and Rust—using Tree-sitter WASM. The expanded list on the main site reflects the newer CLI and web engine, so check which entry point you are using before assuming full coverage.

How does CodeArchy handle AI and privacy?

AI is optional. You can keep everything local with Ollama or LM Studio, use a GitHub Copilot plan, or supply your own key for Anthropic, OpenAI, Gemini, OpenRouter, Groq, or Mistral. Local-only is the default, and names from git history never go to a model.

When you allow AI, secrets are removed first, you can review each request, and daily usage can be capped. The architecture map itself needs no network and no account, which is the main reason teams adopt it for unfamiliar or sensitive codebases.

What does the AI authorship view actually detect?

It reads evidence that tools leave in git rather than guessing from style. The documented signals are Co-authored-by trailers, coding-agent commits, and tool markers, which let the view attribute lines to Claude Code, Copilot, Cursor, Codex, and others. The share is reported per part of the system and over time.

That method has a clear limitation: if a team commits generated code without those markers, nothing is detected. The feature is best read as a lower bound on AI contribution, not an audit that proves a repository is human-written. Branch reports can be shared through git notes or pasted into a pull request.

The same git-derived approach powers ownership: bots and uncommitted lines are excluded, and .mailmap aliases are respected. That matters in large repositories where a single contributor's many addresses would otherwise distort the bus-factor score.

Frequently asked questions

Readers typically ask whether CodeArchy costs anything, whether it edits source, and whether branch reports fit a pull request. The answers are straightforward: it is MIT licensed and free, it only reads code through local parsing, and its reports are Markdown ready for review.

Is CodeArchy free?

Yes. The project is MIT licensed and free, with no sign-up required for the browser app. The VS Code extension is listed on the Visual Studio Marketplace and Open VSX under the same project name.

Does CodeArchy edit my code?

No. It reads and indexes source to build maps, flows, and reports. The local companion explicitly does not write to your files. Exports are diagrams or Markdown reports, not code changes.

Can I share a branch report in a pull request?

Yes. A branch report describes what the branch adds, who wrote it, and which dependencies it introduces, as Markdown ready for a pull request. AI authorship notes can also be shared through git notes.

Bottom line and limitations

CodeArchy fills a specific gap: understanding a codebase's structure, ownership, and AI contribution rather than writing code. Its strength is local parsing with optional AI and a clean MCP bridge. Limitations are that authorship detection depends on git evidence being present, and coverage differs between the older six-language extension and the newer ten-language CLI/browser engine.

References

  1. CodeArchy: see how your codebase is builtcodearchy.com
  2. CodeArchy on Visual Studio Marketplacemarketplace.visualstudio.com
  3. CodeArchy MCP server listinglightnow.ai