Agents

Run Gemini CLI from a Kanban board

Kangentic wires Gemini CLI's eleven hooks, picks its session IDs, and moves a plan on only when Gemini says the plan was approved.

Kangentic is our product. Gemini CLI is not. Kangentic runs the copy you install, on your own login or API key, and this page says what Kangentic does with it.

Gemini CLI is Google’s coding agent for the terminal. Kangentic runs your gemini in each task’s worktree, and adds its hooks and Kangentic’s MCP server through the folder’s .gemini/settings.json.

In Kangentic Gemini CLI
Status read from Hooks
Turn-end automations run Yes
Resumes its conversation Yes
Hands its conversation to the next agent Yes
Permission modes 4
An approved plan moves the card on Yes
Kangentic approves its plans No
Accounts No
Kangentic's MCP server Yes
Runs from a WSL distro Yes

Hooks and the terminal fallback

Kangentic registers eleven hooks in .gemini/settings.json: BeforeAgent, AfterAgent, BeforeModel, AfterModel, BeforeToolSelection, BeforeTool, AfterTool, SessionStart, SessionEnd, Notification and PreCompress. The file is reference-counted, so two sessions in one folder never remove each other’s entries. BeforeModel and AfterModel give the Activity tab a line for each model call within a turn.

Gemini has no permission hook. It reports each tool confirmation, the plan prompt included, as a Notification of type ToolPermission, and Kangentic turns that one into a wait on you. The card shows the session needs you until the AfterTool that follows your answer.

Before the hooks fire, or if they stop, Kangentic watches the terminal for Gemini’s closed-box border or its “I’m ready.” message, backed by a 3-second silence timer. A background run_shell_command holds the card until its process exits, since Gemini has no tool to stop one.

Session IDs and resume

Kangentic chooses each session’s ID and starts Gemini with --session-id, which needs Gemini 0.41.0 or later, then resumes with --resume <id>.

Gemini keeps each chat in ~/.gemini/tmp/<folder>/chats/, where <folder> is the working folder’s name in lowercase. Kangentic reads that file for usage, tool counts and subagents, and a handoff out of Gemini points the next agent at it. The file holds no context window size, and Gemini has no command that reports one, so the context bar shows token counts without a percentage.

Gemini deletes chats older than 30 days by default. Since v0.54.0 Kangentic checks Gemini’s own session folder before a resume, and starts a new conversation from a recap of the task when the old one is gone.

Permission modes

New tasks start in Auto Edit.

Mode Shown as
plan Plan (Read-Only Research)
default Default (Confirm Actions)
acceptEdits Auto Edit (Auto-Approve Edits)
bypassPermissions YOLO (Auto-Approve All)

Plans

Gemini fires AfterTool for exit_plan_mode whether you approved the plan or rejected it. So Kangentic counts a plan exit only when the tool’s result starts with “Plan approved.”, and only then does a plan column’s task move to the next column. Kangentic cannot approve Gemini’s plans for you, so each one waits for your answer in the terminal.

Folder trust and MCP

An untrusted folder makes Gemini disable every MCP server it has configured. Kangentic pre-approves trust for each folder it starts Gemini in, and removes that trust with the worktree.

Kangentic’s MCP server is an mcpServers entry in the folder’s .gemini/settings.json whose URL and token are references to variables, so the file holds only their names. The entry goes when the folder’s last session exits. Kangentic follows GEMINI_CLI_HOME when it is set, so a Gemini that keeps its files elsewhere still gets its trust, history and session setup read from there.

Account support for Gemini CLI is written and switched off until it can be run on a second real account (Agent accounts).

Try Kangentic with the Gemini CLI you have

Free and open source, on Windows, macOS and Linux.