The most controversial rewrite in history just shipped...

Fireship · 2026-07-15

This video details how Bun, the all-in-one JavaScript toolkit, performed a complete rewrite of its 535,000 lines of Zig code into Rust using Anthropic's Claude AI agents. The rewrite, which took only 11 days, cost $165,000 in token usage and resolved 128 bugs, shrunk the binary size by 20%, and resulted in a 2-5% speed increase. The creator of Zig, Andrew Kelley, publicly criticized Bun's code quality and their use of AI, highlighting the differing philosophies on memory management between Zig (manual) and Rust (borrow checker), and the challenges of training AI models on less established languages like Zig. The video also discusses CodeRabbit, an AI-powered code review tool, as an alternative for improving code quality.

read more

The video highlights Bun's ambitious rewrite of its core codebase from Zig to Rust, orchestrated by Anthropic's Claude AI. This decision stemmed from significant challenges with memory management in the original Zig implementation. Zig, a low-level language, requires manual memory management without compiler assistance, which led to numerous bugs in Bun's codebase, including memory leaks, use-after-free errors, and double-frees. The integration of JavaScriptCore, Safari's garbage-collected JavaScript engine, with Zig's manual memory management created a complex hybrid environment. Half of Bun’s objects were managed by JavaScriptCore’s garbage collector, while the other half resided in manually managed Zig memory. This dual approach necessitated constant pointer management between the two systems, resulting in a codebase plagued with stability issues. The official blog post mentions fixing 128 bugs, a 20% reduction in binary size, and a 2-5% performance improvement post-rewrite, attributing these gains to Rust's borrow checker and compiler-assisted tools like LeakSanitizer and Miri.

The rewrite process itself was a fascinating AI-powered endeavor. First, Claude spent three hours analyzing Bun's Zig codebase to create a porting guide, outlining patterns to map Zig constructs to Rust. Then, a dynamic workflow was implemented to trace the lifetimes of every struct field in the Zig codebase, documenting years of tribal knowledge about memory ownership and deallocation. This data was serialized into a giant spreadsheet, providing a comprehensive map for the translation. With this groundwork, 64 parallel Claude agents were deployed across four Git worktrees. These agents translated 1,448 files, generating approximately 1,300 lines of Rust code per minute at peak. To ensure code quality and prevent biases, adversarial review was incorporated, where each implementing Claude agent was paired with two reviewing Claude agents. The reviewers' sole job was to assume the code was wrong and identify bugs, operating in separate context windows to minimize bias. The entire process, which would typically take a team of engineers a year, was completed in just 11 days, costing an estimated $165,000 in API token usage, a cost that Anthropic, as Bun's acquirer, effectively absorbed.

Andrew Kelley, the creator of Zig, offered a sharp critique of Bun's decision and methodology. He argued that the claimed performance gains from the Rust rewrite were primarily due to Link-Time Optimization (LTO), a feature Zig has always supported. He also suggested that the binary size reduction was unrelated to Rust and that Bun's blog post conveniently omitted compile-time comparisons, where Zig likely outperforms Rust. Kelley expressed relief at Bun's departure from the Zig ecosystem, describing Bun's original codebase as a "prime example of How Not To Write Zig Code" due to its "hacks on top of hacks" and "abuse of assertions." He attributed this to what he termed Bun founder Jarred Sumner's "beginner energy" – a tendency to move fast and jump into problems without deep consideration. Kelley also highlighted the inherent challenges of using LLMs for code generation in less mature languages like Zig (which is pre-1.0), as limited training data and frequent breaking changes make it difficult for AI models to produce reliable code compared to more established languages like Rust.

In essence, the Bun rewrite represents a significant milestone in AI-assisted code migration, demonstrating the potential of LLMs to tackle large-scale refactoring challenges. However, it also sparked a debate about code quality, language philosophy, and the role of AI in software development, with the creator of Zig pointing out the nuances and potential pitfalls of such a rapid, AI-driven transition.

How I tricked Claude into leaking your deepest, darkest secrets

Simon Willison · 2026-07-15 · 3 min read

