AIToday
Large Language ModelsImage GenerationAI Coding AssistantsZenn AI/MLPublished: Nov 14, 2026, 04:00 JST

AGENTS.md sent Codex to Notion on every image, costing 6万トークン

Send on LINE
AGENTS.md sent Codex to Notion on every image, costing 6万トークン

3 Key Points

  1. What happened

    The developer traced that Codex read his Notion profile each time it made an image, because an AGENTS.md instruction meant for conversations was executed, costing about 60,000 tokens per image.

  2. Why it matters

    Adding one line telling Codex not to use Notion stopped the extra reads; in a five-cut test, luna averaged about 138,900 tokens per image versus terra's about 93,800, roughly 1.48 times more.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

The developer was generating images for short videos by calling Codex CLI from Claude Code. Because Codex reads AGENTS.md every time it runs, an instruction written for conversations—to read a Notion profile before answering—was also executed during image work. The work log put the cost at about 60,000 tokens per image, though the developer notes this figure was not re-measured from logs and should be treated as an estimate.

The model comparison tested terra (gpt-6.1-terra) and luna (gpt-6-luna) at low reasoning, using the same prompts and three reference images. The weekly usage gauge moved only from 39% to 40% after ten images, so the developer compared total tokens in Codex logs instead. In the five-cut comparison, terra stayed steady at around 90,000 tokens per image, while luna ranged from about 109,000 to 192,000. The developer suspects luna called the image tool two to four times per image, resending prior context as input each time, but notes this is inference and the call counts per cut were not recorded.

For reference, an earlier run with the higher-tier astra model used about 0.35–0.37% of the weekly quota per image, though that was before the Notion reads were stopped, so the difference is not purely model-related. The developer also notes that one day images took 7–18 minutes, which appeared to be OpenAI-side queueing rather than the model.

FAQ
Why was Codex reading Notion during image generation?
AGENTS.md contained an instruction to read the developer's Notion profile before answering. Codex executed it for image tasks too, and the work log showed about 60,000 tokens per image were spent on it.
Which model used fewer tokens for images, terra or luna?
terra used about 93,800 tokens per image on average, while luna used about 138,900, roughly 1.48 times more. The developer decided to keep using terra for image generation.
Did the two models produce different image quality?
Four of the five cuts were about the same quality. luna drew a cypress and a church tower that the prompt said not to draw, and in c04 it drew a workbench with a box instead of the requested wooden stand.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleAIエージェント can automate four HR and recruiting tasks, but people must decide