add-gitmoji

A command that installs a Git hook for Gitmoji, a tool that adds an emoji to commit messages, in the current worktree.

In plain words
What is it for?
Use it to create the hook directory, install the prepare-commit-msg script, and make that script executable.
Why use it?
It makes the emoji-selection prompt run automatically when creating a commit, without setting up the hook by hand.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/evmts/tevm/add-gitmoji
Clone the repo
git clone --depth 1 https://github.com/evmts/tevm

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 306 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00306
Opus 5 $0.00000 $0.00153
Sonnet 5 $0.00000 $0.00061
Haiku 4.5 $0.00000 $0.00031

Measured yesterday against content hash 979eeff619e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

add-gitmoji scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/add-gitmoji.md · 41 lines

What it actually says

Add Gitmoji Hook

This command will install gitmoji in the current worktree by:

  1. Creating the hooks directory if needed
  2. Setting up the prepare-commit-msg hook for gitmoji
  3. Making the hook executable

The gitmoji hook allows you to select emoji for your commits using an interactive prompt.

Do you want to proceed with installing the gitmoji commit hook?

#!/usr/bin/env bash

# Get .git directory for current worktree
GIT_DIR=$(git rev-parse --git-dir)
echo "Installing gitmoji hook to $GIT_DIR/hooks..."

# Create hooks directory if it doesn't exist
mkdir -p "$GIT_DIR/hooks"

# Create the prepare-commit-msg hook file
cat > "$GIT_DIR/hooks/prepare-commit-msg" << 'EOF'
#!/usr/bin/env bash
# gitmoji as a commit hook
if npx -v >&/dev/null
then
  exec < /dev/tty
  npx -c "gitmoji --hook $1 $2"
else
  exec < /dev/tty
  gitmoji --hook $1 $2
fi
EOF

# Make sure the hook is executable
chmod +x "$GIT_DIR/hooks/prepare-commit-msg"

echo "✅ Gitmoji hook installed successfully!"
echo "You can now use gitmoji in your commits with: npx gitmoji-cli -c"
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 41 lines · 0 tokens per session scan A 979eeff619e2

Subscribe to this mod's changes

add-gitmoji is a command published in the GitHub repository evmts/tevm (446 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 306 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.