🔍 A local-first CLI that shadows employee workflows like a silent observer and auto-generates anonymized Standard Operating Procedures (SOPs). Fully offline, PII-safe
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
git clone https://github.com/datasynx/agentic-ai-shadowingTools overview
<div align="center">
<img src="https://raw.githubusercontent.com/datasynx/agentic-ai-shadowing/main/docs/assets/datasynx-logo.png" alt="Datasynx" width="220" />
# Datasynx Shadowing · `shadowing`
### The SOPs your team never has time to write.
**Local-first. MCP-native. Claude-powered.**
Shadowing observes daily workflows like a silent shadow — shell commands, active windows, git commits, file changes — and automatically generates anonymized Standard Operating Procedures (SOPs) via Claude. Fully local, fully anonymized.
<p>
<a href="#-quick-start"><strong>Quickstart</strong></a> · <a href="https://datasynx.github.io/agentic-ai-shadowing/"><strong>Docs</strong></a> · <a href="https://www.npmjs.com/package/@datasynx/agentic-ai-shadowing"><strong>npm</strong></a> · <a href="https://github.com/datasynx/agentic-ai-shadowing"><strong>GitHub</strong></a> · <a href="https://www.linkedin.com/company/datasynx-ai/"><strong>LinkedIn</strong></a>
</p>
[](https://www.npmjs.com/package/@datasynx/agentic-ai-shadowing)
[](https://www.npmjs.com/package/@datasynx/agentic-ai-shadowing)
[](https://github.com/datasynx/agentic-ai-shadowing/actions/workflows/ci.yml)
[](https://datasynx.github.io/agentic-ai-shadowing/)
[](https://github.com/datasynx/agentic-ai-shadowing/stargazers)
[](./LICENSE)
[](https://nodejs.org)
[](https://docs.anthropic.com)
[](https://github.com/datasynx/agentic-ai-shadowing/actions/workflows/ci.yml)
</div>
---
| Without | With |
| ----------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| ❌ SOPs are written from memory weeks later — if they're written at all. | ✅ The procedure is captured *as the work happens*. Claude turns it into a structured SOP on demand. |
| ❌ Tribal knowledge walks out the door when someone leaves. | ✅ Every recurring task becomes a versioned, reviewable, exportable SOP. |
| ❌ A monitoring SaaS ships your screen activity to someone else's cloud. | ✅ 100% local — SQLite on the employee's machine. No cloud, no daemon, no telemetry. |
| ❌ Exports leak emails, IPs, IBANs, and file paths into shared docs. | ✅ Every export is automatically PII-scrubbed — and you can preview the redaction first. |
| ❌ "Is this SOP still accurate?" — nobody knows. | ✅ Consistency, maturity, and freshness scores flag which SOPs have gone stale. |
| ❌ Switch to a separate tool to update a procedure. | ✅ Your agent drives it in place via MCP, from inside Claude Code / Codex / Cursor. |
---
## What it does
```
$ shadowing start
Agentic AI Shadowing — Active
? Start a new task? Yes
? Task title: Monthly SAP Closing
? Short description: Monthly closing tasks in SAP FI
Task started: "Monthly SAP Closing" (ID: a3f8c210)
? What would you like to do?
> Complete task → Generate SOP
Pause task
Add note to current step
End shadowing
? How complex was this task? 3 - Medium
Task completed. Duration: 1h 23min 45s
Generating SOP...
SOP generated!
+-------------------------------------------------+
| Monthly SAP Closing — Standard Operating |
| Procedure |
| Tags: #accounting #sap #monthly |
| Steps: 8 |
+-------------------------------------------------+
```
```
$ shadowing observe --auto-sop
Observation started (Session: b7e2f4a1)
Sources: Windows · Shell History · Git
Auto-SOP: enabled
[14:23:01] Window VS Code — src/api/routes.ts
[14:23:45] Shell git diff src/api/routes.ts
[14:24:12] Shell npm run test
[14:31:00] Window Chrome — Jira Board
[14:35:22] Shell git commit -m "fix: validate input"
[14:35:30] Shell git push origin feature/validation
Observation ended. 2 tasks detected → 2 SOPs generated.
```
---
## Why it's different
- **Local-first by default** — a SQLite database on the employee's machine. No cloud sync, no background daemon, no telemetry. The only outbound call is to the Claude API for SOP generation.
- **Employee-driven** — the person doing the work starts, pauses, and completes tasks. Nothing is captured without consent and exclusion rules.
- **Anonymized at the boundary** — exports run through a PII redactor (emails, IPs, URLs, phones, file paths — plus always-on IBAN / credit-card / tax-ID / SSN scrubbing).
- **MCP-native, not bolted-on** — a 17-tool MCP server lets Claude Code, Codex, and Cursor drive Shadowing directly.
- **Quality you can measure** — consistency, maturity, and freshness scores tell you which SOPs are trustworthy and which have gone stale.
- **MIT-licensed TypeScript** — strict, ESM-only, fully typed, and extensible.
---
## Architecture
```mermaid
flowchart LR
You["🧑 Employee"] --> CLI
Agent["🤖 Claude Code · Codex · Cursor"] <-->|Model Context Protocol| MCP
subgraph local["🔒 Your machine"]
CLI["⚙️ shadowing CLI<br/>27 commands"]
MCP["🔌 MCP server<br/>17 typed tools"]
DB["📁 SQLite WAL<br/>tasks · SOPs · sessions"]
CLI <--> DB
MCP <--> DB
Anon["🛡️ Anonymizer<br/>PII redaction"]
DB --> Anon --> Exports["📤 exports/*.md + manifest.json"]
end
CLI <-->|SOP generation| Claude["✨ Claude API"]
Carto["🗺️ Cartography graph"] -. optional context .-> CLI
```
---
## Features
| Feature | Details |
|---------|---------|
| **Automatic Observation** | Shell history, active windows, git commits, and file changes — cross-platform |
| **AI SOP Generation** | Claude generates structured SOPs with goal, prerequisites, steps, expected results |
| **Enterprise Dashboard** | Dark-theme web dashboard with SOP editor, metrics, diff viewer, export workflow |
| **Quality Metrics** | Consistency, maturity, freshness, and overall score per SOP |
| **PII Anonymization** | Email, IP, URL, phone, file paths, IBAN, credit cards, tax ID, social security number |
| **Version History** | Every SOP change is versioned with diff view |
| **Claude Code Integration** | MCP server (18 tools) + hook handler for seamless IDE integration |
| **Cartography Context** | System landscape from [@datasynx/agentic-ai-cartography](https://github.com/datasynx/agentic-ai-cartography) feeds into SOP generation |
| **Privacy First** | Consent management, exclusion rules, configurable anonymization |
| **100% Local** | SQLite DB, no cloud sync, no daemon — the employee controls everything |
---
## Cross-Platform Support
Shadowing detects windows and shell history natively on **Linux**, **macOS**, and **Windows**.
| Capability | Linux | macOS | Windows |
|---|---|---|---|
| **Window Detection** | `xdotool` (X11) | `osascript` (AppleScript) | PowerShell P/Invoke (`user32.dll`) |
| **Shell History** | Zsh extended, Bash timestamps | Zsh extended, Bash timestamps | PSReadLine ConsoleHost_history |
| **Git Tracking** | `git log` | `git log` | `git log` |
| **File Watching** | `fs.stat` | `fs.stat` | `fs.stat` |
| **Shell Detection** | `$SHELL` | `$SHELL` | `$MSYSTEM` / PowerShell fallback |
### Shell History Parser
| Shell | Format | Timestamps |
|-------|--------|-----------|
| **Zsh** | Extended (`: timestamp:duration;command`) | Exact |
| **Bash** | `#timestamp` + command lines | Exact |
| **Fish** | YAML-like (`- cmd:` / `when:`) | Exact |
| **PowerShell** | PSReadLine `ConsoleHost_history.txt` | Read time |
---
## Requirements
- **Node.js >= 22.12** (Linux, macOS, or Windows)
- **`ANTHROPIC_API_KEY`** environment variable — required **only for SOP generation**. Task tracking, observation, export, the dashboard, and metrics all work without it; you only need a key when you ask Claude to turn a task into an SOP.
- **[@datasynx/agentic-ai-cartography](https://github.com/datasynx/agentic-ai-cartography)** (optional, for infrastructure context)
```bash
export ANTHROPIC_API_KEY=sk-ant-...
```
### Environment variables
| Variable | Effect |
|----------|--------|
| `ANTHROPIC_API_KEY` | Claude API key, used for SOP generation and session analysis |
| `SHADOWING_UI_TOKEN` | Fixed Bearer token for the dashboard/REST API (otherwise a random one is generated per run) |
| `LOG_LEVEL` | `debug` / `info` / `warn` / `error`. The CLI defaults to `warn`; set `info` or `debug` to see diagnostic logs |
| `LOG_FORMAT` | Set to `json` for structured NDJSON logs |
---
## Install
```bash
npm install -g @datasynx/agentic-ai-shadowing
```
[](https://www.npmjs.com/package/@datasynx/agentic-ai-shadowing)
---
## 🚀 Quick Start
```bash
# 1. Setup (create DB + config)
shadowing init
# 2. Manual mode: start task → generate What people ask about agentic-ai-shadowing
What is datasynx/agentic-ai-shadowing?
+
datasynx/agentic-ai-shadowing is tools for the Claude AI ecosystem. 🔍 A local-first CLI that shadows employee workflows like a silent observer and auto-generates anonymized Standard Operating Procedures (SOPs). Fully offline, PII-safe It has 1 GitHub stars and was last updated today.
How do I install agentic-ai-shadowing?
+
You can install agentic-ai-shadowing by cloning the repository (https://github.com/datasynx/agentic-ai-shadowing) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is datasynx/agentic-ai-shadowing safe to use?
+
Our security agent has analyzed datasynx/agentic-ai-shadowing and assigned a Trust Score of 87/100 (tier: Trusted). See the full breakdown of passed checks and flags on this page.
Who maintains datasynx/agentic-ai-shadowing?
+
datasynx/agentic-ai-shadowing is maintained by datasynx. The last recorded GitHub activity is from today, with 19 open issues.
Are there alternatives to agentic-ai-shadowing?
+
Yes. On ClaudeWave you can browse similar tools at /categories/tools, sorted by popularity or recent activity.
Deploy agentic-ai-shadowing to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/datasynx-agentic-ai-shadowing)<a href="https://claudewave.com/repo/datasynx-agentic-ai-shadowing"><img src="https://claudewave.com/api/badge/datasynx-agentic-ai-shadowing" alt="Featured on ClaudeWave: datasynx/agentic-ai-shadowing" width="320" height="64" /></a>More Tools
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
An AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman
AI coding assistant skill (Claude Code, Codex, OpenCode, Cursor, Gemini CLI, and more). Turn any folder of code, SQL schemas, R scripts, shell scripts, docs, papers, images, or videos into a queryable knowledge graph. App code + database schema + infrastructure in one graph.
A light-weight and powerful meta-prompting, context engineering and spec-driven development system for Claude Code by TÂCHES.
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies