AugmentClaude

tlive

By y49Β· y49/tliveΒ· 0

Monitor Claude Code sessions and approve tasks remotely via Telegram, Feishu, or web dashboard.

Installation

  1. Make sure Claude is on your device and in your terminal.

    Skills load from ~/.claude/skills/ when Claude Code starts up β€” so you need it on your machine first. If you don't have it yet, install it once with the command below, then run claude in any terminal to verify.

    One-time setup
    npm i -g @anthropic-ai/claude-code

    Already have it? Skip ahead.

  2. Paste into Claude Code or into your terminal.

    This copies the whole skill folder into ~/.claude/skills/tlive-y49/ β€” the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.

    Faster alternative (instruction-only skills)

    Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates β€” they won't be downloaded and the skill will fail when it tries to load them.

    Quick install (SKILL.md only)
    Sign up to copy
  3. Restart Claude Code.

    Quit and reopen Claude Code (or any other agent that loads from ~/.claude/skills/). New skills are picked up on startup.

  4. Just ask Claude.

    Skills auto-activate when your request matches the skill's description β€” no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the β€œWhat this skill does” section above.

Prefer to read the source first? Open on GitHub.

When Claude uses it

tlive β€” remote approvals (Telegram/Feishu/web), live web terminal, and session monitoring for Claude Code / Codex. Use for configuring or diagnosing tlive, connecting IM platforms, printing session links, or explaining approval behavior. Triggers "tlive", "IM bridge", "phone approvals", "remote terminal", "Telegram/Feishu notifications".

What this skill does

tlive usage guide

tlive is a self-hosted monitoring/approval layer. Claude Code sessions report through global hooks; Codex sessions are watched through an app-server companion process (no hooks, no trust step). Completions and failures land in IM (Telegram/Feishu) and the web dashboard, where you can reply-to-continue. The posture (tlive mode, default notify) decides whether approvals are held for a remote answer: in notify tlive only watches + notifies (the shim never holds an approval β€” prompts stay 100% native); tlive mode full turns on remote approval (Allow/Deny from IM/desktop/dashboard); off makes every hook a no-op. The daemon auto-starts with new sessions (disable via daemon.autoStart: false).

Commands

  • tlive setup β€” configure IM credentials + register the Claude/Codex plugins (hooks ride the Claude plugin; Codex needs none). --hooks-only re-registers plugins only; add --claude / --codex to pick a vendor.
  • tlive status β€” daemon health, effective mode, channels, and the Codex companion state (running / degraded / off; degraded or off = Codex approvals local-only).
  • tlive mode off|notify|full β€” set posture (see intro). Persisted to config, takes effect on the next hook; notify is the default, full = remote approval on.
  • tlive run <cmd> β€” wrap a process: local terminal + live web terminal (QR to open).
  • tlive url β€” print the dashboard link + QR code.
  • tlive logs -f β€” follow the daemon log.
  • tlive start / tlive stop β€” explicit lifecycle (start is rarely needed; sessions lazy-start the daemon unless autoStart is off).

Diagnostics

  1. No IM messages: tlive status for channel config; tlive logs -f for send errors; confirm the daemon is up after starting a session.
  2. Codex has no remote cards: check tlive status β€” the companion line must say running. off means codex isn't on PATH (or Windows); degraded means the app-server child keeps dying β€” see ~/.tlive/codex-appserver.log. Either way Codex still prompts locally; nothing is ever auto-run.
  3. No approval card ever arrives: check tlive status β€” the mode: line must say full. The default notify never sends approval cards (tool prompts stay local); enable remote approval with tlive mode full.
  4. Claude approval card unanswered (in full): the local dialog stays live the whole time (parallel channels, first answer wins); answering locally resolves the remote card as "answered in terminal". The remote window defaults to ~24h (approvals.windowSec, shared by both vendors).
  5. Web page unreachable: tlive url for the current link (token is in the URL); phones need the same LAN (or your own reverse proxy/VPN β€” tlive has no publicUrl config, and cards never carry the link).

Security model in one breath

  • Never auto-allow: unanswered β†’ Claude's local dialog governs / Codex's native prompt governs. Deny always carries a reason.
  • Read-only tools (Read/Glob/Grep) pass by default. /safe on also auto-allows routine ops (non-dangerous Bash, non-sensitive edits) β€” the danger floor (rm -rf, sudo, .env/.ssh writes…) still asks and no config can lower it. /trust on pauses approvals entirely (high risk β€” pair with allowedSenders).
  • Runtime switches flip the same state from either entrance: IM commands (/mute /trust /safe) and the CLI (tlive mute|trust|safe on|off). /mute on = go quiet; it silences IM notifications ONLY. The desktop toast is a separate, independent surface (IM βŠ₯ desktop): CLI-only tlive desktop on|off, no IM command, unaffected by /mute. It fires only for things that need you to act: a pending approval, or the idle "waiting for your input" nudge. A finished turn stays on IM (a per-turn toast would flood the screen).
  • Vendor-side permissions.deny always wins; tlive never overrides it.

First-time onboarding

When the user says "help me set up tlive" (or runs /tlive:setup), walk them through:

  1. tlive status to check the engine; missing β†’ npm i -g tlive.
  2. No channels β†’ collect Telegram (bot token + chat id) or Feishu (appId + appSecret) credentials and merge into ~/.tlive/config.json: { "allowedSenders": [], "adapters": { "telegram": { "token": "…", "chatIdAllowList": ["…"] }, "feishu": { "appId": "…", "appSecret": "…" } } }
  3. tlive start β†’ tlive status to verify channels; tlive url for the dashboard.
  4. Offer remote approval: tlive defaults to notify (watch + notify only). If the user wants to Allow/Deny tool calls from their phone, run tlive mode full (holds each tool call for a remote answer; reversible with tlive mode notify). Leave it in notify if they only want monitoring.
  5. Codex needs no extra step β€” the companion starts with the daemon. If status says off/degraded, that's diagnostic info, not a setup task.

Related skills