Metadata-Version: 2.5
Name: gillie
Version: 0.4.6
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: keyring>=25
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

Python installs need Python 3.11+ and git. Connect AI from Settings after starting Gillie; no separately installed agent CLI is required.

```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)
```

On a new machine, Settings opens first. Add an OpenAI, Anthropic or OpenRouter connection, install its runtime, test it and make it the default. API usage is billed separately from ChatGPT/Claude subscriptions; OpenAI and Anthropic also offer account sign-in, including enterprise accounts subject to organisation policy. OpenAI uses Pi’s Sign in with ChatGPT flow; Anthropic uses Claude Code sign-in. Then 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

Download the DMG for your Mac from [GitHub Releases](https://github.com/m0nkmaster/gillie/releases):
**arm64** for Apple Silicon, **x64** for Intel. Drag Gillie into Applications, eject the disk
image, then open it. Python and the backend are included; no Python, Node or uv setup is needed.

These releases are **self-signed and not notarised**. If macOS blocks the first launch, use
**System Settings → Privacy & Security → Open Anyway** for Gillie and confirm.
The first launch creates `~/workspace` (or uses your previously configured workspace).
An existing folder with unrelated files is not automatically adopted. Settings downloads verified standalone AI runtimes without Node or terminal commands. Accounts are yours; local Ollama still requires Ollama and a downloaded tool-capable model.

To update, quit Gillie and replace the app using the newer DMG. Your workspace stays in place.
There is no automatic updater. See [desktop build and release instructions](desktop/README.md)
for local builds, or the [release guide](docs/development/releases.md) for one-command publishing.

**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, AI connection, 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.

## AI connections

Settings → AI connections stores named accounts with a provider, model and billing route. API keys
live in the OS credential store (Keychain on macOS); official Claude account credentials stay in
Claude's own isolated authentication storage. The connection test makes one small billable request
and proves a safe local file read before enabling **Make default**.

Anthropic models run through the unmodified Claude Code runtime. OpenAI, non-Anthropic OpenRouter
models and local Ollama models run through Pi. Anthropic models on OpenRouter are rejected: choose
an Anthropic connection explicitly. Gillie never automatically changes an account or billing route.

Chats retain their account when the default changes. Use the chat Account selector to change it;
visible history and the topic summary remain, with a new execution session. Workers can use a
named connection or `connection: default`; existing Cursor and OpenCode/Ollama settings remain
until you explicitly choose a replacement. Disconnect lists affected chats, approvals and workers.
**Install / repair** installs the version pinned by this Gillie release, preserving other CLI installs.
New runtime versions arrive with Gillie updates. Current managed downloads support macOS and glibc
Linux on Apple/ARM64 and x64; Windows runtime installation is not implemented yet.

## 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.
