Claude Code's source code leaked yesterday. 512,000 lines of TypeScript, now public. I went through it and extracted the architectural patterns that show up consistently across the codebase — the engineering decisions behind how it works. A few examples: Every tool throws a typed error on failure — never returns { success: false }. The framework catches it and formats it for the LLM. The tool has one job: do the work or throw. One schema definition drives both TypeScript types and JSON validation. They share one source and can never drift. Concurrency safety is evaluated per invocation, not declared statically. Same tool, different answer depending on the input. Packaged all 16 as portable skill files that load automatically into Claude Code, Cursor, Gemini CLI, Codex, and OpenCode. Zero config. MIT license. → https://lnkd.in/d6nQvdGf #AIEngineering #ClaudeCode #DeveloperTools #OpenSource
Leaked Claude Code Reveals Architectural Patterns
More Relevant Posts
-
Turns your entire codebase into a queryable knowledge graph. Every query costs up to 71x fewer tokens ( 🥳 ) than reading raw files — the graph is built once, then you query it whenever you want. If you work with Claude Code, Cursor or Codex, worth trying. https://lnkd.in/gBHC9XPT #developer #aitools #claudecode
To view or add a comment, sign in
-
⭐️Stop Relying on Suggestions: A Hard Technical Defense Against Code Rot⭐️ Many teams are currently trying to govern AI-generated code by adding "steering" files (like 'AGENTS.md) or PR templates. The problem? Markdown instructions are just suggestions they are subjective and easily ignored by AI agents. To protect architectural integrity, you need deterministic enforcement, not subjective guessing. What began as a prototype to solve the "AI slop" crisis in the Apache ecosystem is now a finished, universal framework published to Maven Central for everyone. What the AIV Integrity Gate Does: Density Gate: Uses entropy-based checks to flag low-signal boilerplate and scaffolding. - Design Gate: Enforces your specific architectural constraints (forbidden or required patterns) via YAML rules. - Dependency Gate: Validates imports against your actual build configuration to stop hidden supply-chain risks. - Invariant Gate: Provides hooks for property-based testing and critical edge-case validation. - 100% Local: Runs entirely in your local environment with zero external API calls, ensuring your IP stays secure. Feedback & Support: I am looking for feedback from the community how does this solve your PR quality issues? If you have features you’d like to see, please add them as a GitHub Issue. If you find this project valuable, adding a Star ⭐️ to the repo is a huge motivation for me to keep building. - Maven Coordinates: io.github.vaquarkhan:aiv-gate (https://lnkd.in/gHHtqXYy) - GitHub Repository: https://lnkd.in/gkV_S5he Note -This project and its contents are entirely my own. They are developed independently and do not represent the views or interests of any employer. #OpenSource #SoftwareArchitecture #Java #DevOps #AISlop #CodeIntegrity #Engineering #BigData #DistributedSystems
To view or add a comment, sign in
-
There’s been a lot of chatter recently about a coding agent #claude #sourcecode showing up publicly on GitHub and probably got cloned. Not going to speculate on whether it was accidental or intentional. That’s not really the point. What this highlights is something more fundamental.They are “probably” acting on goals. And that changes how we need to think about architecture. In a traditional system, if something goes wrong, you trace the logic and fix it. It’s mostly deterministic. In an agent-driven system, the system is interpreting intent. That interpretation can vary. That’s where things get interesting, and risky. A couple of things become very important here. First, you need a closed loop. You can’t just let an agent run and hope for the best.There has to be constant checking, feedback, and correction. The system needs to observe what it did, validate it, and adjust. Without that, small deviations can turn into big outcomes very quickly. Second, deterministic and non-deterministic layers need to work together. The reasoning part of the system can be flexible.That’s where the value comes from. But the boundaries cannot be flexible.Access control, policies, limits, what is allowed and what is not, all of that has to be very clearly defined and enforced. A lot of current implementations are strong on the reasoning side, but weak on the control side. That works in demos, not in real environments. Third, intent is not the same as execution anymore.You might ask for something in a certain way, but what the system actually does depends on how it interprets that intent. That gap is where most of the risk sits. If anything, this is a good reminder. We are no longer just building systems that do what we tell them. We are building systems that decide how to do what we tell them. And the real question is not just what the system can do. It is what it should never be allowed to do. https://lnkd.in/gGqPcD6e
To view or add a comment, sign in
-
Claude Code source code leaked, here's what's inside Today, Anthropic's Claude Code CLI had its full source leaked via a .map file left in their npm package. The source map pointed to a zip on their R2 bucket with the entire unobfuscated TypeScript source. I backed up the code and dug through it with Opus 4.6: - ~1,900 files, 512,000+ lines of TypeScript - ~40 agent tools, ~90 slash commands, ~35 services - Built on Bun + React/Ink for terminal UI - Multi-agent swarm orchestration (agents working in parallel across tmux/iTerm panes) - IDE bridge for VS Code and JetBrains - Full vim mode, voice input, persistent memory system - Compile-time dead code elimination via Bun feature flags - OpenTelemetry telemetry pipeline - A hidden Easter egg: deterministic companion creatures (ducks, axolotls, capybaras) with rarities from common to legendary Some standout engineering choices: parallel startup prefetch saving ~65ms on every boot, feature-flag gated module stripping so internal-only tools never ship to public users, and a tool-use loop architecture where the QueryEngine handles streaming, retries, token budgets, and file state snapshots for undo. Serious piece of engineering. Worth studying. GitHub: https://lnkd.in/gTdxXf2b Credit: Chaofan Shou (@Fried_rice on X) for the original discovery.
To view or add a comment, sign in
-
Claude Code CLI Source Code Leaked. .Today was D day. ---> vibe-coding is rapidly accelerating, today broke the barriers into a whole new level, breaking all frontiers — where the PC does the heavy lifting and humans just steer. ,dont blink, future is running fast before your eyes: - faster copycat tools - cheaper (or free) coding agents - no manual human work, less human brain power, more bit muscle - more HIDM (human-in-the-middle validating / checking AI code) - less “code”, more intent Are we ready ? ... too much reliance on AI can lead to creative paralysis, procrastination, and execution fatigue ... #AI #VibeCoding #SoftwareEngineering #FutureOfWork #DevSecOps https://lnkd.in/ewfD8tyj
Claude Code source code leaked, here's what's inside Today, Anthropic's Claude Code CLI had its full source leaked via a .map file left in their npm package. The source map pointed to a zip on their R2 bucket with the entire unobfuscated TypeScript source. I backed up the code and dug through it with Opus 4.6: - ~1,900 files, 512,000+ lines of TypeScript - ~40 agent tools, ~90 slash commands, ~35 services - Built on Bun + React/Ink for terminal UI - Multi-agent swarm orchestration (agents working in parallel across tmux/iTerm panes) - IDE bridge for VS Code and JetBrains - Full vim mode, voice input, persistent memory system - Compile-time dead code elimination via Bun feature flags - OpenTelemetry telemetry pipeline - A hidden Easter egg: deterministic companion creatures (ducks, axolotls, capybaras) with rarities from common to legendary Some standout engineering choices: parallel startup prefetch saving ~65ms on every boot, feature-flag gated module stripping so internal-only tools never ship to public users, and a tool-use loop architecture where the QueryEngine handles streaming, retries, token budgets, and file state snapshots for undo. Serious piece of engineering. Worth studying. GitHub: https://lnkd.in/gTdxXf2b Credit: Chaofan Shou (@Fried_rice on X) for the original discovery.
To view or add a comment, sign in
-
The engineers I know who seem to get the most done aren't working harder. They've just stopped doing the same thing twice. And they're doing it with tools most engineers haven't even heard of yet. Here's what's actually in my stack right now: ▪️ Warp - Your terminal, but actually intelligent. AI-powered command suggestions, shared runbooks with your team, and searchable history that makes sense. If you're still using vanilla Terminal or iTerm, you're leaving time on the table. ▪️ Cursor - The IDE that understands your entire codebase. Not just autocomplete. It reads your project context and reasons about it. Ask it to refactor a service, explain a legacy function, or write a test for code it has never seen. It thinks, not just predicts. ▪️ Bruno - The Postman replacement you didn't know you needed. API collections stored directly in your repo as plain text files. Version-controlled, git-diffable, no cloud account required. Clean, fast, and local-first. ▪️ Dagger - CI/CD pipelines written in actual code. Stop writing YAML that nobody can test locally. Dagger lets you write your pipelines in TypeScript, Python, or Go and run them the same way everywhere, locally and in CI. No more 'it passes locally but breaks in the pipeline.' ▪️ Infisical - Open-source secret management that doesn't fight you. The secrets-in-Slack-messages problem, finally solved. Inject environment variables automatically across environments without ever touching a .env file manually again. ▪️ Trigger.dev - Background jobs without the infrastructure headache. Native background job scheduling with full observability, retries, and real-time logging - built directly into your TypeScript codebase. No separate queue infrastructure. No Celery. Just code. ▪️ Mise - One tool to manage all your runtime versions. Node, Python, Go, Ruby - all version-managed in a single config file per project. The .tool-versions file travels with the repo. New engineer onboards in minutes, not hours. The tools most engineers are still using were built for problems that have already been solved better. The engineers pulling ahead aren't more talented. They're just running a faster stack. Which of these are you already using? And what's in your workflow that should be on this list? I'm Favour Nwachukwu Senior Software Engineer
To view or add a comment, sign in
-
-
3 years ago, I wrote my first API. It worked. Barely. No error handling. No input validation. Hardcoded values everywhere. I was just happy it returned a 200. Fast forward to today - I've shipped APIs in production that handled real client data, prevented revenue losses, and a API that directly convinced a client to onboard. Here's what I wish someone had told me at the start: 1. "It works on my machine" is not done. Done means it works under load, with bad inputs, with network failures, with edge cases you didn't think of. I learned this the hard way. 2. Naming things well is a superpower. The biggest time sink in early code isn't logic - it's trying to understand what past-you was thinking. Write for the next developer, not the compiler. 3. You will touch the database in production. And it will be terrifying the first time. Learn SQL properly. Understand indexes. Respect transactions. I've fixed bugs at the DB level that would have taken down a live client system. 4. Pick boring technology first. I chased new tools early. Then I spent a week building a document processing POC under a tight deadline - and the tools that saved me were the ones I already knew deeply: NestJS and solid API design. Familiarity under pressure is an unfair advantage. 5. Ship something real as fast as you can. Side projects are great. But nothing teaches you faster than code that actual users depend on. The feedback loop is brutal and honest. The gap between "it works" and "it's production-ready" is where most of the real learning happens. Still learning. Always will be. What's one thing you wish you knew when you wrote your first API? Drop it below 👇 #softwaredevelopment #webdevelopment #reactjs #nodejs #apidesign #fullstackdeveloper #devjourney #programming
To view or add a comment, sign in
-
Seriously can't make this stuff up... Claude Code Source Code Leaked. Anthropic has confirmed that a portion of the internal source code for Claude Code, its AI-powered coding assistant, was accidentally leaked on March 31, 2026. The leak occurred due to a packaging human error in an update (version 2.1.88) published to the npm registry. Key Details of the Leak Cause: A 60MB JavaScript source map file (cli.js.map) was mistakenly included in the public npm package. This file allowed developers to reconstruct the original, human-readable TypeScript source code. Scale: Approximately 512,000 lines of code across roughly 1,900 files were exposed. Impact on Users: Anthropic stated that no sensitive customer data or credentials were involved or exposed. Anthropic's Response: The company is rolling out new measures to prevent similar packaging errors and has issued thousands of copyright takedown requests to remove mirrors of the code from platforms like GitHub. https://lnkd.in/g9fCfaB9
To view or add a comment, sign in
-
"Could mastering TypeScript's advanced generics and inference cut your development time in half?" We've seen a 48% reduction in code refactoring time by leveraging TypeScript's powerful type-level programming. As a senior developer, diving deep into generics and type inference has transformed the way I write code. It's like vibe coding your way to scalable and maintainable solutions. Consider a scenario where you have a highly reusable component that needs to adapt to various data shapes. Advanced generics allow us to define flexible, yet type-safe APIs, boosting our productivity and reducing runtime errors. For instance, here's a pattern I often use: ```typescript type ApiResponse<T> = { status: number; payload: T; }; function fetchData<T>(endpoint: string): Promise<ApiResponse<T>> { // Imagine fetching data from an endpoint... return fetch(endpoint) .then(response => response.json()) .then(data => ({ status: response.status, payload: data as T })); } ``` Notice how the generic `<T>` allows us to infer the payload type dynamically, ensuring type safety across the board. But here's the dilemma: Does diving deeper into TypeScript's type system pay off in the long run, or does it complicate your codebase? From my perspective, the immediate clarity and long-term stability are worth the initial learning curve. But I'm curious: Do you think the benefits of advanced generics and inference outweigh their complexity? What's your experience with TypeScript type-level programming been like? Let's discuss in the comments. #WebDevelopment #TypeScript #Frontend #JavaScript
To view or add a comment, sign in
-
🚀 I built an open-source library of Claude Code rules & skills to keep AI-assisted development consistent across all my projects. The problem: every time I started a new project, I was re-explaining the same conventions to Claude — Clean Architecture, SOLID, idiomatic Go, PEP 8, React hooks rules… over and over. The solution: my-rules-skills — a single .claude/ folder you drop (or symlink) into any project. Claude Code automatically picks up the rules and skills from there. What's inside: 📐 Shared rules (apply to every language) Clean Code (Uncle Bob) SOLID principles enforcer Object Calisthenics ⚙️ .NET — Clean Architecture with Brighter/Darker, Minimal API, C# conventions 🐹 Go — Effective Go + Google Style Guide: naming, concurrency, error handling, project structure 🐍 Python — PEP 8/257/20, type hints, logging, src layout, pyproject.toml + uv ⚛️ React — Component purity, hooks rules, feature-slice architecture, React Query, TypeScript Each language also ships with a skill — a step-by-step workflow Claude follows when you say "add a new feature", automatically covering domain → service → repository → handler → tests. How it works: # Drop it into any project (or symlink to keep rules in sync) ln -s ~/my-rules-skills/.claude ./. claude Rules activate automatically based on file type. Skills are invoked by name or by describing what you want to do. It's agnostic, extensible, and completely free. Add your own rules in Markdown — no config, no build step. 👉 https://lnkd.in/d-3uNxaf Would love to hear how others are managing Claude Code conventions across projects. Are you doing something similar? #ClaudeCode #AI #DeveloperTools #SoftwareEngineering #CleanCode #SOLID #dotnet #golang #Python #React #OpenSource
To view or add a comment, sign in
Explore related topics
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development