Skip to content
Back to skills

082 Claude 829826e0

ASecurity

Interactive CLI for chatting with MIRA. Supports local (localhost:1993) and online (miraos.org) modes.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
designpythonapi

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 082-claude_829826e0 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 082 Claude 829826e0?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 082 Claude 829826e0
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-082-claude-829826e0/badge)](https://www.skillsdirectory.com/skills/tools-only-082-claude-829826e0)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# ui/terminal/ - MIRA Terminal Client

Interactive CLI for chatting with MIRA. Supports local (localhost:1993) and online (miraos.org) modes.

## Files
- `__init__.py` - Package init, exports `main()`
- `__main__.py` - `python -m ui.terminal` entry point
- `app.py` - `MiraTerminal` class: chat loop, prompt_toolkit, bottom toolbar, server management, `main()` entry point with argparse
- `api.py` - `MiraClient` class: all HTTP calls to MIRA API. Also `check_for_update()` and `strip_emotion_tag()` standalone functions
- `config.py` - `TerminalConfig` (Pydantic BaseModel): JSON config at `~/.mira/terminal.json`. Handles mode-based URL/token resolution
- `renderer.py` - Output functions: `print_user_message`, `print_mira_response`, `print_thinking`, `print_error`, `print_tool_use`, `print_info`. Uses prompt_toolkit `print_formatted_text` (thread-safe with `patch_stdout`)
- `commands.py` - Slash command dispatch via `COMMANDS` dict: /help, /tier, /status, /collapse, /domaindoc, /settings, /clear
- `settings.py` - Interactive settings UI with numbered enter-to-toggle list

## Key Patterns
- **Prompt layout**: Separator line (`─`) + `❯ ` input in `_get_prompt_message()`, status bar (tier, domaindocs, loading, update) in `_get_bottom_toolbar()` below the input. Both re-evaluated on `app.invalidate()`. `erase_when_done=True` prevents prompt echo duplication
- **Background API calls**: `threading.Thread` + `patch_stdout()` — response prints above the active prompt. Animation thread cycles `_loading_frame` and invalidates
- **Enter suppression**: Custom key binding swallows Enter while `self.loading` is True
- **Dual mode**: Config `mode` field ("local"/"online") controls URL and token resolution. Local uses Vault, online uses stored API key
- **Domaindoc editing**: Opens content in `$EDITOR` (config.editor, default nano) via tempfile, saves back through API
- **Server auto-start**: Local mode only. Shows `[MIRA IS STARTING]`, overwrites line when ready

## Entry Points
- `python talkto_mira.py` → `ui.terminal.main()`
- `python -m ui.terminal` → same
- `--headless "msg"` for one-shot, `--show-key` for API key display

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.