How to Build a Daily News Digest with Codex
Codex lives in the terminal. With AgentPatch connected, it can also generate a current news digest on any set of topics before you start a session — pulling live results from Google News and formatting them however you want.
Why This Matters
Starting a dev session with current context is underrated. If you’re building in a fast-moving space, a quick digest on recent developments — what competitors shipped, what the community is talking about, any relevant announcements — is useful framing before writing code.
The alternative is doing it manually: opening multiple tabs, checking multiple sources, synthesizing it yourself. Codex with Google News access can do that in one query.
Setup
The AgentPatch CLI is designed for AI agents to use via shell access. Install it, and your agent can discover and invoke any tool on the marketplace.
Install (zero dependencies, Python 3.10+):
pip install agentpatch
Set your API key:
export AGENTPATCH_API_KEY=your_api_key
Example commands your agent will use:
ap search "web search"
ap run google-search --input '{"query": "test"}'
Get your API key from the AgentPatch dashboard.
Add AgentPatch to ~/.codex/config.toml:
[mcp_servers.agentpatch]
url = "https://agentpatch.ai/mcp"
bearer_token_env_var = "AGENTPATCH_API_KEY"
Then set your API key:
export AGENTPATCH_API_KEY=your_api_key
Replace your_api_key with your actual key from the AgentPatch dashboard. Codex discovers all AgentPatch tools automatically on next start.
Example
You start a Codex session in the morning before a sprint. You type:
“Before we get into code, give me a quick digest. Pull recent news on: ‘TypeScript’, ‘edge computing’, ‘Cloudflare Workers’, and ‘open source AI models’. Format it as a briefing — top 3 stories per topic with a one-sentence summary each.”
Codex calls Google News for each topic, pulls recent articles, and formats the output as a structured briefing. You get four sections, twelve stories total, in under a minute.
You notice something relevant:
“That Cloudflare Workers item about the new bindings — pull more recent coverage on that specifically.”
Codex runs a targeted query and brings back the full picture on that story. You now have the context you need and can make a more informed decision about whether it affects what you’re building today.
This takes two minutes at the start of a session and means you’re not coding in a vacuum without knowing what changed overnight.
Wrapping Up
One AgentPatch MCP connection gives Codex access to Google News and the entire tool marketplace — web search, trends, email, image generation, and more. Add it once, get everything. Get started at agentpatch.ai.