Skip to main content

Tiles AI โ€” a phone-home-screen control plane for AI agents. Register, activate, observe, and permission tiles.

Project description

๐ŸŸฉ Tiles AI

A home screen for your AI agents. Lay your agents out as tiles on a board, tap one to run it, and stay in control of anything it does.

PyPI CI License: MIT

Tiles AI โ€” a home screen for your AI agents

What is it?

Think of your phone's home screen โ€” but every app is an AI agent.

  • A board is a grid of tiles.
  • Each tile is one agent that does a single job โ€” "summarize my inbox", "tidy this folder", "draft a reply".
  • Tap a tile and it turns green โ€” running.

Tiles AI handles the parts around an agent โ€” running it, watching it, asking your permission before it acts, and connecting it to your apps. You bring the agent's logic (plain Python, or wrap LangChain / CrewAI / the OpenAI SDK).

It's built for developers learning to build agents: start from a ready-made board and add your own tiles right from the screen.

Quick start

You'll need Python 3.11+. The board ships pre-built in the package:

pipx install tiles-ai      # or: pip install tiles-ai
tiles up --echo            # seeds a starter board here on first run

Open http://127.0.0.1:8000 โ€” you'll see a starter board running on a free offline brain (no API key needed). The first run drops the starter tiles and connectors into the current folder (so you can edit them); run tiles init yourself to seed a board without starting the server. When you're ready for a real model, run tiles up and connect a brain from the screen.

From source (to hack on Tiles itself)

You'll also need Node 18+ to build the board once.

git clone https://github.com/Manav020201/tiles-ai && cd tiles-ai
pip install -e ".[dev]"
npm --prefix frontend install && npm --prefix frontend run build
tiles up --echo

What you can do

Right away โ€” no API keys:

  • Instant tiles โ€” Ask, Summarize, Translate, Extract, Brainstorm.
  • Your files โ€” summarize a folder, find files, or tidy a folder (it proposes the moves; you approve them).

Add your apps โ€” GitHub, Slack, web search, Gmail, and anything with an MCP server (local or remote). Paste any API key the app needs right in the board (stored locally in secrets.local.yaml, gitignored), or connect via OAuth.

All from the board โ€” no editor required:

โž• Create a tile fill a form; Tiles writes the files for you
๐Ÿ”Œ Connect an app paste its command; Tiles reads its tools automatically
๐Ÿง  Choose your model cloud (Anthropic / OpenAI) or local (Ollama)
โœ… Approve before it acts anything that writes or sends waits for your OK
โฑ Schedule & chain run a tile on a timer, or feed one tile's output into another
๐Ÿ‘€ Observe live activity per tile, and clear errors as you go

How it works

Three ideas:

Concept What it is
Tile an agent โ€” a model + instructions + a permission level. The thing you tap.
Connector a reusable connection to one app (e.g. GitHub). Many tiles can share it.
Brain the model that powers tiles. Set one once; a tile can pin its own.

Permissions are built in. Every tile has a level: read-only (never acts), draft (proposes actions you approve), or autonomous. Green means running, not unsupervised.

Architecture (for the curious)
React board โ”€โ”€HTTP/SSEโ”€โ”€โ–ถ FastAPI โ”€โ”€โ–ถ runtime โ”€โ”€โ–ถ permission gate โ”€โ”€โ–ถ connector โ”€โ”€โ–ถ app
                                         โ””โ”€โ”€โ–ถ model adapter โ”€โ”€โ–ถ brain (cloud / local)

Connectors talk to apps over MCP (stdio or HTTP). The full design is in SPEC.md.

Using the board โ€” a complete guide

Reading the board

Tiles are grouped by the app they use (Instant, Local-files, Gmail, Web-search, โ€ฆ). Each icon tells you its state at a glance:

  • Green icon โ€” the tile is active (running / listening).
  • ๐Ÿ”’ lock badge โ€” the tile needs something before it can run (usually an API key); tap it to add one.
  • The top bar has ๐Ÿง  (choose your model), โŸณ (rescan after editing files), and an Issues panel if any tile failed to load.

Tap any tile to open its sheet โ€” that's where everything happens.

The basic loop (every tile works this way)

  1. Tap the tile โ†’ its sheet slides up.
  2. Toggle "Running" on (the icon turns green). "Green = running, not unsupervised."
  3. If the tile takes input, a box appears โ€” type your input (some are optional; the box says so).
  4. Press Run. The result shows under Last run.
  5. For draft tiles, anything that writes/sends is not done immediately โ€” it's queued for your approval (see Approvals).

A tile's badges show its permission tier (read only / draft / autonomous) and which brain it uses.

The tile catalog

What every starter tile does, what to type, and what it needs.

Instant โ€” work immediately, only need a model (no app, no keys):

Tile What to type
Ask any question
Summarize text to condense
Translate text โ€” optionally prefix to spanish: to pick a language
Extract messy text โ†’ pulls out people, dates, tasks, links
Brainstorm a topic or problem to riff on

