Skip to main content
Glama
shapeyourphone

shapeyourphone

by rachitkj

shapeyourphone

ci release license

Your Android phone, shaped by an AI agent. Not a custom ROM, and no root needed. It runs on the Android you already have, over adb, and every change can be undone.

You tell your agent (Claude Code, Claude Desktop, Codex, Gemini CLI…) how you want your phone. It cleans out bloat, tightens privacy, tunes settings, and designs your home screen. It remembers what you asked for, so the next request builds on the last one instead of starting over.

Status: v0.1. Every CI run drives the real CLI over adb against Android 8, 11, 14 and 16 emulators: debloat, undo, install the launcher, time rules, the pause screen, full restore. It has not been tested on physical phones yet, and phone makers' Android versions differ, so device reports are very welcome.

Default

Minimal text

Wallpaper + evening rule

Drawer

Get started

1. Turn on USB debugging. Settings → About phone → tap Build number 7 times → Developer options → USB debugging. Plug the phone in and tap Allow. You also need adb (brew install android-platform-tools, winget install Google.PlatformTools, or apt install adb) and Python 3.9+.

2. Pick how you want to talk to it.

You use

Do this

Claude Code, Codex, Gemini CLI

git clone https://github.com/rachitkj/shapeyourphone && cd shapeyourphone, open your agent there and say "Follow PROMPT.md".

Claude Desktop or another MCP app

pipx install git+https://github.com/rachitkj/shapeyourphone, then add the server below and ask Claude to help with your phone.

Just a terminal

pipx install git+https://github.com/rachitkj/shapeyourphone, then shape doctor, shape scan, shape --help.

MCP config (Claude Desktop → Settings → Developer → Edit Config):

{"mcpServers": {"shapeyourphone": {"command": "shape-mcp"}}}

Every tool that changes the phone returns a preview first, and only acts when called again with owner_approved: true.

The Shape launcher installs itself when you ask for it (shape launcher install downloads the signed APK from Releases and checks it). You can also grab shape-launcher.apk directly.

Related MCP server: mcp-android

What a session looks like

you:   my phone is full of junk and I waste too much time on Instagram
agent: shape scan → 14 preinstalled apps you can switch off (Meta App Manager,
       Samsung TV Plus, …), nothing you use. Here's the plan. OK?
you:   yes, but keep Samsung Notes
agent: shape keep com.samsung.android.app.notes · shape apply … --yes   ✓ 13 done
       Want a calmer home screen? I can hide Instagram on weekdays 9–18 and
       show a 10-second pause before it opens the rest of the time.
you:   do it
agent: shape launcher hide Instagram --days weekdays --from 09:00 --to 18:00 --yes
       shape launcher pause Instagram --seconds 10 --yes                     ✓
       (noted in your preferences, so next time I remember)

What it does

Cleanup and privacy

  • init saves a full backup before anything changes.

  • scan and plan use tiered bloat lists (safe / recommended / optional) for Google, Meta, Samsung, Xiaomi, OPPO/OnePlus/realme, vivo, Motorola and carriers. Each entry says in plain words what you'd lose.

  • privacy shows who can use your camera, mic, location and contacts, plus accessibility services, notification readers and device admins.

  • tweak covers animations, dark mode, font size, screen timeout, ad-blocking Private DNS, per-app notifications and background limits.

A home screen that rebuilds itself to your taste (config reference)

  • A tiny launcher with no dependencies. Everything about it comes from one JSON config: theme, widgets (clock, apps, search, next calendar event), dock, drawer and gestures.

  • Changes by name, live, with no reinstall: shape launcher hide Instagram --from 22:00 --to 07:00, shape launcher dock Phone WhatsApp Camera, shape launcher theme --icons mono. Every version is kept, so launcher rollback always works.

  • Time rules ("work mode 9–18"), search-only apps, and a pause screen before distracting apps that never opens them by itself.

  • The launcher only accepts commands from adb, so other apps on the phone can't change it.

Memory, safety and new phones

  • preferences.md per phone is your wishes in plain words. The agent reads it before every session and keeps it current. It stays on your computer and is never committed.

  • It never touches core Android, telephony, the stock launcher (which also provides recents and gestures), or packages known to bootloop. It also protects whatever this phone depends on: its keyboard, WebView provider, camera, dialer and SMS apps, accessibility tools, device admins, and anything you said to keep.

  • Every change is checked on the phone and logged with its undo. Use undo <id>, restore for everything, or the generated restore.sh / restore.ps1, which need no Python.

  • drift and reapply catch changes a system update quietly reverted. clone --from <old phone> sets a new phone up the same way.

  • suggest reads real usage, with your permission, and proposes what to put in reach, pause or hide. It only suggests.

What it can't do (without root)

It can't change the status bar, quick settings or lock screen, and it can't remove Google Play services. On Fire OS and some phone makers' Android versions, a third-party launcher can't become the home screen.

Layout

shape/         Python toolkit + MCP server (stdlib only)   PROMPT.md   the agent's playbook
shape/data/    bloat lists, protected packages            docs/       launcher config reference
launcher/      Android launcher (Kotlin, no deps)          config/     default + example home screens
tests/         fake-phone tests, emulator e2e, vectors     scripts/    release signing setup

Developing

  • Python: python3 -m unittest discover -s tests -t tests

  • Launcher: cd launcher && ./gradlew testDebugUnitTest assembleDebug (JDK 17+ and the Android SDK)

  • Releases: run scripts/make-release-key.sh once, then git tag v0.1.0 && git push origin v0.1.0. CI builds a signed shape-launcher.apk, and shape launcher install downloads it.

See CONTRIBUTING · SECURITY · CHANGELOG. Inspired by cleanyourtv. MIT licensed.

Available Tools

33 tools
apply_planA

Apply a plan file (from plan_debloat or clone). Every change is logged with its undo.

Inputs: plan_path (required), device, owner_approved.

change_packagesB
Destructive

Disable, remove (for this user, reversible) or re-enable specific packages.

Inputs: action (required), packages (required), device, owner_approved.

change_permissionC

Grant or revoke one app permission (e.g. android.permission.CAMERA).

Inputs: action (required), package (required), permission (required), device, +1 more.

cloneB

Set this phone up like another saved phone (see phones): same changes, notes, keep list and home screen.

Inputs: from (required), device, owner_approved.

doctorB
Read-only

Check adb, the connected phone and the Shape launcher.

Inputs: device.

driftC
Read-only

Changes the phone has reverted on its own, e.g. after a system update.

Inputs: device.

initA

First step with a new phone: save its profile and a full backup, create its preferences file.

Inputs: device.

keep_packagesB

Record packages the owner never wants touched (or remove them from that list).

Inputs: packages (required), device, remove.

launcher_appsC
Read-only

Installed apps: name → package.

Inputs: device.

launcher_editB

Small home-screen edits by app name. command + args mirror the CLI, e.g. hide ['Instagram','--days','weekdays','--from','09:00','--to','18:00'] · unhide ['Instagram'] · search-only ['TikTok'] · dock ['WhatsApp','Spotify'] · home-apps ['Maps','--style','grid'] · theme ['--icons','grayscale','--background','wallpaper'] · gesture ['doubleTap','Spotify'] · rename ['WhatsApp','Chats'] · pause ['Instagram','--seconds','10'] · rule-remove ['Night'] · usage-access [].

Inputs: command (required), args, device, owner_approved.

launcher_get_configB
Read-only

The home-screen config currently on the phone (JSON). Format: docs/launcher-config.md.

Inputs: device.

launcher_historyC
Read-only

Every home-screen config pushed to this phone.

Inputs: device.

launcher_installB

Install the Shape launcher and make it the home screen (the old launcher stays installed).

Inputs: device, owner_approved.

launcher_previewA
Read-only

What a config would look like at a given time, e.g. at='fri 22:30'. Changes nothing.

Inputs: config (required), at, device.

launcher_rollbackC

Go back to an earlier home screen (default: the previous one).

Inputs: to, device, owner_approved.

launcher_rulesC
Read-only

Time rules on the home screen (● = active now).

Inputs: device.

launcher_set_configB

Replace the whole home-screen config (validated first; preview shows a summary).

Inputs: config (required), device, owner_approved.

