11
likes
1
comments
daily view 0
monthly view 0
Live Analytics
Comments 0
How Claude Code & Codex Actually Work (Under the Hood) Analytics Table
Income Estimates for How Claude Code & Codex Actually Work (Under the Hood)
Based on this YouTube video's total view count of 1.19K views and industry-standard rates, the estimated total earning is $1 - $2 through ad revenue. Historical data is not yet available to calculate daily, weekly, or monthly averages.
About How Claude Code & Codex Actually Work (Under the Hood)
Explore How Claude Code & Codex Actually Work (Under the Hood) with 1,195 views, 11 likes, and 1 comments. Experience the impact of this video content that has captured audience attention.
The model inside Claude Code can't open a file or run a command. All it does is predict the next token. So who ran your tests? This video follows one real bug fix, token by token and turn by turn, through the four parts of every AI coding agent: the model, the agent loop, the context window, and the sandbox. ⢠The model: a line of code cut into real OpenAI o200k tokens, next-token prediction, and why the whole fix is one token (1424 ā 5064). Then pretraining, reinforcement learning on real coding tasks, and reward hacking. ⢠Tool calling: what the model actually reads (OpenAI's published harmony format), how a tool call is plain text that ends in a special stop token (id 200012), and the same idea in Claude's tool_use JSON. ⢠The agent loop: an agent is a model plus a harness. The loop in 10 lines of Python, then the real loop in Codex's open-source Rust (codex-rs/core/src/session/turn.rs). Six turns, six requests, and why the model re-reads the whole conversation every turn. ⢠The context window: CLAUDE.md and AGENTS.md, prompt caching (cached input costs a tenth of the price or less), compaction (Codex's handoff-summary prompt), and subagents. ⢠The sandbox: prompt injection, permission prompts and reviewer models, and OS sandboxes (Seatbelt on macOS, bubblewrap on Linux). ā±ļø Chapters 0:00 The model never touches your computer 0:40 How LLMs work: tokens 1:06 Next-token prediction 1:25 The whole fix is one token 1:38 Pretraining, RL and reward hacking 2:18 Tool calling explained: a chat is one document 3:05 Claude's tool_use JSON, and the harness 3:39 The agent loop 3:52 The real loop in Codex's source code 4:05 One bug fix, turn by turn 4:43 Why every turn re-reads everything 4:59 Context window explained (CLAUDE.md, AGENTS.md) 5:35 Prompt caching 6:01 Compaction 6:16 Subagents 6:33 Prompt injection 6:55 Permissions and OS sandboxes 7:15 Recap: Claude Code vs Codex š Sources ⢠Anthropic docs: How Claude Code works, Tools reference, Permission modes, Sandboxing, Memory (CLAUDE.md), Context window, Prompt caching; Claude tool use (how tool use works, handling tool calls) ⢠Anthropic engineering: Building effective agents (Dec 2024) Ā· Effective context engineering for AI agents (Sep 2025) Ā· Claude Code sandboxing Ā· Claude 3.7 Sonnet system card, §6 Excessive focus on passing tests ⢠OpenAI: openai/codex on GitHub (Apache-2.0, commit 0b1b78a, 2026-09-29) Ā· Unrolling the Codex agent loop (Jan 2026) Ā· Introducing Codex (May 2025) Ā· OpenAI harmony response format (gpt-oss) Ā· tiktoken, o200k_base Full links are in the pinned comment. š Simplified on purpose (tokenizers, WebSocket mode, parallel tool calls, cache prices per modelā¦): see the pinned comment. Corrections welcome. #claudecode #codex #aiagents
About YouTube Real-Time View Count
With SocialCounts.orgās view counter, track your YouTube videoās live view count and YouTube likes count in real time with fast, reliable updates.
Watch every YouTube video live view count rise with our real-time YouTube views trackerābuilt for accuracy and minimal delay.
Follow YouTube real time views as they happen, using our dedicated view counter for YouTube videos.
Get up-to-date live view count on YouTube and see real-time growth with SocialCounts.orgās smart tracking tools.
Embed Widget
Parameters:
fullscreen=true- Fullscreen countergraph=true- Live graph chartcounter=0/1/2- Select counter (0=likes, 1=views, 2=comments)
URL
Click to copy the embed URL to your clipboard

