Skip to content
Documentation
Hook

Hooks

What fluencyloop runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

Install
$ npx -y skills add baokhang83/fluencyloop --agent claude-code

Ships with fluencyloop. Installing the plugin gets these hooks.

What fires, and when

SessionStart

Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.

  • Matchesstartupplugin_root="${PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-}}"; if [ -n "$plugin_root" ]; then hook="$plugin_root/hooks/refresh-marketplace.sh"; if [ ! -f "$hook" ] && [ -n "${PLUGIN_ROOT:-}" ]; then case "$plugin_root" in */plugins/cache/*/*/*) for candidate in "${plugin_root%/*}"/*/hooks/refresh-marketplac
Read hooks/hooks.json

Where it lives

  • hooks/refresh-marketplace.ps1GitHub
    Read the script
    # Root-level entry point for Claude Code. The marketplace entry for this plugin declares
    # `"source": "."`, so CLAUDE_PLUGIN_ROOT resolves to the repo root and Claude Code only ever
    # discovers hooks/refresh-marketplace.ps1 here - never under plugins/fluencyloop/, which is the
    # Codex bundle's own plugin root. Delegate to that bundle's implementation so there is exactly
    # one copy of the refresh logic to maintain; this file's only job is to exist at the path
    # Claude Code looks for.
    
    Set-StrictMode -Version Latest
    $ErrorActionPreference = 'Stop'
    
    $canonical = Join-Path $PSScriptRoot '..\plugins\fluencyloop\hooks\refresh-marketplace.ps1'
    if (Test-Path -LiteralPath $canonical -PathType Leaf) {
        & $canonical
    }
    exit 0
    
  • hooks/refresh-marketplace.shGitHub
    Read the script
    #!/usr/bin/env bash
    # Root-level entry point for Claude Code. The marketplace entry for this plugin declares
    # `"source": "."`, so CLAUDE_PLUGIN_ROOT resolves to the repo root and Claude Code only ever
    # discovers hooks/hooks.json here — never under plugins/fluencyloop/, which is the Codex bundle's
    # own plugin root. Delegate to that bundle's implementation so there is exactly one copy of the
    # refresh logic to maintain; this file's only job is to exist at the path Claude Code looks for.
    set -euo pipefail
    
    here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
    canonical="$here/../plugins/fluencyloop/hooks/refresh-marketplace.sh"
    
    if [ -f "$canonical" ]; then
        exec bash "$canonical" "$@"
    fi
    exit 0
    

Read the script before you install anything that runs on your machine. This is the one part of a plugin that acts without being asked.

Ships withfluencyloop

Stay fluent in the code your AI agent writes. FluencyLoop turns each feature into a documented design, teaches the decisions at your level, tracks the rationale, and produces a reviewer-ready summary.

Get the whole plugin, auto-invoked
Stats
39
Stars
0
Views
3
Forks
Active
Maintenance
Shell
Language
Apache-2.0
License
13h ago
Last commit
26d ago
Created

Repo: baokhang83/fluencyloop