launcher_statusC
Read-only

Launcher version, whether it's the home screen, active rules.

Inputs: device.

launcher_uninstallB
Destructive

Give the home screen back to the previous launcher and remove Shape.

Inputs: device, owner_approved.

list_changesB
Read-only

Every change made to this phone, with ids for undo.

Inputs: device, include_undone.

phonesC
Read-only

Phones already set up on this computer.

Inputs: device.

plan_debloatA

Write a reviewable debloat plan file. Show it to the owner, then apply_plan.

Inputs: tier, device, method, exclude, +1 more.

playbookA
Read-only

Read this first: how to run a session with the phone's owner, and the safety rules.

Inputs: device.

preferences_readA
Read-only

The owner's preferences file (their wishes in plain words). Read it at the start of every session.

Inputs: device.

preferences_writeA

Replace the owner's preferences file with updated markdown. Keep their words; add, don't erase.

Inputs: content (required), device.

privacyC
Read-only

Which apps can use location, camera, mic, contacts; accessibility services, device admins.

Inputs: device, include_system.

reapplyC

Re-apply drifted changes.

Inputs: device, owner_approved.

reportC
Read-only

Before/after summary. share=true gives anonymous markdown for a GitHub device report.

Inputs: share, device.

restore_everythingA
Destructive

Undo every change, newest first (also hands the home screen back and removes Shape).

Inputs: device, owner_approved.

scanB
Read-only

Find bloat (tiered safe/recommended/optional, with what each loses) and unknown preinstalled apps.

Inputs: device.

suggestC
Read-only

Suggestions from real usage (most-used apps not in reach, heavy use, unused apps). Changes nothing.

Inputs: days, device.

tweakA

Named reversible tweak: animations , dark-mode yes|no|auto, font-scale , screen-timeout , private-dns adguard|mullvad|cloudflare|cloudflare-family|quad9||off, restrict-background , notifications-off , notifications-on .

Inputs: name (required), args, device, owner_approved.

undoB

Undo specific changes by id, or the last N.

Inputs: ids, last, device, owner_approved.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 33 tools

    Disambiguation4/5

    Most tools target clear, distinct operations (scan, privacy, change_permission, undo, launcher_install). A few boundaries blur: plan_debloat/apply_plan vs change_packages, and tweak's notifications-off/restrict-background vs change_packages disabling; undo/restore_everything/reapply also require reading descriptions to separate. Still, the descriptions generally make the intended choice clear.

    Naming Consistency3/5

    The launcher_* family is consistent, as are preferences_read/write and plan_debloat/apply_plan. But bare nouns (playbook, doctor, phones, scan, privacy, drift, report) mix with verb_noun (change_permission, keep_packages, restore_everything) and inverted forms (preferences_read), so the set has mixed conventions while remaining readable.

    Tool Count2/5

    33 tools is heavy for a single server, even one covering phone debloating plus launcher management. Several tools could be consolidated (e.g. change_packages/tweak, undo/restore_everything/reapply) without losing capability, so the surface feels over-expanded.

    Completeness4/5

    The lifecycle is well covered: setup/init, scanning, reviewable plans, applying changes, undo/restore, drift detection and reapply, preferences, and full launcher install/config/history/rollback/uninstall. Minor gaps exist around a standalone full-backup restore and richer privacy remediation, but core workflows have no dead ends.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      B
      maintenance
      Enables an AI agent to control an Android phone over a private Tailscale network via accessibility UI automation, screenshots, gestures, notifications, clipboard, intents, SAF file access, and optional Termux/Shizuku shells without root or ADB.
      65
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to see and drive a real Android phone over plain ADB: screenshots and numbered UI trees, gestures, typing with accents and emoji, SMS/RCS reading and prepared replies, notifications, files, and settings, with no root and no app installed on the phone. Safeguards mask security codes and require explicit confirmation before sending, paying, deleting or confirming anything.
      18
      2
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Lets an AI assistant look after Android TV boxes, phones and watches over ADB: find devices on the network, see the screen, tap and type, install apps. Package changes are dry-run first, with a protected set read off the device and one-call rollback.
      18
      67 npm
      MIT