~ / rigs / WireCatLabs / tg-cli

WireCatLabs/tg-cli

Telegram CLI for AI agents — your whole account in the terminal, local-first search, MCP server and full Bot API.

↗ GitHub ★ 16 Apache-2.0 updated 7d ago project Claude CodeCodex
field: unknown workflow: DocsTesting & TDDSecurity review
share on X
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
CONTEXT TAX · EVERY TURN
~784 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
4/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · Sandbox or ask-first rules · details
Quality 34/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit WireCatLabs/tg-cli/.claude ./rig-tg-cli  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ npx degit WireCatLabs/tg-cli/docs/dev/skills/add-command .claude/skills/add-command
$ npx degit WireCatLabs/tg-cli/docs/dev/skills/release .claude/skills/release
$ npx degit WireCatLabs/tg-cli/docs/dev/skills/test-live .claude/skills/test-live
$ npx degit WireCatLabs/tg-cli/skills/tg-cli .claude/skills/tg-cli

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "permissions": {
    "deny": [
      "Bash(sudo)",
      "Bash(sudo *)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Edit|Write|MultiEdit|NotebookEdit",
        "hooks": [
          {
            "type": "command",
            "command": "sh \"$CLAUDE_PROJECT_DIR\"/.claude/hooks/writes-stay-inside.sh"
          }
        ]
      },
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "sh \"$CLAUDE_PROJECT_DIR\"/.claude/hooks/sandbox-stays-on.sh"
          }
        ]
      }
    ]
  },
  "sandbox": {
    "enabled": true
  }
}

Skills (4)

Hooks (2)

eventmatcherruns
PreToolUseEdit|Write|MultiEdit|NotebookEditsh "$CLAUDE_PROJECT_DIR"/.claude/hooks/writes-stay-inside.sh
PreToolUseBashsh "$CLAUDE_PROJECT_DIR"/.claude/hooks/sandbox-stays-on.sh

Permissions

deny (2)
Bash(sudo)
Bash(sudo *)
ask (0)
—
allow (15)
Bash(pnpm typecheck)
Bash(pnpm -s typecheck)
Bash(pnpm lint)
Bash(pnpm -s lint)
Bash(pnpm test)
Bash(pnpm -s test)
Bash(npm view *)
Bash(git fetch)
Bash(git fetch *)
Bash(git add *)
Bash(git commit *)
Bash(git push)
Bash(git push *)
Bash(gh pr create *)
Bash(gh pr merge *)

Similar rigs

copied ✓