Promptheus AGENTS.md

Promptheus AGENTS.md is an instructions file for Codex, OpenCode from abhichandra21/Promptheus. It costs 1,303 tokens per session, scanned A, original, MIT.

Repository instructions for Promptheus, a command-line tool that sends prompts to several language-model providers and stores prompt sessions. They describe the source layout, development setup, tests, commands, and quiet output for scripts.

In plain words
What is it for?
Use them when adding Promptheus code, working on provider integrations, changing configuration or history handling, running the CLI, or preparing development and test environments.
Why use it?
They help contributors make changes in the expected locations and run the tool or its tests consistently. Quiet mode keeps command output suitable for files and pipelines.

Instructions file for CodexOpenCode

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

Made for: Codex, OpenCode.

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 AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/abhichandra21/promptheus/agents-md.svg)](https://agentmods.dev/instructions/abhichandra21/promptheus/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/abhichandra21/promptheus/agents-md"><img src="https://agentmods.dev/badge/instructions/abhichandra21/promptheus/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,303 This file is loaded in full into every session.
When invoked 1,303 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.01303 $0.01303
Opus 5 $0.00651 $0.00651
Sonnet 5 $0.00261 $0.00261
Haiku 4.5 $0.00130 $0.00130

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

Security

Grade A, and why

Promptheus AGENTS.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 4d 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.

AGENTS.md · 103 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

Runtime code lives under src/promptheus/. main.py owns the CLI entry point, providers.py wraps the adapters for multiple LLM providers (Gemini, Claude, OpenAI, Groq, Qwen, GLM), config.py manages environment-driven settings, and history.py persists prompt sessions. Shared assets (e.g., models.json, logging_config.py, utils.py) sit alongside. Tests mirror this layout in tests/, while helper tools such as sample_prompts.txt remain at the repository root. Add new runtime modules inside src/promptheus/ and keep provider-specific helpers beside existing integrations to simplify discovery.

Build, Test, and Development Commands

Install dependencies in editable mode before contributing:

pip install -e .[dev]
pip install -r requirements.txt  # extras for env_validator

Run the CLI locally with either binary or module syntax:

promptheus "Draft an onboarding email"
python -m promptheus.main --skip-questions "Smoke test"

# Quiet mode for scripting (clean stdout/stderr separation)
promptheus "Generate a report" > output.txt  # Auto-quiet when piping
promptheus "Write code" | cat  # Auto-quiet when piping

# Different output formats
promptheus -o json "Create function" | jq .
promptheus -o plain "Write haiku"

Validate credentials before hitting remote APIs:

promptheus validate --providers google
promptheus validate --test-connection  # to test actual API connectivity

Coding Style & Naming Conventions

Target Python 3.8+ with four-space indentation, snake_case for functions/variables, and CapWords for classes. Mirror existing type hints (see main.py) and keep modules under ~300 lines by extracting helpers where needed. Format with black ., keep imports sorted, and align terminal output with the rich styles already used in the CLI panels/table helpers.

Testing Guidelines

Tests live in tests/ and follow the test_<module>.py naming pattern. Prefer fast, offline unit tests that stub provider calls rather than exercising live APIs. Run pytest -q before sending a PR, and supplement with a manual CLI smoke test (promptheus --skip-questions "Smoke test") when you touch interactive flows or history features.

Read the full file on GitHub · 103 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. 4d ago First seen · 103 lines · 1,303 tokens per session scan A 769042287cdc

Subscribe to this mod's changes

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