vibe-log-cli: Instructions file for Claude Code

CLAUDE.md

vibe-log-cli CLAUDE.md is an instructions file for Claude Code from vibe-log/vibe-log-cli. It costs 3,738 tokens per session, scanned B, original, MIT.

Project instructions for vibe-log-cli, a TypeScript command-line program that tracks and analyzes developer work sessions from Claude Code. They describe its architecture, technologies, directories, and core components.

In plain words
What is it for?
Use them when developing commands, API communication, authentication, SQLite storage, configuration, terminal output, real-time events, tests, or the TypeScript build and packaging setup.
Why use it?
They give an agent the project context needed to make consistent changes without first reconstructing how the CLI is organized.

Instructions file for Claude Code

Written for Claude Code: PreCompact hook event. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

This is vibe-log/vibe-log-cli's own configuration. It tells Claude Code how to work on vibe-log-cli itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything vibe-log-cli configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/username/projects/my-app.

Reuse

Borrowing it

Nothing to install: this file belongs to vibe-log/vibe-log-cli. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vibe-log/vibe-log-cli/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/vibe-log/vibe-log-cli

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vibe-log-cli CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/vibe-log/vibe-log-cli/claude-md/github.svg)](https://agentmods.dev/instructions/vibe-log/vibe-log-cli/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/vibe-log/vibe-log-cli/claude-md"><img src="https://agentmods.dev/badge/instructions/vibe-log/vibe-log-cli/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vibe-log-cli CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/vibe-log/vibe-log-cli/claude-md"><img src="https://agentmods.dev/badge/instructions/vibe-log/vibe-log-cli/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,738 This file is loaded in full into every session.
When invoked 3,738 The same file — it is already loaded in full.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.03738 $0.03738
Opus 5.5 $0.01495 $0.01495
Sonnet 5.5 $0.00748 $0.00748
Haiku 4.5 $0.00374 $0.00374

Measured 1mo ago against content hash e4c03429f530, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

vibe-log-cli CLAUDE.md scanned grade B with 1 finding 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 1mo ago.

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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- **Global Mode**: Hooks installed in `~/.claude/settings.json` apply to all projects
CLAUDE.md · 414 lines

How it starts

The opening of the file, as written. The whole thing — 414 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Claude Code - vibe-log CLI Development Notes

Project Architecture Overview

vibelog-cli is a TypeScript-based CLI application designed to track and analyze developer productivity sessions from Claude Code. It's distributed as an NPX package for cross-platform compatibility.

Key Technologies

  • TypeScript 5.3+ - Type-safe development
  • Commander.js - CLI command parsing and routing
  • Inquirer.js - Interactive terminal UI components
  • Axios - HTTP client for API communication
  • Better-SQLite3 - Fast SQLite database access for Cursor IDE integration
  • Chalk - Terminal string styling
  • Ora - Elegant terminal spinners
  • Conf - Encrypted configuration storage
  • EventSource Polyfill - SSE client for real-time auth
  • Vitest - Modern testing framework
  • tsup - Zero-config TypeScript bundler

Core Directory Structure

vibelog-cli/
├── bin/              # NPX entry point
├── dist/             # Compiled JavaScript output
├── src/
│   ├── commands/     # CLI command implementations
│   ├── lib/          # Core business logic
│   │   ├── api-client.ts        # Secure API communication
│   │   ├── auth/                # Authentication modules
│   │   ├── readers/             # Session data readers
│   │   ├── sub-agents/          # Claude Code sub-agent management
│   │   └── ui/                  # Terminal UI components
│   ├── types/        # TypeScript type definitions
│   └── utils/        # Helper utilities
└── tests/            # Comprehensive test suite

Main Components

Command Layer (/src/commands/)

Each command is a standalone module that handles specific CLI operations:

  • init.ts - First-time setup and authentication flow
  • send.ts - Upload session data to Vibelog API (supports silent mode for hooks)
    • IMPORTANT: Always use sendWithTimeout({ selectedSessions }) when uploading pre-selected sessions
    • Never call apiClient.uploadSessions() directly - the send command handles all session processing
    • The selectedSessions parameter expects SelectedSessionInfo[] from session-selector
  • status.ts - Display user streak, points, and statistics (includes Cursor IDE stats)
  • cursor-stats.ts - Display dedicated Cursor IDE statistics view
  • auth.ts - Re-authentication for expired/invalid tokens
    • Supports wizardMode parameter to suppress menu-related messages during guided flows
  • config.ts - Manage CLI configuration settings
  • logout.ts - Clear stored authentication credentials
  • install-hooks.ts - Legacy hook installation (redirects to hooks-manage)
  • hooks-log.ts - View and manage hook execution logs
  • hooks-manage.ts - Comprehensive hooks management interface
  • verify-hooks.ts - Verify hook installation and configuration

Read the full file on GitHub · 414 lines

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. 1mo ago First seen · 414 lines · 3,738 tokens per session scan B e4c03429f530

Subscribe to this mod's changes

vibe-log-cli CLAUDE.md is an instructions file published in the GitHub repository vibe-log/vibe-log-cli (339 stars, last pushed 6mo ago), licensed MIT. It adds 3,738 tokens to every session, about $0.0150 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories