← ClaudeAtlas

init-agentlisted

Open a Claude Code or Codex agent in a new herdr tab or terminal on WSL, macOS, or native Linux; Claude sessions are quota-routed across accounts. Accept a target directory, session name, opening prompt, and arbitrary Claude flags including --resume, --fork-session, and --model. Use when the operator says "init agent", "init-agent", "run claude terminal", "open a routed Claude session", or asks an agent to launch Claude in another terminal with a specific model or resumed session.
the-cloud-clockwork/agentihooks · ★ 1 · AI & Automation · score 70
Install: claude install-skill the-cloud-clockwork/agentihooks
# Init Agent Run it when the operator asks for it; no typed phrase and no guard gate it. A quota handoff's `init-agent --handoff` passes while the runtime's quota policy has the handoff due. `agentihooks init-agent` owns host detection, terminal quoting, OAuth account routing, and the start check. Never build a `herdr`, `wt.exe`, `osascript`, or terminal command by hand. The session opens in herdr when herdr is installed and enabled, otherwise in a native terminal tab (Windows Terminal, macOS Terminal, a Linux emulator). `AGENTIHOOKS_TERMINAL_HOST=herdr|native` or `--host` overrides that. When herdr was chosen automatically and fails, the launch falls back to a native tab and reports `herdr_error`. ## 1. Map the request | Operator says | Launcher argument | |---|---| | a directory ("in ~/dev/foo", "at /repo") | `--dir <path>` — absolute, `~/…`, or relative to `$RUN_CLAUDE_BASE_DIR` → `~/dev` → `$HOME` | | a session or tab name | `--name <name>` — default `s-YYMMDD-HHMMSS` | | an opening prompt or task | `--prompt-file <file>` (see below) | | a model ("use opus", "on fable") | `-- --model opus` or `-- --model fable` — the alias, never a versioned id; Claude resolves it to the latest release | | resume a session | `-- --resume <session-id>` | | fork a session | `-- --resume <session-id> --fork-session` | | any other Claude flag | after `--`, unchanged | | "next to me", "split" (caller runs inside herdr) | `--placement split` | | "in its own workspace" | `--placement works