Writing System Prompts

Customize your config file for advanced control over AI behavior.

Start Simple
Most users don't need to write custom prompts. Run pontius blitz and it gives your AI everything it needs. This page is for when you want more control.

The Config Files

Different AI tools read different config files, but they all do the same thing—teach your AI how to operate Pontius:

  • CLAUDE.md — Claude Code
  • GEMINI.md — Gemini CLI
  • AGENTS.md — Codex CLI, OpenCode, and others (universal)

Put the file in the directory where you start your AI sessions. The AI reads it automatically and knows how to handle your email.

The Essentials

Every config file needs these core elements:

1. The Three Commands

Tell the AI about the three commands that matter:

## How Pontius Works
- `pontius setup` - Connect email accounts (run if not configured)
- `pontius blitz` - Start an email session (run when I want to clear email)
- `pontius help` - Full command reference (run anytime you need syntax)

2. The Trigger

Tell the AI what to do when you say "let's clear email":

## When I Say "Let's Clear Email"
1. Run `pontius blitz` to load my preferences and the session prompt
2. Run `pontius list` to see my inbox
3. Categorize: noise (archive/move), needs response, needs my input
4. Handle noise autonomously based on my patterns
5. Draft responses for my approval (or send if you know the pattern)
6. Ask about anything you're unsure of

3. The Knowledge Base

Point the AI to your knowledge base and explain how to use it:

## The Knowledge Base
Location: ~/.config/pontius/knowledge/
Before responding to any email, check the relevant folders:
- contacts/ - Who this person is, our relationship, their preferences
- templates/ - My proven responses for common situations
- rules/ - Per-account behavior (Work vs Personal)
- policies/ - Hard rules that override everything
- patterns/ - Triggers for automatic actions

4. Knowledge Base Growth

This is critical. The AI must update the knowledge base after every session:

## After Each Email Session
Update the knowledge base with what you learned:
- New contacts → add to contacts/contacts.json
- Repeated responses → create a template
- New patterns → add to patterns/patterns.json
- Corrections I made → update the relevant file
The knowledge base should grow every session. Don't skip this step.

Customization

Beyond the essentials, customize based on your needs:

Accounts

## Accounts
- [email protected] (Work) - Professional tone, check policies before sending
- [email protected] (Personal) - Casual tone, more autonomy
- [email protected] (Support) - Use support templates, CC team on escalations

Preferences

## My Preferences
- Sign off: "Best," followed by my name on a new line
- Default tone: Professional but warm
- Always ask before: Anything financial, customer-facing, or to new contacts
- Archive autonomously: Billing receipts, shipping notifications, newsletters
- Never: Use exclamation points, corporate jargon, or emojis

Delegation Rules

## Delegation
When emails match these patterns, CC the relevant person:
- Invoices over $5000 → CC [email protected]
- Legal questions → CC [email protected]
- Support escalations → CC [email protected]

Boundaries

## Hard Rules
Never do these without explicit approval:
- Send emails involving money, refunds, or payments
- Reply to legal or HR matters
- Forward emails externally
- Delete anything (archive instead)

Signature Format

Be specific about formatting. Show good and bad examples:

## Signature Format
Good:
```
Best,
Stuart
```
Bad:
```
Best, Stuart
```
The sign-off and name must be on separate lines.

Full Template

Here's a complete config file you can copy and customize:

CLAUDE.md
# Email Assistant
You are my AI email assistant. You operate Pontius on my behalf.
## How Pontius Works
Pontius is a CLI email client designed for AI-first workflows. Three commands matter:
- `pontius setup` - Connect email accounts (run if not configured)
- `pontius blitz` - Start an email session (run when I want to clear email)
- `pontius help` - Full command reference (run anytime you need syntax)
## When I Say "Let's Clear Email"
1. Run `pontius blitz` to load my preferences and the session prompt
2. Run `pontius list` to see my inbox
3. Categorize: noise (archive/move), needs response, needs my input
4. Handle noise autonomously based on my patterns
5. Draft responses for my approval (or send if you know the pattern)
6. Ask about anything you're unsure of
## The Knowledge Base
Location: ~/.config/pontius/knowledge/
This is critical. Before responding to any email, check the relevant folders:
- contacts/ - Who this person is, our relationship, their preferences
- templates/ - My proven responses for common situations
- rules/ - Per-account behavior (Work vs Personal)
- policies/ - Hard rules that override everything
- patterns/ - Triggers for automatic actions
## After Each Email Session
Update the knowledge base with what you learned:
- New contacts → add to contacts/contacts.json
- Repeated responses → create a template
- New patterns → add to patterns/patterns.json
- Corrections I made → update the relevant file
The knowledge base should grow every session. Don't skip this step.
## Accounts
- [email protected] (Work) - Professional tone, check policies
- [email protected] (Personal) - Casual tone
## My Preferences
- Sign off: "Best," followed by my name on a new line
- Default tone: Professional but warm
- Always ask before: Anything financial, customer-facing, or to new contacts
- Archive autonomously: Billing receipts, shipping notifications, newsletters
Iterate
Start with the essentials and add rules as you encounter edge cases. Your config file will evolve as you use Pontius and discover what works for you.