Promptheus GEMINI.md

Promptheus GEMINI.md is an instructions file for Gemini CLI from abhichandra21/Promptheus. It costs 1,276 tokens per session, scanned A, original, MIT.

Project guidance for Promptheus, a Python command-line tool that improves prompts for large language models. It can use several AI providers, adapt its refinement process to the task, and support interactive revisions.

In plain words
What is it for?
Use it when developing or running Promptheus, including prompt refinement, provider integrations, task-type handling, interactive tweaking, or its terminal interface.
Why use it?
It gives developers context for the tool's purpose, architecture, and expected behavior when making changes.

Instructions file for Gemini CLI

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 instructions/abhichandra21/promptheus/gemini-md
Clone the repo
git clone --depth 1 https://github.com/abhichandra21/Promptheus

Made for: Gemini CLI.

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 Promptheus GEMINI.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/abhichandra21/promptheus/gemini-md.svg)](https://agentmods.dev/instructions/abhichandra21/promptheus/gemini-md)
Your own site
<a href="https://agentmods.dev/instructions/abhichandra21/promptheus/gemini-md"><img src="https://agentmods.dev/badge/instructions/abhichandra21/promptheus/gemini-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,276 This file is loaded in full into every session.
When invoked 1,276 The same file — it is already loaded in full.
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.01276 $0.01276
Opus 5 $0.00638 $0.00638
Sonnet 5 $0.00255 $0.00255
Haiku 4.5 $0.00128 $0.00128

Measured 5d ago against content hash 507b95fc3bd3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Promptheus GEMINI.md 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 5d 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.

GEMINI.md · 84 lines

How it starts

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

Promptheus Project Context

This document provides a comprehensive overview of the Promptheus project, its architecture, and development conventions to be used as instructional context.

1. Project Overview

Promptheus is a sophisticated, AI-powered command-line interface (CLI) tool written in Python. Its primary purpose is to help users craft and refine prompts. The tool takes a user's initial prompt and, through a series of AI-driven steps, outputs a better, more effective prompt for the user to then take and use with any Large Language Model (LLM).

Core Features:

  • Multi-Provider Support: It uses LLM backends (Google, Anthropic Claude, OpenAI, Groq, Qwen, GLM) for its internal refinement process.
  • Adaptive Interaction: The tool intelligently detects the user's task type:
    • Generation Tasks: It offers to ask clarifying questions to add detail.
    • Analysis Tasks: It performs an automatic, non-interactive "light refinement" to improve the prompt's clarity.
  • Iterative Refinement: Users can "tweak" a generated prompt with natural language commands in an interactive loop.
  • Rich Interactive UI: The interface is built with rich and questionary, providing a polished and user-friendly experience.
  • Flexible Configuration: Configuration is handled via a clear hierarchy: CLI arguments (--provider), environment variables (PROMPTHEUS_PROVIDER), and .env files.
  • Prompt History: All refined prompts are automatically saved to a history file for later reference and reuse.
  • Subcommand Interface: Provides dedicated subcommands for utility functions like list-models, validate, and history for a clean and modern CLI experience.
  • Dynamic Model Discovery: Model information is dynamically fetched from the models.dev API and cached locally for 24 hours.

Architecture:

The project follows a modular and modern Python architecture:

  • src/promptheus/main.py: The main application entry point. It handles parsing command-line arguments, orchestrates the refinement workflow, and manages the user interface.
  • src/promptheus/cli.py: Defines the entire command-line interface, including all subcommands and their arguments, using Python's argparse module.
  • src/promptheus/commands.py: Implements the logic for the utility subcommands (list-models, validate, template, history).
  • src/promptheus/config.py: A dedicated configuration manager that detects and validates API keys and settings from environment variables and .env files. It uses providers.json for provider-specific metadata.
  • src/promptheus/providers.py: The core abstraction layer. It defines an LLMProvider abstract base class and concrete implementations (GeminiProvider, AnthropicProvider, OpenAICompatibleProvider, etc.).
  • src/promptheus/prompts.py: Stores the system instruction templates that guide the internal LLM calls for question generation, refinement, and tweaking.
  • src/promptheus/history.py: Manages persistent storage of prompt history with timestamp tracking.

Read the full file on GitHub · 84 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. 5d ago First seen · 84 lines · 1,276 tokens per session scan A 507b95fc3bd3

Subscribe to this mod's changes

Promptheus GEMINI.md is an instructions file published in the GitHub repository abhichandra21/Promptheus (17 stars, last pushed 5mo ago), licensed MIT. It adds 1,276 tokens to every session, about $0.0064 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.