TLDR: Anthropic's `web_fetch` tool blocked direct exfiltration by restricting URLs to only those explicitly provided by users or search results — but a researcher bypassed this by embedding malicious redirect links within fetched pages, tricking Claude into leaking personal data (name, location, employer) by following a chain of attacker-controlled URLs. Anthropic has since patched it by preventing `web_fetch` from following links found inside previously fetched content.

Every Prompt You Send Drags 18,384 Words Of Junk. Here's How I Cut It.

Nate B Jones · 2026-07-15

This video describes how to build a clean, efficient AI harness to manage complex interactions with AI models, especially as new models like Fable 5 and GPT-5.6 emerge. The author emphasizes that a bloated harness, filled with redundant or outdated instructions, can hinder model performance, leading to unexpected behavior and wasted tokens. By adopting a structured approach—mapping, measuring exposure, enforcing single ownership, loading context strategically, converting binary rules into checks, and making the harness model-aware—engineers can create a more transparent, stable, and maintainable AI system that performs optimally across different models.

read more

The speaker, Nate B Jones, describes his journey from an overly complex and bloated AI harness to a cleaned-up, efficient system, emphasizing that this is a common problem in the AI community. His harness, initially built with enthusiasm for new models like Fable 5 and ChatGPT 5.6, became burdened with excessive rules, instructions, and skills. He likens this bloat to barnacles on a ship, hindering performance and making it difficult to understand the system's true state.

Jones defines an AI harness as everything wrapped around the core model: custom instructions, project files, saved prompts, memory, skills, tools, permissions, and checks. It shapes the model's response before a user even types into the prompt window. The key takeaway is that while models evolve, the harness—the control layer—tends to accumulate cruft over time if not managed intentionally. He developed a cleaner skill to make his harness visible and manageable.

He outlines six principles for building a stable harness:

1. Map Before You Clean: The first step is to create a comprehensive map of your existing harness. This involves identifying every control, its location, when it loads, its purpose, its owner, and any evidence of its continued utility or potential for misuse. Jones notes that he had 66 usable skills and 172 instruction-related files, accumulating 18,384 words (27,197 characters) of context—far exceeding an 8,000-character discovery budget. This mapping process reveals the full extent of the system, which is often hidden in chatbox interfaces.

2. Measure Exposure, Not File Size: The issue isn't just the sheer volume of instructions but their exposure to the model. While some instructions are critical (e.g., protecting important work, defining research sources, preventing AI from inventing opinions, or specifying permissions), others become redundant. Jones compared two setups: a compact one (742 words) and a thicker one (5,197 words) for the same Fable 5 job. The thicker setup produced richer analysis but failed delivery requirements twice (broken JSON, exceeded word limit) due to the sheer volume of context overwhelming the model's ability to focus on the actual output constraints. This highlights that more context isn't always better; relevant and concise context is key.

3. One Rule. One Home. One Owner.: Redundancy is a major source of bloat. Jones found 15 versions of the same authorship and source rule across different top-level skills. This leads to drift, where one version might be updated while others remain outdated or inconsistent. The cleaner skill asks what job an instruction does, where it should reside, and who should maintain it, consolidating redundant rules into a single, canonical control. This principle emphasizes clarity and accountability, ensuring that each rule has a clear purpose and a single point of truth.

4. Load Depth When the Phase Needs It: Instead of front-loading all information, specialist knowledge should be introduced only when the workflow stage requires it. Jones had six editorial guides that loaded with every writing skill, whether needed or not. For example, a source guide is crucial during research but irrelevant during YouTube script creation. Loading unnecessary information (or "crud") at the beginning can degrade overall performance. The cleaner skill helps identify and manage these phase-specific loading requirements, ensuring that the right information is presented at the right time.

5. Turn Binary Rules Into Checks: Hard requirements (e.g., JSON validity, word limits) should be enforced with hard, machine-verifiable checks rather than being embedded as narrative prose within prompts. Telling the model about a point of view is different from asking it to wrestle with that viewpoint. Tools and schemas can block actions or reject broken outputs. The cleaner skill identifies rules that can be converted into these binary checks, making the harness lighter and safer because the system itself enforces constraints, reducing ambiguity for the model.

