Glean 拾遗
日刊 /2026-08-01 / Vibe Coding 概念、案例与 Kimi 工具链全解析

Vibe Coding 概念、案例与 Kimi 工具链全解析

原文 www.kimi.com 收录 2026-08-01 06:01 阅读 15 min
AI 解读

月之暗面在自家官网发布 Vibe Coding 入门指南,前半部分介绍概念、与传统开发的差异、五个自述案例,后半部分转为 Kimi Websites 与 Kimi Code 两款产品的教程:含 curl/PowerShell 安装命令、/init 与 /login 命令、示例提示词和三步流程。文章明确将 vibe coding 定义为「自然语言界面 + LLM 引擎 + 自动测试循环」的框架,并给出优缺点与安全提示。对想快速了解 Kimi 工具链的初级用户有参考价值;但全篇缺少可验证数据与第三方对比,属于产品导向内容,资深工程师可跳过前半部分直接看 CLI 用法。

原文 15 分钟
原文 www.kimi.com ↗
§ 1

Vibe coding was introduced in early 2025 by AI researcher Andrej Karpathy, who previously worked at OpenAI and Tesla. He described it as a new way to create software using advanced language models. The idea caught on after he talked about it publicly and on social media. Developers and startups soon began experimenting with it, and the term quickly gained popularity in tech circles focused on AI programming.

Vibe coding 这个词最早由 AI 研究者 Andrej Karpathy 在 2025 年初提出。他曾在 OpenAI 和特斯拉工作。他将这种新方法描述为:借助先进的语言模型来创造软件。在他公开演讲和社交媒体传播之后,这个想法迅速流行起来。开发者和初创公司很快开始尝试,该术语也迅速在专注于 AI 编程的技术圈中走红。

§ 2

Vibe coding uses AI to help you build software by describing your idea in plain language, rather than writing code yourself. The AI figures out what you want and creates the program for you. It can also test and fix mistakes along the way. This keeps your attention on the main goal and how the software should work, not on the technical details. It makes prototyping faster, though you might have less control over the fine points of the code.

Vibe coding 是一种用 AI 帮助构建软件的方式:你用自然语言描述想法,而不是自己写代码。AI 会理解你的意图并为你创建程序,还能在过程中测试和修正错误。这样,你的注意力可以始终放在主要目标和软件应该具备的行为上,而不是技术细节。它让原型制作更快,但你对代码的细枝末节可能失去一些控制。

§ 3

Traditional coding requires developers to write, test, and debug each line of code themselves. In vibe-based coding, the user explains the task in simple language, and the AI creates the program. Traditional coding needs strong technical knowledge, while vibe coding reduces that requirement. It is faster for quick prototypes, but traditional coding provides more control and reliability.

传统编程需要开发者亲自编写、测试和调试每一行代码。而在 vibe coding 中,用户用简单语言说明任务,AI 就会创建程序。传统编程需要扎实的技术知识,而 vibe coding 降低了这一门槛。对于快速原型,vibe coding 更快,但传统编程在可控性和可靠性上更胜一筹。

§ 4

The best way to understand vibe coding is by looking at real projects people have made. Even those without much programming experience are building useful tools for daily tasks. Here are some examples:

  1. Resume scoring agent

A pre-built automated assistant was developed to help with hiring tasks. A user uploads a resume and provides a job description. The system compares the candidate's details with the job requirements and gives a matching score. It can run automatically in the background while other work continues. This demonstrates how vibe coding can automate routine office work.

要理解 vibe coding,最好的方式是看看人们用它做出的真实项目。即使没有太多编程经验的人,也在为日常任务打造实用工具。下面是一些例子:

  1. 简历评分助手

有人开发了一个预先构建好的自动化助手来处理招聘事务。用户上传简历并提供职位描述,系统会将候选人的条件与岗位要求进行比对,并给出匹配分数。它可以在后台自动运行,不影响其他工作。这个例子展示了 vibe coding 如何让日常行政工作实现自动化。

§ 5

Resume scoring interface matching candidates to jobs, built with vibe coding

