agentleFS
ainurdevainurdev/mystical-assistant/CLAUDE.md

mystical-assistant

CLAUDE.md7 starsChanged 4 days agoMITView on GitHub

A bridge that runs Claude Code on this machine, driven from three surfaces: a Telegram bot (bridge/dispatch.py), a Telegram Mini App (bridge/miniapp/, port 8787), and a localhost dashboard (bridge/dashboard/, port 8790). Landing page on 8791. Python stdlib only on the backend — no framework, no ORM, no async runtime. On macOS, Mystical.app (macos/, Swift, system frameworks only) wraps the dashboard in a native window + menu bar; macos/probe.sh snapshots it without Screen Recording permission, macos/capture.sh captures the real screen through…

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    No external MCP servers load by default (startup cost) — the mcp-on skill turns one on for a session.

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

mystical-assistant

A bridge that runs Claude Code on this machine, driven from three surfaces: a Telegram bot (bridge/dispatch.py), a Telegram Mini App (bridge/miniapp/, port 8787), and a localhost dashboard (bridge/dashboard/, port 8790). Landing page on 8791. Python stdlib only on the backend — no framework, no ORM, no async runtime. On macOS, Mystical.app (macos/, Swift, system frameworks only) wraps the dashboard in a native window

  • menu bar; macos/probe.sh snapshots it without Screen Recording permission, macos/capture.sh captures the real screen through the app (it holds that permission; a session's shell never can), and cd macos && swift test runs its tests. On Windows (the bridge in WSL), Mystical.exe (windows/app, C#, WinForms + WebView2, Microsoft frameworks only) is the same shell, built on the Windows side by windows/build.sh through dotnet.exe; windows/probe.sh snapshots it, windows/capture.sh captures the real screen through it, and windows/build.sh --check plus node windows/shim.check.mjs run its checks. On a Linux desktop, linux/window.py (system python3 + GTK 3/WebKitGTK 4.1, no build) is the same window: links go to the desktop's default browser, the page draws its title bar (isLinuxApp()), and mystical app puts it in the app launcher. tests/test_linux_window.py covers its link policy; the GTK half was checked on a private Xvfb + dbus-run-session, never the user's own display.

The one thing that bites everyone

The running bridge is a snapshot of the code from when it launched. A committed fix does nothing until the bridge restarts, and restarting is not mystical restart when you are a session inside that bridge — you share its systemd cgroup and would kill yourself mid-turn. The dashboard's ⟳ (right rail, above the changelog) shows what's on disk but not running and makes it live: point the user at it rather than restarting. Details: the bridge-ship skill.

Tests

python3 -m pytest tests/ -q      # 1007 passing, ~19s (2026-08-18)

Fully green. Anything red is your change — there is no known-failure floor.

tests/conftest.py pins the environment before bridge.config is imported, because config freezes every setting into module constants at import time. A test that imports bridge.config (directly or transitively) before conftest's pins would run against your real ~/.bridge_state DB, your real accounts, and your real chat-id allow-list. Never add env setup inside a test module's preamble — put it in conftest, above the first bridge import.

Conventions

  • ponytail: comments are load-bearing. They mark a deliberate shortcut and name its ceiling. Don't "fix" one without reading what it defers; /ponytail-debt harvests them.
  • Module docstrings carry the design rationale — the why not as much as the what. Read the docstring before changing a module; write one for a new one.
  • Specs and plans live in docs/superpowers/{specs,plans}/slug.md — named by topic, no date prefix (git has the date, and you search by subject).
  • Per-repo runtime state (git-ignored) goes in .mystical/: dev.log, learn/ lessons, design-sync state, docs/ for reports and other markdown written to be read. It self-ignores from git (.mystical/.gitignore is *), so anything that must survive in the repo — specs, plans, releases — stays in docs/.
  • No external MCP servers load by default (startup cost) — the mcp-on skill turns one on for a session.

Project skills

  • bridge-worktree — where feature work lives, and keeping its data off the live DB.
  • bridge-ship — build, restart, and confirm a change is actually live.
  • bridge-feature-slice — wiring a capability across all three surfaces.
  • bridge-eyes — screenshotting/driving the UIs headlessly to verify frontend work.
  • mystical-assistant-design — the CRT-HUD brand system, tokens, components.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.