GF

ghbalf/freecad-ai

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

640 stars 质量 69 趋势 24LGPL-2.1

ghbalf/freecad-ai 是从 https://github.com/ghbalf/freecad-ai. 导入的特工技能候选人。

概览

ghbalf/freecad-ai 是从 https://github.com/ghbalf/freecad-ai. 导入的特工技能候选人。

概述(AI 翻译)

Alpha 软件——该项目处于早期开发阶段。预计会出现粗糙的边缘、破坏性的变更,以及LLM生成代码偶尔导致的FreeCAD崩溃。请谨慎使用,并经常保存你的作品。

一个由 AI 驱动的 FreeCAD 助手工作台,能够生成并执行 Python 代码,从自然语言描述创建 3D 模型。

特色

  • 聊天界面 — 带有流式LLM响应的Dock小部件
  • 计划/行动模式 — 执行前审查代码(计划)或自动执行(行动)
  • 工具调用 — 50个结构化的FreeCAD操作(Act模式),用于更安全、更可靠的建模
  • 工具重新排序 — 可选的关键词或基于LLM的过滤器,每回合只向LLM发送前N个最相关的工具,当注册多个工具+MCP服务器时,会保存提示令牌
  • 技能——模型可自主调用的可重复使用指令集(箱体、齿轮、紧固件孔、图像草图等)
  • 技能优化器 — 通过迭代测试-评估-修改循环(/optimize-skill)自动改进技能指令
  • Hooks — 用户自定义的Python钩子,用于生命周期事件(阻断工具、修改输入、日志活动、文件附件转换)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

FreeCAD AI

Alpha software — this project is in early development. Expect rough edges, breaking changes, and the occasional FreeCAD crash from LLM-generated code. Use with caution and save your work frequently.

An AI-powered assistant workbench for FreeCAD that generates and executes Python code to create 3D models from natural language descriptions.

Features

  • Chat interface — dock widget with streaming LLM responses
  • Plan / Act modes — review code before execution (Plan) or auto-execute (Act)
  • Tool calling — 50 structured FreeCAD operations (Act mode) for safer, more reliable modeling
  • Tool reranking — optional keyword or LLM-based filter sends only the top-N most relevant tools to the LLM per turn, saving prompt tokens when many tools + MCP servers are registered
  • Skills — reusable instruction sets the model invokes autonomously or via /command (enclosure, gear, fastener holes, sketch-from-image, etc.)
  • Skill optimizer — automatically improve skill instructions via iterative test-evaluate-modify loop (/optimize-skill)
  • Hooks — user-defined Python hooks for lifecycle events (block tools, modify input, log activity, convert file attachments)
  • User extension tools — register your own Python functions as LLM-callable tools (.py or .FCMacro)
  • Vision routing — auto-detects LLM vision capability; non-vision models use MCP fallback via llm-vision-mcp, no-vision-path disables image controls
  • File attachments — attach images, text files, and documents to chat messages (capture, attach, drag-drop, paste); extensible via file_attach hook for binary formats (PDF, DOCX) or MCP servers for rich conversion
  • Image support — viewport screenshots and images sent as vision blocks; auto-detected binary format rejection (PDF, ZIP, Office docs)
  • Thinking mode — enable LLM reasoning for complex multi-step tasks (Off / On / Extended)
  • Context compacting — automatically summarizes older messages when approaching context limits
  • Fallback profiles — when the chat model can’t be reached (Ollama box off, vendor 503, revoked key), the turn is tried once on each profile you list, in order, and a note says which one answered
  • Session resume — save and load chat sessions to continue work later
  • 27 LLM providers — Anthropic, OpenAI, Ollama, Gemini, OpenRouter, Requesty, Opper, Cloudflare Workers AI, Moonshot, DeepSeek, Qwen, Groq, Mistral, Together, Fireworks, xAI, Cohere, SambaNova, MiniMax, Llama, GitHub Models, HuggingFace, Zhipu, Perplexity, DemonRoute, Runcrate, Synap, plus any OpenAI-compatible endpoint via Custom
  • Context-aware — automatically includes document state (objects, properties, selection) in prompts
  • Error self-correction — failed code is sent back to the LLM for automatic retry (up to 3 attempts)
  • AGENTS.md support — project-level instructions with include directives and variable substitution
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add ghbalf/freecad-ai
新手?先看 mcpskill.org 教程 →