简历评分界面:匹配候选人与职位,使用 vibe coding 构建

§ 6
  1. Portfolio website

A product manager built a personal portfolio website using AI guidance instead of manual web development. The site presents personal information, projects, and skills in a clean layout. It also includes a chatbot that answers visitor questions about the owner. The project proves that even non-developers can quickly create a functional online presence.

  1. 个人作品集网站

一位产品经理在 AI 的指导下,而不是手动开发,建了一个个人作品集网站。网站用简洁的版式呈现个人信息、项目和技能,还内置了一个聊天机器人,回答访客关于网站主人的提问。这个项目证明,即使不是开发者,也能快速上线一个实用的个人页面。

§ 7

Portfolio site with projects and AI chatbot, created using vibe coding

作品集网站:展示项目与 AI 聊天机器人,使用 vibe coding 创建

§ 8
  1. Admin system for database projects

Two developers created a management interface to improve database workflows. The system handles data storage features and user account authentication in one place. It helps organise project information and manage users more easily. This example shows that vibe coding is not limited to small tools and can also support more complex applications.

  1. 数据库项目的管理系统

两位开发者构建了一个管理界面来改进数据库工作流。该系统将数据存储功能和用户账户认证集中在一个地方,帮助更轻松地组织项目信息和管理用户。这个例子表明,vibe coding 不仅限于小工具,也能支撑更复杂的应用。

§ 9

Admin dashboard managing data and users, developed with vibe coding

管理仪表盘:管理数据与用户,使用 vibe coding 开发

§ 10
  1. Lambo levels website

A growth marketer made a fun web app for crypto fans. Users pick a crypto token and see how much profit they might make if the price goes up. It's not meant to track real portfolios, but it's a visual tool for imagining possible gains. The site lets people quickly explore 'what-if' scenarios for big market changes. This project shows how vibe coding can turn simple ideas into interactive apps.

  1. Lambo Levels 网站

一位增长营销人员为加密货币爱好者做了一个好玩的 Web 应用。用户选择某个加密代币,就能看到如果价格上涨可能赚多少钱。它并不是用来追踪真实投资组合的,只是一个想象潜在收益的可视化工具。这个网站让人们可以快速探索市场大幅变化时的“如果……会怎样”场景。这个项目展示了 vibe coding 如何把简单想法变成交互式应用。

§ 11

Crypto profit simulator web app made with vibe coding

加密货币收益模拟器 Web 应用,使用 vibe coding 制作

§ 12
  1. Plywood cutting visualizer

An educational technologist built a handy web tool to help with carpentry planning. You enter the size of your plywood sheet and the cuts you want to make. The app tells you how many pieces you can get and how much scrap will be left. This saves time measuring by hand and helps reduce waste. The project is a good example of how simple instructions can become a useful tool.

  1. 胶合板切割可视化工具

一位教育技术专家构建了一个方便的木工规划网页工具。你输入胶合板尺寸和想要切割的尺寸,应用会告诉你可以得到多少块板材、剩余多少边角料。这样就不用手工测量,节省时间,也有助于减少浪费。这个项目很好地说明,简单的指令也能变成有用的工具。

§ 13

Plywood cutting layout showing pieces and scrap, planned using vibe coding

胶合板切割布局:显示板材与边角料,使用 vibe coding 规划

§ 14

Kimi Websites is an AI website maker that helps you turn an idea into a working, shareable web app in minutes. In many cases, a single prompt is all it takes. It's built for fast prototyping, AI-driven design, and generative AI applications. Just follow the steps below to get started quickly:

Step 1: Send a prompt and generate

Write your idea in clear, simple language. Describe layout, sections, style, features, and target users. Submit and let AI generate a ready visual draft instantly.

Example prompt:

Design a modern, clean, and responsive fitness website homepage. Include a hero section with a motivational image of people exercising, a catchy headline, and a call-to-action button. Feature sections for workout plans, personal training, nutrition tips, and client testimonials. Use a vibrant and energetic colour scheme with clear navigation. Include space for a blog and social media links. Style should be professional yet approachable, targeting fitness enthusiasts of all levels.

Kimi Websites 是一个 AI 建站工具,能在几分钟内把你的想法变成可运行、可分享的 Web 应用。很多时候,一条提示词就够了。它专为快速原型、AI 驱动设计和生成式 AI 应用而打造。按照下面的步骤,即可快速上手:

第 1 步:发送提示词并生成

用清晰、简单的语言写下你的想法。描述布局、板块、风格、功能和目标用户,提交后让 AI 即刻生成一版可视化草稿。

示例提示词:

设计一个现代、简洁、响应式的健身网站首页。包含一个英雄区域,配上一张激励人心的健身人群图片、一个醒目的标题和一个行动召唤按钮。为训练计划、私人教练、营养建议和客户见证设置特色板块。使用鲜艳、有活力的配色方案,导航清晰。预留博客和社交媒体链接的位置。风格应专业又不失亲和,面向各个水平的健身爱好者。

§ 15

Describing the idea as prompt

用提示词描述想法

§ 16

Step 2: Visual editing and conversation editing

Edit directly on the page layout. Adjust text, sections, spacing, images, or colours visually. Use chat to refine structure, rewrite content, add features, or improve design.

Once satisfied, publish the website instantly. Share the live link with others, use it as a prototype, or continue refining anytime.

第 2 步:可视化编辑与对话编辑

直接在页面布局上进行编辑。可视化地调整文字、板块、间距、图片或颜色。通过对话可以优化结构、改写内容、添加功能或改进设计。

满意后,立即发布网站。把在线链接分享给别人,将其用作原型,或者随时继续打磨。

§ 17

Editing the layout of website

编辑网站布局

§ 18

Publishing and sharing the website

发布和分享网站

§ 19

Kimi Code is an AI agent designed for developers who want a terminal-first vibe coding experience. You can describe tasks in plain language, browse projects, and automate workflows directly from your terminal. Whether you're fixing bugs, adding features, or writing new code, it makes development much easier. Just follow these steps to get started quickly:

Step 1: Install and set up Kimi Code CLI

Run the installation script for your system (Linux/macOS or Windows) to install Kimi Code CLI along with uv, the Python package manager.

Linux/macOS (recommended):

curl -LsSf https://code.kimi.com/install.sh | bash

Windows (PowerShell):

Invoke-RestMethod https://code.kimi.com/install.ps1 | Invoke-Expression

Alternative via uv:

uv tool install --python 3.13 kimi-cli

After installation, verify it using the following command and ensure Python 3.12–3.14 is installed, with 3.13 recommended for best performance.

Kimi Code 是一个 AI 智能体,专为希望获得“终端优先”的 vibe coding 体验的开发者而设计。你可以直接用自然语言描述任务、浏览项目,并在终端中自动执行工作流。无论是修复 Bug、添加功能还是编写新代码,它都能大大简化开发。按照以下步骤即可快速上手:

第 1 步:安装并设置 Kimi Code CLI

运行适用于你系统(Linux/macOS 或 Windows)的安装脚本,安装 Kimi Code CLI 以及 Python 包管理器 uv。

Linux/macOS(推荐):

curl -LsSf https://code.kimi.com/install.sh | bash

Windows(PowerShell):

Invoke-RestMethod https://code.kimi.com/install.ps1 | Invoke-Expression

通过 uv 安装的替代方式:

uv tool install --python 3.13 kimi-cli

安装后,用以下命令验证安装,并确保已安装 Python 3.12–3.14(推荐 3.13,性能最佳)。

§ 20

Step 2: Configure your API and project

Navigate to your project folder and run kimi to start Kimi Code CLI:

Use the /login command to select Kimi Code as your API source, complete OAuth authorisation, and save the settings. If your project lacks an AGENTS.md file, run /init to help Kimi understand the project structure.

Step 3: Interact and execute tasks

You can now chat with Kimi Code CLI in natural language or switch to shell mode to run commands directly. Use it to explore codebases, automate tasks, generate or modify code, and view the project structure. Use /help to see all commands and optimize your workflow.

