Local CLI for lightweight LLM text generation, ASCII art generation, and safe file operations.
- Light text generation
- Interactive tool REPL
- Direct ASCII art generation
- Direct ASCII art save
- Predefined ASCII template save
- Safe tool execution via whitelist
pip install -r requirements.txtRecommended default:
- main/light:
Qwen/Qwen3-4B-Instruct-2507 - tool:
Qwen/Qwen3-4B-Instruct-2507
Lighter alternative:
- main/light:
Qwen/Qwen3-1.7B - tool:
Qwen/Qwen3-1.7B
Notes:
Qwen/Qwen3-4B-Instruct-2507is a stronger default for instruction-following.Qwen/Qwen3-1.7Bis lighter and faster to load.
export IRONMATE_MODEL="Qwen/Qwen3-4B-Instruct-2507"
export IRONMATE_LIGHT_MODEL="Qwen/Qwen3-4B-Instruct-2507"
export IRONMATE_TOOL_MODEL="Qwen/Qwen3-4B-Instruct-2507"
export IRONMATE_LOAD_4BIT="1"$env:IRONMATE_MODEL="Qwen/Qwen3-4B-Instruct-2507"
$env:IRONMATE_LIGHT_MODEL="Qwen/Qwen3-4B-Instruct-2507"
$env:IRONMATE_TOOL_MODEL="Qwen/Qwen3-4B-Instruct-2507"
$env:IRONMATE_LOAD_4BIT="1"Lighter option:
export IRONMATE_MODEL="Qwen/Qwen3-1.7B"
export IRONMATE_LIGHT_MODEL="Qwen/Qwen3-1.7B"
export IRONMATE_TOOL_MODEL="Qwen/Qwen3-1.7B"
export IRONMATE_LOAD_4BIT="1"$env:IRONMATE_MODEL="Qwen/Qwen3-1.7B"
$env:IRONMATE_LIGHT_MODEL="Qwen/Qwen3-1.7B"
$env:IRONMATE_TOOL_MODEL="Qwen/Qwen3-1.7B"
$env:IRONMATE_LOAD_4BIT="1"python i_am_ironmate.py light --prompt "Markdownで実験ログのテンプレを作って"The tool model outputs one-line JSON such as:
{"tool":"save_markdown","args":{"content":"# Hello","filepath":"notes/test.md"}}Run:
python i_am_ironmate.py tool --prompt "notes/test.md に '# Hello' を保存して"Dry-run:
python i_am_ironmate.py tool --dry-run --prompt "notes/test.md に '# Hello' を保存して"Show raw model output too:
python i_am_ironmate.py tool --print-raw --prompt "notes/test.md に '# Hello' を保存して"Keeps the model loaded and accepts prompts interactively.
python i_am_ironmate.py tool-replExample session:
> notes/test.md に '# Hello' を保存して
> What ASCII templates are available?
> exit
Generate ASCII art directly with the light model:
python i_am_ironmate.py ascii --prompt "cat"Generate ASCII art directly and save it to a file:
python i_am_ironmate.py ascii-save --prompt "cat" --output "templates_ascii/cat.txt"Save a predefined ASCII template to a file:
python i_am_ironmate.py template-save --name ironmate --output "templates_ascii/ironmate_copy.txt"Current predefined templates:
arc_reactoricon_ironmateironmate
You can also list them through tool mode or REPL.
For repeated use, prefer:
python i_am_ironmate.py tool-replor direct commands such as:
python i_am_ironmate.py ascii-save --prompt "cat" --output "templates_ascii/cat.txt"This avoids repeated model loading and is more reliable than routing every request through tool JSON.
ascii-saveis the most reliable path for free-form ASCII generation plus file output.template-saveis the most reliable path for predefined ASCII templates.toolmode is still available, but direct subcommands are preferred for deterministic tasks.- If a model echoes
system,user, or code fences, output sanitization should remove them before saving.
.
├─ i_am_ironmate.py
├─ llm_loader.py
├─ llm_launchpad.py
├─ ascii_art.py
├─ markdown_market.py
├─ template_store.py
├─ templates_ascii/
└─ templates_prompt/