惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog
C
Check Point Blog
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
SecWiki News
SecWiki News
有赞技术团队
有赞技术团队
Latest news
Latest news
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
Project Zero
Project Zero
H
Help Net Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
GRAHAM CLULEY
Engineering at Meta
Engineering at Meta
T
Threat Research - Cisco Blogs
腾讯CDC
P
Proofpoint News Feed
L
LINUX DO - 热门话题
C
Cisco Blogs
P
Palo Alto Networks Blog
Vercel News
Vercel News
P
Privacy International News Feed
爱范儿
爱范儿
Scott Helme
Scott Helme
L
Lohrmann on Cybersecurity
MyScale Blog
MyScale Blog
K
Kaspersky official blog
B
Blog RSS Feed
美团技术团队
Microsoft Security Blog
Microsoft Security Blog
O
OpenAI News
博客园 - 叶小钗
量子位
T
Tenable Blog
C
Cybersecurity and Infrastructure Security Agency CISA
J
Java Code Geeks
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Hacker News: Ask HN
Hacker News: Ask HN
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
L
LINUX DO - 最新话题
F
Fortinet All Blogs
N
News | PayPal Newsroom
The Hacker News
The Hacker News
C
CXSECURITY Database RSS Feed - CXSecurity.com
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
博客园 - 【当耐特】
N
News and Events Feed by Topic
V
Visual Studio Blog
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
200K Token Context Windows: Practical Workflows That Actually Work
binky · 2026-05-16 · via DEV Community

You have 200,000 tokens to work with—but most people are still copy-pasting text like they're fighting a 4K limit that doesn't exist anymore.

I watched a senior developer last month manually chunking a 3,000-line Python codebase into separate Claude conversations, meticulously tracking which context window had which function. He'd built an entire personal system for managing fragments of what Claude could just... hold all at once.

That's the gap between knowing a capability exists and actually restructuring your work around it. This article is about closing that gap.

The Context Window Revolution and Why It Matters More Than Speed

The headline benchmarks in AI right now focus on reasoning and speed. But the quiet revolution is context length—and for actual work, it's more useful than marginal improvements in math benchmarks.

Claude 3.5 Sonnet and Claude 3 Opus both support 200,000 tokens. That's roughly 150,000 words, or about the length of two full novels. Grok 1.5 shipped with a 128,000-token context. GPT-4 Turbo supports 128,000 tokens. These aren't experimental limits—they're production APIs you can call right now.

Why does this matter more than speed? Because the bottleneck in most knowledge work isn't compute—it's context switching. Every time you break a problem into chunks, you lose coherence. You re-explain relationships. You manually track what the model has already seen. A faster model with a 4K window still forces you to do that orchestration work yourself.

With a 200K context, the entire problem can live in one place. The model sees every dependency, every prior decision, every constraint simultaneously. That's a qualitatively different kind of reasoning, not just a quantitative one.

Structural Prompting: Making the Model Actually Use What You Feed It

Here's the mistake almost everyone makes with large contexts: they dump everything in and hope the model pays equal attention to all of it.

It doesn't. Research from Anthropic and others has documented the "lost in the middle" problem—models attend most strongly to content at the beginning and end of a long context window. Stuff buried in the middle gets underweighted, sometimes ignored.

The fix is structural prompting. Think of it as building an information architecture inside your prompt, not just stuffing text into a field.

My current template for any large-context task looks like this:

TASK DEFINITION

[What you want—be specific, include success criteria]

CRITICAL CONSTRAINTS

[Non-negotiables the model should check against throughout]

PRIMARY MATERIAL

[The main documents, code, or data]

REFERENCE MATERIAL

[Supporting context—less critical, explicitly labeled as such]

OUTPUT FORMAT

[Exact structure you want back]

The key moves: put your task definition first (strong opening attention), put your output format last (strong closing attention), and explicitly label what's primary versus reference. When I started doing this consistently, the quality of responses on 50,000+ token prompts improved noticeably—fewer hallucinated details, better cross-document synthesis.

One more tactic: breadcrumb summaries. If you're feeding in a 200-page PDF worth of text, add a 3-sentence summary at the start of each major section. You wrote the document, you know what matters—help the model find it.

Real Workflow #1: Process Entire Codebases Without RAG Infrastructure

Vector databases and RAG pipelines are powerful. They're also a significant engineering investment. For a lot of real work situations—a solo developer, a small team, a prototype that needs to ship this week—they're overkill.

With a 200K context, you can just... put everything in.

Here's a concrete example. I recently worked through a refactoring task on a Flask application: 47 Python files, about 8,200 lines of code total. I used a simple shell command to concatenate everything into one text file with file path headers:

bash
find . -name "*.py" | sort | xargs -I {} sh -c 'echo "### FILE: {}" && cat {}'

That generated roughly 28,000 tokens—well within Claude's limit. I prepended my structural prompt explaining the refactoring goal (migrate from Flask-SQLAlchemy 2.x to 3.x, fix the deprecated query interface) and pasted the whole thing.

Claude identified 23 specific locations needing changes, explained the pattern differences, and generated the updated code for each file. The whole session took 40 minutes. Building a RAG pipeline for the same task would have taken a day.

The practical ceiling for this approach: repositories up to about 50,000-60,000 lines depending on average line length. Beyond that, you start hitting real token limits and should invest in proper tooling. But a huge percentage of real-world codebases—especially the ones individual developers and small teams work on—fall under that ceiling.

For documentation, the same approach works. Feed Claude the entire API documentation for a third-party service you're integrating with, plus your current integration code, plus a description of the bug you're seeing. No more "here's a snippet, can you help?"—give it the whole picture.

Real Workflow #2: Cross-Document Analysis at Scale

This is where knowledge workers outside engineering get a massive productivity unlock.

The traditional workflow for analyzing multiple documents looks like: read document 1, take notes, read document 2, take notes, synthesize manually, write output. It's slow, and the synthesis step—where you actually compare across sources—is where most of the error and effort lives.

With large context windows, you can feed 20-30 documents simultaneously and ask for cross-document analysis.

Three specific use cases I've seen work extremely well:

Compliance and contract review. A contracts manager I know feeds Claude a master services agreement template alongside a vendor's proposed contract, explicitly flagged as "VENDOR VERSION" versus "OUR STANDARD." Single prompt: "Identify every clause where the vendor version deviates from our standard, categorize by risk level, and suggest redline language." She estimates this cut her initial review time from 3 hours to 25 minutes per contract.

Literature synthesis for research. Load 15-20 research papers into a single context, structured with headers identifying each paper. Prompt: "Across these papers, what are the three main points of methodological disagreement? Which authors take which positions?" This works because the model can do genuine cross-document reasoning, not just summarize each paper separately.

Content auditing. Feed your entire blog archive or documentation set (if it fits) and ask: "Which topics are covered by multiple articles that could be consolidated? Where are the gaps relative to this product roadmap?" I ran this on a client's 80-article help center—about 45,000 tokens total—and got a prioritized content gap analysis in one pass.

When feeding multiple documents, use clear delimiters:

=== DOCUMENT 1: [Title] [Date] [Source] ===
[content]
=== END DOCUMENT 1 ===

=== DOCUMENT 2: [Title] [Date] [Source] ===
[content]
=== END DOCUMENT 2 ===

This helps the model track provenance and lets you ask questions like "which documents support X claim?" with accurate citations.

When Smaller Models Are Actually the Better Choice

Here's the counterintuitive part: the answer to "I have 200K tokens available" is not always "use 200K tokens."

Latency scales with context size. A Claude Opus API call with 150,000 tokens in the context isn't fast. For interactive applications where a user is waiting on a response, you're often looking at 30-90 seconds for a large context call. That's fine for an async batch job. It's terrible for a chatbot.

Pricing scales linearly with tokens. Claude 3 Opus costs $15 per million input tokens. A single 150,000-token context call costs $2.25 in input tokens alone. If you're running that repeatedly—say, 100 calls in a processing pipeline—that's $225 just in input costs for one run. Claude 3 Haiku costs $0.25 per million input tokens. Same pipeline with Haiku: $3.75.

The decision framework I actually use:

  • Use large context when: the task requires genuine cross-document reasoning, you need to maintain coherence across a large codebase, or you're running an infrequent high-value analysis where accuracy matters more than cost.

  • Use smaller models with chunking when: you're running high-volume batch processing, the subtasks are genuinely independent (summarization, classification, extraction where cross-document context doesn't help), or you're building an interactive product.

  • Use RAG when: your corpus exceeds ~100K tokens, you need to update the knowledge base frequently, or you're building a production product that will run millions of queries.

The "dump everything into context" approach is a prototyping strategy and an occasional power-user technique. It's not a substitute for proper architecture when you're building something that needs to scale.

One more hidden cost: garbage in, garbage out scales with context. A noisy 150K-token prompt produces noisier outputs than a clean 10K-token prompt. I've gotten better results on some tasks by carefully curating what goes into the context—removing boilerplate, stripping HTML, cutting irrelevant files—than by just including everything I technically could.

Quality of context matters, not just quantity.

How This Changes Your Work

The practical shift here isn't just "use bigger prompts." It's a change in how you scope problems.

When you had a 4K context limit, you had to pre-process everything. You had to decide what was relevant before you fed it to the model. You were doing a lot of information architecture work yourself, manually, before the AI even got involved.

With 100K-200K contexts, you can shift that work. You can ask the model to help you figure out what's relevant. You can be messier at the input stage and more demanding at the output stage. You can say "here's the whole codebase, find the bug" instead of "here's what I think might be related to the bug, confirm my hypothesis."

That's a real productivity shift—not because the model is smarter, but because you're no longer doing the hardest cognitive work before the conversation even starts.

Get Started

Pick one task you did this week that involved manually managing multiple documents, files, or chunks of information because you assumed the model couldn't hold it all.

Go back to it. Concatenate everything. Use the structural prompt template from earlier. Run it.

If the result is worse than your chunked approach, something in your prompt structure needs work—post in the comments and I'll help debug. If the result is better, you've just found your first production use case for large contexts.

That first real use case is the one that changes how you work. The rest follows from there.


Follow for more practical AI and productivity content.