Agent hooks and permissions
See Agent instructions and permissions for what these do in a session.
Repo instructions
Section titled “Repo instructions”assist adviseprints the instructions a session in this repo starts with.--explainlists every section with whether it’s included and why, and--hookprints them in the form Claude Code reads at session start.
Deny rules
Section titled “Deny rules”assist deny add <pattern> <message>blocks commands starting withpattern, showing agentsmessageinstead. It writes to the repo’sassist.yml;--nodewrites to~/.assist.yml.assist deny remove <pattern>removes a rule, with the same--nodeflag.assist deny listlists the rules that apply here and where each is set.
assist cli-hook deny add, remove and list are the same commands.
Permissions
Section titled “Permissions”assist cli-hook check <command>prints whether a command would run without a permission prompt, and why.--toolchecks against a tool other thanBash, such asPowerShell.assist cli-hook add <cli...>finds a CLI’s read-only subcommands, such asghoracli jira, and adds them to assist’s list of commands that run without asking. Run it from a clone of assist, then commit the result. Discovery is cached;--no-cacheruns it again.
assist cli-hookinternal approves read-only commands and blocks denied ones. Withsessions.askQuestionon, it also blocksAskUserQuestionin dashboard sessions and points the agent atassist ask-question. Called by the PreToolUse hook on shell commands, reads andAskUserQuestion.assist edit-hookinternal blocks edits that add code comments. Called by the PreToolUse hook on file edits.assist codex-hookinternal approves read-only commands in Codex sessions, starts them with the repo’s instructions and keeps their status on the dashboard. Called by Codex’s hooks.assist pi-hookinternal approves read-only commands in pi sessions and blocks denied ones. Called by assist’s pi permission-gate extension.assist code-comment set <file> <line> <text>internal requests a single-line comment of up to 50 characters, sending a pin to your desktop notifications. See Approving a comment. Called by agents whose edit the comment gate blocked.assist code-comment confirm <pin>internal adds the comment the pin was issued for. Called by agents whose edit the comment gate blocked.assist notifyinternal shows a desktop notification. Called by the Notification hook.assist status-lineinternal prints Claude Code’s status line: model, branch, context use and rate limits. Called by Claude Code’s status line.assist promptsinternal lists the tool calls you’ve been asked to approve most often. Called by/prompts.
