Chisel 能从 AI 聊天输出的 Markdown 中提取代码文件,并以正确的名称和目录结构写入磁盘。

Stars

6

7 天增长

暂无数据

Fork 数

1

开放 Issue

0

开源协议

MIT

最近更新

2026-07-27

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它省去了从 AI 回复中手动复制代码到项目文件的繁琐过程,支持多种 AI 服务商,并提供交互式聊天、剪贴板监听、桌面 GUI 等多种使用模式,且零依赖。

适合谁使用

  • 使用 AI 辅助生成代码的开发者
  • 快速构建原型的自由职业者
  • 将 AI 生成代码集成到工作流的团队
  • 展示 AI 辅助开发的教育工作者

典型使用场景

  • 让 AI 生成 REST API 或仪表盘等项目脚手架,自动创建文件
  • 从 AI 聊天记录或剪贴板内容中提取代码
  • 在持续开发流程中自动化从 AI 建议创建文件
  • 通过与 AI 迭代对话快速构思原型,并直接写入文件系统

项目优势

  • 零依赖——纯 Python 标准库实现,无需额外安装包
  • 支持多个 AI 服务商(OpenAI、Anthropic、Google、DeepSeek、Qwen、自定义)以及通过 Ollama 使用本地模型
  • 多种交互模式:一次性提问、持久聊天、剪贴板监听、桌面 GUI 和文件解析
  • 智能文件检测,包括模式匹配、去重、自动处理特殊文件名的大小写

使用前须知

  • 需要 Python 3.8+ 环境,较旧系统可能无法运行
  • 远程服务商需要 API 密钥;本地模型需安装 Ollama
  • AI 输出中复杂或嵌套的代码块可能偶尔无法正确解析

README 快速开始

Chisel

AI chat çıktısını gerçek proje dosyalarına dönüştür. / Turn AI chat output into real project files.

ChatGPT, Claude, Gemini, Qwen, DeepSeek — hangi yapay zeka olursa olsun, markdown çıktısındaki kod bloklarını otomatik algılar, doğru isimler ve klasör yapısıyla diske yazar.

Chisel parses the markdown output that AI assistants produce, detects every file embedded in it, and writes them to disk with the correct names and directory structure.

$ chisel ask "Flask REST API yaz, SQLAlchemy kullan" -o myapi/

  chisel v2.0.0 — ask
  openai · gpt-4o

  ──────────────────────────────────────
  Here's a complete Flask REST API...
  ──────────────────────────────────────

  Found: 7 files, ~180 lines

      1. src/app.py (python) — 45 lines
      2. src/models.py (python) — 32 lines
      3. src/routes.py (python) — 28 lines
      4. config.py (python) — 15 lines
      5. requirements.txt — 6 lines
      6. .env — 3 lines
      7. Dockerfile — 8 lines

  7 files created → myapi/

Kurulum / Install

Sıfır bağımlılık — Zero dependencies. Pure Python stdlib.

pip install .
# veya / or
python -m chisel ask "birşeyler yap"

Python 3.8+ gerektirir / required.


Modlar / Modes

chisel ask — Tek Seferlik / One-Shot

chisel ask "React dashboard, Tailwind CSS ile" -o dashboard/
chisel ask "React dashboard with Tailwind CSS" -o dashboard/
FlagTREN
-o DIRÇıktı klasörüOutput directory
-fÜzerine yazOverwrite existing
-nSadece listeleDry run
--cleanYorumları temizleStrip comments
--localYerel model (Ollama)Use local model

chisel chat — Sohbet / Interactive

Kalıcı konuşma geçmişiyle chat. / Chat session with persistent context.

chisel chat -o myproject/

Komutlar / Commands: /quit /clear /help /model


chisel watch — Pano İzleme / Clipboard Watch

Panoyu izler, AI çıktısını yakalar. Qwen, ChatGPT Desktop, tarayıcı — fark etmez.
Monitors clipboard for AI output. Works with any desktop chat app.

chisel watch -o project/           # sor / ask before writing
chisel watch -o project/ --auto    # direkt yaz / write immediately

chisel gui — Masaüstü Arayüzü / Desktop App

Native pencere — yapıştır, önizle, yaz. tkinter, ekstra kurulum yok.
Native window — paste,

项目描述

AI chat çıktısını gerçek proje dosyalarına dönüştür

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

lopopolo
精选
lopopolo GitHub avatar

harness-engineering

Harness Engineering is a methodology for improving coding agent outputs by carefully crafting the environment around them—providing curated context, tools, and executable constraints that encode an organization’s nonfunctional requirements and cumulative lessons.

AI 与机器学习AI 智能体
2,390
slvDev
精选
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI 与机器学习大语言模型
1,960
littledivy
精选
littledivy GitHub avatar

mimic

mimic captures traffic from any iOS or web app and automatically generates a Python client library that lets you call the app's API like a regular library.

AI 与机器学习
1,482