6. Make the Harness Model-Aware: The harness should be designed with specific models (e.g., Fable 5 vs. ChatGPT 5.6) and their unique behaviors in mind. Models change, and sometimes even switch mid-conversation without the user knowing, yet the old harness often remains in place, leading to performance degradation. The goal is to differentiate between models and optimize the harness for each. The cleaner skill tracks the model, reasoning settings, tools, skills, fallbacks, and checks used, creating a diagnostic receipt for each run. This transparency helps identify whether a failure is due to the model or the harness. For instance, Fable 5 struggled with an overly heavy harness that overloaded its context window, while ChatGPT 5.6's issues arose earlier in the routing process. Both models benefit from selective loading and hard checks, but for different reasons related to their underlying architecture and operational modes. Ultimately, the system around the AI should be easy to understand, allowing engineers to manage and own it effectively.

The speaker concludes by offering his cleaner skill for download, encouraging other engineers to audit their own harnesses, share their findings, and suggest other models for optimization. The overarching goal is to foster a community where AI harnesses are intentionally designed to be clean, efficient, and robust, rather than becoming bloated and hindering progress.

Claude's Brain Has A Secret... And Scientists Found It

Two Minute Papers · 2026-07-15

This video delves into the internal workings of large language models (LLMs), revealing how they interpret and process information by transforming input tokens into geometric representations and emergent internal tools. It highlights two key findings: LLMs develop internal 'line-length counters' analogous to biological place cells for understanding text layout, and they represent numbers using a 'rippling spiral' pattern. These emergent capabilities, which the AI develops autonomously without explicit programming, suggest a form of nascent intelligence and open new avenues for understanding and interacting with AI systems.

read more

The video opens by drawing an analogy between LLMs' perception of data and a bat's echolocation or a reindeer's UV vision: LLMs perceive their world as a "flood of numbers." However, these systems demonstrate abilities like understanding questions and passing complex exams, implying a deeper level of processing beyond mere numerical manipulation. The core idea is that LLMs turn input tokens into geometry. They build "little curved shapes inside" that denote areas, concepts, and decision boundaries within a high-dimensional space. When scaled, these systems exhibit properties that "almost feel like magic."

One surprising emergent capability highlighted is the LLM's ability to count characters and infer line breaks, even without direct access to character counts or page width information. The model receives text as a list of integers (tokens), not with explicit character count metadata. To correctly predict where a word like 'aluminum' might break a line, the LLM must first learn to count characters by itself, then infer the overall line width constraint, and finally compare the current character count with the line width to calculate characters remaining. This involves inferring high-level concepts (line width, current position, distance from line limit, next token length) and making a prediction based on these internal representations. The model effectively constructs an internal 'line-length counter' to solve this task.

The video draws a parallel between this emergent capability in AI and biological place cells. In early brain research, scientists observed that certain neurons in a rat's brain, called place cells, fire only when the rat is in a specific location within a space, effectively creating a biological GPS. Similarly, boundary cells fire when the rat is near a wall. The paper discussed in the video, 'Character counts are represented on low-dimensional curved manifolds discretized by sparse feature families, analogous to biological place cells' (Gurnee, Ameisen, and Batson, 2025), argues that LLMs develop similar internal neuron-like features that fire based on their position in a line or proximity to a page boundary. This is not explicitly programmed but is an emergent capability the AI "invents" during its training.

Another fascinating discovery is how the LLM represents numbers internally. Instead of a single numerical value, the internal representation of a number is a rippling spiral. This allows each number to have its own 'channel' while also being spaced further apart, preventing "bleeding" or interference, similar to how radio stations need to be spaced apart to avoid signal overlap. Again, this complex representation is self-generated by the AI without human instruction during training, indicating a drive for more reliable and robust internal mechanisms. The author suggests this field of study, exploring the internal workings of AI, could be termed Robopsychology, a concept coined by Isaac Asimov decades ago. This deep dive into AI's internal models reveals a novel form of learning and intelligence, presenting both new challenges and opportunities for understanding and developing AI.

What Senior Engineers do Differently (Vercel VP)

Beyond Coding · 2026-07-15

