Write Better Solana Smart Contracts with Claude and Codex @solana
Write Better Solana Smart Contracts with Claude and Codex  @solana
Uploaded October 2026 | Updated November 2026, 3 hours ago
AI coding tools can bring the wrong assumptions to Solana. Josh Siegel from Jump Crypto shows how to give Claude and Codex the context they need to write better Solana code.

Josh walks through his core prompt, Solana security checklists, test-driven development, and compute unit benchmarks. He then breaks down an oracle update optimization that reduced compute usage from 34,329 to 293 CU for a single instruction.

Follow six steps: give AI Solana-specific context, prototype the logic and prepare test data, test correctness and coverage, benchmark compute units, protect your tests, and review code with another AI agent. The case study then shows how Josh applies these ideas to a real optimization problem.

CHAPTERS
00:00 Writing Solana code with AI
01:48 Why AI gets Solana wrong
04:07 Step 1: Give AI Solana-specific context
07:50 Step 2: Prototype the logic and prepare test data
08:52 Step 3: Test correctness and code coverage
09:11 Step 4: Benchmark compute units
09:53 Step 5: Protect your tests from AI shortcuts
10:27 Step 6: Review code with another AI agent
10:54 Case study: Optimizing an oracle update
12:48 Moving math off-chain
13:26 Rethinking validation and trust
14:17 Matching transaction and memory layouts
14:58 Reducing framework overhead
16:28 Security trade-offs and takeaways

RESOURCES
Josh’s Solana prompt and reference material:
github.com/JumpCrypto/agents

#Solana #AICoding #SolanaDevelopers

DISCLAIMER
The content herein is provided for educational, informational, and entertainment purposes only, and does not constitute an offer to sell or a solicitation of an offer to buy any securities, options, futures, or other derivatives related to securities in any jurisdiction, nor should not be relied upon as advice to buy, sell or hold any of the foregoing. This content is intended to be general in nature and is not specific to you, the user or anyone else. You should not make any decision, financial, investment, trading or otherwise, based on any of the information presented without undertaking independent due diligence and consultation with a professional advisor. Solana Foundation Foundation and its agents, advisors, council members, officers and employees (the “Foundation Parties”) make no representation or warranties, expressed or implied, as to the accuracy of the information herein and expressly disclaims any and all liability that may be based on such information or any errors or omissions therein. The Foundation Parties shall have no liability whatsoever, under contract, tort, trust or otherwise, to any person arising from or related to the content or any use of the information contained herein by you or any of your representatives. All opinions expressed herein are the speakers’ own personal opinions and do not reflect the opinions of any entities.
Write Better Solana Smart Contracts with Claude and CodexBreakpoint 2026: Debate: Crypto Is Key to the UKs Economic FutureBreakpoint 2026: The Next Generation of Market InfrastructureProve or Die: Formal Verification of Solana at Scale - Petar Maksimovic, HarmonicGenerate Solana Programs From the Upstream eBPF Compiler - Claire Fan, BlueshiftSombra By Bonsol - Exe Zulliger, BonsolFrom 12.8 Seconds to 150ms: What Alpenglow Means for Payments | Anza CEO Brennan WattSolana Lets You Do Something Magical - Zelimir Fedoran, TapedriveAttention Tokens for Startup DistributionCollector CryptZelle just sent $1.25M in its first confidential transfer using ZelleUSD on Solana10 Years of Battle-Tested Crypto Infrastructure | Vibhu Norby from the Solana Foundation
Solana |

Write Better Solana Smart Contracts with Claude and Codex

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER