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

推荐订阅源

GbyAI
GbyAI
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Security Archives - TechRepublic
Security Archives - TechRepublic
H
Heimdal Security Blog
T
Tenable Blog
Webroot Blog
Webroot Blog
Cisco Talos Blog
Cisco Talos Blog
NISL@THU
NISL@THU
Help Net Security
Help Net Security
W
WeLiveSecurity
量子位
Stack Overflow Blog
Stack Overflow Blog
Schneier on Security
Schneier on Security
Simon Willison's Weblog
Simon Willison's Weblog
Recorded Future
Recorded Future
Martin Fowler
Martin Fowler
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
L
Lohrmann on Cybersecurity
SecWiki News
SecWiki News
Blog — PlanetScale
Blog — PlanetScale
F
Full Disclosure
Recent Commits to openclaw:main
Recent Commits to openclaw:main
小众软件
小众软件
Cyberwarzone
Cyberwarzone
S
Security Affairs
L
LangChain Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
V
V2EX
WordPress大学
WordPress大学
爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
L
LINUX DO - 热门话题
Forbes - Security
Forbes - Security
Engineering at Meta
Engineering at Meta
博客园 - 三生石上(FineUI控件)
Scott Helme
Scott Helme
H
Help Net Security
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cyber Attacks, Cyber Crime and Cyber Security
有赞技术团队
有赞技术团队
IT之家
IT之家
G
Google Developers Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
S
Schneier on Security
Google DeepMind News
Google DeepMind News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
Hacker News: Ask HN
Hacker News: Ask HN
O
OpenAI News
宝玉的分享
宝玉的分享

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
I Spent $8,857 Using Claude Code to Build 6 Projects. Here's What I Learned.
Ethan · 2026-06-20 · via DEV Community

I Spent $8,857 Using Claude Code to Build 6 Projects. Here's What I Learned.

Not a sales pitch. I just noticed there's almost no deep-use experience with Claude Code on Dev.to or Reddit — mostly "look I built a todo app" posts. After burning through nearly nine grand, I have some real data to share.


The Numbers

14 days. $8,857.62. 3.884 billion tokens. 47,235 API requests. All on Claude Opus 4.8 (1M context window).

You probably think I'm insane. Honestly, when I saw the bill after week one, I panicked a little too. But here's the math: I was pushing 6 projects simultaneously, 2 of which were full-stack production apps. At freelance rates of $150/hr, these projects represent 4-5 weeks of work.

The spending wasn't linear. First 3 days cost about $800 — still figuring out how to use the tool effectively. Two peak days hit $800+ each — June 18 alone was $828.74, running security hardening on a SaaS app and debugging a video pipeline in parallel. The last few days dropped to ~$300/day, because once the configuration was dialed in, back-and-forth conversations dropped dramatically.

Here's the rough breakdown by project:

Project Approx. Cost Complexity
LightCraft V2 (image-to-video SaaS) ~$4,200 Full-stack + payments + security
AI news video pipeline ~$1,800 Multi-API orchestration + automation
NZ WHV visa slot grabber ~$1,100 Playwright + anti-detection
Psychology quiz app (sbti2) ~$600 Frontend + animations + charts
Developer tutorial/guide ~$500 Documentation + scripts
img2video-demo ~$400 Simple API wrapper

A counterintuitive truth: caching is where all the tokens go.

Most people assume tokens are split between "input + output." Wrong. Look at my actual billing structure:

Category Tokens What It Is
New input 29.01M Content actually read for the first time
Output 34.57M Content Claude generated
Cache writes 1.322B First-time reads of large files / long context
Cache hits 2.499B Reusing cached context (10x cheaper)

Cache hit rate: 86.4%. This means the vast majority of my 3.8B tokens were repeatedly reading the same context — project files, CLAUDE.md, conversation history. Cache hit tokens cost 1/10th of new input tokens. Without caching, this bill would be several times higher.

This is why the gap between "knows what they're doing" and "winging it" can be 5x in cost — skilled users keep cache hit rates high, while careless users thrash the context and invalidate the cache every few turns. (How to maximize cache hits is covered in depth in Module 2 of the manual.)

What does a single request actually cost?

I pulled some line items from my billing detail. Same model, Opus 4.8:

  • 212 input tokens, 1,397 output tokens = $1.91, took 104 seconds
  • 514 input tokens, 7 output tokens (a simple confirmation) = $0.45, took 2 seconds

See the pattern? Output tokens cost 5x more than input (Opus 4.8: $15/M input, $75/M output). So getting Claude to skip the explanations and just write code saves real money — a 2,000-line response with verbose commentary costs several times more than 500 lines of clean code. That's why my CLAUDE.md explicitly says "be concise, don't explain things you weren't asked about."

Why Opus 4.8 instead of Sonnet?

Simple rule: if the task would take me more than 2 hours of thinking time to do myself, use Opus. If it's grunt work (batch file changes, adding comments, writing tests), Sonnet is fine.

Opus is noticeably better at architectural decisions. For example, LightCraft's multi-engine failover — when Runway's API times out, automatically switch to Kling while ensuring credits are only deducted once — that kind of design involving state management and edge cases, Opus nails it on the first try. Sonnet might need 2-3 rounds of corrections.

But Sonnet has better cost-efficiency on simple tasks. My workflow now is to configure two profiles in settings.json and switch based on task complexity.


6 Projects: What Was Worth It, What Wasn't

1. LightCraft V2 (Image-to-Video SaaS) — Worth It

The most expensive project, and the highest ROI. A complete Next.js full-stack app: user auth, credit top-ups, video generation, security hardening.

Several areas where Claude's output was better than what I'd write myself:

  • OWASP security hardening (CSRF tokens, rate limiting, input sanitization)
  • Credit system transaction consistency (deducting credits and creating tasks must be atomic)
  • Multi-engine failover logic (Runway → Kling → Veo fallback chain)

Conservative estimate: saved 3 weeks of development time. The concurrent credit deduction problem alone would've taken me days to get right.

2. Psychology Quiz App (sbti2) — Worth It

4 hours from zero to deployed. Includes Framer Motion page transitions, radar chart visualization, QR code sharing. This kind of "small but polished" project is Claude Code's sweet spot — clear requirements, well-defined scope, done in an afternoon. My entire prompt was one sentence: "Build a psychology assessment app where users answer questions and see a radar chart with detailed analysis, with screenshot sharing support." It chose the tech stack, scaffolded the project, and wrote all the code. I only changed the color scheme twice.

3. AI News Video Pipeline — Worth It

This project has the most lasting ROI. Claude helped me build an automation pipeline: RSS news scraping → LLM rewrites into voiceover scripts → TTS audio generation → auto-matched visuals → FFmpeg video assembly. Now producing a daily tech news brief takes 30 minutes of human involvement, mostly spent reviewing content quality rather than technical operations.

One detail worth mentioning: if a video covers a specific product, it must include real product footage — no faking it with text cards. Claude wrote the YouTube video download + clip extraction logic, and if the download fails, it stops production on that video entirely instead of quietly substituting a placeholder image. This "nothing rather than something fake" logic was explicitly specified in my CLAUDE.md.

4. NZ WHV Visa Slot Grabber — Half Worth It, Half Not

The Playwright automation was clean: auto-filling forms, CAPTCHA wait logic, retry mechanisms, even network timeout recovery with checkpoint resumption. But New Zealand Immigration uses ASP.NET Web Forms with __VIEWSTATE and __EVENTVALIDATION hidden fields that change on every form submission. Claude's first version hardcoded these values — instant 500 errors. After I pointed this out, it switched to dynamic parsing, but then stumbled on multi-step form state management. Took 5-6 rounds to stabilize.