Lindsey Simon, VP of Engineering at Vercel, emphasizes that great software engineering in today's landscape is characterized by proactive unblocking, continuous learning, and contributing to the collective mission. He highlights the increasing importance of learning how to learn effectively and leveraging tools like AI agents to overcome knowledge gaps, rather than solely relying on direct expertise. Simon also discusses the evolving nature of engineering careers, stressing that impact can come from all levels of experience, and encourages engineers to embrace a builder-minded culture and focus on systematizing help and effective communication to amplify their impact.

read more

Lindsey Simon, VP of Engineering at Vercel, shares his perspective on what constitutes great software engineering today, drawing from his extensive experience in both tech and non-tech environments. He believes that the essence of effective engineering lies beyond mere coding and delves into qualities that foster innovation and growth within a team.

Simon emphasizes the concept of proactive unblocking. A great engineer, he states, is not only skilled at solving their own roadblocks but also actively helps unblock others. This proactive approach ensures smoother workflows and fosters a collaborative environment where knowledge is shared and challenges are addressed efficiently. He links this to a broader builder-minded culture, where engineers are intrinsically motivated to create, innovate, and contribute meaningfully to the business, regardless of their hierarchical level.

He discusses the shift in engineering roles, predicting a consolidation of responsibilities rather than roles disappearing entirely due to advancements like AI. Historically, companies created specialized roles (e.g., engineering manager, product manager) to optimize processes. However, AI agents are changing this dynamic by providing instant access to vast amounts of information and automating certain tasks. This empowers engineers to take on broader responsibilities, bridging gaps between different domains like design and backend engineering.

Simon highlights the increased importance of learning how to learn effectively. With AI, engineers can quickly fill knowledge gaps, turning areas where they are less trained into opportunities for growth. He describes AI agents as valuable tools that provide access to a 'world of information,' enabling engineers to leverage knowledge they might not directly possess. This changes the nature of problem-solving: instead of being stuck, engineers can engage with AI, critically evaluate its responses, and then seek human expertise for more nuanced or unsatisfactory answers. This process, rooted in questioning and digging deeper, leads to a more fundamental understanding of the problem space.

He also observes a flattening of hierarchies and a growing meritocracy in tech. Interns and new graduates, equipped with experience from hackathons and diverse internships, are entering the workforce with a strong builder mindset. They are less burdened by traditional expectations and more inclined to experiment and leverage new tools. This creates an environment where impact is not solely dictated by seniority but by the ability to figure out solutions and spend the necessary time. Simon actively encourages this trend, viewing it as a way to cultivate talent.

Regarding career progression, Simon stresses that leadership and management are not synonymous. Vercel, for instance, maintains parallel individual contributor (IC) and management tracks, ensuring that engineers can achieve high levels of impact without necessarily moving into management roles. He himself became a manager primarily to challenge himself and to scale impact beyond his individual contributions. His fulfillment now comes from enabling others, seeing five people proud and excited about their work, knowing he helped them achieve it. This feeling of enablement is a core part of Vercel's mission.

Finally, Simon emphasizes the critical role of feedback in driving progress. He advises engineers not to be afraid of getting early and continuous feedback. This includes internal feedback within the team and external feedback from users and social platforms. He underscores the importance of interpreting feedback not as blame, but as a signal indicating areas for improvement or miscommunication. By embracing this process, engineers can identify friction points, systematize their help, and ultimately contribute to a better user experience. He likens this to the continuous iteration and critique required in any craft, encouraging engineers to distill information, communicate concisely, and leverage symbolic logic to represent complex patterns effectively.

GPT-5.6 is not one model. #ai #chatgpt #openai #claude #agenticengineering

Agentic Engineering · 2026-07-14

OpenAI has introduced the GPT-5.6 family, comprising three models: Luna, Terra, and Sol. These models offer a 1 million token context window and share a February 2026 knowledge cutoff. The strategic positioning of these models targets different levels of work, with Luna and Terra designed to outperform more expensive competitors on professional agent tasks, and Sol offering maximum capability.

read more

OpenAI's latest release, the GPT-5.6 family, introduces a nuanced approach to AI model deployment, moving beyond a single flagship model to offer a selection of three distinct models: Luna, Terra, and Sol. This strategy, as highlighted by Simon Willison, suggests a shift in how AI capabilities are presented and utilized.

