AI Skill Hub 推荐使用:开源AI工作流:Personal Reasoning Engine 是一款优质的Agent工作流。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的Agent工作流解决方案,这是一个值得深入了解的选择。
Personal Reasoning Engine — Gemma 4 powered Agentic assistant running locally,支持JavaScript开发。
开源AI工作流:Personal Reasoning Engine 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
Personal Reasoning Engine — Gemma 4 powered Agentic assistant running locally,支持JavaScript开发。
开源AI工作流:Personal Reasoning Engine 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:npm 全局安装 npm install -g pre # 方式二:npx 直接运行(无需安装) npx pre --help # 方式三:项目依赖安装 npm install pre # 方式四:从源码运行 git clone https://github.com/sunkencity999/pre cd pre npm install npm start
# 命令行使用
pre --help
# 基本用法
pre [options] <input>
# Node.js 代码中使用
const pre = require('pre');
const result = await pre.run(options);
console.log(result);
# pre 配置说明 # 查看配置选项 pre --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export PRE_CONFIG="/path/to/config.yml"
A local AI operating system for macOS, Windows, and Linux. 79 tools, autonomous background agents, multi-model routing, self-improving calibration, knowledge graph, desktop automation, document intelligence, voice interface, event-driven triggers, 16 enterprise integrations, persistent memory, self-architecting virtual tools, and a full management GUI — running entirely on your hardware by default. No cloud required. Optionally connect any OpenAI-compatible API, Azure AI Foundry, or Anthropic endpoint for cloud-powered inference while keeping all tools, memory, and data local.
PRE is not a chatbot with tools bolted on. It is a purpose-built agentic platform — engineered from the ground up around one specific model on one specific hardware target, then generalized across platforms. Every architectural decision, from socket-level I/O to dynamic memory allocation to prompt compression, exists to make Google Gemma 4 26B-A4B run at its absolute ceiling on Apple Silicon. The result is a local agent that doesn't feel local: ~73 tokens/second, sub-second time to first token, 128K context window, 79 integrated tools, persistent memory, local RAG, local image generation, autonomous scheduling, event-driven triggers, voice interface, a built-in web GUI, and real agentic workflows — all running on your hardware.
PRE 2.0 adds four pillars that bring capabilities previously exclusive to frontier cloud agents:
| Pillar | What It Does | Why It Matters |
|---|---|---|
| **Multi-Model Router** | Classifies messages by complexity and routes to fast, standard, or frontier models | Get instant answers for simple queries, full reasoning for complex ones — like Claude's model routing, but you control the tiers |
| **Autonomous Background Agents** | Fire-and-forget agents that run in parallel, survive sleep/hibernate/reboot, checkpoint every tool turn | Long-running research, code generation, and analysis tasks run autonomously while you work — something no other local agent offers |
| **Learning from Experience** | Calibrated self-knowledge, skill effectiveness tracking, knowledge graph, and training data export for personal fine-tuning | PRE knows what it's good at, understands how its knowledge connects, improves over time, and can export its experience as fine-tuning data — a closed feedback loop no cloud agent provides |
| **Self-Awareness** | Runtime operational state summary injected into every prompt — confidence, agents, triggers, graph stats | PRE knows exactly what it has running, where it's strong, and how much it's learned — no other local agent has introspective context |
PRE has two interfaces: a CLI (macOS Apple Silicon only, Objective-C) and a Web GUI (Node.js) that runs on macOS (Apple Silicon + Intel with eGPU), Windows, and Linux. The Web GUI provides full access to all 79 tools with platform-native implementations on each OS.
The reference system is a MacBook Pro with an M4 Max (128 GB unified memory). Windows and Linux systems require an NVIDIA GPU (Linux also supports AMD via ROCm). Intel Macs are supported via eGPU (NVIDIA Ampere+ or AMD RDNA3+) using the TinyGPU driver. All three installers auto-detect GPU VRAM and select the optimal quantization (28+ GB VRAM for q8_0, otherwise q4_K_M).
---
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="docs/pre_poster.svg"> <source media="(prefers-color-scheme: light)" srcset="docs/pre_poster.svg"> <img alt="PRE Architecture Overview" src="docs/pre_poster_4x.png" width="800"> </picture> </p>
---
Anthropic's Claude ecosystem introduced a "Skills" concept — static instruction files (SKILL.md) that teach Claude how to perform specific workflows. It's a good idea, but it's manual: someone writes the skill, tests it, distributes it.
PRE takes this further with progressive skill intelligence:
Static skills are a starting point. PRE's skills are alive — they emerge from usage, evolve with feedback, and die when they stop working.
---
PRE 2.0 is a major release that adds three capability pillars previously available only in frontier cloud agents — or not available anywhere at all.
| Component | Required |
|---|---|
| **macOS** | 14.0+ (Sonoma or later) |
| **Chip** | Apple Silicon (M1 or later) |
| **RAM** | 32 GB minimum, 64+ GB recommended |
| **Disk** | ~28 GB for model, +8 GB for image generation (optional) |
| **Ollama** | [ollama.ai](https://ollama.ai) or brew install ollama |
| **Xcode CLI** | xcode-select --install |
| **Node.js 18+** | For web GUI (brew install node) |
| **Python 3.10-3.13** | Optional — for ComfyUI image generation |
| Component | Required |
|---|---|
| **macOS** | 12.1+ (Monterey or later) |
| **Chip** | Intel x86_64 |
| **eGPU** | NVIDIA Ampere+ (RTX 3000+) or AMD RDNA3+ via Thunderbolt/USB4 |
| **TinyGPU** | [tinygrad TinyGPU driver](https://docs.tinygrad.org/tinygpu/) (Apple-signed) |
| **Docker Desktop** | Required for NVIDIA CUDA path ([docker.com](https://www.docker.com/products/docker-desktop/)) |
| **RAM** | 16 GB minimum (model runs on eGPU VRAM) |
| **eGPU VRAM** | 16+ GB (q4_K_M); 28+ GB for q8_0 |
| **Disk** | ~15 GB (q4_K_M) or ~28 GB (q8_0) for model |
| **Ollama 0.4+** | [ollama.ai](https://ollama.ai) (auto-detects TinyGPU) |
| **Node.js 18+** | For web GUI (brew install node) |
Note: Intel Macs run the Web GUI only (CLI requires Apple Silicon). PRE detects eGPU connections at runtime (30-second polling) — you can plug in an eGPU after PRE is already running and it will be detected automatically.
| Component | Required |
|---|---|
| **Windows** | 10 or 11 |
| **GPU** | NVIDIA (for Ollama GPU inference) |
| **RAM** | 16 GB minimum, 64+ GB recommended for large context windows |
| **GPU VRAM** | 16+ GB (q4_K_M); 28+ GB for q8_0 — model must fit in VRAM for full speed |
| **Disk** | ~15 GB (q4_K_M) or ~28 GB (q8_0) for model |
| **Ollama** | [ollama.ai](https://ollama.ai) or installed via winget by the installer |
| **Node.js 18+** | Installed via winget by the installer |
| Component | Required |
|---|---|
| **Distro** | Ubuntu 22.04+, Debian 12+, Fedora 38+ (Arch best-effort) |
| **GPU** | NVIDIA with CUDA (for Ollama GPU inference); AMD ROCm future |
| **RAM** | 16 GB minimum, 64+ GB recommended for large context windows |
| **GPU VRAM** | 16+ GB (q4_K_M); 28+ GB for q8_0 — model must fit in VRAM for full speed |
| **Disk** | ~15 GB (q4_K_M) or ~28 GB (q8_0) for model |
| **Ollama** | Installed via official script by the installer |
| **Node.js 18+** | Via nvm, nodesource, or distro package |
Optional: evolution-data-server (calendar/contacts/reminders via GNOME EDS), xdotool + scrot (desktop automation, X11), espeak-ng (TTS), xclip (clipboard).
All three installers follow the same pattern: check prerequisites, install missing dependencies, pull the Gemma 4 model from Ollama, auto-select quantization based on available memory, create ~/.pre/ data directories, size the context window, set up the Web GUI, and optionally configure auto-start. Everything stays local — no accounts, no cloud setup, no telemetry. The install is idempotent: running it again updates without breaking your existing data.
PRE detects your project, loads memories, and drops you into an interactive prompt:
╔══════════════════════════════════════════════════╗
║ Personal Reasoning Engine (PRE) 2.0 ║
║ Gemma 4 26B-A4B ║
╚══════════════════════════════════════════════════╝
Server: http://localhost:11434
Web GUI: http://localhost:7749
Project: my-project /Users/you/my-project
Channel: #general
Memory: 3 entries loaded
Type /help for commands
my-project #general>
---
git clone https://github.com/sunkencity999/pre.git
cd pre
./install.sh
The installer handles everything: system validation, Ollama, model pull, binary compilation, web GUI dependencies, terminal-notifier, ComfyUI (optional), data directories, RAM-based context window sizing, MCP auto-setup for Claude/Codex/Antigravity, model pre-warming, fast tier model creation (pre-gemma4-fast), inference backend selection (Ollama vs llama.cpp), and optional auto-start at login.
Inference backend: The installer auto-selects the best backend for your hardware. NVIDIA GPU users (via eGPU) get llama.cpp (Flash Attention + GBNF grammar constraints). Apple Silicon users get Ollama (simpler model management, similar performance). You can switch backends anytime from Settings.
./install.sh --yes # Non-interactive — accepts all defaults
Or install manually:
```bash
make pre telegram
git clone https://github.com/sunkencity999/pre.git
cd pre
Easiest: Double-click install.cmd in the pre folder. This handles execution policy automatically.
From a terminal:
powershell -ExecutionPolicy Bypass -File install.ps1
powershell -ExecutionPolicy Bypass -File install.ps1 -Yes # Non-interactive
The installer checks system requirements, installs Ollama and Node.js via winget, pulls the model, creates the fast tier model (pre-gemma4-fast), creates ~/.pre/ directories, auto-sizes the context window based on RAM, offers llama.cpp as the default backend for NVIDIA GPUs (with Ollama as fallback for embeddings), configures Ollama environment variables, and optionally enables auto-start at login.
Note: The Windows installer sets up the Web GUI only. The CLI engine (pre.m) is an Objective-C application that requires macOS. The Telegram bot is included in the Web GUI and works on all platforms.
git clone https://github.com/sunkencity999/pre.git
cd pre
./install-linux.sh
The installer detects your distro and package manager (apt/dnf/pacman), checks NVIDIA VRAM via nvidia-smi, installs Ollama, pulls the model with VRAM-aware quant selection, creates the fast tier model (pre-gemma4-fast), offers llama.cpp as the default backend for NVIDIA GPUs, installs Node.js dependencies, auto-sizes the context window, and optionally installs voice tools, GNOME PIM integration (evolution-data-server), desktop automation tools (xdotool/scrot), and systemd autostart.
Note: Linux runs the Web GUI only. The CLI engine requires macOS. Native app integration (calendar, contacts, reminders) requires GNOME with Evolution Data Server.
brew install terminal-notifier
16 services in one interface — Jira, Confluence, SharePoint, Smartsheet, Slack, Linear, Zoom, Figma, Asana, Dynamics 365, Gmail, Google Drive, Google Docs, GitHub, Telegram, Brave Search, and Wolfram Alpha. Search Jira, cross-reference Confluence, pull a file from SharePoint, and post a summary to Slack — in one conversation.
Native app integrations (zero config) — Mail, Calendar, Contacts, Reminders, Notes, and Spotlight work immediately with whatever accounts you've configured. On macOS, uses Mail.app, Calendar.app, Contacts.app, Reminders.app, and Notes.app via AppleScript/EventKit. On Windows, uses Outlook COM for mail, calendar, contacts, and tasks, plus local markdown notes. Spotlight uses Windows Search on Windows. No API keys, no OAuth on either platform.
| Capability | PRE | Claude Code | Codex CLI | Cursor | Windsurf | Aider | Goose |
|---|---|---|---|---|---|---|---|
| **Local inference (zero cost)** | Default | No (cloud API) | No (cloud API) | No (cloud) | No (cloud) | Optional | Optional |
| **Tool count** | 79 | ~15 | ~10 | ~25 | ~12 | ~10 | ~10 |
| **Background agents w/ crash recovery** | Yes | No | No | Partial | Partial | No | No |
| **Cron scheduling** | Yes | No | No | No | No | No | No |
| **Event-driven triggers** | Yes | No | No | No | No | No | No |
| **Self-improving calibration** | Yes | No | No | No | No | No | No |
| **Skill auto-discovery + behavioral guidance** | Yes | No | No | No | No | No | No |
| **Training data export** | Yes | No | No | No | No | No | No |
| **Native OS app integration** | Yes (Mail, Calendar, Contacts, Reminders, Notes) | No | No | No | No | No | No |
| **Desktop automation + workflow replay** | Yes | No | Limited | No | No | No | No |
| **16 enterprise integrations** | Yes | No (MCP only) | No | No | No | No | MCP only |
| **Local RAG (semantic search)** | Yes | No | No | Codebase only | Codebase only | Codebase map | No |
| **Local image generation** | Yes (ComfyUI) | No | No | No | No | No | No |
| **Voice interface** | Yes (Whisper + TTS) | No | No | No | No | Voice input only | No |
| **Persistent memory (auto-extracted, embedding-ranked)** | Yes | Project-scoped | No | Limited | No | No | No |
| **Multi-model routing** | Yes | No | No | Manual model picker | No | Manual | Manual |
| **Full management GUI** | Yes | CLI primary | CLI only | IDE-bound | IDE-bound | CLI only | Desktop app |
| **Monthly cost** | $0 | $20-200+ | API billing | $20+ | $15+ | API billing | Free + API |
该项目提供了一个开源AI工作流解决方案,支持JavaScript开发,适用于需要本地AI工作流的开发者,但需要注意依赖安装和配置。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,开源AI工作流:Personal Reasoning Engine 是一款质量良好的Agent工作流,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | pre |
| 原始描述 | 开源AI工作流:Personal Reasoning Engine — Gemma 4 powered Agentic assistant running locally an。⭐10 · JavaScript |
| Topics | workflowapple-silicongemma4inferencellmlocal-aijavascript |
| GitHub | https://github.com/sunkencity999/pre |
| License | MIT |
| 语言 | JavaScript |
收录时间:2026-05-18 · 更新时间:2026-05-19 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端