Open source AI Employees. 8 scheduled business roles, 60 routines, on Claude Code and 10 other harnesses. They drive your browser the way you do and improve every run. You own the files.
JavaScript ai-agentsai-employeeai-employeesantigravityautomationclaude-codeclaude-skillcodexhermes-agentopenclawopencodescheduled-taskssmall-business
Add the root documents, docs, installer, hire skill and workflows
markfultone2dc88d7039d
diff --git a/.github/FUNDING.yml b/.github/FUNDING.ymlnew file mode 100644index 0000000..0747f28--- /dev/null+++ b/.github/FUNDING.yml@@ -0,0 +1 @@+custom: ["https://club.reinventing.ai/?utm_source=github&utm_medium=sponsor-button&utm_campaign=ai-employees"]diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.ymlnew file mode 100644index 0000000..f2b88cc--- /dev/null+++ b/.github/ISSUE_TEMPLATE/bug.yml@@ -0,0 +1,64 @@+name: Something broke+description: A routine did the wrong thing, stopped when it should not have, or a run record says failed and you cannot tell why.+title: "[employee slug] [routine id]: one line"+labels: ["bug"]+body:+ - type: markdown+ attributes:+ value: |+ Thanks. The fastest fix comes from the run record and the file the routine touched. If the problem is a way to make a routine send, spend, or handle a credential, please use Security, then Report a vulnerability instead of this form.+ - type: dropdown+ id: employee+ attributes:+ label: Employee+ options:+ - gtm-engineer+ - seo-employee+ - web-dev-employee+ - social-media-employee+ - ad-manager-employee+ - sales-employee+ - customer-satisfaction-employee+ - chief-of-staff+ - the installer or the hire skill+ - the docs+ validations:+ required: true+ - type: input+ id: routine+ attributes:+ label: Routine id+ description: The folder name under routines/, for example gtm-board-standup. Leave blank if it is not about one routine.+ - type: input+ id: version+ attributes:+ label: Kit version and harness+ description: The VERSION file in the kit, and what ran it, for example 1.2.0 on Claude Desktop 1.1.5368 on Windows 11.+ validations:+ required: true+ - type: textarea+ id: expected+ attributes:+ label: What should have happened+ validations:+ required: true+ - type: textarea+ id: actual+ attributes:+ label: What happened+ description: Paste the run record line from runlog.jsonl if there is one. It carries no personal data by design. Do not paste a brief, a queue file, or anything with a customer's name in it.+ validations:+ required: true+ - type: textarea+ id: steps+ attributes:+ label: How to see it again+ description: The fire time, the page, or the file that triggers it.+ - type: checkboxes+ id: checks+ attributes:+ label: Before you send+ options:+ - label: I ran the three self tests (copy-check, runlog, guard) and they pass+ - label: There is no credential, token, customer name, or live URL with a token in this report+ required: truediff --git a/.github/ISSUE_TEMPLATE/employee-request.yml b/.github/ISSUE_TEMPLATE/employee-request.ymlnew file mode 100644index 0000000..f6aaf0c--- /dev/null+++ b/.github/ISSUE_TEMPLATE/employee-request.yml@@ -0,0 +1,48 @@+name: Employee request+description: A ninth role, proposed the way the eight are built.+title: "Employee: role name"+labels: ["employee-request"]+body:+ - type: markdown+ attributes:+ value: |+ An employee is a whole business role as a folder of scheduled routines, with a morning brief, two stops, and a schedule with no Sunday. Read docs/HOW-EMPLOYEES-WORK.md before filling this in. Premium roles I am already building are listed in the README under Go further, so check there first.+ - type: input+ id: role+ attributes:+ label: Role+ description: For example, Finance and Bookkeeping.+ validations:+ required: true+ - type: textarea+ id: replaces+ attributes:+ label: What it replaces+ description: The hire, retainer, or agency line this would cover, in one line.+ validations:+ required: true+ - type: textarea+ id: routines+ attributes:+ label: The routines+ description: Five to eight, each with a cadence and one line on what it owns. The weekday standup that writes the brief is one of them.+ validations:+ required: true+ - type: textarea+ id: stops+ attributes:+ label: Where the two stops fall in this role+ description: What a send or a spend looks like here, and what the routine does instead (drafts, stages, leaves a tab open).+ validations:+ required: true+ - type: textarea+ id: surfaces+ attributes:+ label: The surfaces it reads+ description: The screens, files, or accounts it would read through your own signed in browser. Read only.+ - type: checkboxes+ id: run+ attributes:+ label: Would you run it+ options:+ - label: I would run this on my own business and report what brokediff --git a/.github/ISSUE_TEMPLATE/routine-request.yml b/.github/ISSUE_TEMPLATE/routine-request.ymlnew file mode 100644index 0000000..164992a--- /dev/null+++ b/.github/ISSUE_TEMPLATE/routine-request.yml@@ -0,0 +1,50 @@+name: Routine request+description: A routine one of the eight employees should have.+title: "[employee slug]: routine idea in one line"+labels: ["routine-request"]+body:+ - type: markdown+ attributes:+ value: |+ A routine is a scheduled job that owns named files and writes one run record. It never sends and never spends. Read docs/HOW-EMPLOYEES-WORK.md first; the best requests already fit that shape.+ - type: dropdown+ id: employee+ attributes:+ label: Which employee+ options:+ - gtm-engineer+ - seo-employee+ - web-dev-employee+ - social-media-employee+ - ad-manager-employee+ - sales-employee+ - customer-satisfaction-employee+ - chief-of-staff+ validations:+ required: true+ - type: input+ id: cadence+ attributes:+ label: Cadence+ description: Weekdays, one weekday, or monthly. Nothing runs on a Sunday.+ validations:+ required: true+ - type: textarea+ id: owns+ attributes:+ label: What it would own+ description: The files it reads, the files it writes, and what the member opens the next morning.+ validations:+ required: true+ - type: textarea+ id: never+ attributes:+ label: What it must never do+ description: Beyond the two stops. For example, a routine that reads billing screens must name a refund and never make one.+ validations:+ required: true+ - type: textarea+ id: evidence+ attributes:+ label: Why it earns a slot+ description: What you do by hand today that this would replace, and roughly how often.diff --git a/.github/scripts/no-dashes.mjs b/.github/scripts/no-dashes.mjsnew file mode 100644index 0000000..43e2fc6--- /dev/null+++ b/.github/scripts/no-dashes.mjs@@ -0,0 +1,46 @@+#!/usr/bin/env node+// Fails on any em dash (U+2014) or en dash (U+2013) in shipped text.+// Covers README.md, the root documents, docs/, skills/, installer/, and every file under+// employees/. In a Markdown file that carries a "## Corrections" heading, only the text above+// that heading is checked, because the section below it belongs to whoever installed the kit.+import fs from "node:fs";+import path from "node:path";+import { fileURLToPath } from "node:url";++const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..", "..");+if (!fs.existsSync(path.join(ROOT, "employees"))) { process.stderr.write("no-dashes: cannot find employees/ under " + ROOT + "\n"); process.exit(2); }+const ROOTS = ["README.md", "CONTRIBUTING.md", "TRADEMARKS.md", "SECURITY.md", "CHANGELOG.md", "CREDITS.md", "docs", "skills", "installer", "employees", "assets", "package.json"];+const SKIP_DIRS = new Set([".git", "node_modules"]);+const TEXT = /\.(md|mjs|js|cjs|json|yml|yaml|txt|example|csv|jsonl)$/i;+// The en dash and the em dash, built from code points so this file never carries either character itself.+const DASHES = new RegExp("[" + String.fromCharCode(0x2013, 0x2014) + "]");++const hits = [];+function scan(file) {+ let text = fs.readFileSync(file, "utf8");+ if (file.endsWith(".md")) {+ const cut = text.indexOf("\n## Corrections");+ if (cut >= 0) text = text.slice(0, cut);+ }+ const lines = text.split("\n");+ lines.forEach((line, i) => {+ const col = line.search(DASHES);+ if (col >= 0) hits.push(path.relative(ROOT, file) + ":" + (i + 1) + ":" + (col + 1));+ });+}+function walk(p) {+ if (!fs.existsSync(p)) return;+ const st = fs.statSync(p);+ if (st.isDirectory()) {+ for (const e of fs.readdirSync(p)) if (!SKIP_DIRS.has(e)) walk(path.join(p, e));+ } else if (TEXT.test(p) || path.basename(p) === "VERSION") {+ scan(p);+ }+}+for (const r of ROOTS) walk(path.join(ROOT, r));++if (hits.length) {+ process.stdout.write("no-dashes: FAIL, " + hits.length + " dash character(s) found:\n " + hits.join("\n ") + "\n");+ process.exit(1);+}+process.stdout.write("no-dashes: PASS\n");diff --git a/.github/scripts/selftests.mjs b/.github/scripts/selftests.mjsnew file mode 100644index 0000000..19cedb3--- /dev/null+++ b/.github/scripts/selftests.mjs@@ -0,0 +1,40 @@+#!/usr/bin/env node+// Runs the three self tests in every kit and checks every routine's frontmatter.+import fs from "node:fs";+import path from "node:path";+import { spawnSync } from "node:child_process";+import { fileURLToPath } from "node:url";++const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..", "..");+const EMPLOYEES = path.join(ROOT, "employees");+let failures = 0;++for (const slug of fs.readdirSync(EMPLOYEES).sort()) {+ const dir = path.join(EMPLOYEES, slug);+ if (!fs.statSync(dir).isDirectory()) continue;+ for (const script of ["copy-check.mjs", "runlog.mjs", "guard.mjs"]) {+ const r = spawnSync(process.execPath, [path.join(dir, "scripts", script), "--selftest"], { encoding: "utf8" });+ const last = (r.stdout || "").trim().split("\n").pop() || (r.stderr || "").trim();+ const ok = r.status === 0;+ if (!ok) failures++;+ process.stdout.write((ok ? " ok " : " FAIL ") + slug + " " + script + ": " + last + "\n");+ }+ const routines = path.join(dir, "routines");+ for (const id of fs.readdirSync(routines)) {+ const text = fs.readFileSync(path.join(routines, id, "SKILL.md"), "utf8");+ const m = /^---\nname: ([^\n]+)\ndescription: ([^\n]+)\nmetadata:\n internal: true\n---\n/.exec(text);+ if (!m || m[1].trim() !== id) {+ failures++;+ process.stdout.write(" FAIL " + slug + " routines/" + id + ": frontmatter must be name, description, metadata.internal true, and name must equal the folder\n");+ }+ }+ const version = fs.readFileSync(path.join(dir, "VERSION"), "utf8").trim();+ const changelog = fs.readFileSync(path.join(dir, "CHANGELOG.md"), "utf8");+ if (!changelog.includes("\n## " + version + ",")) {+ failures++;+ process.stdout.write(" FAIL " + slug + ": VERSION " + version + " has no CHANGELOG heading\n");+ }+}++process.stdout.write(failures ? "selftests: FAIL (" + failures + ")\n" : "selftests: PASS\n");+process.exit(failures ? 1 : 0);diff --git a/CHANGELOG.md b/CHANGELOG.mdnew file mode 100644index 0000000..0e38990--- /dev/null+++ b/CHANGELOG.md@@ -0,0 +1,13 @@+# Release history++The repo version tracks the kits. Each employee carries its own `CHANGELOG.md` with the detail, and this file links them.++## 1.2.0, 2026-09-03++First release of the repository. The eight kits ship at 1.2.0, the cold install release: a prerequisites section in every README, `scripts/guard.mjs` in front of every routine, Windows launcher examples that fail loudly on a missing login, a login check in Phase 0 of every install prompt, scheduler accurate sleep and catch up text, a ten minute jitter tolerance on the drift check, a `.gitignore` in every kit, `metadata: internal: true` on every routine, brand neutral self test fixtures, and one pointer line home.++Kit changelogs: [GTM Engineer](employees/gtm-engineer/CHANGELOG.md), [SEO Employee](employees/seo-employee/CHANGELOG.md), [Web Dev Employee](employees/web-dev-employee/CHANGELOG.md), [Social Media Employee](employees/social-media-employee/CHANGELOG.md), [Ad Manager Employee](employees/ad-manager-employee/CHANGELOG.md), [Sales Employee](employees/sales-employee/CHANGELOG.md), [Customer Satisfaction Employee](employees/customer-satisfaction-employee/CHANGELOG.md), [Chief of Staff](employees/chief-of-staff/CHANGELOG.md).++Also in this release: the root documents (README, LICENSE, CONTRIBUTING, TRADEMARKS, SECURITY), the docs folder, the `hire` skill, the `npx ai-employees hire` installer, fictional examples per kit, and the no-dashes workflow.++Deferred to 1.3.0, and said so in `docs/COST.md`: splitting each root document into a short law section read every run and a reference section read on demand, and a flag that attaches measured cost to the record a routine just wrote.diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdnew file mode 100644index 0000000..09befab--- /dev/null+++ b/CONTRIBUTING.md@@ -0,0 +1,65 @@+# Contributing++Thank you for looking under the hood. This repo is eight AI employees, each a folder of scheduled routines, and the most useful contributions are the ones that come from running one on a real business and finding where it breaks.++## What I am looking for++- **Corrections from a real run.** A routine that asked for something it should have researched, a browser flow that no longer matches a site, a rule that reads wrong on a Monday morning. Open an issue with the routine id and what happened, or a pull request with the smallest change that fixes it.+- **Routine requests.** A routine one of the eight should have. Use the routine request template; say which employee, what it would own, and what it must never do.+- **Employee proposals.** A ninth role. Use the employee request template. Read `docs/HOW-EMPLOYEES-WORK.md` first, because a proposal that keeps the two stops and the schedule model is one I can build on.+- **Harness notes.** If you ran a kit on OpenClaw, Hermes, OpenCode, Codex, Antigravity, or on a Mac through launchd, tell me exactly what worked and what did not. `docs/HARNESSES.md` marks what I have tested myself and what I have not, and your report is what moves a row from untested to tested.+- **Show and tell.** Post what an employee did for your business in Discussions under Show and tell. Good ones go into the README's Employee of the Week series, with your name on them.++## Before you open a pull request++This repository is licensed under the MIT License (see LICENSE). By opening a+pull request you agree that your contribution is licensed under that same MIT+License, with no additional terms, and that you have the right to license it+that way. This is the default GitHub already applies to any repository with a+license notice; I am stating it here so nobody is surprised later.++Every commit needs a Developer Certificate of Origin sign-off. Run+`git commit -s` and git adds a line like+`Signed-off-by: Your Name <[email protected]>` to the commit message. That line+certifies the four statements at https://developercertificate.org, in short:+you wrote it, or you have the right to submit it under this license. Pull+requests without a sign-off fail the DCO check and I will not merge them.++Please know what happens to a merged correction. I fold fixes accepted here+back into the paid kits I sell inside the Agent Ops Club, which are built on+the same standard, and anyone else may reuse them in their own products,+because that is what the MIT License allows. Your name stays in the git+history and in CREDITS.md, and the MIT copyright and permission notice+travels with every copy. If that is not something you want, open an issue+with your suggestion instead of a pull request and I will write the fix+myself.++## The rules the kits are written to++These are checked by hand on every pull request, and the first one by a workflow.++1. **No em dash and no en dash, anywhere.** Not in prose, not in a code comment, not in a commit message. Use a period, a comma, or split the sentence. The `no-dashes` workflow fails the pull request otherwise. The one exception is the `## Corrections` section at the foot of each kit file, which belongs to whoever installed the kit.+2. **No hype words.** Nothing in a kit is described the way a launch page would describe it, and no multiplier is ever claimed. Say what the routine does and what it measured. Each kit's `copy-check.mjs` carries the banned list and will fail a draft that uses one.+3. **The two stops are not negotiable.** A change that lets a routine send, spend, submit, publish, enter a credential, or write a secret is closed without discussion. A change that widens what a routine may do without asking, inside its own folder, is welcome.+4. **Routines are scheduled jobs, not skills.** Nothing in a pull request installs anything into a global skills directory, and every `routines/<id>/SKILL.md` keeps `metadata: internal: true` in its frontmatter.+5. **No links to the club inside a routine body.** The one pointer line at the end of `INSTALL-PROMPT.md` and at the foot of the brief template is the whole of it. A `SKILL.md` that markets anything is a `SKILL.md` a registry will flag.+6. **Small, reviewable changes.** Replace the block that was wrong. A pull request that rewrites a whole file is closed with a request to split it.+7. **Names stay put.** A routine's folder name, its YAML `name`, and the name of its scheduled job are the same string, always. Renaming one is a breaking change and needs a CHANGELOG line and a version bump.++## Testing a change++There is no build. Three scripts in every kit carry a self test, and all three must pass:++```+node employees/<slug>/scripts/copy-check.mjs --selftest+node employees/<slug>/scripts/runlog.mjs --selftest+node employees/<slug>/scripts/guard.mjs --selftest+```++`node .github/scripts/selftests.mjs` runs all of them for all eight kits, and `node .github/scripts/no-dashes.mjs` runs the dash check the workflow runs. If your change touches copy a routine writes, run it through that kit's `copy-check.mjs` with the right `--dest` before you commit, the way the routine itself would.++If your change touches a routine's behaviour, say in the pull request which business you ran it on and what the run record said. A change nobody has run is a change I will run before merging, and that takes longer.++## Support++Issues are answered within a working day for the first month; after that, Discussions is where the community answers and I read every thread.diff --git a/CREDITS.md b/CREDITS.mdnew file mode 100644index 0000000..6466898--- /dev/null+++ b/CREDITS.md@@ -0,0 +1,9 @@+# Credits++Built by Mark Fulton (Reinventing.AI) with Claude Code.++The kits were written from routines that run in production on my own businesses, and the fixes in 1.2.0 came from installing the GTM Engineer template on a machine that had never run it and writing down everything that broke.++## Contributors++Every merged pull request adds a line here, generated from the git history, kit by kit. None yet.diff --git a/LICENSE b/LICENSEnew file mode 100644index 0000000..b60449a--- /dev/null+++ b/LICENSE@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2026 Mark Fulton++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/README.md b/README.mdnew file mode 100644index 0000000..395e7c1--- /dev/null+++ b/README.md@@ -0,0 +1,208 @@+<div align="center">++# AI Employees++**Open source, scheduled, yours.**++Eight AI employees that each run a whole business role on a schedule, on your own machine, on Claude Code. They never send and they never spend. You do.++[](https://claude.com/claude-code)+[](LICENSE)+[](docs/HARNESSES.md)+[](CONTRIBUTING.md)+[](https://www.npmjs.com/package/ai-employees)++**Created by [Mark Fulton](https://www.reinventing.ai/?utm_source=github&utm_medium=readme&utm_campaign=ai-employees), Reinventing.AI.** Founder of [Vibe Coding is Life](https://facebook.com/groups/vibecodinglife) (325,000+ members)++</div>++<!-- assets/demo.gif and assets/org-chart.png go here. The spec is in assets/README.md. -->++The GTM Engineer has run my club launch every weekday since August 27. The other seven are built to the same standard and I am running them on my own business from launch day, in public.++Not chat assistants. Scheduled jobs that cover a whole role, run on your own machine, and brief you every morning. Every routine, every schedule, every install prompt is in this repo. Nothing is held back.++## The eight++| Employee | Role | What it owns | Routines | Cadence | Folder |+|---|---|---|---|---|---|+| GTM Engineer | Go to market and launch | The growth hire who would own your entire launch: ICP, positioning, the launch board, outbound drafts, directory and press forms, paid setup, the weekly scoreboard | 8 | 4 weekday, 2 weekly, 2 monthly | [employees/gtm-engineer](employees/gtm-engineer) |+| SEO Employee | Search and content | A content marketer plus the SEO retainer: keyword research, one article a weekday, publishing to properties with no API, indexing, rank review, the calendar | 7 | 3 weekday, 3 weekly, 1 monthly | [employees/seo-employee](employees/seo-employee) |+| Web Dev Employee | Engineering and maintenance | The monthly maintenance retainer and the ticket queue: site health, error triage, small changes on a branch, dependency review, platform drift | 8 | 3 weekday, 3 weekly, 2 monthly | [employees/web-dev-employee](employees/web-dev-employee) |+| Social Media Employee | Audience and distribution | The social manager you keep meaning to hire: material sweep, platform native drafts in your voice, a veto window, engagement replies drafted never sent | 7 | 5 weekday, 1 weekly, 1 monthly | [employees/social-media-employee](employees/social-media-employee) |+| Ad Manager Employee | Paid acquisition | The percentage of spend agency, for the cadence work: account reads, creative sets, build sheets, the weekly change list. Money moves only when you approve | 7 | 4 weekday, 1 weekly, 2 monthly | [employees/ad-manager-employee](employees/ad-manager-employee) |+| Sales Employee | Pipeline and outreach | The SDR you cannot justify hiring yet: prospect sweeps, first touches into your own drafts, follow ups that never go quiet, the pipeline review | 7 | 4 weekday, 1 weekly, 2 monthly | [employees/sales-employee](employees/sales-employee) |+| Customer Satisfaction Employee | Support and retention | The support lead role, before you can afford one: inbox sweep, replies drafted hardest first, churn flags with evidence, the one product change that removes the most tickets | 8 | 4 weekday, 2 weekly, 2 monthly | [employees/customer-satisfaction-employee](employees/customer-satisfaction-employee) |+| Chief of Staff | Oversight and strategy | The operator who would run your week: reads every other employee's run log, names what quietly stopped, and argues against its own top recommendation | 7 | 2 weekday, 3 weekly, 2 monthly | [employees/chief-of-staff](employees/chief-of-staff) |++Fifty nine routines. Every one has an id that is its folder name, its YAML `name`, and the name of its scheduled job, always the same string.++## Quick start++Read [docs/PREREQUISITES.md](docs/PREREQUISITES.md) first. It is ten items, and the one that fails silently is the login.++**Path A, the installer.** Copies one employee to a folder outside cloud sync, runs its self tests, and prints its install prompt with the path filled in.++```+npx ai-employees hire gtm-engineer --to D:\AgentOps\gtm-engineer+```++**Path B, a clone.** Copy `employees/gtm-engineer` to a folder outside OneDrive, Dropbox, Google Drive or iCloud, open a Claude Code session there, and paste `INSTALL-PROMPT.md`.++Either way: you spend about ten minutes answering questions. The employee's first run takes about an hour and may ask for a second session. It researches your business from your own public pages instead of interviewing you, writes your strategy files, builds your dashboard, registers its own schedule, and stops exactly once to show you its first drafts. [docs/INSTALL.md](docs/INSTALL.md) is the long version, per operating system and per scheduler.++Tested on Claude Code on Windows through the Desktop app scheduler and Task Scheduler. OpenClaw and Hermes have built in cron and their install notes are included, not yet tested by me. OpenCode, Grok Bot, Codex and Antigravity notes come from the club docs and are untested. macOS through launchd is expected to work and untested until a Mac tester runs the checklist.++<details>+<summary>OpenClaw (notes included, not yet tested by me)</summary>++Reads the same `SKILL.md` format. Register each routine's schedule as an OpenClaw automation pointed at the kit's `routines/` folder: `openclaw automations create "<cron>" "Read <root>/routines/<id>/SKILL.md and follow it." --name <id> --session isolated`, one per routine, with the timezone flag. Probe its browser control first: the kit never signs in, so a clean browser means every read of your own accounts lands on a login wall. [docs/HARNESSES.md](docs/HARNESSES.md).+</details>++<details>+<summary>Hermes (notes included, not yet tested by me)</summary>++Point its built in cron at the kit's `routines/` folder and mirror the cadence in `SCHEDULE.md`, one job per routine, each handed that routine's `SKILL.md` as the prompt. Confirm it reads files and runs a shell command; then the file routines work and the browser question decides the rest.+</details>++<details>+<summary>OpenCode (untested, notes from the club docs)</summary>++Reads the Claude Code skill format directly. No scheduler of its own: mirror `SCHEDULE.md` into the operating system's scheduler with `opencode run "Read <root>/routines/<id>/SKILL.md and follow it."`, one job per routine. Add a browser automation server for the browser lane.+</details>++<details>+<summary>Grok Bot (untested, notes from the club docs)</summary>++Its bots already run routines on a schedule from their own cloud computer. Create one recurring task per routine and hand it that routine's `SKILL.md` as the run prompt. Whether it can reach your own signed in accounts is the thing to check first, because it runs somewhere else.+</details>++<details>+<summary>Codex (untested, notes from the club docs)</summary>++Drive the cadence with scheduled runs, one per routine, each `codex exec "Read <root>/routines/<id>/SKILL.md and follow it."`. Confirm the sandbox can write inside the kit folder and reach the network before you trust a run.+</details>++<details>+<summary>Antigravity (untested, notes from the club docs)</summary>++Schedule each routine with the `agy` job runner pointed at the routine folder rather than registered as a global pack: `agy -p "Read <root>/routines/<id>/SKILL.md and follow it."`. Settle whether it drives the browser profile you are signed in to or a clean one.+</details>++A free club account gets the guided Hire Your First AI Employee walkthrough with the launch replay, the session calendar, the preview lessons and employee updates: [club.reinventing.ai](https://club.reinventing.ai/?utm_source=github&utm_medium=readme&utm_campaign=ai-employees).++## What an employee is++A folder. Six documents and a `routines/` directory, and nothing runs anywhere else.++```+gtm-engineer/+ CONTRACT.md the spine: who writes which file, the guards, the two stops+ ROLE.md who this employee is and how it thinks+ CAPABILITIES.md capability to route, per harness, honest about what was confirmed+ SCHEDULE.md the only file that carries a cadence, a fire time, a window, or a budget+ INSTALL-PROMPT.md the one prompt you paste, once+ routines/<id>/SKILL.md one folder per routine+ scripts/ guard.mjs, runlog.mjs, copy-check.mjs, each with a --selftest+ run/ one Windows launcher example per routine+```++**Windows, not fire times.** Every routine has a fire time you register and a window it checks. Outside the window it records a skip and exits. A period key (the local date, the ISO week, or the month) makes sure the work happens once however many times the job fires. That is what makes a late or duplicated fire harmless, on every scheduler.++**Scheduled jobs, not skills.** A skill is invoked on demand. A routine is fired at a time, in a folder, inside a window. Point your scheduler at the kit's `routines/` folder and never copy them into a global skills directory; they carry `metadata: internal: true` so registries do not list them. The only on demand skill in this repo is [`hire`](skills/hire/SKILL.md).++**No Sunday.** A Sunday belongs to the ISO week that just ended, so a weekly routine there would share a period key with the following week and one of the two runs would be lost with no error.++**Glossary:** member: the person who owns this Employee. The kits say "the member" throughout; read it as you. The «guillemets» are placeholders the install fills in. [docs/HOW-EMPLOYEES-WORK.md](docs/HOW-EMPLOYEES-WORK.md) is the whole model, including the five laws every kit is built to.++## Two rules, and what each routine does++**They never send.** No email, DM, post, comment, connection request, form submit, or published page leaves without your hand on it. Drafts land in queue files and, if you turn it on, as unsent drafts in your own mailbox. Forms get filled and left open in their tab. On LinkedIn this is total: it reads your own signed in pages and never clicks, never types, never opens a composer.++**They never spend.** No budget, bid, campaign state, activation, or purchase changes. Nothing is created or saved inside an account that can spend, in any state, including a draft. A campaign is assembled as a build sheet and left for you. And they never create an account, enter a password, complete a captcha, accept terms, or write a credential into any file.++Two of the eight publish to properties you own, on your configuration and nowhere else: the SEO Employee publishes articles to your own blog, and the Social Media Employee hands drafted posts to the channel you connect, after a veto window in which the morning brief names what goes out today. Neither ever messages a person. Everything else is drafts.++| Routine kind | Reads | Writes | Leaves for you | Never |+|---|---|---|---|---|+| The standup, every weekday | Every ledger, run record and tick since yesterday | The board and the thirty line brief | The brief, first thing | Uses a browser |+| Sweeps (signals, prospects, inbox, site health, material, market) | Your own signed in pages and public pages | Dated, sourced ledger lines | Nothing to do; the drafts come from these | Types into a page, replies, marks anything read |+| Drafting (outreach, replies, posts, articles, creative) | The ledgers, your strategy files, your proof inventory | Queue files, unsent mailbox drafts, article drafts, creative sets | The drafts, to edit and send | Sends, posts, submits, or uses a number not in your proof inventory |+| Form filling (directories, press, listings) | The card and your strategy files | The queue entry with every field's value | The tab, filled, on the last step | Clicks Submit, Publish, Post, Send, Activate, Enable, or Create account |+| Account reads (ads, billing, analytics, registrar, host) | Read screens in accounts you are signed in to | Metrics ledgers, drift findings, build sheets | Every change as a paste ready line with the screen named | Changes a setting, saves a draft in an account that can spend |+| Weekly reviews and monthly refreshes | A week or a month of the kit's own ledgers | The scoreboard with a source beside every number, rewritten strategy where evidence disagrees | One kill and one scale, as cards | Estimates a number it did not measure |+| The Chief of Staff | Every other employee's run log, read only | The fleet page, the fault dossier, the decision brief | Three moves, argued both ways | Writes into another employee's folder |++Everything the employee decides on its own lands as one dated line in a changelog you can read in a minute. Everything it learns about your sites lands in a recipe file inside its own folder. When it gets something wrong, one dated line in that file's `## Corrections` section outranks the file from the next run on.++## Example output++From a fictional business, Northwind Roofing, on a baseline week. The real ones look like this with your cards in them. Every employee folder has an `examples/` directory with a brief, a run log and the ledgers the first run creates.++```+# 2026-03-05++## Today+- C-007 | Stage the storm season email for segment-1 | queue/2026-03-05-email.md+- C-011 | Fill the local trades directory listing and leave the tab open | queue/2026-03-05-form.md+- C-012 | Verify the quote request conversion event fires on the thank you page | paid/conversion-quote-request.md++## Waiting on you+- queue/2026-03-05-email.md: three drafts, none ticked+- queue/2026-03-04-dm.md: two drafts, one ticked+- C-009 | Submit the supplier co-marketing listing | filled in its tab, the submit is yours+- Assumption: working hours weekdays, seven to five local, read from the contact page; correct it in strategy/offer.md+- Strategy change: segment-3, property managers, gained a gathering place from the sweep, strategy/CHANGELOG.md++## Blocked+- gtm-signal-sweep, open since 2026-02-26: the review platform asked for a sign in, nothing entered+- one more open blocker, listed in gtm-latest.md++Guided version, updates and premium employees: club.reinventing.ai+```++[employees/gtm-engineer/examples/brief-latest.md](employees/gtm-engineer/examples/brief-latest.md), with the run log and the ledgers beside it.++## What it costs++- About $20 of API equivalent usage on a plain weekday per employee on Opus, about $27 on Monday and Friday, measured over 29 production runs of the GTM Engineer. About $8 a weekday on Sonnet by repricing the same tokens.+- On a Max 20x plan one employee fits comfortably in my experience; on Pro it will hit the weekly limit; on an API key it costs what the table says and loses the browser lane.+- A skipped fire used to cost about a dollar; the guard script now runs before any document is read so it costs cents. [docs/COST.md](docs/COST.md) has the per routine table, the dates, and what is still unmeasured.++## Before first run++- **Nothing to fill in.** The install researches your offer, your buyer and your positioning from your own public pages and confirms a short list with you. Three lines at the top of the install prompt: your folder, your home page, and an optional line for anything off limits.+- **A browser signed in** to the accounts the employee should read, and your mailbox if you want drafts landing there. Log in yourself; it never will.+- **Real customer words, if you have any.** Real quotes are the only social proof the routines are allowed to use. With none, they write copy with no social proof rather than inventing any.+- **Your ceilings.** A paid ceiling of zero puts the guard into observation only. Which channels are off limits, and any claim that must never be made, one line each.+- **A machine that is awake** at the fire times in `SCHEDULE.md`, or fire times moved to after it normally wakes.++## Employee of the Week++One employee at a time, with a real output from a real run on my own business. The series lives at [docs/EMPLOYEE-OF-THE-WEEK.md](docs/EMPLOYEE-OF-THE-WEEK.md). Community entries from Discussions go there too, with your name on them.++## Contributing++Routine requests, employee proposals, harness reports, translations, and corrections from real runs. Post what an employee did for your business in Discussions under Show and tell; good builds go into the README with your name on them. [CONTRIBUTING.md](CONTRIBUTING.md) has the rules: MIT in and out, a DCO sign off on every commit, no em or en dash anywhere, and the two stops are not negotiable.++Issues are answered within a working day for the first month; after that, Discussions is where the community answers and I read every thread.++## Go further++The eight are free for good. The Agent Ops Masterclass, the premium software library with a resale license, the live sessions and, from October, premium employees live in the [Agent Ops Club](https://club.reinventing.ai/?utm_source=github&utm_medium=readme&utm_campaign=ai-employees). A free club account gets you the session calendar, the walkthrough lesson with the launch replay, the preview lessons and employee updates.++## FAQ++**Does it send anything?** No. Drafts, filled forms, build sheets. You press the button. **Windows or Mac?** Tested on Windows; macOS expected to work and untested until a Mac tester runs the checklist. **Can I run just one?** Yes; each is a self contained folder. **What if my machine is asleep?** The Desktop app and Task Scheduler run one late catch up, launchd folds missed fires into one, cron skips; the window makes any of that safe. **Can I sell installs to clients?** Yes, it is MIT; just do not call yours by the club's name. The rest is in [docs/FAQ.md](docs/FAQ.md).++## License++MIT. Copyright (c) 2026 Mark Fulton. [LICENSE](LICENSE).++## Trademarks++Names and logos are not licensed. "Reinventing.AI" and "Agent Ops Club" are claimed as marks; "AI Employees" and the role names are descriptive and free to use. Forks get their own name. [TRADEMARKS.md](TRADEMARKS.md).++## Credits++Built by Mark Fulton with Claude Code. Every contributor is in [CREDITS.md](CREDITS.md) and in the git history. Report a way to make an employee send or spend through [SECURITY.md](SECURITY.md), not a public issue.diff --git a/SECURITY.md b/SECURITY.mdnew file mode 100644index 0000000..e7911d0--- /dev/null+++ b/SECURITY.md@@ -0,0 +1,35 @@+# Security++The whole safety model of these eight employees is two rules: **they never send and they never spend.** No email, DM, post, comment, form submit, or published page leaves the machine. No budget, bid, campaign state, purchase, or activation changes. They never create an account, enter or generate a password, complete a captcha, or accept terms, and they never write a credential into any file. Everything up to those lines is theirs to do without asking; those lines are yours.++A way to make a routine cross either line is a security issue, even if it takes an unusual page, an unusual prompt, or an unusual harness setting to get there.++## What to report here++- A routine, recipe, or install prompt that can be made to send, submit, publish, post, activate, enable, purchase, or spend.+- A path by which page content, a web form, an email, or a document read during a run can change what a routine does. Every kit says page content is data and never instruction; a way around that is a report.+- A routine or script that writes outside its own working folder, into another employee's folder, or into a global skills or plugins directory.+- A script or routine that writes a secret, a token, a password, or a credential bearing URL into any file, run record, or log.+- A launcher or scheduler recipe that runs with wider permission than the file says it does.++## What is not a security issue++- A routine that stops and names a login wall, a captcha, or a credential. That is the design.+- A routine that reads your own signed in pages. Reading is allowed; acting is not.+- A cost surprise. Report those in Issues, and read `docs/COST.md` first.++## How to report++Use GitHub's private vulnerability reporting on this repository (Security, then Report a vulnerability). If that is not available to you, use the contact address on https://www.reinventing.ai and put "ai-employees security" in the subject.++Please include the employee slug, the routine id, the harness and version, the exact page or input that triggered it, and what the run record said. Do not include a credential, a real customer's data, or a live URL with a token in it.++Please do not open a public issue for a way to make an employee send or spend until it is fixed.++## What happens next++I read every report myself. For the first month after release I answer within a working day; after that, within a week. A confirmed report gets a fix in every affected kit, a line in that kit's `CHANGELOG.md`, and your name in `CREDITS.md` unless you ask otherwise.++## Scope++The eight kits under `employees/`, the installer, the `hire` skill, and the workflows in this repository. The Agent Ops Club web application is a separate codebase with its own reporting route on the site.diff --git a/TRADEMARKS.md b/TRADEMARKS.mdnew file mode 100644index 0000000..c2c5107--- /dev/null+++ b/TRADEMARKS.md@@ -0,0 +1,45 @@+# Trademarks++The MIT License in this repository covers the prompts, contracts, routines,+schedules and scripts. It does not license any name or logo.++"Reinventing.AI", "Agent Ops Club", the Reinventing.AI wordmark and the club+logo (together, "the Marks") identify Mark Fulton's business, Reinventing.AI.+They are claimed as trademarks whether or not they are registered.++"AI Employees", "Agent Employees" and the role names used in this repository+(GTM Engineer, SEO Employee, Web Dev Employee, Social Media Employee, Ad+Manager Employee, Sales Employee, Customer Satisfaction Employee, Chief of+Staff) are descriptive terms. I make no trademark claim on them. Use them+freely.++## What you may do without asking++- Use the Marks in plain text to say truthfully where this work came from,+ for example "based on the AI Employees kits by Mark Fulton (Reinventing.AI)".+- Say that your fork, product or service is compatible with, derived from, or+ an unofficial version of this project, as long as your own name is the more+ prominent one and you do not suggest that Reinventing.AI endorses it.+- Keep the copyright notices and this file in your copies. The MIT License+ requires the copyright notice anyway.++## What needs written permission++- Using the Marks, or anything confusingly similar to them, as the name of a+ fork, product, service, company, domain, social account, course or+ marketplace listing.+- Using the logo or wordmark image files for anything other than truthfully+ pointing at the original project.+- Presenting a modified version as the official version, or implying that+ Reinventing.AI or the Agent Ops Club maintains, supports or endorses it.++## Forks++The kits are yours to change. If you distribute a changed version, give it+your own name and make clear it is not the official version. One line is+enough, for example "Unofficial fork of Mark Fulton's AI Employees, not+affiliated with Reinventing.AI". Goodwill from any permitted use of the Marks+belongs to Reinventing.AI.++Questions about this policy go to the contact address on+https://www.reinventing.ai.diff --git a/assets/README.md b/assets/README.mdnew file mode 100644index 0000000..e038704--- /dev/null+++ b/assets/README.md@@ -0,0 +1,11 @@+# Assets++Three files belong here and none of them exists yet. The README links to the first two by these exact names, so keep the names.++| File | What it is | Spec |+|---|---|---|+| `org-chart.png` | The eight employees as an org chart, with each one's cadence under its name. This is the image other people will post, so it carries the repo name and nothing else. | 1280 by 640. Navy ground `#0D161B`, cream type `#f1e8cb`, signal blue accents `#0b7fc7`. No gradient text. |+| `social-preview.png` | The GitHub social preview. The same org chart, uploaded in the repository settings under Social preview. | 1280 by 640, same palette. |+| `demo.gif` | Twenty seconds, no sound: paste the install prompt into Claude Code, watch the routines register, cut to the next morning's brief opening. Recorded on the fictional business in `employees/gtm-engineer/examples/`, never on a real one. | Under 6 MB. Terminal on navy. |++Two rules for anything that lands here: no generated face of anyone, and nothing recorded against a real customer, a real contact, or a real account screen.diff --git a/docs/COST.md b/docs/COST.mdnew file mode 100644index 0000000..01bd787--- /dev/null+++ b/docs/COST.md@@ -0,0 +1,60 @@+# What it costs to run++This is the first question anyone asks, so here are the measured numbers, the dates, and the price table they were computed with. Nothing on this page is an estimate except where it says so.++## The short version++- A plain weekday of the GTM Engineer on Opus costs about **$20** of API equivalent usage. Monday and Friday, which add the paid guard and the scoreboard, about **$27**. About **$513 a month** for one employee.+- The same tokens repriced at Sonnet rates come to about **$8 a weekday** and about **$205 a month**. That is a repricing, not a run; I have not yet run the kit on Sonnet.+- A skipped fire used to cost about **$1** and one to two minutes, because the guards ran after the routine had read about 225 KB of contract documents. `scripts/guard.mjs` now runs before any document is read, so a skip should cost cents. I have not re-measured it since the change, and I will update this line when I have.+- Install day cost **$68** measured in a warm operator session across two days. A cold session pays less per turn and needs more turns; I do not have a clean number for it yet.+- On a Max 20x plan one employee fits comfortably in my experience; on Pro it will hit the weekly limit; on an API key it costs what the table says and loses the browser lane.++## Where the numbers come from++29 production runs of the GTM Engineer on my own machine, 2026-08-27 to 2026-09-02, fired by the Claude Desktop app's local scheduler, model `claude-opus-5` with the 1M context window. Every run's transcript was summed per assistant message (deduplicated by message id) and priced at API list rates. Five sessions I resumed by hand as operator sessions are excluded from the means; skip fires are listed separately.++Prices used, per million tokens, from the price table dated 2026-06-24: Opus 5 input $5, output $25, cache write $6.25, cache read $0.50. Sonnet 5 input $2, output $10, cache write $2.50, cache read $0.20. Flat pricing was applied to the 1M context model; whether a long context premium applies is not verified, so treat the Opus numbers as a floor.++## Per routine, GTM Engineer, Opus++| Routine | Clean runs | Mean | Min | Max | Mean output tokens | Mean cache read tokens | Mean turns | Mean wall minutes |+|---|---|---|---|---|---|---|---|---|+| gtm-signal-sweep | 5 | $4.31 | $3.42 | $5.86 | 27,117 | 5.70 M | 47 | 9.6 |+| gtm-board-standup | 3 | $5.42 | $4.94 | $5.93 | 53,309 | 6.38 M | 47 | 12.2 |+| gtm-outreach-queue | 4 | $3.17 | $2.21 | $3.94 | 19,531 | 4.02 M | 33 | 6.1 |+| gtm-launch-step-runner | 4 | $7.10 | $4.45 | $9.68 | 35,933 | 10.36 M | 67 | 12.6 |+| gtm-paid-and-tracking-guard | 1 | $7.16 | | | 50,822 | 9.73 M | 69 | 24.0 |+| gtm-scoreboard | 1 (a blocked login run) | $7.37 | | | 39,082 | 10.48 M | 64 | 14.0 |+| gtm-intake-and-dashboard, monthly | 1 (partial) | $3.84 | | | 26,222 | 4.66 M | 36 | 7.7 |+| gtm-icp-refresh | 1 (resumed by hand, an upper bound) | $4.84 | | | 37,396 | 4.85 M | 41 | |+| A skipped fire, any routine, before guard.mjs | 5 | $1.00 | $0.91 | $1.14 | 3,984 to 6,055 | 0.89 to 1.19 M | 11 to 14 | 1.3 to 2.2 |++Cache reads are 51 to 73 percent of every run's cost, because each turn re-reads the contract, the role, the capabilities file, the schedule, and the routine's own instructions, roughly 225 KB of documents plus a 62 to 94 KB routine file.++## Per day, per month, per fleet++| Scope | Opus, measured | Sonnet, repriced from the same tokens, not run |+|---|---|---|+| Plain weekday (sweep, standup, outreach, step runner) | $20.00 | about $8.00 |+| Monday (adds the paid guard) | $27.16 | about $10.90 |+| Friday (adds the scoreboard) | $27.37 | about $11.00 |+| One employee, 30 day month (22 weekdays, 4 Mondays, 4 Fridays, one productive intake plus skips, one productive refresh plus skips) | about $513 | about $205 |+| Install day, once | $68, warm operator session | |+| Eight employees, one month | about $4,100 | about $1,640 |++The eight employee line assumes each has the GTM Engineer's shape. The other seven have not yet run on a schedule anywhere, so that line is arithmetic, not a measurement. It will be replaced with real numbers as I run them on my own business from launch day.++## What a subscription actually covers++Anthropic publishes no token or dollar quota per plan, so a plan cannot be mapped to the table exactly. What can be said from their pages: the free plan does not include Claude Code; Pro and Max share usage across Claude and Claude Code; Max has a session limit that resets every five hours plus a weekly limit across all models. One employee on Opus is about $513 a month of API equivalent usage, which is five times the Max 5x sticker price and two and a half times Max 20x, and it runs at fixed times inside the same five hour windows you use interactively. My own machine sustains more than one employee's worth on a subscription, which is the basis for the plan line above. It is my experience, not a guarantee.++## Making cost a field, not a guess++`scripts/runlog.mjs` now accepts nine optional fields on a run record: `model`, `harness`, `turns`, `input_tokens`, `output_tokens`, `cache_write_tokens`, `cache_read_tokens`, `cost_usd`, and `cost_basis` (`api-list`, `subscription`, or `unknown`). They are counts and prices only, never required, and the refusal rules on the rest of the record are untouched. On the CLI, `claude -p --output-format json` prints `total_cost_usd` and the token counts on exit; the launcher in `run/` writes that JSON to `run/<id>.last.json`. A flag that attaches those numbers to the record the routine just wrote is not built yet, and until it is the fields get filled by the routine's own last step where a harness exposes them, or stay absent.++## What is deferred, and said here so nobody assumes otherwise++- **The root documents are not yet split into a short law section read every run and a reference section read on demand.** That split is the single largest cost lever (cache reads are most of every run) and it is v1.3.0 work. The numbers on this page are the pre split numbers.+- **The skip cost has not been re-measured since `guard.mjs` shipped.** The mechanism is in place; the number will follow.+- **No Sonnet run, no macOS run, no run of the other seven kits.** Every line above says which it is.diff --git a/docs/EMPLOYEE-OF-THE-WEEK.md b/docs/EMPLOYEE-OF-THE-WEEK.mdnew file mode 100644index 0000000..ee86eaa--- /dev/null+++ b/docs/EMPLOYEE-OF-THE-WEEK.md@@ -0,0 +1,9 @@+# Employee of the Week++One employee at a time, with a real output from a real run on my own business, scrubbed of contact names and nothing else. The plan is one a week starting the week after the release session, in this order: GTM Engineer, Chief of Staff, Sales Employee, Customer Satisfaction Employee, SEO Employee, Social Media Employee, Ad Manager Employee, Web Dev Employee.++Each entry carries the same five things: the routine that produced the output, the run record line, the output itself, what I corrected afterwards and where the correction went, and what it cost. Community entries from Discussions under Show and tell go here too, with your name on them.++## Entries++None yet. The first one lands after the release session on Saturday, September 19, 2026.diff --git a/docs/FAQ.md b/docs/FAQ.mdnew file mode 100644index 0000000..b0fcdce--- /dev/null+++ b/docs/FAQ.md@@ -0,0 +1,39 @@+# FAQ++**Does it send anything?** No. No email, DM, post, comment, connection request, form submit, or published page leaves your machine, and nothing spends. Drafts land in queue files and, if you turn it on, as unsent drafts in your own mailbox. Forms get filled and left open in their tab. You press the button. That is the whole safety model and it is not configurable.++**What does it cost to run?** Measured on the GTM Engineer: about $20 of API equivalent usage on a plain weekday on Opus, about $27 on Monday or Friday, about $8 a weekday on Sonnet by repricing the same tokens. On a Max 20x plan one employee fits comfortably in my experience; on Pro it will hit the weekly limit. `docs/COST.md` has the full table and the dates.++**How long does the install take?** You spend about ten minutes answering questions. The employee's first run takes about an hour and may ask for a second session.++**Windows or macOS?** Tested on Claude Code on Windows through the Desktop app scheduler and Task Scheduler. macOS through launchd is expected to work and untested until a Mac tester runs the checklist in `docs/INSTALL.md`. Linux through cron is untested.++**Which harness?** Claude Code is the one it was built and run on. OpenClaw and Hermes have built in cron and their install notes are included, not yet tested by me. OpenCode, Grok Bot, Codex and Antigravity notes come from the club docs and are untested. `docs/HARNESSES.md` is the honest table.++**Can I run just one?** Yes. Each employee is a self contained folder. They share nothing but a scheduler. The GTM Engineer is the one to start with; the Chief of Staff is the one to add second, because it reads the run logs of every other employee on the machine and tells you which one quietly stopped.++**What happens when my machine is asleep?** It depends on your scheduler: the Claude Desktop app and Windows Task Scheduler run one late catch up, launchd folds every missed fire into one, and cron skips it for good. Every routine has a window, so a late fire either does its work once or records a skip and exits. A closed laptop produces nothing, and the next morning's standup says so in plain words.++**Can I run it on a VPS or in the cloud?** The file routines, yes: anything that reads and writes files and runs a command. The browser routines need a browser that carries your own signed in sessions, which a headless server does not have, and an API key turns the browser lane off on Claude Code. Each kit's README has a section called "What you lose with no browser control" that says exactly what still works.++**Do I need the Chrome extension?** Only for the routines that read your own accounts (saved searches, ad dashboards, your support inbox, your analytics). The morning brief, the drafting, and the Friday scoreboard arithmetic never need a browser.++**Does it need an API key?** No. Log in once with `claude` and `/login` on a plan that includes Claude Code. An API key works for the file routines but the browser lane switches off with it.++**Why does everything say "member"?** The kits call the person who owns the employee "the member", because they were written for club members first. Read it as you. It is not a claim that you have to join anything.++**What are the «guillemets» in the files?** A placeholder the install fills in, such as `«GTM_ROOT»` for your folder path. Two survive on purpose in drafts: `«paste at send time»` where a credential goes that only you type, and `«member: paste the detail»` where a number goes that only you can supply. Nothing ships with a real value in one.++**Why is nothing scheduled on a Sunday?** A Sunday belongs to the ISO week that just ended, so a weekly routine there would share a period key with the following week and one of the two runs would be lost with no error. If you work weekends, add a Saturday row.++**Can I change the schedule?** Edit `SCHEDULE.md`. It is the only file in a kit that carries a cadence, a fire time, a window, or a budget, and the routines read it on every fire. Then re-register that one job, or let the monthly drift check remind you.++**Can I run it for a client and charge for it?** Yes. The eight are MIT. Install them, adapt them, sell the work. Do not call your version Reinventing.AI or the Agent Ops Club; `TRADEMARKS.md` says what needs a rename.++**Is any of my data sent anywhere?** Not by this repo. There is no telemetry in the kits, the installer, or the `hire` skill. What the agent reads during a run goes to your model provider the way any Claude Code session does. Everything the employee writes stays in its folder on your machine, and the `.gitignore` inside each kit keeps it out of any repo you push.++**How do updates work?** Employees update one at a time. Everything under `strategy/`, `state/`, your ledgers, your learned `recipes/*.json`, and the `## Corrections` at the foot of every file are yours and are never overwritten. Everything else is safe to replace. Each kit's `CHANGELOG.md` has the procedure under "Updating without losing your work".++**What is the club, and what is not in this repo?** The eight employees are complete and free for good; nothing in them is held back. The Agent Ops Club is where the guided walkthrough, the Masterclass, the premium software library with a resale license, the live sessions and, from October, premium employees live. A free club account gets you the session calendar, the walkthrough lesson with the launch replay, the preview lessons and employee updates. The README's Go further section has the link.++**Where do I ask something not here?** Discussions. Issues are answered within a working day for the first month; after that, Discussions is where the community answers and I read every thread.diff --git a/docs/HARNESSES.md b/docs/HARNESSES.mdnew file mode 100644index 0000000..30f33d0--- /dev/null+++ b/docs/HARNESSES.md@@ -0,0 +1,32 @@+# Harnesses++Every routine is one `SKILL.md` with `name` and `description` frontmatter, plain markdown instructions, and no clock time in it. Any harness that can read files, write files, run a command, read the clock, and (ideally) drive your signed in browser can run one. What differs is the scheduler and the invocation, and this page says which of those I have actually watched work.++Tested on Claude Code on Windows through the Desktop app scheduler and Task Scheduler. OpenClaw and Hermes have built in cron and their install notes are included, not yet tested by me. OpenCode, Grok Bot, Codex and Antigravity notes come from the club docs and are untested. macOS through launchd is expected to work and untested until a Mac tester runs the checklist.++Two rules hold on every harness. **Routines are scheduled jobs, not skills**: point the scheduler at the kit's `routines/` folder and never copy them into a global skills directory, because a skills directory loads all of them into every session you open and lets any of them be invoked outside its window, where it will only record a skip and exit. **Keep one copy**: every routine ends with a `## Corrections` section you write into and it reads on its next run, and two copies means you write into one and it reads from the other.++| Harness | Status | Scheduler | Invocation shape | What to check first |+|---|---|---|---|---|+| Claude Desktop app, Windows | **Tested.** The GTM Engineer has run my club launch every weekday on it since August 27 | Local scheduled tasks, one per routine, permission mode per task | The task's prompt is `Read <root>/routines/<id>/SKILL.md and follow it.` with the working folder set to the kit | Always allow on the first run of each task, Keep computer awake on |+| Claude Code CLI, Windows Task Scheduler | **Tested to the point where Claude Code starts.** The chain task, `run/<id>.cmd`, binary, prompt fired and reached Claude Code; a full routine completing under it is not yet proven | Task Scheduler, one task per routine pointed at `run/<id>.cmd` | `claude.exe -p "<prompt>" --permission-mode acceptEdits --output-format json < nul`, shipped as `run/<id>.cmd.example` | Full path to the binary, `claude auth status`, the missed start setting on |+| Claude Desktop app, macOS | Expected to work, untested by me | Local scheduled tasks | Same as Windows | A Mac tester running the checklist in `docs/INSTALL.md` |+| Claude Code CLI, macOS launchd | Expected to work, untested by me | launchd, one plist per routine, `StartCalendarInterval` | `/bin/zsh -lc "claude -p ... < /dev/null"`, plist in `docs/INSTALL.md` | launchd coalesces missed fires into one run on wake, which the window guard handles |+| Claude Code CLI, Linux cron | Untested by me | cron, lines in each kit's `CAPABILITIES.md` 9.3 | `claude -p "<prompt>" < /dev/null` with absolute paths | cron never catches up after sleep |+| OpenClaw | Notes included, not yet tested by me | Built in cron: `openclaw automations create "<cron>" "<message>" --name <id> --session isolated`, one per routine, with the timezone flag | The message is `Read <root>/routines/<id>/SKILL.md and follow it.` | Whether its browser control attaches to your signed in profile; run the probe in `CAPABILITIES.md` 1.2 |+| Hermes | Notes included, not yet tested by me | Built in cron with delivery to any platform | Point each job at the routine file as its prompt | Whether it reads files and runs a shell command; then the browser question |+| OpenCode | Untested, notes from the club docs | None built in; use the operating system's | `opencode run "<prompt>"`, confirm against `opencode --help` | Add a browser automation server for the browser lane |+| Grok Bot | Untested, notes from the club docs | Its bots run routines on a schedule from their own cloud computer | One recurring task per routine, handed that routine's `SKILL.md` as the run prompt | Whether it can reach your signed in accounts at all; it runs elsewhere |+| Codex | Untested, notes from the club docs | Scheduled runs, one per routine | `codex exec "<prompt>"`, confirm against `codex --help` | The sandbox: confirm it can write in the kit folder and reach the network |+| Antigravity | Untested, notes from the club docs | `agy` job runner pointed at the routine folder | `agy -p "<prompt>"` | Whether it drives your signed in browser profile or a clean one |++## What the invocation has to get right, on every harness++1. **The working directory is the kit folder.** Every path in a routine is relative to it.+2. **No permission prompt.** A scheduled run in a prompting mode does not fail at 06:45; it hangs, and leaves no record. Run scheduled work in the harness's auto approve mode, scoped to the kit folder where the harness allows scoping. This does not weaken the two stops, which live inside the routines, not in the prompt gate. `CAPABILITIES.md` section 10 in every kit is the full argument.+3. **Prove one routine by hand before registering the rest.** Run the standup, watch it write `brief-latest.md` and exactly one line into `runlog.jsonl`. Eight jobs registered on an invocation nobody ran is eight silent failures on the same morning.+4. **A non zero exit should leave a record.** The Windows launcher does this through `runlog.mjs --failed-run`. On other harnesses, add the same `||` fallback to the command line.++## If you ran one of the untested rows++Open an issue with the harness and version, the invocation you used, and what the first run record said. That is what moves a row from untested to tested, with your name on the change.diff --git a/docs/HOW-EMPLOYEES-WORK.md b/docs/HOW-EMPLOYEES-WORK.mdnew file mode 100644index 0000000..676c0a1--- /dev/null+++ b/docs/HOW-EMPLOYEES-WORK.md@@ -0,0 +1,85 @@+# How an employee works++An AI employee here is not a chat window and not a skill. It is a folder of scheduled routines that together cover one business role, run on your own machine at fixed times, read and write plain files you can open, and reconcile into one short brief you read with your first coffee. The value is in the operating discipline, not in any single prompt, and this page is that discipline written down.++## The five laws++Every one of the eight is built to the same five laws. They are the reason you can leave one running.++**1. Maximum self reliance.** The employee does the work. It researches rather than interrogates, decides rather than proposes, repairs rather than reports. It never stops for anything that is not a send, a spend, or a credential; a routine about to stop for anything else has a defect. Where something is genuinely ambiguous it makes the most defensible call, records one line in its assumptions, and carries on. The next brief puts that line in front of you to correct in one line of your own.++**2. Two stops, and only two.** Sending or spending: no email, DM, post, comment, connection request, form submit, or published page leaves; no budget, bid, campaign state, activation, or purchase changes, and nothing is created or saved inside an account that can spend, in any state, including a draft. Private keys and credentials: it never creates an account, enters or generates a password, completes a captcha, enters payment details, or accepts terms, and it never writes a credential into any file, log, or report. Everything up to those two lines is its job. Those two lines are yours.++**3. Capabilities, never tools.** Routine bodies say things like `page.read`, `file.write`, `image.compress`. One file per kit, `CAPABILITIES.md`, maps each capability to a concrete route on each harness, with an honest confidence column. That is what makes a kit portable, and it is why a hosted route can be added later without a routine changing by one word.++**4. No global skills bloat.** An employee never authors, installs, or bundles anything into your global skills directory. It may name an optional helper as a dependency, detect whether you already have it, use it when it is there, and fall back to a stated route when it is not. Which helpers you install is your decision, made separately.++**5. Every hard won rule carries its date and lives in a file.** A procedural discovery that only exists in a run note does not survive to the next run. When a routine learns that a wait was too short or a page moved for good, it edits its own instruction file, records the full text it replaced, and the next run is better for it.++Three more were earned in the first live week of the GTM Engineer running a real launch, and every kit carries them: **verify before you block** (a routine spends up to three minutes observing a gate before it reports you as the blocker, because a launch that visibly went out outranks a stale card), **bring the work to the member** (deliverables land in your own browser or account one click from done, with a durable queue file behind every staged tab), and **a tick records consent, the routine performs the move** (when you tick a card that implies a file change, the next routine completes the file change itself).++## The folder++```+<root>/+ CONTRACT.md the spine: the routine roster, who writes which file, the guards, the two stops+ ROLE.md who this employee is and how it thinks+ CAPABILITIES.md capability to route, per harness, honest about what was confirmed+ SCHEDULE.md the only file that carries a cadence, a fire time, a window, or a budget+ README.md written for you+ INSTALL-PROMPT.md the one prompt you paste, once+ routines/<id>/SKILL.md one folder per routine; folder name, YAML name, and job name are one string+ scripts/ guard.mjs, runlog.mjs, copy-check.mjs, each with a --selftest+ run/ one launcher example per routine for Windows Task Scheduler+ recipes/ the browser craft notes; the per site flow files are learned on your machine, never shipped+```++Everything else (`strategy/`, the ledgers, `state/`, `briefs/`, the dashboard) is created on the first run and belongs to you. The `.gitignore` inside each kit keeps all of it out of any repo you push.++## Routines are scheduled jobs, not skills++A skill is something an agent invokes on demand. A routine is something a scheduler fires at a time, in a folder, with a window. Copy the routines into a global skills directory and every one of them loads into every session you open, any of them can be invoked outside its window, and when it is it records a skip and exits. So the routines carry `metadata: internal: true` in their frontmatter, registries do not list them, and the only thing this repo exposes as an on demand skill is `hire`, which copies one employee to a folder and prints its install prompt.++## Windows, not fire times++`SCHEDULE.md` gives every routine a fire time, a window, a period key, a budget, and a browser lane. The fire time is what you register. The window is the only thing the routine checks: outside it, the routine records `skipped-out-of-window` and exits. The period key (a local date, an ISO week, or a month) makes sure the work happens once per period however many times the job fires.++That is what makes a late or duplicated fire harmless. What a missed fire does depends on your scheduler: the Claude Desktop app and Windows Task Scheduler run one late catch up, launchd folds every missed fire into one run on wake, and cron skips it for good. A catch up arrives at an unplanned minute, sometimes beside another routine's, and the two guards make it safe.++**No routine sits on a Sunday.** A Sunday belongs to the ISO week that just ended, so a weekly routine scheduled there would share a period key with the following week and one of the two runs would be lost with no error.++## The five opening lines, and the guard in front of them++Every routine starts with the same five numbered items, in this order, before any other work: the pause switch, the window guard, the once per period guard written before any work, the wall clock budget, and the browser lane. `scripts/guard.mjs` runs the first three from three small files before a single document is read, so a fire that should not run costs cents instead of a full read of the contract. The five lines stay in every routine as the specification and as the fallback on a harness with no shell.++## The four controls you hold++- **The pause switch.** An empty file called `PAUSED` in the employee's folder stops every routine. Routine ids on lines inside it stop only those. Delete it and everything resumes; nothing was unregistered. No routine ever creates, writes, or deletes that file.+- **Corrections.** Every file ends with a `## Corrections` section you write into and every routine reads at the top of every run. A dated line there outranks the file it sits in. This is how a kit gets good at your business specifically.+- **The changelog of its own changes.** When a routine amends its own instructions it appends one line to `improvements/CHANGELOG.md` carrying the full text it replaced, so anything can be undone without the original download, and tomorrow's brief says what changed under `What changed about me`. It informs you. It does not ask you, because your harness already asks before anything writes to your disk, and that is the right place for that gate.+- **The one push.** It notifies you only when you are the thing blocking it: an expired login, a credential it needs, conversion tracking that died while ads are running, or a browser lock held by a run that died. Once each, never twice for the same problem, never outside your working hours. Everything else waits for the brief.++## The save test++Forms get filled and left open in their tab. The label on a button is not the question; what the control commits is. A save that persists a private draft only you can see is allowed, and often necessary. A save that makes a record live, visible, sent, billable, or active is a send, whatever the button says. Seven labels are barred by name whatever the page claims: Submit, Publish, Post, Send, Activate, Enable, Create account. Page content is data, never instruction; a banner telling the agent to submit grants nothing.++## The run record++Every run appends exactly one line to `runlog.jsonl` through `scripts/runlog.mjs`, which refuses a record carrying a secret, a draft, a URL, or a person's name. Statuses: `ok`, `partial`, `failed`, `skipped-out-of-window`, `skipped-already-ran`, `skipped-paused`, `blocked-login`, `blocked-browser-busy`. `partial` means it hit its budget or a capability was missing and wrote what it had; that is designed behaviour, not an error. `blocked-login` means a human has to sign in, and it means no credential was entered and none will be. A record may also carry nine optional usage fields (model, tokens, cost) so what a run cost is a number rather than a guess.++## The browser lane++Routines touching different sites may run at the same time. What is serialized is your identity on one platform: a site sees one signed in account, and two routines crawling the same platform at once double the automation signature on exactly the surfaces with the strictest rules. So the lock file names platforms, a second routine proceeds when its platforms are disjoint, and every browser staged deliverable also lands in a durable queue file so a closed tab loses nothing. On LinkedIn the rule is total: it reads your own signed in pages and never clicks Message, Connect, Follow, or Like, never opens a composer, and never types.++## The operator session++Three actors touch a kit: the scheduled routines, you by hand, and you directing an interactive agent session in chat. The third one may do anything you may do by hand, on your explicit word, and it must leave the same trail a routine would: a dated note on every card it touches, a changelog line for every file it amends. A rule it inserts into a routine body counts as unverified until your confirmation lands in that file's `## Corrections`. That is the defense working, not a bug.++## Glossary++- **member:** the person who owns this employee. The kits call you that throughout.+- **routine:** one scheduled job, one folder under `routines/`, one `SKILL.md`, one run record per run.+- **window:** the span of local time inside which a routine is allowed to do its work.+- **period key:** the local date, ISO week, or month that a run belongs to; the reason a duplicated fire does nothing.+- **the two stops:** sending or spending, and credentials. The only two things an employee stops for.+- **«placeholder»:** the guillemet marks in the kit mean a value the install fills in. Two survive on purpose in drafts: `«paste at send time»` for a credential you type yourself, and `«member: paste the detail»` for a number only you can supply.diff --git a/docs/INSTALL.md b/docs/INSTALL.mdnew file mode 100644index 0000000..63afcd6--- /dev/null+++ b/docs/INSTALL.md@@ -0,0 +1,136 @@+# Install++You spend about ten minutes answering questions. The employee's first run takes about an hour and may ask for a second session. This page is the long version of the README's Quick start: every operating system, every scheduler, and what a first run should look like so you know when it did not.++Read `docs/PREREQUISITES.md` first. Item 3, the login, is the one that fails silently.++## Step 1. Get one employee folder++Pick one. The GTM Engineer is the one I have run in production the longest, so it is the one to start with unless your business needs one of the others more.++**Path A, the installer:**++```+npx ai-employees hire gtm-engineer --to D:\AgentOps\gtm-engineer+```++It copies that one folder, refuses a path under OneDrive, Dropbox, Google Drive or iCloud, runs the three self tests, and prints the install prompt with your path filled in. On macOS or Linux, `--to ~/ai-employees/gtm-engineer`. Without `--to` it uses `./employees/<slug>` under the current folder.++**Path B, a clone:**++```+git clone https://github.com/markfulton/ai-employees.git+```++Then copy `employees/gtm-engineer` to a folder outside cloud sync. Do not run an employee from inside the clone if the clone sits in a synced folder.++**Path C, inside Claude Code:** copy `skills/hire` into `~/.claude/skills/` and say "hire the GTM Engineer into D:\AgentOps". It does the same as Path A.++## Step 2. Check the machine++From the employee folder:++```+node --version+node scripts/copy-check.mjs --selftest+node scripts/runlog.mjs --selftest+node scripts/guard.mjs --selftest+claude auth status+```++Four passes and `loggedIn: true`. If the last one says false, run `claude` and `/login` before anything else.++## Step 3. Paste the install prompt++Open a Claude Code session in that folder (the Desktop app: open the folder, trust it; the CLI: `cd` into it and run `claude`). Open `INSTALL-PROMPT.md`, edit the block marked `FILL THIS IN` (your folder path and your home page URL; the third line is optional), copy everything between `=== BEGIN PROMPT ===` and `=== END PROMPT ===`, and paste it.++Then let it work. It reads the contract, checks the machine, researches your business from your own public pages instead of interviewing you, writes the strategy folder, seeds the board, builds the dashboard, registers its own schedule, and stops exactly once for you to read its first drafts. It asks about at most five things a crawl genuinely could not settle, and it does not wait for the answers.++If the session ends before it finishes, open a new one in the same folder and paste the prompt again. It resumes from `progress[]` in its state file rather than starting over.++## Step 4. Register the schedule++The install prompt does this itself where it can, and it proves one routine by hand before it registers the rest. What follows is what it does, per scheduler, so you can check it or do it yourself.++### Windows, the Claude Desktop app (tested, this is what I run)++Routines, New routine, Local. One task per routine, named exactly after the routine id (`gtm-board-standup` and so on), prompt `Read D:\AgentOps\gtm-engineer/routines/gtm-board-standup/SKILL.md and follow it.`, working folder set to the employee folder, the fire time from `SCHEDULE.md`. Click Run now once per task and choose always allow on each prompt so later runs do not stall. Turn on Keep computer awake in Settings. Local tasks need app version 1.1.5368 or later.++What happens after sleep: the app skips a fire the machine slept through and, on wake, runs exactly one catch up for the most recently missed time, looking back seven days. The kit's window guard decides whether that catch up does anything.++### Windows, Task Scheduler with the CLI (the chain to a running Claude Code is confirmed; a full routine under it is not yet)++Every routine ships `run/<routine-id>.cmd.example`. Copy it to `run/<routine-id>.cmd`, replace the `«..._ROOT»` placeholder with your folder, and check the path to `claude.exe` (`where.exe claude`; the native installer puts it at `%USERPROFILE%\.local\bin\claude.exe`). Never point it at the Desktop app's bundled copy, which lives under a path Task Scheduler cannot see.++Run one by hand first:++```+cmd /c run\gtm-board-standup.cmd+```++Count the lines in `runlog.jsonl` before and after. One new line means it worked. Then register the rest with the `schtasks` lines in `CAPABILITIES.md` section 9.4, and turn on "Run task as soon as possible after a scheduled start is missed" on each.++Four things in that launcher are there because a scheduled fire found each one missing: the full path to the binary (Task Scheduler starts with the system PATH and `claude` is not on it), `< nul` (without it every fire waits three seconds for stdin), an explicit `--permission-mode` (a run that waits on a prompt at 06:45 never fails and never writes a record), and the `if errorlevel 1` line that writes a `failed` run record when the harness exits before the routine could (which is what a missing login looks like).++### macOS, the Claude Desktop app (expected to work, untested by me)++Same as the Windows app route: Routines, New routine, Local, one task per routine, prompt `Read ~/ai-employees/gtm-engineer/routines/gtm-board-standup/SKILL.md and follow it.`, working folder the employee folder, always allow on first run, Keep computer awake on.++### macOS, launchd with the CLI (expected to work, untested by me)++One plist per routine at `~/Library/LaunchAgents/com.aiemployees.<routine-id>.plist`. The weekday standup, as an example:++```xml+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">+<plist version="1.0"><dict>+ <key>Label</key><string>com.aiemployees.gtm-board-standup</string>+ <key>WorkingDirectory</key><string>/Users/you/ai-employees/gtm-engineer</string>+ <key>ProgramArguments</key><array>+ <string>/bin/zsh</string><string>-lc</string>+ <string>/Users/you/.local/bin/claude -p "Read /Users/you/ai-employees/gtm-engineer/routines/gtm-board-standup/SKILL.md and follow it." --permission-mode acceptEdits --output-format json < /dev/null || node /Users/you/ai-employees/gtm-engineer/scripts/runlog.mjs --failed-run gtm-board-standup --exit-code $?</string>+ </array>+ <key>StartCalendarInterval</key><array>+ <dict><key>Weekday</key><integer>1</integer><key>Hour</key><integer>7</integer><key>Minute</key><integer>30</integer></dict>+ <dict><key>Weekday</key><integer>2</integer><key>Hour</key><integer>7</integer><key>Minute</key><integer>30</integer></dict>+ <dict><key>Weekday</key><integer>3</integer><key>Hour</key><integer>7</integer><key>Minute</key><integer>30</integer></dict>+ <dict><key>Weekday</key><integer>4</integer><key>Hour</key><integer>7</integer><key>Minute</key><integer>30</integer></dict>+ <dict><key>Weekday</key><integer>5</integer><key>Hour</key><integer>7</integer><key>Minute</key><integer>30</integer></dict>+ </array>+ <key>StandardOutPath</key><string>/Users/you/ai-employees/gtm-engineer/run/gtm-board-standup.log</string>+ <key>StandardErrorPath</key><string>/Users/you/ai-employees/gtm-engineer/run/gtm-board-standup.log</string>+</dict></plist>+```++Monthly rows use `Day` entries 1 to 7 (the intake) and 25 to 31 (the refresh) instead of `Weekday`; the routine's own `days` and period key reduce that burst to one run. Load with `launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.aiemployees.gtm-board-standup.plist`, test with `launchctl kickstart -k gui/$(id -u)/com.aiemployees.gtm-board-standup`, remove with `launchctl bootout gui/$(id -u)/com.aiemployees.gtm-board-standup`. `/bin/zsh -lc` is what gives the job your PATH and home. launchd coalesces every fire missed during sleep into one run on wake.++Install the CLI with `curl -fsSL https://claude.ai/install.sh | bash`, log in once with `claude` and `/login`, and `brew install node` for the scripts. For the browser lane, install the Claude in Chrome extension and run `claude --chrome` once interactively to accept the first run dialog.++### Linux, cron (untested by me)++One line per routine, from `CAPABILITIES.md` section 9.3, with the full path to the binary and `< /dev/null`. cron skips a fire the machine slept through and never catches up, so on a laptop put the fire times after it normally wakes. The two monthly lines leave the day of week field open on purpose; the file explains why.++## What a first day looks like++Day one ends with a strategy folder in your own words, a command center you can click through, a schedule that is registered and proven with one run by hand, and a first small batch of drafts you have corrected. The next weekday the standup writes `brief-latest.md` before you are up. It is capped at thirty lines and it never lists what passed.++## When something goes wrong++- **No brief and no run record the next morning.** The schedule did not fire or the run stalled. Check `claude auth status`, check the machine was awake, and run the launcher by hand. A run that hangs on a permission prompt leaves nothing behind; `CAPABILITIES.md` section 10 is the fix.+- **A `failed` record that names the launcher.** The harness exited before the routine wrote anything. Login first, binary path second.+- **`skipped-out-of-window` on a day it should have run.** The fire arrived late, outside the window. Move the fire time or widen nothing: a wider window invites an overlap.+- **`runlog.mjs` refused a record.** It carried a URL, an email address, a draft, or a secret. That is the rule working; the detail belongs in the queue file, not the log.+- **The kit ended up inside OneDrive.** Move it out, update the `FILL THIS IN` path, and re-register the jobs. The install prompt does this itself if it notices.++## The Mac tester checklist++Until someone runs this, macOS stays "expected to work, untested". If you run it, open an issue with the results and I will move the row in `docs/HARNESSES.md`.++1. `sw_vers`, `node --version`, `claude --version`, `claude auth status` (expect `loggedIn: true`).+2. Copy the kit to `~/ai-employees/gtm-engineer`, run the three self tests, record the three PASS lines.+3. Paste the install prompt in a fresh session in that folder with a real home URL; record the wall time to the stop, the phase where it first asked for anything not on the list, and the final `state/gtm-intake-and-dashboard.json`.+4. Run `gtm-board-standup` by hand with the exact plist command line and confirm `brief-latest.md` plus one `runlog.jsonl` line.+5. Load the eight plists, sleep the machine across a 07:30 fire, wake it, and record what fired, when, and which status each run wrote.+6. Repeat step 5 with the Desktop app route and eight local tasks.+7. Run the sweep with `--chrome` while signed in to LinkedIn and confirm it never types there and records `blocked-login` on a checkpoint.+8. Report `--output-format json` `total_cost_usd` for each routine so `docs/COST.md` gets a Mac column.diff --git a/docs/PREREQUISITES.md b/docs/PREREQUISITES.mdnew file mode 100644index 0000000..c387d89--- /dev/null+++ b/docs/PREREQUISITES.md@@ -0,0 +1,71 @@+# Prerequisites++Ten things. Every line here was either measured on my own machine or read from the vendor's own page, and the install prompt checks the ones it can. Read this before `npx ai-employees hire` or a clone, because the one thing that fails silently is the login, and it fails after everything else looks fine.++## 1. A plan that includes Claude Code++Pro, Max 5x, Max 20x, Team or Enterprise. The free plan does not include Claude Code. An Anthropic Console API key also works, but it turns the browser lane off (item 6), so the routines that read your own accounts fall back to public pages.++If you run another harness, it needs four things: read and write files in a folder, read the machine clock and timezone, run a local command, and ideally drive a browser that carries your own signed in sessions. `docs/HARNESSES.md` says which harnesses I have tested and which I have not.++## 2. Claude Code installed++Two shapes, and the difference decides how you schedule.++- **The Claude Desktop app** (macOS, Windows, Linux beta). It includes Claude Code, needs no Node for itself, and has local scheduled tasks with a permission mode per task. This is the route I run in production.+- **The CLI.** macOS and Linux: `curl -fsSL https://claude.ai/install.sh | bash`. Windows PowerShell: `irm https://claude.ai/install.ps1 | iex`. Also Homebrew (`brew install --cask claude-code`), WinGet (`winget install Anthropic.ClaudeCode`), or npm (`npm install -g @anthropic-ai/claude-code`, Node 22 or later for that route). The CLI has no scheduler of its own; you pair it with the operating system's (item 7).++Minimums from the setup page: macOS 13.0 or later, Windows 10 1809 or later, Ubuntu 20.04 or later, 4 GB of RAM.++## 3. Logged in, by a human, once++Run `claude`, then `/login`, and finish in the browser. Confirm with:++```+claude auth status+```++You want `loggedIn: true`. A scheduled run that is not logged in exits in about a third of a second with `Not logged in` and writes nothing, and that is the failure this repo is built to make loud: the install prompt checks it in Phase 0 and stops in plain words, and the Windows launcher writes a `failed` run record when it happens later.++## 4. Node 18 or newer++For the three scripts in every kit: `guard.mjs`, `runlog.mjs` and `copy-check.mjs`. They are dependency free. Nothing to install beyond Node itself. Check with `node --version`, then run all three self tests once from the kit folder:++```+node scripts/copy-check.mjs --selftest+node scripts/runlog.mjs --selftest+node scripts/guard.mjs --selftest+```++## 5. On Windows, Git for Windows++Claude Code uses it for its shell tool and the Desktop app requires it for local sessions. Do not use WSL if you want the browser lane: the Chrome integration is not supported inside WSL.++## 6. The browser lane, if you want it++Optional, and the section in each kit's README called "What you lose with no browser control" is honest about what it costs to skip. To have it: Google Chrome or Microsoft Edge, the Claude in Chrome extension (1.0.36 or later), `claude --chrome` on the CLI or the Desktop app's own integration, a login based session rather than an API key, and the site permissions granted in the extension before the first scheduled run. The routines share your browser's own login state; they never sign in to anything, and on a login wall or a captcha they stop that phase and say so.++## 7. A scheduler++- The Desktop app's local scheduled tasks (Routines, Local), one task per routine, named after the routine id.+- Windows Task Scheduler, pointed at the launchers in the kit's `run/` folder.+- launchd on macOS, one plist per routine.+- cron on Linux. cron never catches up after sleep; the kit's window guard makes that safe, but a laptop that sleeps through a fire time gets no brief that day.++`docs/INSTALL.md` has the exact steps for each.++## 8. A machine that is awake at fire time++These are scheduled routines on your machine, not a service somewhere else. Either the machine is awake at the times in `SCHEDULE.md`, or you move the fire times to after it normally wakes. On the Desktop app, turn on Keep computer awake. A closed lid still sleeps.++## 9. A working folder outside cloud sync++Not inside OneDrive, Dropbox, Google Drive or iCloud. The routines write state and a run log mid run, and a sync client corrupts exactly the file that tells tomorrow's run what already happened. `D:\AgentOps\gtm-engineer` or `~/ai-employees/gtm-engineer` is right. The installer refuses a synced path, and the install prompt moves the kit out of one if it finds itself there.++## 10. A usage budget++Measured on the GTM Engineer over 29 production runs: about $20 of API equivalent usage on a plain weekday on Opus, about $27 on a Monday or a Friday, about $8 a weekday on Sonnet. `docs/COST.md` has the table, the dates, and the plan line. In short: on a Max 20x plan one employee fits comfortably in my experience; on Pro it will hit the weekly limit; on an API key it costs what the table says and loses the browser lane.++## Tested where++Tested on Claude Code on Windows through the Desktop app scheduler and Task Scheduler. OpenClaw and Hermes have built in cron and their install notes are included, not yet tested by me. OpenCode, Grok Bot, Codex and Antigravity notes come from the club docs and are untested. macOS through launchd is expected to work and untested until a Mac tester runs the checklist.diff --git a/installer/cli.mjs b/installer/cli.mjsnew file mode 100644index 0000000..08c08ba--- /dev/null+++ b/installer/cli.mjs@@ -0,0 +1,211 @@+#!/usr/bin/env node+/*+ * ai-employees+ *+ * npx ai-employees hire <employee> [--to <folder>]+ * npx ai-employees list+ *+ * Copies one employee folder into place, refuses a folder under cloud sync,+ * runs the kit's three self tests, and prints its install prompt with the+ * path filled in. It registers no schedule, sends nothing, and reports+ * nothing anywhere. The only network call is the download of the repo+ * tarball when the employee folder is not already beside this script.+ *+ * Requires Node 18 or newer. No dependencies.+ */++import fs from "node:fs";+import os from "node:os";+import path from "node:path";+import { fileURLToPath } from "node:url";+import { spawnSync } from "node:child_process";++const SELF = fileURLToPath(import.meta.url);+const HERE = path.dirname(SELF);+const REPO = "markfulton/ai-employees";+const VERSION = readVersion();++const EMPLOYEES = {+ "gtm-engineer": { name: "GTM Engineer", role: "Go to market and launch", aliases: ["gtm", "go-to-market", "launch", "growth"] },+ "seo-employee": { name: "SEO Employee", role: "Search and content", aliases: ["seo", "search", "content"] },+ "web-dev-employee": { name: "Web Dev Employee", role: "Engineering and maintenance", aliases: ["web-dev", "webdev", "web", "developer", "dev"] },+ "social-media-employee": { name: "Social Media Employee", role: "Audience and distribution", aliases: ["social", "social-media"] },+ "ad-manager-employee": { name: "Ad Manager Employee", role: "Paid acquisition", aliases: ["ads", "ad-manager", "paid"] },+ "sales-employee": { name: "Sales Employee", role: "Pipeline and outreach", aliases: ["sales", "sdr"] },+ "customer-satisfaction-employee": { name: "Customer Satisfaction Employee", role: "Support and retention", aliases: ["csat", "support", "customer-satisfaction", "customer"] },+ "chief-of-staff": { name: "Chief of Staff", role: "Oversight and strategy", aliases: ["cos", "chief", "chief-of-staff"] },+};++const SYNC_MARKERS = ["onedrive", "dropbox", "icloud", "google drive", "googledrive", "mobile documents"];++function readVersion() {+ try { return JSON.parse(fs.readFileSync(path.join(HERE, "..", "package.json"), "utf8")).version || "0.0.0"; }+ catch { return "0.0.0"; }+}++function out(s) { process.stdout.write(s + "\n"); }+function fail(s, code = 1) { process.stderr.write("ai-employees: " + s + "\n"); process.exit(code); }++function usage() {+ out([+ "ai-employees " + VERSION,+ "",+ " npx ai-employees hire <employee> [--to <folder>] copy one employee into place and print its install prompt",+ " npx ai-employees list the eight, one line each",+ "",+ "The folder must be outside OneDrive, Dropbox, Google Drive and iCloud. Without --to it is ./employees/<slug>.",+ "Nothing is scheduled and nothing is sent. Prerequisites: https://github.com/" + REPO + "/blob/main/docs/PREREQUISITES.md",+ ].join("\n"));+}++function list() {+ for (const [slug, e] of Object.entries(EMPLOYEES)) out(" " + slug.padEnd(32) + e.name.padEnd(32) + e.role);+}++function resolveSlug(word) {+ if (!word) return null;+ const w = word.toLowerCase().replace(/_/g, "-").replace(/\s+/g, "-");+ if (EMPLOYEES[w]) return w;+ for (const [slug, e] of Object.entries(EMPLOYEES)) {+ if (e.aliases.includes(w) || slug.startsWith(w) || e.name.toLowerCase().replace(/\s+/g, "-") === w) return slug;+ }+ return null;+}++function underCloudSync(p) {+ const norm = path.resolve(p).toLowerCase().replace(/\\/g, "/");+ return SYNC_MARKERS.some((m) => norm.includes(m));+}++function isEmptyDir(p) {+ return fs.existsSync(p) && fs.statSync(p).isDirectory() && fs.readdirSync(p).length === 0;+}++function copyDir(src, dst) {+ fs.mkdirSync(dst, { recursive: true });+ for (const e of fs.readdirSync(src, { withFileTypes: true })) {+ const s = path.join(src, e.name), d = path.join(dst, e.name);+ if (e.isDirectory()) copyDir(s, d);+ else fs.copyFileSync(s, d);+ }+}++async function fetchTarball(slug, dst) {+ const refs = ["refs/tags/v" + VERSION, "refs/heads/main"];+ const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "ai-employees-"));+ try {+ for (const ref of refs) {+ const url = "https://codeload.github.com/" + REPO + "/tar.gz/" + ref;+ let res;+ try { res = await fetch(url); } catch (err) { out(" download failed for " + ref + ": " + err.message); continue; }+ if (!res.ok) { out(" " + ref + " is not available (" + res.status + ")"); continue; }+ const file = path.join(tmp, "repo.tgz");+ fs.writeFileSync(file, Buffer.from(await res.arrayBuffer()));+ const listing = spawnSync("tar", ["-tzf", file], { encoding: "utf8" });+ if (listing.status !== 0) fail("tar is needed to extract the download and it is not available: " + (listing.stderr || "").trim());+ const top = (listing.stdout.split("\n")[0] || "").split("/")[0];+ const member = top + "/employees/" + slug;+ if (!listing.stdout.split("\n").some((l) => l.startsWith(member + "/"))) fail("the download has no employees/" + slug + " folder");+ const extractRoot = path.join(tmp, "x");+ fs.mkdirSync(extractRoot);+ const x = spawnSync("tar", ["-xzf", file, "-C", extractRoot, member], { encoding: "utf8" });+ if (x.status !== 0) fail("extract failed: " + (x.stderr || "").trim());+ copyDir(path.join(extractRoot, member), dst);+ out(" downloaded " + ref + " and copied employees/" + slug);+ return;+ }+ fail("could not download the repo. Clone https://github.com/" + REPO + " and copy employees/" + slug + " by hand.");+ } finally {+ fs.rmSync(tmp, { recursive: true, force: true });+ }+}++function selftests(dst) {+ let allOk = true;+ for (const script of ["copy-check.mjs", "runlog.mjs", "guard.mjs"]) {+ const p = path.join(dst, "scripts", script);+ if (!fs.existsSync(p)) { out(" missing " + script); allOk = false; continue; }+ const r = spawnSync(process.execPath, [p, "--selftest"], { encoding: "utf8" });+ const last = (r.stdout || "").trim().split("\n").pop() || (r.stderr || "").trim();+ out(" " + (r.status === 0 ? "ok " : "FAIL ") + last);+ if (r.status !== 0) allOk = false;+ }+ return allOk;+}++function loginStatus() {+ const r = spawnSync("claude", ["auth", "status"], { encoding: "utf8", shell: process.platform === "win32" });+ if (r.error || r.status === null) return "unknown (claude is not on PATH here; the Desktop app has its own login)";+ const text = (r.stdout || "") + (r.stderr || "");+ if (/loggedIn"?\s*:\s*true/i.test(text)) return "logged in";+ if (/loggedIn"?\s*:\s*false/i.test(text) || /not logged in/i.test(text)) return "NOT logged in";+ return "unknown";+}++async function hire(args) {+ const slug = resolveSlug(args._[0]);+ if (!slug) { out("Which employee? One of:"); list(); process.exit(2); }+ const e = EMPLOYEES[slug];+ const dst = path.resolve(args.to || path.join(process.cwd(), "employees", slug));++ if (underCloudSync(dst)) {+ fail(dst + " sits under a cloud sync folder. The routines write state and a run log mid run, and a sync client corrupts exactly the file that tells tomorrow's run what already happened. Pick a local folder such as " + (process.platform === "win32" ? "D:\\AgentOps\\" + slug : "~/ai-employees/" + slug) + " and pass it with --to.", 3);+ }+ if (fs.existsSync(dst) && !isEmptyDir(dst)) {+ fail(dst + " already exists and is not empty. Never copy over an installed employee; its strategy, state and ledgers are yours. To update one, follow CHANGELOG.md, section Updating without losing your work.", 4);+ }++ out("Hiring the " + e.name + " into " + dst);+ const local = path.join(HERE, "..", "employees", slug);+ if (fs.existsSync(path.join(local, "CONTRACT.md"))) {+ copyDir(local, dst);+ out(" copied employees/" + slug + " from the package");+ } else {+ await fetchTarball(slug, dst);+ }++ const version = fs.existsSync(path.join(dst, "VERSION")) ? fs.readFileSync(path.join(dst, "VERSION"), "utf8").trim() : "unknown";+ out(" kit version " + version);+ out("Self tests:");+ const ok = selftests(dst);+ out("Login: " + loginStatus());++ const promptPath = path.join(dst, "INSTALL-PROMPT.md");+ let prompt = fs.readFileSync(promptPath, "utf8");+ const rootToken = (prompt.match(/«[A-Z_]+_ROOT»/) || [])[0];+ if (rootToken) prompt = prompt.split(rootToken).join(dst);++ out("");+ out("=".repeat(78));+ out("Next: open a Claude Code session in " + dst + ", fill in your home page URL in the");+ out("FILL THIS IN block below (the path is already filled), copy everything between");+ out("=== BEGIN PROMPT === and === END PROMPT ===, and paste it. You spend about ten minutes");+ out("answering questions. The employee's first run takes about an hour and may ask for a");+ out("second session." + (ok ? "" : " Fix the failed self test first; docs/PREREQUISITES.md says how."));+ out("=".repeat(78));+ out("");+ out(prompt.trim());+ out("");+ out("Guided version, updates and premium employees: club.reinventing.ai (https://club.reinventing.ai/?utm_source=github&utm_medium=kit&utm_campaign=" + slug + ")");+}++function parse(argv) {+ const args = { _: [], to: null, help: false };+ for (let i = 0; i < argv.length; i++) {+ const a = argv[i];+ if (a === "--to") { args.to = argv[++i]; if (!args.to) fail("--to needs a folder", 2); continue; }+ if (a.startsWith("--to=")) { args.to = a.slice(5); continue; }+ if (a === "--help" || a === "-h") { args.help = true; continue; }+ if (a === "--version" || a === "-v") { out(VERSION); process.exit(0); }+ if (a.startsWith("--")) fail("unknown option " + a, 2);+ args._.push(a);+ }+ return args;+}++const args = parse(process.argv.slice(2));+const cmd = args._.shift();+if (args.help || !cmd) { usage(); process.exit(cmd ? 0 : 2); }+if (cmd === "list") { list(); process.exit(0); }+if (cmd === "hire") { await hire(args); process.exit(0); }+fail("unknown command " + cmd + ". Try: npx ai-employees hire gtm-engineer", 2);diff --git a/package.json b/package.jsonnew file mode 100644index 0000000..2de6e44--- /dev/null+++ b/package.json@@ -0,0 +1,44 @@+{+ "name": "ai-employees",+ "version": "1.2.0",+ "description": "Open source AI Employees. 8 scheduled business roles on Claude Code. You own the files. They never send or spend.",+ "private": true,+ "type": "module",+ "bin": {+ "ai-employees": "installer/cli.mjs"+ },+ "files": [+ "installer/",+ "employees/",+ "skills/",+ "docs/",+ "README.md",+ "LICENSE",+ "TRADEMARKS.md"+ ],+ "scripts": {+ "test": "node .github/scripts/selftests.mjs && node .github/scripts/no-dashes.mjs",+ "hire": "node installer/cli.mjs hire"+ },+ "engines": {+ "node": ">=18"+ },+ "repository": {+ "type": "git",+ "url": "git+https://github.com/markfulton/ai-employees.git"+ },+ "homepage": "https://github.com/markfulton/ai-employees#readme",+ "bugs": {+ "url": "https://github.com/markfulton/ai-employees/issues"+ },+ "keywords": [+ "ai-employees",+ "ai-agents",+ "claude-code",+ "scheduled-tasks",+ "automation",+ "small-business"+ ],+ "author": "Mark Fulton (https://www.reinventing.ai)",+ "license": "MIT"+}diff --git a/skills/hire/SKILL.md b/skills/hire/SKILL.mdnew file mode 100644index 0000000..51de7a8--- /dev/null+++ b/skills/hire/SKILL.md@@ -0,0 +1,72 @@+---+name: hire+description: Hire one of the eight open source AI Employees (GTM Engineer, SEO, Web Dev, Social Media, Ad Manager, Sales, Customer Satisfaction, Chief of Staff). Copies that one employee folder from the ai-employees repo to a folder the user chooses outside cloud sync, runs its three self tests, and prints its install prompt with the path filled in. Use when the user says hire an employee, install an AI employee, set up the GTM Engineer, or names one of the eight. It registers no schedule and sends nothing.+---++# Hire an AI employee++You are copying one employee kit into place and handing the user its install prompt. That is the whole job. The install prompt, pasted by the user into a fresh session in that folder, does everything else. You do not run the install prompt yourself, you do not register any scheduled job, and you send nothing anywhere.++## 1. Resolve which employee++The eight slugs, with the words people use for them:++| Slug | Also called |+|---|---|+| `gtm-engineer` | GTM, go to market, launch, growth |+| `seo-employee` | SEO, search, content, blog |+| `web-dev-employee` | web dev, developer, site maintenance, engineering |+| `social-media-employee` | social, social media, posting |+| `ad-manager-employee` | ads, ad manager, paid, campaigns |+| `sales-employee` | sales, SDR, prospecting, outreach |+| `customer-satisfaction-employee` | support, customer satisfaction, CSAT, retention |+| `chief-of-staff` | chief of staff, COS, oversight, the one that watches the others |++If the request does not name one, list the eight in one line each (the README's table) and ask which. If it names one loosely, pick the obvious slug and say which you picked.++## 2. Resolve the destination++The user chooses the folder. If they did not say, ask once, and suggest `D:\AgentOps\<slug>` on Windows or `~/ai-employees/<slug>` on macOS and Linux.++**Refuse any path under OneDrive, Dropbox, Google Drive or iCloud**, including a path that resolves into one (on Windows the Desktop is often redirected into OneDrive; check the resolved absolute path, not the spelling). Say why in one sentence: the routines write state and a run log mid run, and a sync client corrupts exactly the file that tells tomorrow's run what already happened. Then ask for another folder.++If the destination exists and is not empty, stop and say so. Never copy over an existing install; its `strategy/`, `state/`, ledgers and `## Corrections` are the user's. Point them at the kit's `CHANGELOG.md`, section "Updating without losing your work".++## 3. Find the source++In this order:++1. This skill lives at `skills/hire/SKILL.md` inside a clone of the repo. If `../../employees/<slug>/CONTRACT.md` exists relative to this file, copy from there.+2. Otherwise run `npx ai-employees hire <slug> --to <destination>` through your shell and let the installer fetch the folder. It refuses synced paths for the same reason you do.+3. If neither works, download `https://github.com/markfulton/ai-employees/archive/refs/heads/main.zip`, extract only `employees/<slug>/`, and copy it.++Copy the whole employee folder as it is. Do not rename anything: a routine's folder name, its YAML `name`, and the name of its scheduled job are the same string, and a rename during copy breaks the install.++## 4. Check it landed++From the destination, through your shell:++```+node --version+node scripts/copy-check.mjs --selftest+node scripts/runlog.mjs --selftest+node scripts/guard.mjs --selftest+```++Node must be 18 or newer and all three must print PASS. Then run `claude auth status` (or the harness's own login check). If nobody is logged in, say so in one plain sentence: nothing scheduled can run until the user opens a terminal, runs `claude`, and completes `/login` themselves. Do not try to log in for them.++## 5. Hand over the install prompt++Read `<destination>/INSTALL-PROMPT.md`. Find its root placeholder (the guillemet token ending in `_ROOT»`, such as `«GTM_ROOT»`) and replace every occurrence with the absolute destination path. Print the result, and tell the user three things above it:++- Copy everything between `=== BEGIN PROMPT ===` and `=== END PROMPT ===` and paste it into a fresh Claude Code session opened in that folder.+- The `FILL THIS IN` block still needs their home page URL. The path line is already filled.+- They spend about ten minutes answering questions. The employee's first run takes about an hour and may ask for a second session.++Point them at `docs/PREREQUISITES.md` in the repo if anything in step 4 failed.++## 6. The last line++End your reply with this line, verbatim, and nothing after it:++Guided version, updates and premium employees: [club.reinventing.ai](https://club.reinventing.ai/?utm_source=github&utm_medium=kit&utm_campaign=hire)