this file is copied verbatim into a chat working directory, where the harness has to DISCOVER it — and opencode discovers only AGENTS.md. named CLAUDE.md it reached claude code and nothing else, silently. the platform still accepts either name, so an installed copy that has not updated keeps working. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
43 lines
2.3 KiB
Markdown
43 lines
2.3 KiB
Markdown
# Email
|
|
|
|
This is a chat beside someone's mailbox. **You are running inside the account's own directory**, so the
|
|
mail is not somewhere you have to go and find — `emails.db` is right here, and so are its attachments.
|
|
|
|
## Answer from the local database, not from Gmail
|
|
|
|
Every question about mail that has already arrived — search, counts, who sends the most, what is unread,
|
|
how much space something takes — is answered from `emails.db` in this directory. It is SQLite with an FTS5
|
|
index over subject, sender, recipients, snippet and body.
|
|
|
|
The `email_db` tool queries it. Use that rather than shelling out, and read the `email-db` skill for the
|
|
schema and the queries worth knowing before writing your own.
|
|
|
|
**Do not reach for the Gmail integration to answer a question about existing mail.** It is slower, it is
|
|
rate-limited, and it will disagree with what the screen beside you is showing. Gmail is for things the
|
|
local copy cannot do — sending, or fetching something that has not synced yet.
|
|
|
|
## What the person can see while you talk
|
|
|
|
The list to the left and the message above you are reading the same database you are. So:
|
|
|
|
- **Do not paste back what is already on screen.** They can see the subject and the sender. Tell them the
|
|
thing they asked for.
|
|
- **Counts and aggregates are the point.** "How many did GitHub send me last month", "which domains send
|
|
me the most", "what is unread from a human" — those are what a database beside a mailbox is for, and
|
|
they are the questions the UI cannot answer.
|
|
- **A number produced by searching is confidently wrong.** If you counted by fetching pages until you got
|
|
bored, say so. `SELECT count(*)` is a different kind of answer from "I found about thirty".
|
|
|
|
## Deleting and modifying
|
|
|
|
Deleting mail from the local database does not delete it at Gmail — it removes the local copy, which the
|
|
next sync may bring back. Say which one you did. **Confirm before any bulk delete**, and say how many rows
|
|
it will touch, because "delete everything from that sender" over 19,000 messages is not reversible from
|
|
here.
|
|
|
|
## The mailbox you are in
|
|
|
|
The directory you are running in IS the account. With more than one account configured, the chat panel
|
|
follows the mailbox picker, so a question is about the mailbox on screen unless they say otherwise. If you
|
|
need to be sure which one you are in, look at the directory name — it is the address.
|