Lesson: the older and more obscure the tech stack, the more mistakes Claude makes. Its training data has far more React docs than ASP.NET Web Forms. If your project involves legacy tech, expect 30-50% more debugging time.

5. Developer Tutorial — Worth It, With Caveats

Claude has a habit of over-explaining when writing documentation. A simple export https_proxy=http://127.0.0.1:7890 command gets 200 words of background context. I had to repeatedly emphasize "be concise" in CLAUDE.md to keep the word count under control.

6. img2video-demo — Not Really Worth It

Just calling an API, displaying results, handling errors. For this level of complexity, writing it yourself is probably faster — the time spent describing requirements to Claude is already enough to write the code yourself.

Bottom line: Claude Code's sweet spot is "medium complexity + clear requirements." Too simple and it's not worth the overhead. Too complex and it loses control.


What Free Tutorials All Miss

90% of Claude Code tutorials online cover installation and basic usage. "How to install," "how to chat," "how to make it edit code" — you can pick this up in 5 minutes without a tutorial.

What actually separates productive users from the rest is configuration, and almost nobody covers this properly.

settings.json Accounts for 80% of the Productivity Gap

For example, most people don't know you can set effortLevel:

// ~/.claude/settings.json
{
  "preferences": {
    "effortLevel": "xhigh"
  }
}

Then there's permission configuration. By default, Claude asks for confirmation every time it runs a shell command. If you're on your own dev machine, you can allowlist common commands:

{
  "permissions": {
    "allow": [
      "Bash(npm run *)",
      "Bash(git status)",
      "Bash(git diff *)",
      "Bash(ls *)"
    ]
  }
}

This one config change alone cuts interaction interruptions by 50%+.

CLAUDE.md Isn't Just "Please Use TypeScript"

My CLAUDE.md is nearly 80 lines. The most important part isn't the tech stack declaration — it's the behavioral constraints:

## Coding Principles
- If 200 lines of code can be written in 50, rewrite it
- Don't add features beyond what was requested
- Don't create abstractions for one-off code
- Read related code before modifying — understand context first
- Every line changed must trace directly to the user's request

Without these constraints, Claude will bolt on things you never asked for: config file managers, custom exception hierarchies, over-abstracted factory patterns...

The Hooks System Is Almost Never Discussed

Claude Code has a hooks mechanism (PreToolUse, PostToolUse, Notification, etc.) that runs scripts automatically before or after specific operations. For example, I configured a PostToolUse hook that auto-runs eslint --fix after Claude edits a frontend component file — saves me from repeatedly reminding it to fix formatting. You can also use PreToolUse to intercept dangerous operations, like blocking it from deleting directories outside node_modules. Once this system is configured, a lot of repetitive checking and formatting happens automatically. But the official docs cover it in just a few paragraphs — most configuration patterns you have to figure out by reading source code or trial and error.


5 Hard-Won Lessons

Lesson 1: Setting effortLevel to xhigh Changes Everything

At the default effort level, Claude tends toward "it compiles, ship it" code. Set it to xhigh and it proactively considers edge cases, writes more complete error handling, and even adds comments explaining design decisions.

Yes, each request costs more. But code that's right on the first try vs. code that needs 5 rounds of fixes — xhigh is actually cheaper in total. I had an API route that took 4 rounds at default effort, each round a half-baked fix. After switching to xhigh, similar tasks were consistently done in one round.

Lesson 2: "Don't Over-Engineer" in CLAUDE.md Is Worth More Than Anything

Claude has over-engineering in its DNA. Whatever you ask for, it wants to add abstraction layers. You want a simple API call, it gives you a strategy pattern + dependency injection + custom exception hierarchy.

After adding this to CLAUDE.md:

Don't add features beyond what was requested
Don't create abstractions for one-off code
Don't add "flexibility" or "configurability" that wasn't asked for

Code quality went up a level. Not by becoming more complex — by becoming simpler.

