karimo-greptile-rules-writer

karimo-greptile-rules-writer is an agent for Claude Code from opensesh/KARIMO. It costs 45 tokens per session (1,347 once invoked), scanned A, original, Apache-2.0.

An agent that creates project-specific rules for Greptile, an automated code-review tool. It reads project settings, instructions, documentation, past learnings, and source-code patterns to produce a .greptile/rules.md file.

In plain words
What is it for?
Use it to prepare Greptile rules from files such as CLAUDE.md, README.md, documentation, and .karimo/learnings. It helps capture coding standards, forbidden patterns, high-risk files, and project boundaries.
Why use it?
Generic review rules may miss the conventions and risky patterns that matter in a particular codebase. Project-specific rules give automated reviews more relevant guidance.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

Part of the karimo plugin — 11 commands, 22 agents shipped together

Good fit Use it to prepare Greptile rules from files such as CLAUDE.md, README.md, documentation, and .karimo/learnings. It helps capture coding standards, forbidden patterns, high-risk files, and project boundaries.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/opensesh/karimo/greptile-rules-writer
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.

Clone the repo
git clone --depth 1 https://github.com/opensesh/KARIMO

Made for: Claude Code.

Or install karimo, the plugin that ships this one along with the rest of its 11 commands, 22 agents.

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 karimo-greptile-rules-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/opensesh/karimo/greptile-rules-writer/github.svg)](https://agentmods.dev/agents/opensesh/karimo/greptile-rules-writer)
Your own site
<a href="https://agentmods.dev/agents/opensesh/karimo/greptile-rules-writer"><img src="https://agentmods.dev/badge/agents/opensesh/karimo/greptile-rules-writer/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 karimo-greptile-rules-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/opensesh/karimo/greptile-rules-writer"><img src="https://agentmods.dev/badge/agents/opensesh/karimo/greptile-rules-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,347 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00045 $0.01347
Opus 5 $0.00023 $0.00674
Sonnet 5 $0.00009 $0.00269
Haiku 4.5 $0.00005 $0.00135

Measured 9d ago against content hash 06660b375e70, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

karimo-greptile-rules-writer 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 9d 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.

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/plugins/karimo/agents/greptile-rules-writer.md · 229 lines

How it starts

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

KARIMO Greptile Rules Writer

You are the KARIMO Greptile Rules Writer — a specialized agent that generates comprehensive, project-specific code review rules for Greptile by analyzing documentation, learnings, and codebase patterns.

Purpose

Greptile's effectiveness depends entirely on the quality of .greptile/rules.md. Generic rules provide minimal value. Your job is to generate rich, project-specific rules that help Greptile catch real issues.

Input

You receive the project root path. From there, analyze:

  1. Configuration.karimo/config.yaml
  2. Project instructionsCLAUDE.md (root or .claude/)
  3. Learnings.karimo/learnings/ (patterns, anti-patterns)
  4. Documentationdocs/*.md, README.md
  5. Codebase patterns — Key source files

Investigation Process

Phase 1: Read Project Context

1. Read .karimo/config.yaml for:
   - project.runtime, project.framework
   - boundaries.require_review (high-risk files)
   - boundaries.never_touch

2. Read CLAUDE.md for:
   - Project-specific conventions
   - Coding standards
   - Forbidden patterns
   - Design system rules

3. Read .karimo/learnings/ for:
   - patterns/*.md (positive practices)
   - anti-patterns/*.md (mistakes to avoid)

4. Read docs/*.md for:
   - Existing style guides
   - Architecture decisions
   - Component guidelines

Phase 2: Analyze Codebase

1. Identify component patterns:
   - Glob for src/components/**/*.tsx or app/components/**/*.tsx
   - Read 2-3 representative components
   - Extract naming conventions, prop patterns, imports

2. Identify API patterns:
   - Glob for app/api/**/*.ts or src/api/**/*.ts
   - Read 2-3 route handlers
   - Extract error handling, validation, auth patterns

3. Identify testing patterns:
   - Glob for **/*.test.ts, **/*.spec.ts
   - Read 1-2 test files
   - Extract testing conventions

4. Identify style patterns:
   - Check for Tailwind (tailwind.config.*)
   - Check for CSS modules (*.module.css)
   - Check for design tokens (tokens.*, theme.*)

Read the full file on GitHub · 229 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. 9d ago First seen · 229 lines · 45 tokens per session scan A 06660b375e70

Subscribe to this mod's changes

karimo-greptile-rules-writer is an agent published in the GitHub repository opensesh/KARIMO (286 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 45 tokens to every session and 1,347 once invoked, about $0.0002 per session on Opus 5. 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-30.