Local files โ€” read/organize a folder. No API key, no Node (a bundled Python server):

Tile Tier What to type
Ask My Files read only a question about your documents
Find Files read only a filename or keyword
Summarize Folder read only (optional) a subfolder โ€” blank = the whole folder
Tidy Folder draft (optional) a folder โ€” it proposes moving files into type subfolders; you approve each move

These read the folder the local-files connector points at (the bundled sample_docs/ by default). To use your own folder: ๐Ÿ”Œ local-files โ†’ โš™ โ†’ change the last argument of the MCP command to your folder's path.

Gmail โ€” works two ways:

Tile Tier What to type
Inbox Summary / Reply Drafter read only / draft the mock โ€” fake data, zero setup, for learning the flow
Inbox Summary (live) / Reply Drafter (live) read only / draft your real Gmail via Google OAuth โ€” see docs/GMAIL.md

Real Gmail needs a one-time Google Cloud OAuth app (Google's requirement). After that you connect it entirely from the board: ๐Ÿ”Œ Gmail (live) โ†’ โš™ โ†’ paste the client ID + secret โ†’ Authorize. Full walkthrough: docs/GMAIL.md.

Web search โ€” needs a free Brave API key + Node:

Tile What to type
Web Search what to search for
Research a question โ€” answered with web sources

GitHub โ€” needs a GITHUB_PERSONAL_ACCESS_TOKEN + Node:

Tile Tier What to type
GitHub Triage read only owner/repo (e.g. octocat/hello-world)
GitHub Comment draft owner/repo#issue: what to say โ€” drafted, queued

Slack โ€” needs SLACK_BOT_TOKEN + SLACK_TEAM_ID + Node:

Tile Tier What to type
What did I miss read only a channel name or id
Message Drafter draft #channel: what to say โ€” drafted, queued

Tiles needing a key show ๐Ÿ”’ until you add one. Tap the tile and paste the key right there (or ๐Ÿ”Œ โ†’ โš™ โ†’ API keys). Keys are saved to secrets.local.yaml (gitignored) and never leave your machine. The GitHub/Slack/Web-search apps run via npx, so they need Node 18+ installed.

Approvals (draft tiles)

A draft tile never writes to the outside world on its own. When it wants to (send an email, comment on an issue, move a file), it proposes the action and it lands in the Approvals queue. You review the exact action and Approve or Reject โ€” nothing happens until you do. This is the core safety guarantee.

Schedule & chain

  • Schedule โ€” give a tile a Run every interval (e.g. 15m) in its New/Edit form and it runs on a timer; the sheet shows a โฑ badge.
  • Chain โ€” in a tile's sheet, the Chain section offers compatible tiles to pipe into. Run one, then feed its output straight into another (e.g. Inbox Summary โ†’ Reply Drafter).

Choosing your model (๐Ÿง )

Click ๐Ÿง  in the top bar to open Brains. Add a cloud model (Anthropic or OpenAI โ€” paste your API key) or a local one (Ollama), set a default, and Test it. Every tile uses the default unless it pins its own. Keys are saved in brain.local.yaml (gitignored). (Running with tiles up --echo forces an offline demo brain and ignores real keys โ€” use plain tiles up for real models.)


Create a tile (from the board)

  1. Click โž• New tile.

  2. Fill the form:

    • Name + icon + one-line description.
    • Instructions โ€” the agent's system prompt ("You summarizeโ€ฆ cite the sourceโ€ฆ if unknown, say so").
    • Permission tier โ€” read only (never writes), draft (proposes, you approve), or autonomous.
    • App (optional) โ€” bind to a connector and pick which of its tools the tile may use. Leave blank for an instant tile (model only).
    • Input / Run every (optional).
  3. Create โ€” Tiles scaffolds tiles/<id>/ (manifest + handler + README) and the tile appears on the board immediately.

  4. Go deeper: open tiles/<id>/handler.py and edit run. A tile is a small folder with a manifest and one method:

    from tiles_ai.contracts import ActionPlan, Tile
    
    class MyTile(Tile):
        async def run(self, input, context) -> ActionPlan:
            answer = await context.model.complete(str(input))
            return ActionPlan(result=answer)
    

    context.tools.call(...) reads through your connector (allow-listed, read-only); to write, return a ProposedAction and the gate handles approval. Full field-by-field reference: docs/AUTHORING.md.

Connect a new app (from the board)

For any app with an MCP server (local or remote):

  1. Click ๐Ÿ”Œ New app.
  2. Paste the MCP server command (e.g. npx -y @modelcontextprotocol/server-github) โ€” or an http(s):// URL for a remote server โ€” and the names of any env vars it needs (e.g. GITHUB_PERSONAL_ACCESS_TOKEN).
  3. Click Fetch tools โ€” Tiles launches the server and reads its tool surface. Each tool has a "writes" checkbox: leave it checked for tools that change the world (send, post, delete) and unchecked for reads. This flag is safety-critical โ€” the permission gate trusts it.
  4. Save โ€” the connector is scaffolded and now appears in the New Tile form's app picker.
  5. Add its key โ€” open the connector (๐Ÿ”Œ โ†’ โš™ โ†’ API keys) and paste the value, or paste it from any tile that shows ๐Ÿ”’. For OAuth apps, use Authorize instead. Edit or remove a connector anytime from the same โš™.

Troubleshooting

The board is empty, or http://127.0.0.1:8000 shows 404 Not Found

You're almost certainly running a source checkout or an editable install (pip install -e) instead of the published package. The board UI and the starter tiles are built into the wheel; a source tree only has them after a release build, so it serves nothing at / and shows no tiles.

The fix is to install the real package into an isolated environment so nothing shadows it (see the next item). If you do want a checkout to serve the board:

npm --prefix frontend run build && cp -r frontend/dist src/tiles_ai/web
python scripts/bundle_starter.py        # adds the seedable starter board
pip install tiles-ai says "Requirement already satisfied" / won't update

A pre-existing install โ€” often an editable one from a clone โ€” is registered, so import tiles_ai resolves to that, not the download. Install into a fresh virtual environment instead (non-destructive; leaves any dev checkout intact):

python3 -m venv ~/tiles-test-env
~/tiles-test-env/bin/pip install --upgrade pip tiles-ai
mkdir -p ~/tiles-demo && cd ~/tiles-demo
~/tiles-test-env/bin/tiles up --echo

Or, to use your base environment, remove the old install first: pip uninstall tiles-ai then pip install tiles-ai (re-run pip install -e ".[dev]" in your clone afterwards if you were developing).

pipx install tiles-ai fails with an ensurepip / venv error

This is a pipx + Python toolchain problem (commonly a freshly-installed Python whose ensurepip is broken), not a Tiles problem โ€” pipx never reaches the package. Either point pipx at a known-good Python:

PIPX_DEFAULT_PYTHON=$(which python3) pipx install tiles-ai

or skip pipx and use the plain venv + pip recipe in the item above.

I added a real API key and Test passed, but tiles still just echo

You're running tiles up --echo. The --echo flag forces an offline demo brain โ€” every tile (and the Test button) returns a canned echo, and real keys are ignored by design. Restart without --echo:

tiles up

then add your key in Settings (๐Ÿง ). It's saved to brain.local.yaml and used for every tile. (On recent versions, clicking Test while in --echo mode says so explicitly instead of reporting a false "working".)

A tile fails with "model call failed" / HTTP 529 / 502

529 Overloaded (and 429, 503) are transient errors from the model provider, not a Tiles bug โ€” your key is working, the provider is just busy. Tiles retries these automatically with backoff; if it still fails, wait a few seconds and run the tile again. A persistent 401/403 instead means a bad or unauthorized API key โ€” re-check it in Settings (๐Ÿง ).

I have an old version installed

Check with tiles --version and pip show tiles-ai. Upgrade with pip install --upgrade tiles-ai (inside the right environment โ€” see above).

Docs

Status

Active development; well-tested with CI on Python 3.11 and 3.12.

Already here: tiles chain (sequential flows), run on an interval schedule, and connect via OAuth (authorization-code) or API keys.

Refinements still to come: branching / fan-out flows (only linear chains today) ยท cron and event triggers (only intervals today) ยท automatic OAuth token refresh. Out of scope for now: hosting and multi-user.

License

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tiles_ai-0.1.7.tar.gz (183.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tiles_ai-0.1.7-py3-none-any.whl (191.8 kB view details)

Uploaded Python 3

File details

Details for the file tiles_ai-0.1.7.tar.gz.

File metadata

  • Download URL: tiles_ai-0.1.7.tar.gz
  • Upload date:
  • Size: 183.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tiles_ai-0.1.7.tar.gz
Algorithm Hash digest
SHA256 43f2879688045852bc10a78cb241a5075a2962718b1afcad8fc07767ba70aca1
MD5 8b8bb08df34e25313a62d1aebfcb6f2a
BLAKE2b-256 ba6accb515b07768c72461818203655acb5c2db8ea6ea0043724e71bf011dd6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for tiles_ai-0.1.7.tar.gz:

Publisher: release.yml on Manav020201/tiles-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tiles_ai-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: tiles_ai-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 191.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tiles_ai-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4534323713cc55be7f5f1082707f597e74c5a3d1d09e9ae31d0a639efddfb251
MD5 e17667c4f716cd3ed8307ed3c24b8684
BLAKE2b-256 31fe5e3c51e4eedd2dd305685d98e44dc0ae6e159f4951b44626832190ea3616

See more details on using hashes here.

Provenance

The following attestation bundles were made for tiles_ai-0.1.7-py3-none-any.whl:

Publisher: release.yml on Manav020201/tiles-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page