Lesson 3: Honeypot Anti-Bot Fields Will Block Real Users

When building login security for LightCraft, Claude suggested adding a honeypot field — a CSS-hidden form field that humans can't see and won't fill in, but bots will auto-fill, flagging them as bots.

Logically perfect.

But after deploying, I discovered that 1Password, Bitwarden, and other password managers also auto-fill hidden fields. Real users were getting blocked as bots.

Claude won't warn you about this, because it doesn't know your users use password managers. AI-generated code can be logically correct but fail in real user scenarios. You must do your own scenario testing.

Lesson 4: Don't Be Too Generous With Daily Rewards

This one isn't about code — it's about product design.

When designing the credit system, I had Claude implement "10 credits per daily check-in." That's 300 credits per month. But the paid Pro plan only gave 200 credits/month.

Free users were getting more than paying customers.

Claude won't question your business logic. You say daily reward is 10, it writes dailyReward: 10. It won't speak up and say "why would anyone pay then?"

Product design is your job. Claude just implements. I later adjusted check-in to 3 credits/day and Pro to 400/month. Then the model worked.

Lesson 5: Platform Rules Are AI's Blind Spot

Here's a very specific gotcha: when integrating a cloud SMS service, Claude used the standard SMS API. Code was textbook. But my account type couldn't send marketing SMS — that's a platform policy restriction, not a technical issue.

Claude doesn't know about these restrictions. It only knows how to call APIs, not whether your account is authorized to call them. Platform policies, terms of service, and account-level restrictions are blind spots for AI — especially third-party service APIs with tiered access.

Always verify your account permissions and service quotas before letting Claude write integration code. A perfectly-written API call that your account can't execute is wasted work.


Was It Worth $8,857?

Honestly, the answer depends on where you are:

  • If you're just curious: No. Use the free tier, or run Sonnet for small tasks. Don't start with Opus — that's pure money burn.
  • If you're seriously building something with a ship date: Yes. $8,857 bought back at least 4 weeks of full-stack development time. The security hardening, transaction consistency, and failover code Claude wrote is better quality than what I'd produce under deadline pressure.
  • If you know how to configure it: ROI doubles. Same model, same Opus — a configured user vs. an unconfigured user, productivity gap is 2-3x. Someone with a properly tuned CLAUDE.md and settings.json could probably hit my $8,857 output level for ~$3,000 — because a big chunk of my first $2,000+ was burned during the "teaching Claude how to work with me" phase.

The limiting factor isn't the model's capability. Opus 4.8 is genuinely powerful. But if you don't configure settings.json, don't write a real CLAUDE.md, don't know when to switch to Sonnet, and don't understand how hooks can eliminate repetitive manual checks — you're just burning money. The tool's ceiling is determined by the user's configuration skill, and nowhere is this more obvious than with Claude Code.


A Free Gift

Here's the core CLAUDE.md template I actually use, copy-paste ready:

# Project Name

## Coding Principles
- If 200 lines of code can be written in 50, rewrite it
- Don't add features beyond what was requested
- Don't create abstractions for one-off code
- Every line changed must trace directly to the user's request
- After making changes, explain what changed and why

## Tech Stack
- Next.js 16 + React 19 + TypeScript
- Tailwind CSS 4
- Prisma + SQLite
- Deploy: Vercel

## Don'ts
- Don't "improve" adjacent code, comments, or formatting
- Don't refactor things that aren't broken
- Don't add error handling for scenarios that can't happen

And a starter settings.json:

{
  "preferences": {
    "effortLevel": "xhigh"
  },
  "permissions": {
    "allow": [
      "Bash(npm run *)",
      "Bash(git status)",
      "Bash(git diff *)",
      "Bash(ls *)",
      "Bash(cat *)"
    ]
  }
}


The full configuration deep-dive, 5 settings.json templates, 8 cheat sheets, and architectural breakdowns of all 6 projects are in The Claude Code Field Manual.