代码维基:加速你的代码理解
Code Wiki: Accelerating your code understanding

原始链接: https://developers.googleblog.com/en/introducing-code-wiki-accelerating-your-code-understanding/

## 代码维基:即时代码理解 代码维基是一个新平台,旨在通过解决理解现有代码的主要瓶颈来大幅提升开发者效率。它不依赖于静态且常常过时的文档,而是直接从代码仓库创建持续更新的结构化维基。 该系统会在每次代码更改时自动重新生成文档,提供一个由Gemini驱动的智能、上下文感知知识库。用户可以在概念和代码之间进行交互式导航,并通过聊天提出具体问题,获得基于最新代码库的答案。 目前代码维基处于公开预览阶段,可以为公共仓库生成交互式文档,包括架构图。Google 也在开发一个 CLI 扩展,以便安全地在本地与私有仓库一起使用,旨在使团队更容易理解遗留代码。最终,代码维基的目标是通过消除解读代码所花费的时间来赋能开发者,从而更快地构建。

黑客新闻新 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交登录代码 Wiki:加速你的代码理解 (googleblog.com)14 分,geoffbp 发表于 1 小时前 | 隐藏 | 过去 | 收藏 | 2 条评论 ChrisArchitect 发表于 29 分钟前 | 下一个 [–] 相关:代码 wiki 是文档表演服务https://news.ycombinator.com/item?id=45937527回复ChrisArchitect 发表于 28 分钟前 | 上一个 [–] 之前:https://news.ycombinator.com/item?id=45926350回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

Reading existing code is the one of the biggest, most expensive bottlenecks in software development.

To address this issue and improve your productivity, we're introducing Code Wiki, a platform that maintains a continuously updated, structured wiki for code repositories.

A new way to understand code

At Google, our mission is to organize the world's information and make it universally accessible and useful. For developers, that means unlocking the vital knowledge currently buried in complex source code.

We built a system that fulfills this mission by keeping documentation alive. Instead of static files, it maintains a continuously updated, structured wiki for every repository.

  1. Automated & always up-to-date: Code Wiki scans the full codebase and regenerates the documentation after each change. The docs evolve with the code.
  2. Intelligent & context-aware: The entire, always-current wiki serves as the knowledge base for an integrated chat. You’re not talking to a generic model, but to one that knows your repo end-to-end.
  3. Integrated & actionable: Every wiki section and chat answer is hyper-linked directly to the relevant code files and definitions. Reading and exploring merge into one workflow.

The Code Wiki website

Today, we're launching the Code Wiki website in public preview, our first product built on this new system. It ingests public repositories and generates, hosts, and maintains comprehensive and interactive documentation for each one.

Instead of reading static text, you can navigate interactively, jumping directly from high-level concept explanations to the exact code files, classes, and functions they reference. If you get stuck on a complex module, you can ask the Gemini-powered chat agent that uses the always-up-to-date wiki as context to answer highly specific questions about your repository, instantly bridging the gap between learning about the code and actually exploring it. For times when text isn't enough, Code Wiki automatically generates always-current architecture, class, and sequence diagrams, ensuring you can visualize complex relationships that match the exact current state of the code.

This AI-powered, automated, intelligent, and integrated approach is the key to solving this bottleneck. New contributors can make their first commit on Day 1, while senior developers can understand new libraries in minutes, not days.

Coming soon: the Code Wiki Gemini CLI extension

While the open-source ecosystem hosts massive repositories, it’s often our own private repos that are the hardest to document effectively. Especially in companies where the original code author might not even be available anymore, understanding legacy code is a massive hurdle. We see this technology as a game-changer for these internal environments, ensuring everyone has the ability to deeply understand the code they’re working on.

We’re building a Gemini CLI extension for Code Wiki so teams can run the same system locally and securely on internal repositories. Join the waitlist for the Gemini CLI extension.

The future of development is here

Developers should spend their time building, not deciphering. The era of manual, outdated documentation and endless code-reading is over. The future of development is about instant understanding.

Start now at codewiki.google.

联系我们 contact @ memedata.com