ghostwork

Free open-source Screenpipe GUI + macOS automation agent. Search your screen history, view analytics, automate workflows — all local, no cloud. Works with the free Screenpipe CLI.

121
Stars
9
Forks
TypeScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/hvardhan878/ghostwork

快速入门

使用 ghostwork 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Ghostwork

Discord License: GPL v3

The first agent you don't prompt.

Ghostwork runs silently in the background, learns how you work from observation alone, and gradually takes repetitive tasks off your hands — without you ever writing a prompt or setting up an integration.


Free Screenpipe GUI

Screenpipe's desktop app moved to a paid model ($25/month). Ghostwork works with the free Screenpipe CLI and provides a full open-source GUI layer on top:

FeatureGhostwork (free)Screenpipe desktop ($25/mo)
Timeline view
Natural language search
App usage analytics
macOS workflow automation
Learns from observation
Runs autonomously
Local / no cloud
Open source✅ GPL-3.0Source-available

Ghostwork does everything the paid Screenpipe GUI does, plus it automates the workflows it discovers — for free.


What it does

Ghostwork watches every interaction across every app on your Mac (via Screenpipe), builds a rich memory of your work patterns, and surfaces automations the moment they're relevant.

Memory layers

LayerWhat's storedHow it's built
L1 WorkingCurrent screen context (app, URL, OCR)Live, polled every 10 s
L2 EpisodicRaw interactions: clicks, keys, navigations, app switchesIngested every 2 min from Screenpipe's input stream
L3 SemanticWorkflows and rules: "WHEN on LinkedIn search → DO export to CRM"Promoted nightly from episodic memory via LLM
L4 ProceduralExecutable skills with step-by-step DOM/AX locatorsPromoted nightly from stable semantic rules

Nightly consolidation (sleep cycle)

Every night Ghostwork runs a 3-phase consolidation:

  1. NREM — LLM analyses unsummarised sessions and promotes patterns to rules
  2. REM — Rules with 3+ observations that have browser-recorded events are compiled into executable skills
  3. GC — Power-law confidence decay, dedup, 90-day prune of raw events, behaviour.md rewrite

The living behaviour.md profile is injected into every LLM prompt, so the trigger decision has full context about who you are and what you do.


Autonomy tiers

Ghostwork earns autonomy, never assumes it:

TierTriggered whenBehaviour
SupervisedDefault for all new rulesExecutes immediately, shows HUD notification, Cmd+Z available
Autonomous≥5 accepts and <2 rejections in last 10Runs silently; logged to Activity feed

Actions that are externally visible (send email, submit form, post) always require one-tap approval regardless of tier.


Execution stack

  1. Compiled skill replay — zero-token deterministic replay of recorded step sequences
  2. AX-first native controlax_list_elements + ax_click_element via macOS Accessibility API; ~95% accuracy on native apps
  3. Claude vision fallback — pixel-level screenshots + function calling for browsers and AX-empty apps

When a multi-step sequence fails mid-way, Ghostwork fires Cmd+Z for each completed reversible step in reverse order before surfacing the error.


UI

  • Menu bar icon — reflects current state: observing / working
  • Activity feed — chronological log of every action taken and approval waiting
  • Timeline tab — drill down into every recorded session; save any session as a skill
  • Behaviour tab — learned rules with autonomy progress, category badges, and one-click boost
  • Approvals — staged actions waiting for your confirmation before executing externally visible steps

Setup

Prerequisites

  • macOS 12+
  • Screenpipe installed and running (screenpipe)
  • Node.js 20+ and npm
  • An OpenRouter API key (or Anthropic key)

Install

git clone https://github.com/your-org/ghostwork
cd ghostwork
npm install
npx @electron/rebuild -f -w better-sqlite3

Configure

cp .env.example .env

Edit .env:

OPENROUTER_API_KEY=sk-or-...
ANTHROPIC_API_KEY=sk-ant-...   # optional, used for native computer use

Run

npm start          # development (hot reload)
npm run build      # production build
npm run dist       # package as .dmg

Architecture

Screenpipe ──► sessionIngester (2min) ──► raw_events ──► extractor (30min) ──► rules
                                                                                   │
                                                                          NREM/REM nightly
                                                                                   │
                                                                              compiled skills
                                                                                   │
                              actionEngine (10s) ──► LLM trigger ──► AX-first executor
                                                                    └──► vision fallback

Key files:

FileResponsibility
sessionIngester.ts2 min poll → raw_events + per-event prediction scoring
extractor.ts30 min batch → 7-category structured rule extraction
consolidation.tsNightly NREM (sessions→rules) + REM (rules→skills) + GC
actionEngine.ts10 s perception loop + LLM trigger decision + dispatch
computerUse.tsAX-first executor + Claude vision fallback
axDriver.tsmacOS accessibility tree (AXUIElement via AppleScript)
skillEngine.tsBrowser skill replay with multi-step rollback
approvals.tsShadow-mode approval queue for externally visible actions
db.tsGhostWork SQLite: rules, episodes, skills, approvals, settings

Contributing

See CONTRIBUTING.md for setup instructions and coding guidelines.

Open issues on GitHub — look for good first issue labels. Join the Discord to discuss ideas or get help getting set up.


Privacy

  • All data stays on your device. No cloud sync, no telemetry.
  • Ghostwork excludes itself, Cursor, and any app you add to the exclusion list.
  • Raw events are pruned after 90 days.
  • PII (emails, phone numbers, card numbers) is stripped before any LLM call.
  • The behaviour.md profile never leaves your machine.

Roadmap

  • Full autopilot mode: skill execution without any prompt
  • Cross-session pattern detection in REM phase
  • Browser extension for richer DOM locators in user's main Chrome profile
  • Windows support (via Screenpipe Windows builds)
  • Team profiles (opt-in, anonymised)

Licence

GPL-3.0 — see LICENSE for details.

常见问题

What is ghostwork?

ghostwork is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by hvardhan878. Free open-source Screenpipe GUI + macOS automation agent. Search your screen history, view analytics, automate workflows — all local, no cloud. Works with the free Screenpipe CLI. It has 121 GitHub stars.

Is ghostwork safe to use?

ghostwork returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.

How do I install ghostwork?

Clone the repository with "git clone https://github.com/hvardhan878/ghostwork" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is ghostwork written in?

ghostwork is primarily written in TypeScript. It is open-source under hvardhan878 on GitHub, so you can review or fork the full source.

Are there alternatives to ghostwork?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh ghostwork against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情