All three models—Luna, Terra, and Sol—share several core features: A 1 million token context window, indicating their ability to process and maintain context over substantial amounts of information. Support for extremely large outputs, suggesting enhanced generative capabilities. * A unified February 2026 knowledge cutoff, meaning their training data is current up to that point.

The key differentiator among these models lies in their intended use cases and performance profiles, effectively creating a tiered offering: Luna and Terra are positioned as smaller and more efficient models. OpenAI claims they can outperform much more expensive competitors when tackling long-running professional agent tasks. This suggests a focus on cost-effectiveness and efficiency for a broad range of enterprise applications. Sol represents the maximum capability model within the family, likely offering the highest performance and most advanced reasoning abilities for complex challenges.

Simon Willison also brings an important perspective on evaluating these new models. He notes that token pricing alone is becoming a weak comparison metric because different models may charge different amounts per token while also using dramatically different numbers of reasoning tokens to complete the same job. This makes direct, apples-to-apples cost comparisons challenging and emphasizes the importance of evaluating models based on actual task completion efficiency and overall cost-effectiveness, rather than just per-token rates.

Performance benchmarks further illustrate this mixed picture: GPT-5.6 performed very well on OpenAI's agentic evaluation, suggesting strong capabilities in tasks requiring autonomous action and planning. However, Claude 3.5 Sonnet scored substantially higher on the SWE-bench Pro benchmark, which tests models on their ability to resolve real-world software engineering issues. This highlights that different benchmarks might favor different model architectures or training methodologies. * OpenAI responded to this by publishing an audit arguing that a significant portion of the SWE-bench Pro benchmark may be broken, complicating direct comparisons.

The API features of the GPT-5.6 family are also critical, offering enhanced programmatic control and flexibility: Models can write JavaScript to coordinate tool calls, enabling more sophisticated multi-step reasoning and integration with external systems. The ability to create sub-agents for parallel work suggests a framework for breaking down complex problems into smaller, concurrently executable parts, improving efficiency for multi-agent systems. * Developers are given more control over prompt caching, which can significantly reduce costs and latency for repetitive queries by reusing previously computed responses.

This release from OpenAI marks a strategic move towards offering a more diversified portfolio of AI models, tailored for specific performance, cost, and efficiency requirements. The choice for developers is no longer just about picking the 'smartest' model, but rather identifying which type of intelligence (smaller/efficient, balanced, or maximum capability) best fits the job at hand and whether they prefer to manually select the model or have the system intelligently choose the optimal one for each task.

You can build your AI's memory just by talking. Here's the catch. #AI #aiagents #AImemory

Nate B Jones · 2026-07-14

AI agents have rapidly evolved in their ability to follow user intent, enabling a significant portion of complex software stacks to be built through conversational interaction. Within a few months, the capacity for agents to translate high-level requests into functional code has dramatically improved. This acceleration means that developers can now offload up to 80% of an "open brain stack" by simply conversing with an agent. The critical implication for software engineering is that while agents expedite development, they can also act on incorrect interpretations of intent very quickly, emphasizing the need for robust intent validation and alignment.

Questionable Advice: “How can I drive change and influence teams…without power?”

Charity Majors · 2023-06-05 · 12 min read

TLDR: Driving change without formal authority is mostly about sequencing and groundwork, not persuasion skills. Before any group meeting, have individual conversations with potential opponents — let them react privately, incorporate their input, and convert critics into allies so the public reveal is a formality rather than a fight. For junior engineers, skip the influence game entirely and focus on skill acquisition; you'll have far more leverage once you're actually competent.

Long Volatility Development

Kent Beck · 2026-07-15 · 1 min read

Kent Beck is drawing an analogy between "long volatility" options trading strategies (which profit from unpredictability rather than betting on a specific outcome) and software development practices like XP, suggesting that certain development approaches are similarly structured to benefit from uncertainty rather than fight it. This matters to senior engineers because it offers a potentially rigorous mental model for why iterative, adaptive practices outperform big-upfront-design in volatile problem domains, grounded in financial theory rather than just anecdote.