marciob

Agenttab — AI skill for Claude Code

AI community

Terminal tab titles with the state icon of the AI agent, and a Cursor rename that keeps it.

How to install Agenttab

This entry records only its repository, not the path inside it, so there is no exact command to give. Open marciob/agenttab and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agenttab does

Terminal tab titles with the state icon of the AI agent, and a Cursor rename that keeps it.

Alternatives in AI

  • Oil Icon — AI icon set generator skill for Claude Code & Codex 310 ★
  • Claude Code Design AI — Claude Design: AI UI/UX architect 80 ★
  • Frankenterm — Terminal hypervisor for AI agent swarms: real-time pane capture, state-machine pattern detection, and a JSON A 77 ★

README

agenttab

agenttab shows the state of an AI agent in the title of its terminal tab. It works with Claude Code, Codex, and OpenCode. The title is ` `, for example `◑ Terminal title customization`.

Icon State
(none) The agent waits for your next prompt.
◐ ◑ in turn The agent works.
⚠ The agent waits for your permission.
(the shell title) The session ends.

The text is the title of the conversation. If the conversation has no title, the text is the name of the directory.

Requirements

  • macOS. Linux can work, but nobody has tested it.
  • jq. Install it with brew install jq.
  • lsof, only for Codex. macOS has it.

Install

  1. Run the installer:

    curl -fsSL https://raw.githubusercontent.com/marciob/agenttab/main/install.sh | sh

    The installer puts `agenttab` in `~/.local/bin`. It does not change the settings of an agent. From a clone, run `./install.sh`. Then `git pull` updates the installed files.

  2. If `~/.local/bin` is not on the PATH, add it to `~/.zshrc`: `export PATH="$HOME/.local/bin:$PATH"`

  3. Add the hooks of your agent: [Claude Code](#claude-code), [Codex](#codex), or [OpenCode](#opencode).

  4. In Cursor or VS Code, set `"terminal.integrated.tabs.title": "${sequence}"`. Then the tab shows the title that agenttab writes.

  5. Optional: add `source ~/.config/agenttab/agenttab.zsh` to `~/.zshrc`. Then a terminal with no agent shows the name of the directory, or the running command. It also shows a [name from Cursor](#a-name-from-cursor).

Claude Code

  1. Add these hooks to `~/.claude/settings.json`. If the file already has a `hooks` object, add each entry to the list of the same event.

    The hooks for Claude Code
    {
      "hooks": {
        "SessionStart": [
          { "matcher": "startup|resume|clear|compact",
            "hooks": [{ "type": "command", "command": "agenttab hook idle", "timeout": 5