Researching Real Wage Growth with Codex and BLS Data
The question “are wages keeping up with inflation?” comes up constantly in economics, policy, and business planning. Answering it requires two data series — wages and consumer prices — from the same time period. With AgentPatch connected, Codex can pull both from the Bureau of Labor Statistics in a single call and do the comparison for you.
Why This Matters
Nominal wage growth doesn’t tell the full story. If wages go up 4% but prices go up 3%, real wage growth is only 1%. If prices outpace wages, workers are losing purchasing power even as their paychecks increase. This matters for compensation planning, economic modeling, and any product that helps people understand their financial position.
Getting the data to answer this question normally means pulling CPI from one BLS series, wages from another, aligning the time periods, and computing the difference. That’s straightforward but tedious, especially when you’re doing it as part of a larger project. The BLS Data tool through AgentPatch lets Codex handle the data collection and arithmetic so you can focus on what the numbers mean.
Setup
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’re analyzing compensation benchmarks and want to know if wages have kept pace with prices over the last two years. You ask Codex:
“Pull CPI-U and average weekly wages from BLS for 2024 and 2025 with year-over-year percent changes. Then calculate real wage growth.”
Codex queries both series in one call:
Fetching BLS series CUUR0000SA0 and OEUN000000011000000000003
for 2024-2025 with calculations enabled...
CPI-U (CUUR0000SA0):
Dec 2025: 319.082 (+2.6% YoY)
Dec 2024: 310.882 (+2.9% YoY)
Average Weekly Wages (OEUN000000011000000000003):
Q4 2025: $1,182 (+3.8% YoY)
Q4 2024: $1,139 (+4.1% YoY)
Real wage growth:
2025: +3.8% wages - 2.6% CPI = +1.2% real growth
2024: +4.1% wages - 2.9% CPI = +1.2% real growth
Workers gained about 1.2% in real purchasing power in both years.
Wages have consistently outpaced inflation over this period.
Codex pulled the raw data, computed real wage growth, and gave you a clear answer. Two data series, one tool call, a few seconds. You can follow up by asking it to break the analysis down by quarter, compare different wage measures, or write the analysis into a report.
At 50 credits ($0.005) per BLS call, running multiple iterations of this analysis costs effectively nothing.
Wrapping Up
AgentPatch gives Codex the ability to pull live BLS data and reason about it in the same session. Wage analysis is one use case — the same tool covers CPI, unemployment, payrolls, productivity, and any other series the Bureau publishes. And the same MCP connection unlocks FRED data, web search, email, and everything else on the marketplace. Explore at agentpatch.ai.