Metadata-Version: 2.5
Name: gillie
Version: 0.2.2
Summary: An operating model and assistant for AI-assisted knowledge work
License-Expression: Apache-2.0
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: fastapi
Requires-Dist: pyyaml
Requires-Dist: uvicorn[standard]
Provides-Extra: dev
Requires-Dist: httpx; extra == 'dev'
Requires-Dist: pytest; extra == 'dev'
Description-Content-Type: text/markdown

# Gillie

<img src="assets/gillie.png" alt="Gillie, a teal-hooded pixel wayfinder with amber eyes, a satchel and a floating waypoint" width="160" align="right">

Gillie is an operating model for AI-assisted knowledge work, plus an assistant that runs it.

**The operating model is the product.** A folder of Markdown with a few conventions - a profile, priorities, projects with a README each, provenance on what has been checked, skills that teach agents your jobs - that works from Claude Code, Codex, Cursor or pi with no app at all. **The Assistant** is the main interface onto it: a local board of what needs you now, workers - skills on a schedule - that keep your workspace tended, and pages you can add by asking.

A gillie is the Scottish attendant who knows the ground, carries the kit and keeps you out of the bog.

## Install

You need Python 3.11+, git and [Claude Code](https://docs.anthropic.com/claude-code) (installed and signed in once).

```bash
uv tool install gillie            # or: pipx install gillie
gillie init ~/workspace
gillie start                      # http://127.0.0.1:6177/assistant (6177: G-I-L-L, if you squint)
```

The board opens on one card, **Set up your workspace**. It runs the `setup` skill with you: your profile, priorities and tools, a starter schedule and a first real card. You can also run it from `claude` in the folder.

Run Gillie in the background with `gillie service install` (launchd on macOS, systemd on Linux). Converting a folder of notes you already have? `gillie init --adopt <folder>` adds Gillie without touching your files.

### The macOS app

`Gillie.app` is a menu-bar shell that supervises the runner, opens the board in its own window and sends native notifications. It runs whichever `gillie` command is installed (`~/.local/bin`, then Homebrew) against your workspace, so install Gillie first. There is no prebuilt download yet: you build the app from the repo. You need an Apple Silicon Mac, Node.js with npm, and [uv](https://docs.astral.sh/uv/).

**From GitHub**, to use Gillie:

```bash
uv tool install git+https://github.com/m0nkmaster/gillie.git
gillie init ~/workspace
git clone https://github.com/m0nkmaster/gillie.git && cd gillie/desktop
npm install
npm run setup:signing             # once: a local signing identity so notifications keep working
npm run install:mac               # builds Gillie.app and replaces /Applications/Gillie.app
```

Update with `uv tool upgrade gillie`, then **Restart Gillie** from the menu bar. Rebuild the app (`git pull && npm run install:mac`) only when `desktop/` changes.

**From a local checkout**, to work on Gillie:

```bash
git clone https://github.com/m0nkmaster/gillie.git && cd gillie
uv tool install --editable .      # `gillie` now runs this checkout
gillie init ~/workspace
cd desktop && npm install
npm start                         # run the app from source, no install
npm run setup:signing && npm run install:mac   # or install it into /Applications
```

With the editable install, dashboard HTML and CSS changes show on reload, Python changes after **Restart Gillie**, and core skill changes after `gillie skills sync`; none needs a rebuild. Only changes under `desktop/` need `npm start` again or a fresh `npm run install:mac`. Notifications, signing and troubleshooting: [desktop/README.md](desktop/README.md).

## What you get

```
~/workspace/
  AGENTS.md            # your rules; links the operating model (CLAUDE.md points here)
  PROFILE.md           # who you are and how the assistant should sound
  PRIORITIES.md        # what matters now
  CONTEXT.md TOOLS.md  # your domain and your tools
  projects/ notes/ drafts/ analysis/ templates/
  .agents/skills/      # core skills, then yours (.claude/skills points here)
  .gillie/
    operating-model.md # Gillie's rules, replaced on update
    tasks.yaml         # the schedule
    connectors.yaml    # tool sign-in checks and write denials
    pages/             # your custom pages
    state/             # runtime state (gitignored)
```

| Page | What it is for |
|------|----------------|
| `/assistant` | The board: what needs you now, and every chat you have started |
| `/workspace` | Search and browse the workspace; pick files as chat context |
| `/runner` | Workers: every skill on a schedule, with status, schedule, harness, model, run history, a 1:1 chat to refine its skill and New worker to add one |
| `/pulse` | Workspace telemetry and the project constellation |
| `/office` | The scheduled workers as a pixel-art office |
| `/pages/<name>/` | Pages you add by asking (the `page-builder` skill) |

### Core skills

| Skill | Job |
|-------|-----|
| `assistant` | Conductor: ranks what needs you into board cards |
| `actor` | The live chat on a card; drafts actions, never sends them |
| `sender` | Performs one action you approved |
| `workspace-gardener` | Digests, verifies, connects and tidies the workspace |
| `workspace-learner` | Learns from your AI chats and connected tools |
| `skill-auditor` | Reviews and improves the skill set |
| `workspace-new-project` | Scaffolds a project |
| `setup` | First-run and re-runnable setup; merges skill updates |
| `connectors` | Connects a tool safely, with a catalogue of common ones |
| `page-builder` | Builds custom pages |
| `write-a-skill` | Writes and sharpens skills |
| `gillie-engineer` | Evolves your pages, tasks and skills from how you use them |

Core skills are copied into your workspace and become yours. `gillie skills sync` updates the ones you haven't edited; the `setup` skill helps merge updates into ones you have.

## Safety

- External writes (messages, tickets, pages, email) pause for **Send/Cancel** on the board. Only then does the `sender` skill run.
- Unattended runs get a deny policy: secrets, destructive git, write-shaped MCP tools and every connector's write commands are blocked.
- Read-shaped MCP calls are allowed; write-shaped ones are blocked by a hook.
- Writer tasks are serialised so two passes never edit the same files at once.
- Posts the assistant sends end with `[AI]`.

Connector write denials can be loosened per connector, never globally.

## Harnesses

Each task picks Claude Code, Cursor or a local Ollama model (through OpenCode) on the Workers page. Setup configures Claude Code; the others are opt-in and best-effort. Claude Code provider settings (`CLAUDE_CODE_USE_BEDROCK`, `AWS_PROFILE` and similar) are read from the workspace `.env` when the runner's environment lacks them.

## Develop

```bash
uv venv && uv pip install -e '.[dev]'
.venv/bin/python -m pytest -q
cd desktop && node --test
```

Architecture, decisions and gotchas: [AGENTS.md](AGENTS.md). Release notes: [CHANGELOG.md](CHANGELOG.md).

## Licence

Apache-2.0. The Office uses the [LPC Revised](https://github.com/ElizaWy/LPC) sprites (OGA-BY 3.0) and OFL fonts; Tabler is MIT. Credits are beside each vendored asset.