第 2 步:配置 API 与项目

进入项目文件夹,运行 kimi 启动 Kimi Code CLI:

使用 /login 命令选择 Kimi Code 作为 API 来源,完成 OAuth 授权并保存设置。如果项目中没有 AGENTS.md 文件,运行 /init 帮助 Kimi 理解项目结构。

第 3 步:交互并执行任务

现在,你可以用自然语言与 Kimi Code CLI 对话,或切换到 shell 模式直接运行命令。可以用它来探索代码库、自动化任务、生成或修改代码,以及查看项目结构。输入 /help 查看所有命令,优化你的工作流。

§ 21

Understanding the structure behind this approach helps clarify how it turns ideas into working software. Here's its complete overview:

Vibe coding workflow

It has a simple workflow. First, describe your problem or task in plain language. The AI then creates the first version of the solution automatically. You review, fix, and test it. Repeat this process until you're happy with the final results. Finally, check and tidy up the code carefully. This way, everything works well, even if you're not an experienced coder.

Vibe coding framework

To make vibe coding work, a structured framework is essential. The vibe coding framework is built on three core pillars: a natural language interface, an LLM-driven engine, and an automated testing loop. Unlike traditional programming, this framework treats the LLM as the primary executor while the developer acts as a high-level conductor. The developer sends clear instructions to the LLM, which then generates code and automatically tests the results. This seamless feedback loop is exactly what makes vibe coding work.

了解这种方法的底层结构,有助于理解它如何把想法变成可用的软件。下面是完整的概览:

Vibe coding 工作流

它的工作流很简单。首先,用自然语言描述你的问题或任务。AI 会自动生成第一版解决方案。你进行审查、修复和测试,然后不断重复这个过程,直到对最终结果满意。最后,仔细检查和整理代码。这样一来,就算你不是经验丰富的程序员,一切也能正常运转。

Vibe coding 框架

要让 vibe coding 真正起作用,一个结构化的框架必不可少。Vibe coding 框架建立在三大支柱之上:自然语言界面、LLM 驱动的引擎,以及自动化测试循环。与传统编程不同,这个框架把 LLM 当作主要执行者,而开发者则像是高层次的指挥。开发者向 LLM 发送清晰指令,LLM 负责生成代码并自动测试结果。正是这种无缝反馈循环,让 vibe coding 得以行之有效。

§ 22

Here's a look at the pros and cons of vibe coding to help you decide when it's useful:

Pros of vibe coding

Saves time: Many developers report saving 1–2 hours per week by using it. The AI handles repetitive coding tasks, letting you focus on bigger-picture work.

Faster prototyping: In a fraction of the time, you can transform concepts into functional prototypes. Vibe coding makes it considerably easier for teams to test new features or concepts quickly.

Low barrier for beginners: Functional tools may be made by anyone, even without much coding knowledge. It makes software development easier by eliminating the need to learn intricate grammar.

Encourages experimentation: Developers can try multiple approaches without worrying about mistakes. The AI generates and adapts code quickly, allowing freer exploration of ideas and solutions.

Focus on high-level design: Since AI handles the details, you can concentrate on architecture, UX, and overall design. Vibe-based coding shifts attention from small syntax issues to strategic planning.

Boosts creativity: By reducing technical friction, developers can innovate faster. It creates an environment where trying new concepts and iterating on ideas becomes easier and dynamic.

Cons of vibe coding

Less control over code: You may not know exactly how the AI wrote the code. This can make debugging or modifying complex sections harder in coding projects.

Potential for errors: AI-generated code isn't always perfect. Mistakes or inefficient solutions can slip through, requiring careful review before deployment.

Overreliance on AI: Relying too much on it may reduce hands-on coding skills. Beginners might miss out on learning important programming fundamentals.

Limited optimization: AI focuses on functionality rather than efficiency. AI vibe coding might produce working code that isn't the most performant, which can matter in large-scale projects.

Security risks: Automatically generated code can introduce vulnerabilities. Developers need to check AI outputs to ensure safety and compliance with it.

Not ideal for complex systems: Highly complex or specialized projects often need manual precision. Vibe coding works best for prototypes or exploratory development rather than full-scale systems.

以下是 vibe coding 的优缺点,帮助你判断什么时候值得用:

优点

节省时间:许多开发者反馈,每周能省下 1–2 小时。AI 处理重复性的编码任务,让你把精力放在更大的图景上。

快速原型:你可以在很短的时间内把概念变成可运行的原型。Vibe coding 让团队快速测试新功能或新想法变得容易得多。

对新手友好:即使不懂多少编程知识,也能做出可用的工具。它免去了学习繁复语法的需要,降低开发门槛。

鼓励试错:开发者可以尝试多种方案,不用担心犯错。AI 能快速生成和调整代码,让思路和方案的探索更加自由。

聚焦高层设计:既然 AI 处理细节,你就可以专注于架构、用户体验和整体设计。Vibe coding 把注意力从句法琐事转移到战略规划上。

激发创造力:技术摩擦减少后,开发者能更快创新。它创造了一个更轻松、更动态的环境,让你敢于尝试新概念、不断迭代想法。

缺点

对代码的控制力减弱:你可能不太清楚 AI 具体是怎么写这段代码的,这会让调试或修改复杂代码段变得更难。

可能出错:AI 生成的代码并不总是完美。一些错误或低效的解决方案可能混过去,部署前需要仔细审查。

过度依赖 AI:过度依赖可能削弱动手编码的能力。初学者可能会错过学习基本编程原理的机会。

优化空间有限:AI 更关注功能而不是效率。生成代码能用,但未必是最高性能的,这在大型项目中可能很重要。

安全风险:自动生成的代码可能引入漏洞。开发者需要检查 AI 的输出,确保安全和合规。

不适合复杂系统:高度复杂或专用的项目往往需要人工精雕细琢。Vibe coding 更适合原型或探索性开发,而不是完整的大型系统。

§ 23

One key concern with vibe coding is that automatically generated code can unintentionally include security vulnerabilities. The AI may produce insecure practices like weak authentication, exposed API keys, or unsafe data handling. Users might overlook these risks if they rely too heavily on AI without reviewing the output. Sensitive information could be accidentally embedded in the code, leading to potential data leaks. Regular security checks and careful auditing are essential to prevent such issues.

Common problems with vibe coding

  • Quality depends on prompts: The AI only produces what it's told. Vague or unclear instructions can lead to fragile or incorrect code, so precise and structured prompts are crucial for reliable results.

  • Security risks: Automatically generated code may include vulnerabilities like weak authentication, unsafe data handling, or exposed keys. Users must carefully review outputs to avoid potential breaches.

  • Lack of reasoning traceability: It doesn't explain why it chose a particular approach or library. This makes debugging and understanding the logic behind code harder compared to human-written code.

  • Performance limitations: The generated code might work, but it isn't always optimized. This can result in slower execution, higher resource use, or problems scaling for larger applications.

  • Need for human review: Even with perfect prompts, developers still need to test, refine, and validate the AI output. Skipping this step can lead to logical errors or misaligned project goals.

  • Risk of over-reliance: Relying too heavily on AI can reduce hands-on engineering judgment. Teams may unintentionally introduce bugs, security flaws, or technical debt that's difficult to fix later.

Vibe coding 的一个关键隐患是:自动生成的代码可能无意中包含安全漏洞。AI 可能写出弱认证、暴露 API 密钥或不安全的数据处理等有问题的做法。如果用户过度依赖 AI 而不审查输出,就很容易忽略这些风险。敏感信息也可能被意外写进代码,导致数据泄露。定期做安全检查、认真审计代码,是防范这类问题的关键。

Vibe coding 的常见问题

  • 质量取决于提示词:AI 只能按你告诉它的去做。含糊不清的指令会把代码写得脆弱或出错,因此精确、结构化的提示词是稳定产出可靠结果的前提。

  • 安全风险:自动生成的代码可能包含弱认证、不安全的数据处理或密钥暴露等漏洞。用户必须仔细审查输出,避免潜在的数据泄露。

  • 推理过程不可追溯:它不会解释为什么选择某个方案或某个库。相比手写代码,这样的代码更难以调试、也更难看懂背后的逻辑。

  • 性能受限:生成代码能跑,但不一定经过优化。这可能导致执行慢、资源占用高,或在更大的应用里出现扩展问题。

  • 需要人工复核:即便提示词完美,开发者仍然需要测试、打磨和验证 AI 的输出。跳过这一步,可能带来逻辑错误或与项目目标不一致的结果。

  • 过度依赖的风险:过度依赖 AI 会削弱亲手做工程判断的能力。团队可能在不知不觉中引入 Bug、安全漏洞或日后难以修复的技术债。

§ 24

Relying too heavily on AI can reduce hands-on engineering judgment. Teams may unintentionally introduce bugs, security flaws, or technical debt that becomes difficult to fix later. For that reason, AI-assisted development should not replace critical thinking, it should complement it. This is where the difference between vibe coding and vibe debugging becomes especially important.

Vibe coding is best for prototyping, small tools, or when you want to quickly test a concept. Vibe debugging, on the other hand, focuses on finding and fixing problems in existing AI-generated or human-written code. It helps improve reliability, security, and performance. While coding prioritizes speed and creativity, debugging emphasises accuracy and correctness. Use coding when building or experimenting, and debugging when refining, optimising, or securing your project.

过度依赖 AI 会削弱亲手做工程判断的能力。团队可能在不知不觉中引入 Bug、安全漏洞或日后难以修复的技术债。正因如此,AI 辅助开发不应取代批判性思考,而应成为它的补充。这里,vibe coding 与 vibe debugging 的区别就显得尤为重要。

Vibe coding 最适合快速原型、小工具,或者当你想要快速验证一个概念时。而 vibe debugging 则专注于在已有的 AI 生成或人工编写的代码里寻找和修复问题。它能帮助提升可靠性、安全性和性能。vibe coding 重速度和创意,vibe debugging 重准确和正确。在构建或试验时用 coding,在打磨、优化或加固项目时用 debugging。

§ 25

In the future, we can expect it to become big in software development. It accelerates coding, democratizes programming to new users and supports exploration. Developers can now spend more time on design and strategy rather than boring parts. As AI gets better, the generated code will get better and more complex. More likely, though, it will help inside existing skills rather than replace them and be a useful tool for prototyping and efficient development.

Conclusion

Vibe coding offers a faster, more creative way to build software, helping both beginners and experienced developers turn ideas into working tools with minimal friction. It saves time, encourages experimentation, and allows you to focus on design, strategy, and innovation rather than repetitive coding. Anyone looking to prototype quickly, automate small tasks, or explore new project ideas can benefit from using it. For those ready to experience this efficiency first, Kimi stands out as a powerful, flexible, and beginner-friendly option. Start vibe coding with Kimi today and turn your ideas into working products faster.

在未来,vibe coding 很可能会在软件开发中扮演重要角色。它加速编码,让编程走向更多新用户,也让探索变得更加容易。开发者可以把更多时间花在设计和策略上,而不是枯燥的部分。随着 AI 越来越强,生成的代码也会更好、更复杂。不过更有可能的是,它会在现有技能之上“辅助”而非“取代”,成为原型制作和高效开发的好工具。

结语

Vibe coding 提供了一种更快、更有创意的构建软件的方式,让初学者和经验丰富的开发者都能以极低的摩擦把想法变成可用的工具。它节省时间、鼓励实验,让你专注于设计、策略和创新,而不是重复性的编码工作。任何想快速做原型、自动化小任务或探索新项目想法的人,都能从中受益。如果你想亲身体验这种效率,Kimi 是一个强大、灵活且对新手友好的选择。今天就开始用 Kimi 进行 vibe coding,更快地把你的想法变成可用的产品。

打开原文 ↗