<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sakshi Vashishth on Medium]]></title>
        <description><![CDATA[Stories by Sakshi Vashishth on Medium]]></description>
        <link>https://medium.com/@sakshiv_31?source=rss-3ec4d03aa7d8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*syOPxiDAqdwzZoe_</url>
            <title>Stories by Sakshi Vashishth on Medium</title>
            <link>https://medium.com/@sakshiv_31?source=rss-3ec4d03aa7d8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:16:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sakshiv_31/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ AI Costs Got You Broke? Save Cost for Claude]]></title>
            <link>https://medium.com/@sakshiv_31/ai-costs-got-you-broke-save-cost-for-claude-961f26690d83?source=rss-3ec4d03aa7d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/961f26690d83</guid>
            <dc:creator><![CDATA[Sakshi Vashishth]]></dc:creator>
            <pubDate>Tue, 26 May 2026 06:18:25 GMT</pubDate>
            <atom:updated>2026-05-26T06:18:25.195Z</atom:updated>
            <content:encoded><![CDATA[<h4>5 Smart Ways to Save Claude API &amp; Subscription Costs</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*YRfq6NwcNEp2iRaE-fFoyg.png" /></figure><h4>Here are five practical ways to reduce Claude usage costs while still getting high-quality results.</h4><h3>1. Use Files Instead of Pasting Huge Blocks of Text</h3><p>Instead of pasting thousands of lines of code or entire stories directly into the prompt, attach or reference files.</p><h3>Example: Code Review</h3><p>Instead of:</p><pre>Review this 3000-line React application pasted below...</pre><p>Use:</p><pre>Review the attached JS files and identify:<br>- performance bottlenecks<br>- duplicate logic<br>- security issues<br>- unused imports</pre><p>This keeps prompts cleaner and reduces unnecessary token usage.</p><p><strong>Example</strong>: Story or Documentation Review</p><p>Rather than pasting an entire novel chapter:</p><pre>Read the attached story file and suggest improvements for pacing and dialogue.</pre><p>You avoid repeatedly sending massive context in every interaction.</p><h3>Why It Saves Cost</h3><ul><li>Fewer input tokens</li><li>Cleaner context window</li><li>Reduced repetition across prompts</li><li>Faster responses</li></ul><h3>2. Choose the Right Model for the Right Task</h3><p>Not every task needs the most expensive model.</p><p>Many developers waste credits by using premium reasoning models for simple formatting or lightweight coding tasks. Choosing the correct model based on the task can significantly reduce monthly costs.</p><p>Instead of sending everything directly to a premium model:</p><pre>Step 1: Use a lightweight model to summarize logs<br>Step 2: Use another model to identify failing services<br>Step 3: Send only the refined issue to a premium reasoning model</pre><p>This layered workflow reduces unnecessary token consumption.</p><h3>Claude Model Selection Examples</h3><p>Claude provides different model tiers designed for different workloads.</p><h3>Claude Haiku</h3><p>Best for:</p><ul><li>quick responses</li><li>lightweight automation</li><li>summarization</li><li>formatting</li><li>simple scripting</li><li>chat workflows</li></ul><p>Use cases:</p><pre>- Reformat this JSON<br>- Summarize this meeting transcript<br>- Generate SQL insert statements<br>- Convert CSV data to markdown table</pre><p>Why use it:</p><ul><li>fastest responses</li><li>lowest cost</li><li>ideal for repetitive tasks</li></ul><h3>Claude Sonnet</h3><p>Best for:</p><ul><li>daily development work</li><li>code reviews</li><li>debugging</li><li>API design</li><li>documentation</li><li>medium-complexity reasoning</li></ul><p>Use cases:</p><pre>- Review this Spring Boot service<br>- Optimize this React component<br>- Explain why this Kubernetes deployment fails<br>- Generate integration tests</pre><p>Why use it:</p><ul><li>strong balance between cost and intelligence</li><li>excellent for most engineering tasks</li><li>usually the best default choice</li></ul><h3>Claude Opus</h3><p>Best for:</p><ul><li>deep reasoning</li><li>architecture decisions</li><li>research</li><li>multi-step analysis</li><li>large-scale refactoring</li><li>complex debugging</li></ul><p>Use cases:</p><pre>- Design a scalable event-driven architecture<br>- Analyze memory leaks across services<br>- Review enterprise security vulnerabilities<br>- Compare multiple distributed system approaches</pre><p>Why use it:</p><ul><li>strongest reasoning capabilities</li><li>handles ambiguity better</li><li>useful for critical or highly complex problems</li></ul><h3>Smart Cost Optimization Strategy</h3><p>Instead of using Opus for everything:</p><pre>Haiku  → preprocess and summarize<br>Sonnet → daily engineering tasks<br>Opus   → final complex reasoning</pre><h3>Example Workflow</h3><p>A smart debugging flow might look like:</p><ol><li>Haiku filters large logs</li><li>Sonnet identifies probable root causes</li><li>Opus validates architecture-level fixes</li></ol><p>This reduces unnecessary premium-token usage while maintaining high-quality outputs.</p><h3>Model Switching Strategy</h3><p>A good engineering workflow is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*qFHzjBIQ51WuYwuH0xSKNQ.png" /></figure><blockquote><em>Use expensive intelligence only where deep reasoning is actually required.</em></blockquote><h3>3. Use CLI Tools and Automation Instead of Chat Repetition</h3><p>Many developers repeatedly open chat windows for tasks that can be automated locally.</p><p>CLI tools can reduce:</p><ul><li>repetitive prompting</li><li>context re-uploading</li><li>unnecessary token usage</li><li>manual debugging cycles</li></ul><h3>Example: Codebase Search</h3><p>Instead of asking:</p><pre>Find all API calls related to payment processing.</pre><p>Use local CLI tools first:</p><pre>grep -r &quot;payment&quot; src/</pre><p>or</p><pre>rg payment</pre><p>Then send only the relevant files or snippets to Claude.</p><h3>Example: Git Diff Reviews</h3><p>Instead of uploading the entire repository:</p><pre>git diff main &gt; changes.diff</pre><p>Then ask:</p><pre>Review only the attached diff file.</pre><p>This reduces massive context overhead.</p><h3>Example: Log Filtering</h3><p>Instead of uploading full production logs:</p><pre>grep ERROR application.log &gt; errors.log</pre><p>or</p><pre>cat application.log | tail -200</pre><p>Send only the important portion.</p><h3>Useful CLI Tools</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*l2X9oU25hFTMCi50hF909Q.png" /></figure><p>You can also configure there <a href="https://medium.com/@sakshiv_31/configuring-permissions-in-claude-2819c906e635">permission in claude</a></p><h3>Why This Saves Cost</h3><p>Instead of paying the AI model to:</p><ul><li>search files</li><li>filter logs</li><li>locate imports</li><li>identify duplicate lines</li></ul><p>You let your local machine handle those tasks almost instantly.</p><p>The AI then focuses only on high-value reasoning.</p><h3>Advanced Workflow</h3><p>A highly optimized engineering workflow looks like this:</p><pre>CLI tools → filter data<br>Smaller model → summarize<br>Premium model → solve complex issue</pre><p>This creates faster responses, lower costs, and better signal-to-noise ratio.</p><h3>3. Avoid Repeating Context in Every Prompt</h3><p>One of the biggest hidden costs is repeatedly sending the same instructions.</p><h3>Bad Example</h3><pre>You are a senior Java architect.<br>Our application uses Spring Boot, Kafka, Redis, PostgreSQL...</pre><p>Repeating this in every message increases token usage continuously.</p><h3>Better Approach</h3><p>Create reusable prompt templates or maintain short context instructions.</p><p>Example:</p><pre>Context:<br>Java 21 + Spring Boot microservices platform.</pre><p>Then only send the new problem.</p><h3>Even Better</h3><p>Use:</p><ul><li>system prompts</li><li>memory files</li><li>reusable project instructions</li><li>prompt libraries</li></ul><p>This keeps interactions compact and efficient.</p><h3>4. Ask Focused Questions Instead of Broad Prompts</h3><p>Broad prompts generate long, expensive responses.</p><h3>Expensive Prompt</h3><pre>Explain everything wrong with my backend architecture.</pre><p>This often produces huge outputs.</p><h3>Optimized Prompt</h3><pre>Review only:<br>- database connection pooling<br>- Redis caching strategy<br>- API timeout handling</pre><p>You get:</p><ul><li>shorter responses</li><li>better quality</li><li>lower output token costs</li></ul><h3>Another Example</h3><p>Instead of:</p><pre>Generate complete production-ready code.</pre><p>Ask:</p><pre>Generate only the service layer.</pre><p>Smaller outputs = lower cost.</p><h3>5. Summarize Conversations Before Continuing</h3><p>Long conversations become expensive because the entire chat history may be carried forward.</p><h3>Smart Technique</h3><p>After solving part of a problem, ask Claude to summarize the important context.</p><p>Example:</p><pre>Summarize the final architecture decisions in 10 bullet points.</pre><p>Then start a fresh conversation using only that summary.</p><h3>Example Workflow</h3><p>Instead of carrying:</p><ul><li>200 messages</li><li>multiple logs</li><li>repeated debugging attempts</li></ul><p>Use:</p><pre>Here is the summarized context from the previous session.</pre><p>This significantly reduces context window usage.</p><h3>Final Thoughts</h3><p>Here’s the tea:</p><blockquote>AI costs usually don’t blow up from one crazy prompt. It’s the lowkey bad habits that keep farming tokens 24/7.</blockquote><p>Things like:</p><ul><li>dumping entire codebases into chat</li><li>using Opus when Haiku could’ve handled it</li><li>copy-pasting the same context every time</li><li>asking “fix my whole app” instead of specific issues</li><li>keeping chats alive for 200 messages straight</li></ul><p>That’s the real wallet damage.</p><p>A little optimization rizz goes a long way:</p><ul><li>attach files instead of mega prompts</li><li>match the model to the vibe</li><li>keep prompts locked in and focused</li><li>summarize chats before they become lore</li><li>let CLI tools do the boring stuff first</li></ul><p><strong>Result</strong>?</p><ul><li>fewer tokens burned</li><li>faster responses</li><li>cleaner outputs</li><li>less AI bill jumpscares</li></ul><p>The dev’s winning right now aren’t the ones spamming AI the hardest.<br>They’re the ones using it with maximum efficiency and minimum token delusion.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=961f26690d83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java Is DEAD,…. NOT]]></title>
            <link>https://medium.com/@sakshiv_31/java-is-dead-not-b7faf821e091?source=rss-3ec4d03aa7d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7faf821e091</guid>
            <dc:creator><![CDATA[Sakshi Vashishth]]></dc:creator>
            <pubDate>Tue, 19 May 2026 08:42:07 GMT</pubDate>
            <atom:updated>2026-05-19T08:42:07.849Z</atom:updated>
            <content:encoded><![CDATA[<p>For more than two decades, developers have repeatedly predicted the downfall of Java.</p><p>Every few years, a new language emerges and headlines declare that Java is “too old,” “too verbose,” or “no longer relevant.”</p><p>Yet here we are in 2026, and Java continues to power banks, cloud platforms, enterprise systems, large-scale backend services, Android infrastructure, and mission-critical applications across the world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*LdscAzrvIlNvaQD1ZbWccA.png" /></figure><h3>The truth is simple: <strong>Java is still here!</strong></h3><p>Today, Java is faster, cleaner, cloud-native, AI-ready, and more developer-friendly than ever before.</p><p>At the same time, AI is transforming how developers work — not replacing Java engineers, but increasing the value of engineers who understand scalable systems, architecture, APIs, and enterprise software.</p><h3>Why Java Refuses to Die</h3><p>Java survives because enterprises value three things:</p><ul><li>Stability</li><li>Scalability</li><li>Long-term maintainability</li></ul><p>Few ecosystems match Java in those areas.</p><p>Major organizations still rely heavily on Java because rewriting decades of enterprise software is expensive and risky.</p><p>Industries like finance, healthcare, telecom, logistics, retail, and government continue to depend on Java-based systems.</p><p>Companies such as Oracle, Amazon, Netflix, LinkedIn, and Uber still use Java extensively in production systems.</p><p>But Java’s relevance today is not just about legacy systems. Modern Java has changed dramatically.</p><h3>Modern Java : Still Java but better</h3><p>If you have not explored Java after version 8, you are missing one of the biggest transformations in modern software development.</p><p>Java today is cleaner, faster, cloud-native, AI-ready, and significantly more developer-friendly.</p><p>This is the story of <a href="https://medium.com/@sakshiv_31/beyond-java-8-61a63f93c617">Java beyond version 8</a>.</p><h3>Java and AI: A Stronger Combination Than Most People Think</h3><p>Many developers assume AI development belongs only to Python.</p><p>Python dominates experimentation and research, but enterprise AI deployment is a different story.</p><p>This is where Java becomes extremely valuable.</p><h3>Why Java Works Well with AI Systems</h3><h3>Enterprise Integration</h3><p>Most enterprise infrastructure already runs on Java.</p><p>AI systems eventually need:</p><ul><li>APIs</li><li>Authentication</li><li>Security</li><li>Billing systems</li><li>Data pipelines</li><li>Scalable backend services</li></ul><p>Java excels at these tasks.</p><h3>High Performance</h3><p>Java’s JVM optimizations and modern concurrency improvements make it suitable for:</p><ul><li>Real-time AI services</li><li>Recommendation engines</li><li>Fraud detection systems</li><li>Streaming analytics</li><li>AI-powered enterprise applications</li></ul><h3>AI Frameworks in Java</h3><p>Java’s AI ecosystem is growing rapidly.</p><p>Popular frameworks include:</p><ul><li>Deep Java Library (DJL)</li><li>LangChain4j</li><li>Spring AI</li><li>Tribuo</li></ul><p>Frameworks like Spring Boot are now integrating AI tooling directly into enterprise applications.</p><h3>AI Needs Backend Engineers</h3><p>AI models alone are not products.</p><p>Real-world AI applications require:</p><ul><li>Distributed systems</li><li>Cloud deployment</li><li>Monitoring</li><li>Scalability</li><li>Security</li><li>Database architecture</li><li>API engineering</li></ul><p>These are core strengths of experienced Java developers.</p><h3>Continued JVM Optimizations</h3><p>The JVM keeps getting smarter with:</p><ul><li>Faster startup</li><li>Better garbage collection</li><li>Improved cloud efficiency</li><li>Reduced memory usage</li></ul><p>These improvements are critical in containerized and serverless environments.</p><h3>Why Java Engineers Are Still Highly Relevant</h3><p>The role of a software engineer is changing, but not disappearing.</p><p>AI can generate snippets of code, but experienced engineers still solve:</p><ul><li>System design problems</li><li>Scalability challenges</li><li>Performance bottlenecks</li><li>Security issues</li><li>Architecture decisions</li><li>Production debugging</li></ul><p>These require engineering judgment.</p><h3>Java Developers Have a Unique Advantage</h3><p>Java engineers often have strong expertise in:</p><ul><li>Enterprise systems</li><li>Distributed architectures</li><li>Databases</li><li>API design</li><li>Cloud infrastructure</li><li>Reliability engineering</li></ul><p>Those skills become even more important in AI-powered systems.</p><h3>The Future Java Engineer</h3><p>The modern Java engineer is no longer just writing CRUD applications.</p><p>Future-ready Java developers are:</p><ul><li>Building AI-integrated applications</li><li>Working with cloud-native systems</li><li>Using Kubernetes and containers</li><li>Designing event-driven architectures</li><li>Integrating LLMs into enterprise workflows</li><li>Optimizing distributed systems</li></ul><p>The combination of Java + AI + Cloud is becoming incredibly powerful.</p><h3>Final Thoughts</h3><p>Java is not dead. It has quietly transformed itself into one of the most resilient and adaptable ecosystems in software engineering.</p><p>While trends come and go, Java continues evolving with:</p><ul><li>Better developer experience</li><li>Modern language features</li><li>Cloud-native performance</li><li>AI integration capabilities</li><li>Enterprise reliability</li></ul><p>AI will automate repetitive coding tasks, but it will not eliminate the need for skilled engineers who can design, scale, secure, and maintain complex systems.</p><p>And that is exactly where Java developers continue to thrive.</p><p>The developers who stay relevant will not be the ones chasing every new trend.</p><p>They will be the ones who combine strong engineering fundamentals with modern technologies — and Java remains one of the best platforms for doing exactly that.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7faf821e091" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Java 8]]></title>
            <link>https://medium.com/@sakshiv_31/beyond-java-8-61a63f93c617?source=rss-3ec4d03aa7d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/61a63f93c617</guid>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Sakshi Vashishth]]></dc:creator>
            <pubDate>Tue, 19 May 2026 08:07:33 GMT</pubDate>
            <atom:updated>2026-05-19T08:07:33.220Z</atom:updated>
            <content:encoded><![CDATA[<h4>If your perception of Java is based on Java 8 or older versions, you are looking at an outdated picture.</h4><p>The Java ecosystem now delivers frequent feature releases, modern syntax improvements, performance enhancements, and cloud-native capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*dbtssFaWnnHrS0-543A3Kg.png" /></figure><h3>Key Java Features Introduced</h3><h3>Local Variable Type Inference (var) (Java 10)</h3><p>Java reduced verbosity with local type inference.</p><p>Before:</p><pre>Map&lt;String, List&lt;User&gt;&gt; users = new HashMap&lt;&gt;();</pre><p>Now:</p><pre>var users = new HashMap&lt;String, List&lt;User&gt;&gt;();</pre><p>The compiler still preserves strong typing while making code cleaner and easier to read.</p><h3>Modern HTTP Client (Java 11)</h3><p>Java introduced a modern built-in HTTP client API.</p><pre>HttpClient client = HttpClient.newHttpClient();<br>HttpRequest request = HttpRequest.newBuilder()<br>    .uri(URI.create(&quot;https://api.example.com&quot;))<br>    .build();</pre><p>This replaced older, more cumbersome networking approaches and made API integration significantly easier.</p><h3>Records (Java 16)</h3><p>Records reduce boilerplate code for data classes.</p><p>Instead of writing getters, constructors, equals, hashCode, and toString manually, developers can now create compact immutable models instantly.</p><p>Before:</p><pre>public class User {<br>    private final String name;<br>    private final int age;<br><br>    public User(String name, int age) {<br>        this.name = name;<br>        this.age = age;<br>    }<br><br>    public String getName() { return name; }<br>    public int getAge() { return age; }<br>}</pre><p>Now:</p><pre>public record User(String name, int age) {}</pre><p>This makes Java cleaner and more readable.</p><h3>Pattern Matching (Java 16)</h3><p>Java modernized type checking and casting.</p><p>Before:</p><pre>if (obj instanceof String) {<br>    String s = (String) obj;<br>    System.out.println(s.toUpperCase());<br>}</pre><p>Now:</p><pre>if (obj instanceof String s) {<br>    System.out.println(s.toUpperCase());<br>}</pre><p>This reduces repetitive code and improves readability.</p><h3>Switch Expressions (Java 14)</h3><p>Modern switch statements are cleaner and safer.</p><p>Before</p><pre>switch(day) {<br>    case MONDAY:<br>    case FRIDAY:<br>        result = &quot;Busy&quot;;<br>        break;<br><br>    case SATURDAY:<br>    case SUNDAY:<br>        result = &quot;Weekend&quot;;<br>        break;<br><br>    default:<br>        result = &quot;Normal&quot;;<br>}</pre><ul><li>Requires multiple break statements</li><li>Easy to introduce bugs through fall-through behavior</li><li>More boilerplate code</li><li>Less readable</li></ul><p>Now:</p><pre>String result = switch(day) {<br><br>    case MONDAY, FRIDAY -&gt; &quot;Busy&quot;;<br>    case SATURDAY, SUNDAY -&gt; &quot;Weekend&quot;;<br>    default -&gt; &quot;Normal&quot;;<br>};</pre><ul><li>Cleaner syntax with -&gt;</li><li>No need for break</li><li>Multiple labels in a single case</li><li>Can directly return values</li><li>Reduces accidental fall-through bugs</li><li>Easier to read and maintain</li></ul><h3>Text Blocks (Java 15)</h3><p>Multi-line strings became much easier.</p><p>Before</p><pre>String json = &quot;{\n&quot; +<br>              &quot;  \&quot;name\&quot;: \&quot;Java\&quot;,\n&quot; +<br>              &quot;  \&quot;version\&quot;: \&quot;21\&quot;\n&quot; +<br>              &quot;}&quot;;</pre><p>Now</p><pre>String json = &quot;&quot;&quot;<br>{<br>  &quot;name&quot;: &quot;Java&quot;,<br>  &quot;version&quot;: &quot;21&quot;<br>}<br>&quot;&quot;&quot;;</pre><h3>Sealed Classes (Java 17)</h3><p>Sealed classes provide better control over inheritance and improve domain modeling.</p><p>This helps developers build safer and more predictable architectures.</p><p>Before</p><pre>public class Shape {<br>}<br><br>class Circle extends Shape {<br>}<br><br>class Rectangle extends Shape {<br>}<br><br>class RandomShape extends Shape {<br>}</pre><p>Here, any developer could create additional subclasses like RandomShape, even if they were never intended as part of the original design. This could lead to unpredictable behavior and weaker domain modeling.</p><p>Now</p><pre>public sealed class Shape<br>    permits Circle, Rectangle, Triangle {<br>}<br><br>final class Circle extends Shape {<br>}<br><br>final class Rectangle extends Shape {<br>}<br><br>final class Triangle extends Shape {<br>}</pre><p>Now, only the explicitly permitted classes can extend Shape, giving developers stronger control over inheritance and creating safer, more maintainable architectures.</p><h3>Virtual Threads (Project Loom) (Java 21)</h3><p>One of the biggest modern Java breakthroughs.</p><p>Virtual Threads allow Java applications to handle massive concurrency with lightweight threads.</p><p>This is a game changer for:</p><ul><li>Microservices</li><li>High-scale APIs</li><li>Cloud-native systems</li><li>Distributed applications</li></ul><p>Java can now process millions of concurrent tasks more efficiently without traditional thread limitations.</p><p>Before</p><pre>Thread thread = new Thread(() -&gt; {<br>    System.out.println(&quot;Processing request&quot;);<br>});<br><br>thread.start();</pre><p>With traditional threads, handling a very large number of concurrent tasks could become expensive and difficult to scale efficiently.</p><p>Now</p><pre>Thread.startVirtualThread(() -&gt; {<br>    System.out.println(&quot;Processing request&quot;);<br>});</pre><p>Virtual Threads are lightweight and managed by the JVM instead of the operating system, allowing applications to handle millions of concurrent tasks more efficiently.</p><h3>Java 22 Features</h3><ul><li><strong>Foreign Function &amp; Memory API</strong> — Better interoperability with native libraries and external memory.</li><li><strong>Unnamed Variables and Patterns</strong> — Cleaner code by ignoring unused variables with _.</li><li><strong>Statements Before </strong><strong>super()</strong> — More flexible constructor initialization logic.</li><li><strong>String Templates (Preview)</strong> — Simplified and safer string interpolation.</li></ul><h3>Java 23 Features</h3><ul><li><strong>Primitive Types in Pattern Matching (Preview)</strong> — Extended pattern matching support for primitive types.</li><li><strong>Stream Gatherers</strong> — More powerful and customizable stream processing operations.</li><li><strong>Markdown Documentation Comments</strong> — Markdown support inside JavaDoc comments for cleaner documentation.</li><li><strong>Virtual Thread Enhancements</strong> — Continued improvements to lightweight concurrency from Project Loom.</li></ul><h3><strong>The Future</strong></h3><p>Java 8 transformed the language with Streams and Lambdas, but Java continued evolving far beyond that.</p><p>Modern Java introduced features like Records, Pattern Matching, Virtual Threads, Text Blocks, and Sealed Classes, making the language cleaner, faster, and more cloud-native.</p><p>With innovations like Project Loom and growing AI integration, Java remains highly relevant for modern enterprise and scalable application development.</p><p>Future projects like Project Valhalla, Project Panama, and Project Amber will further improve performance, native interoperability, and developer productivity.</p><p>Java’s strength lies not in staying the same, but in continuously evolving with technology trends. See you later in the journey!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61a63f93c617" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Configuring Permissions in Claude]]></title>
            <link>https://medium.com/@sakshiv_31/configuring-permissions-in-claude-2819c906e635?source=rss-3ec4d03aa7d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/2819c906e635</guid>
            <dc:creator><![CDATA[Sakshi Vashishth]]></dc:creator>
            <pubDate>Tue, 12 May 2026 05:55:04 GMT</pubDate>
            <atom:updated>2026-05-12T05:55:04.240Z</atom:updated>
            <content:encoded><![CDATA[<p>To safely extend capabilities in Claude, permissions are managed through a structured configuration model. These controls define <strong>what the AI is allowed to execute</strong>, ensuring both flexibility and security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4GLoqFWetXN4JEkj" /></figure><h3>🧾 1. Persistent Settings (Configuration Files)</h3><p>Claude supports <strong>two levels of persistent configuration</strong>:</p><h3>🔹 Project-Level Configuration</h3><p>Defined inside your repository:</p><pre>.claude/settings.json</pre><pre>{<br>  &quot;permissions&quot;: {<br>    &quot;allow&quot;: [<br>      &quot;Bash(git:*)&quot;,<br>      &quot;Bash(gradle:*)&quot;,<br>      &quot;Bash(cat:*)&quot;,<br>      &quot;Read(**)&quot;<br>    ],<br>    &quot;deny&quot;: []<br>  }<br>}</pre><p><strong>Key Points:</strong></p><ul><li>Applies only to the current project</li><li>Version-controlled with your codebase</li><li>Ideal for team-wide consistency</li></ul><h3>🔹 User-Level Configuration</h3><p>Defined globally for your environment:</p><pre>~/.claude/settings.json</pre><pre>{<br>  &quot;permissions&quot;: {<br>    &quot;allow&quot;: [<br>      &quot;Bash(npm:*)&quot;<br>    ]<br>  }<br>}</pre><p><strong>Key Points:</strong></p><ul><li>Applies across all projects</li><li>Useful for personal workflows</li><li>Overrides or complements project settings</li></ul><h3>⚙️ 2. Dynamic Configuration via update-config Skill</h3><p>Claude provides an <strong>automated way to manage permissions</strong> using the update-config skill.</p><p>Instead of editing files manually, you can simply instruct:</p><ul><li><em>“Allow all git commands”</em></li><li><em>“Allow gradle build commands”</em></li></ul><p>Claude will translate these into structured permission rules and update the configuration accordingly.</p><h3>⚡ 3. Runtime Permission Grants (One-Time → Persistent)</h3><p>When Claude attempts an action requiring permission:</p><ul><li>You are prompted for approval</li><li>Selecting <strong>“Always allow”</strong> automatically persists the rule</li></ul><p>This creates a <strong>progressive permission model</strong>, where capabilities evolve based on usage.</p><h3>🧩 4. Permission Rule Syntax</h3><p>Permissions follow a structured pattern:</p><p>Bash(git:*) -&gt; Allows all git subcommands</p><p>Bash(gradle build)-&gt;Only gradle build command</p><p>Read(**) -&gt; Read access to all files</p><p>Bash(*) -&gt; Full bash access (broad)</p><h3>🛡️ Best Practices</h3><ul><li>Prefer <strong>least privilege access</strong> (gradle build vs gradle:*)</li><li>Avoid overly broad rules like Bash(*) unless necessary</li><li>Use <strong>project-level configs</strong> for team governance</li><li>Audit permissions regularly</li></ul><h3>🚀 Summary</h3><p>Claude’s permission system combines:</p><ul><li><strong>Static configs</strong> (project + user level)</li><li><strong>Dynamic updates</strong> (update-config)</li><li><strong>Runtime approvals</strong></li></ul><p>This layered approach enables <strong>secure, controlled, and scalable AI-assisted development workflows</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2819c906e635" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Clauded Days: Turning Prompts into Skills]]></title>
            <link>https://medium.com/@sakshiv_31/clauded-days-turning-prompts-into-skills-86974cb9519b?source=rss-3ec4d03aa7d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/86974cb9519b</guid>
            <category><![CDATA[claude-code]]></category>
            <dc:creator><![CDATA[Sakshi Vashishth]]></dc:creator>
            <pubDate>Mon, 11 May 2026 17:33:34 GMT</pubDate>
            <atom:updated>2026-05-11T17:33:34.824Z</atom:updated>
            <content:encoded><![CDATA[<p>When I first started using Claude AI Code, I was skeptical.</p><p>Not in a dramatic “AI will replace everything” way — but in a very practical, engineering way.</p><p>Two things bothered me:</p><ul><li>Would the generated code actually be <strong>safe and production-ready</strong>?</li><li>Would it understand my <strong>coding style</strong>, or just generate generic boilerplate?</li></ul><p>And honestly, my early experience didn’t inspire confidence.</p><p>The code worked… sometimes.<br> But it lacked consistency. It lacked intent. It definitely didn’t feel like <em>my</em> code.</p><p>So I did what most of us do.</p><p>I started <strong>prompting better</strong>.</p><h3>🧠 The Realization: It Wasn’t Just About Better Prompts</h3><p>At first, improvements came from refining prompts:</p><ul><li>Adding more context</li><li>Being explicit about constraints</li><li>Giving examples</li></ul><p>And yes — it helped.</p><p>But something felt off.</p><p>I was rewriting the same intent again and again:</p><ul><li>“Follow best practices”</li><li>“Focus on performance”</li><li>“Ensure readability”</li></ul><p>Every single time.</p><p>That’s when it clicked:</p><blockquote><em>I wasn’t just prompting.<br>I was manually re-specifying the same </em>behavior<em> over and over.</em></blockquote><h3>⚙️ The Shift: From Prompts to Capabilities</h3><p>That realization changed how I approached Claude AI.</p><p>Instead of asking:</p><blockquote><em>“How do I write a better prompt?”</em></blockquote><p>I started asking:</p><blockquote><em>“How do I define this behavior once — and reuse it?”</em></blockquote><p>That’s where skills.md came in.</p><h3>🧩 What skills.md Actually Solves</h3><p>At its core, skills.md lets you <strong>externalize behavior</strong>.</p><p>Instead of embedding intent inside prompts, you define it explicitly:</p><ul><li>What the system should do</li><li>What inputs it expects</li><li>What outputs it must produce</li><li>What rules it must follow</li></ul><p>It’s a small shift conceptually — but a big shift in practice.</p><p>You move from:</p><p><em>Prompt → “Hope for the best” to Defined capability → “Consistent execution”</em></p><h3>Where Prompts Started Breaking for Me</h3><p>The more I used AI in real workflows, the more friction I saw:</p><ul><li>Same prompt → different outputs</li><li>No consistent structure in responses</li><li>Hard to reuse across projects</li><li>Debugging felt… guessy</li></ul><p>It worked for exploration, but not for <strong>repeatable engineering tasks</strong>.</p><h3>What Changed When I Started Using Skills</h3><p>Once I started defining skills, things got… calmer.</p><p>Less chaotic.</p><p>More predictable.</p><p>Instead of tweaking prompts, I was:</p><ul><li>Refining a single definition</li><li>Reusing it across tasks</li><li>Getting structured outputs every time</li></ul><p>It started to feel less like “talking to AI” and more like <strong>calling a function with a contract</strong></p><h3>A Real Example: PR Reviews</h3><p>PR reviews are:</p><ul><li>Time-consuming</li><li>Inconsistent across reviewers</li><li>Easy to rush</li></ul><p>So ,we create a skill as follows:</p><pre># Skill: Java PR Review (5-Point Check)<br><br>## Purpose<br>Review Java pull requests across 5 quality dimensions.<br><br>## Inputs<br>- pr_diff<br>- context (optional)<br><br>## Outputs<br>- Summary<br>- Issues (Critical/Warning/Suggestion)<br>- Suggestions<br>- Score (out of 5)<br><br>## Rules<br>- Focus only on changed code<br>- Be concise and actionable<br>- Prioritize critical issues<br><br>## Steps<br>1. Analyze diff<br>2. Evaluate across:<br>   - Code Quality<br>   - Readability<br>   - Performance<br>   - Security<br>   - Best Practices<br>3. Classify issues<br>4. Suggest improvements<br>5. Assign score</pre><p>What we gained</p><ul><li>Reviews Consistent</li><li>Feedback Structured</li><li>Scoring made sense</li><li>More Trust in the output</li></ul><h3>How This Looks in a Real Workflow</h3><p>Once you start using skills, you naturally begin structuring things.</p><p>A simple setup might look like:</p><pre>/skills<br>  pr_review.md<br>  test_generator.md<br>  refactor.md</pre><p>1. Run PR Review skill<br>2. If issues → run Refactor skill<br>3. Generate tests<br>4. Summarize results</p><h4>One Skill = One Responsibility</h4><p>Bad: “Review + Refactor + Test + Document”</p><p>Good: Separate skills for each</p><h4>Treat Outputs Like APIs</h4><p>Don’t accept free text. Define structure in output.</p><h4>Encode Rules Explicitly</h4><p>Instead of hoping: <em>“Be concise” </em>Write: Max 5 issues,No generic statements, Suggestions must include fix</p><h4>Iterate Like Code</h4><p>Don’t rewrite prompts — <strong>version your skills,</strong>Refine over time.</p><h4>Use Skills Where Repetition Exists</h4><p>If you repeat a prompt twice → it’s a skill<br> If you repeat it five times → it’s definitely a skill</p><p>On Final note: Stop thinking:</p><blockquote><em>“What should I ask the AI?”</em></blockquote><p>And start thinking:</p><blockquote><em>“What capability am I missing?”</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86974cb9519b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Geminifying my days]]></title>
            <link>https://medium.com/@sakshiv_31/geminifying-my-days-6d51335e8349?source=rss-3ec4d03aa7d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d51335e8349</guid>
            <dc:creator><![CDATA[Sakshi Vashishth]]></dc:creator>
            <pubDate>Sun, 01 Feb 2026 07:16:01 GMT</pubDate>
            <atom:updated>2026-02-01T07:16:01.459Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How I Scale Context, Not Code</em></p><p>I didn’t adopt Gemini to write Java code faster. I adopted it because <strong>engineering is not a coding problem — it’s a context problem</strong>.</p><p>As systems grow, the hardest part isn’t implementing logic.<br>It’s ensuring that <strong>architectural intent, boundaries, and conventions remain consistent</strong> across teams, repositories, and time.</p><p>This article explains how I use <strong>Gemini with Java</strong> — not just as a code generator, but also as a <strong>context-scaling system</strong>.</p><h3>Large Java Systems</h3><p>Most mature Java systems don’t fail because of <strong>bad syntax, poor frameworks, or missing design patterns</strong>.</p><p>They fail because <strong>context becomes fragmented</strong>, <strong>architectural rules live only in people’s heads</strong>, <strong>teams refactor locally and break things globally</strong>, and <strong>intent erodes faster than the code itself</strong>.</p><p>At scale, the real bottleneck is <strong>shared understanding</strong> — and this is where Gemini fits naturally.</p><p>I use Gemini not as a code generator, but as a <strong>context-retention and alignment system</strong>.</p><p>It works best when there is <strong>significant existing code</strong>, when <strong>conventions matter more than novelty</strong>, when <strong>architectural drift is the primary risk</strong>, and when <strong>multiple teams touch the same system</strong>.</p><p>In practice, I rely on Gemini to <strong>reinforce architectural rules</strong>, <strong>maintain consistency</strong>, <strong>explain systems instead of redesigning them</strong>, and <strong>reduce cognitive load for humans</strong>.</p><blockquote><strong>Gemini behaves like a staff engineer who knows the entire codebase and remembers the rules</strong>.</blockquote><p>Gemini’s core philosophy is <strong>context first, output second</strong>. It performs best when it is <strong>immersed in system context</strong>, operating on the assumption: <em>“Tell me how your system works, and I’ll stay inside it.”</em></p><p>This is why Gemini excels when given <strong>repository-level intent</strong>, <strong>module-level boundaries</strong>, <strong>explicit non-goals</strong>, and <strong>design conventions</strong>.</p><p>It is not trying to be clever or novel; it is deliberately optimizing for <strong>consistency and alignment</strong> — and that distinction matters enormously in real-world Java systems, where preserving intent over time is far more valuable than producing impressive-looking output.</p><h3>Context-Driven Engineering with GEMINI.md</h3><p>I do not rely on prompts.</p><p>I rely on <strong>GEMINI.md files</strong> placed deliberately across the repo:</p><pre>repo-root/<br>├── GEMINI.md<br>├── order-service/<br>│   ├── GEMINI.md<br>│   └── src/<br>├── payment-service/<br>│   ├── GEMINI.md<br>│   └── src/</pre><h3>What goes into GEMINI.md</h3><ul><li>Architectural principles</li><li>Allowed dependencies</li><li>Explicit non-goals</li><li>Design constraints</li></ul><p>Example (root-level):</p><pre>Architectural principles:<br>- Modular monolith over premature microservices<br>- No shared databases across domains<br>- Composition over inheritance</pre><pre>Non-goals:<br>- Do not introduce new infrastructure<br>- Do not refactor unrelated modules</pre><p>This turns Gemini into a <strong>context-aware participant</strong>, not a guessing engine.</p><h3>Example of using Context</h3><pre>public void process(Context context) {<br>    stepOne.apply(context);<br>    stepTwo.apply(context);<br>}</pre><p><strong>Without context</strong>, most tools immediately jump to solutions:</p><ul><li>Introduce events</li><li>Add sagas</li><li>Make the workflow asynchronous</li></ul><p>These suggestions may be valid in isolation, but they assume architectural freedom that often doesn’t exist in mature Java systems.</p><p><strong>With </strong><strong>GEMINI.md in place, Gemini asks different questions first:</strong></p><ul><li>Is asynchronous execution explicitly allowed here?</li><li>Who owns the lifecycle of this context?</li><li>Are retries expected, and are the steps idempotent?</li><li>Is this flow on a latency-sensitive path?</li><li>Are transactional boundaries intentional or accidental?</li></ul><p>That shift matters. Instead of proposing change, Gemini <strong>validates intent</strong>. Instead of optimizing locally, it checks <strong>system-level constraints</strong>. The result is not more refactoring — it’s fewer unintended consequences.</p><p>The analysis changes <strong>because intent is visible</strong>.</p><p>That’s the difference.</p><h3>Gemini not your average Chatbot</h3><p>I use Gemini across the lifecycle:</p><ul><li>Architecture alignment checks</li><li>Refactor consistency reviews</li><li>Onboarding explanations</li><li>Documentation validation</li></ul><p>Gemini is not replacing reviewers.</p><p>It is:</p><blockquote>Reducing the cost of keeping systems coherent.</blockquote><h3>Gemini’s Multi-Agent Approach (How I Actually Use It)</h3><p>I don’t run Gemini as one “brain”.I use it as <strong>coordinated roles</strong>:</p><ul><li><strong>Architect Agent</strong> → checks boundary violations</li><li><strong>Reviewer Agent</strong> → flags inconsistency</li><li><strong>Explainer Agent</strong> → documents intent</li></ul><p>Each agent:</p><ul><li>Reads the same GEMINI.md</li><li>Has a narrow responsibility</li><li>Produces focused output</li></ul><p>This mirrors how senior engineers actually collaborate.</p><p>Gemini handles this naturally because <strong>context is shared, not re-prompted</strong>.</p><h3>Agent Setup</h3><p>I don’t rely on ad-hoc prompts to create agents. Each Gemini agent is <strong>defined by files</strong>, not conversations.</p><p>All agents share the same <strong>architectural context</strong>, but each has a <strong>different instruction scope</strong>.</p><h3>Shared Context (Single Source of Truth)</h3><pre>/repo-root<br>├── GEMINI.md            # System-wide architecture &amp; non-goals</pre><p>This file is read by <strong>all agents</strong>.<br>It defines:</p><ul><li>Architectural principles</li><li>Allowed dependencies</li><li>Explicit non-goals</li></ul><h3>Architect Agent → Boundary Enforcement</h3><pre>/agents<br>├── architect.agent.md</pre><p><strong>architect.agent.md</strong></p><pre>ROLE: Architect Agent</pre><pre>Responsibilities:<br>- Detect boundary violations<br>- Flag forbidden dependencies<br>- Identify architectural drift</pre><pre>Rules:<br>- Do NOT suggest refactors<br>- Do NOT propose new abstractions<br>- Only report violations</pre><h3>Reviewer Agent → Consistency &amp; Change Safety</h3><pre>/agents<br>├── reviewer.agent.md</pre><p><strong>reviewer.agent.md</strong></p><pre>ROLE: Reviewer Agent</pre><pre>Responsibilities:<br>- Flag inconsistencies<br>- Identify unclear intent<br>- Detect risky behavioral changes</pre><pre>Rules:<br>- Do NOT redesign components<br>- Do NOT introduce new patterns<br>- Focus on maintainability</pre><h3>Explainer agent→ Intent Documentation</h3><pre>/agents<br>├── explainer.agent.md</pre><p><strong>explainer.agent.md</strong></p><pre>ROLE: Explainer Agent</pre><pre>Responsibilities:<br>- Explain intent and assumptions<br>- Document invariants<br>- Describe why things exist</pre><pre>Rules:<br>- Do NOT suggest changes<br>- Do NOT critique design<br>- Only explain existing behavior</pre><p><em>Converts implicit knowledge into explicit documentation.</em></p><h3>How These Agents Run Together (Minimal View)</h3><pre>Context:<br>- GEMINI.md</pre><pre>Agents:<br>- architect.agent.md<br>- reviewer.agent.md<br>- explainer.agent.md</pre><pre>Input:<br>- Code / PR / Module</pre><pre>Output:<br>- Boundary violations<br>- Consistency risks<br>- Documented intent</pre><p>Each agent:</p><ul><li>Reads the same context</li><li>Produces <strong>non-overlapping output</strong></li><li>Never steps outside its role</li></ul><h3>Why This Works</h3><ul><li><strong>Single responsibility per agent</strong></li><li><strong>No role confusion</strong></li><li><strong>Predictable output</strong></li><li><strong>Reviewable results</strong></li><li><strong>Low AI entropy</strong></li></ul><blockquote><strong><em>Gemini agents are created through files, not prompts — context is shared, responsibility is isolated.</em></strong></blockquote><h3>Where Gems Fit in This Model (And How They Differ from Agents)</h3><p>The role-based agents described above focus on <strong>execution</strong>. Each agent is invoked to perform a specific task — checking boundaries, reviewing changes, or explaining intent — using shared architectural context and narrowly defined responsibilities.</p><p><strong>Gems operate at a different layer.</strong></p><p>A Gem is not an agent and does not execute a workflow. Instead, it defines <strong>how Gemini should think and behave before any task is performed</strong>. Where agents answer <em>what needs to be done</em>, Gems define <em>who the AI is supposed to be while doing it</em>.</p><p>In practice, a Gem encapsulates:</p><ul><li>A <strong>persistent role</strong></li><li>A <strong>behavioral posture</strong></li><li><strong>Constraints and boundaries</strong></li><li>A consistent reasoning style</li></ul><p>This distinction matters.</p><h3>Agents vs Gems (Conceptual Difference)</h3><ul><li><strong>Agents</strong> are <em>task-scoped</em>:<br>They are invoked to analyze a code change, validate boundaries, or document intent.</li><li><strong>Gems</strong> are <em>behavior-scoped</em>:<br>They shape how Gemini reasons across tasks, ensuring consistency in tone, rigor, and constraint adherence.</li></ul><p>An agent can be thought of as a <strong>function call</strong>.<br>A Gem is closer to a <strong>persona or operating mode</strong> that persists across interactions.</p><h3>How Gems Complement Role-Based Agents</h3><p>The three agents — Architect, Reviewer, and Explainer — define <em>responsibility separation</em>. Gems define <em>behavioral consistency</em>.</p><p>For example:</p><ul><li>An Architect Agent focuses on boundary violations.<br>An Architect Gem ensures Gemini consistently reasons with architectural restraint, avoids solutioneering, and prioritizes invariants.</li><li>A Reviewer Agent flags inconsistencies.<br>A Reviewer Gem ensures the reasoning stays conservative, change-aware, and long-term oriented.</li><li>An Explainer Agent documents intent.<br>An Explainer Gem ensures explanations emphasize assumptions, invariants, and non-obvious behavior rather than surface-level descriptions.</li></ul><p>In other words:</p><ul><li><strong>Agents isolate <em>what</em> is being done</strong></li><li><strong>Gems stabilize <em>how</em> it is reasoned about</strong></li></ul><p>Without Gems, agents can still function — but their reasoning style may drift between runs, especially in long or complex sessions.</p><p>Gems provide a stabilizing layer that reduces variability and prevents the model from oscillating between “helpful assistant,” “code generator,” and “architectural critic.”</p><p>This layered approach — <strong>shared context → role-based agents → behavior-defining Gems</strong> — mirrors how mature engineering teams operate: roles are explicit, but expectations about judgment and restraint are implicit and consistent.</p><blockquote><strong><em>Agents define responsibility; Gems define behavior — together they make Gemini predictable instead of merely capable.</em></strong></blockquote><h3>Creating Gems Using Files</h3><p>Gems are defined <strong>declaratively</strong>, using files that encode <strong>role, constraints, and reasoning posture</strong>.<br>They do not execute tasks themselves — they <strong>shape behavior before execution</strong>.</p><h3>Directory Layout (Conceptual)</h3><pre>/ai<br>├── context/<br>│   └── GEMINI.md              # Shared architectural context<br>├── gems/<br>│   ├── architect.gem.md<br>│   ├── reviewer.gem.md<br>│   └── explainer.gem.md<br>├── agents/<br>│   ├── architect.agent.md<br>│   ├── reviewer.agent.md<br>│   └── explainer.agent.md</pre><ul><li><strong>GEMINI.md</strong> → what the system is</li><li><strong>Gems</strong> → how Gemini should think</li><li><strong>Agents</strong> → what task is being executed</li></ul><h3>Example: Architect Gem</h3><pre>/gems/architect.gem.md</pre><pre>GEM TYPE: Architect</pre><pre>ROLE:<br>System architect focused on boundaries and invariants.</pre><pre>BEHAVIORAL CONSTRAINTS:<br>- Do not suggest refactors<br>- Do not introduce abstractions<br>- Do not optimize or redesign</pre><pre>REASONING POSTURE:<br>- Prefer validation over solutioning<br>- Surface violations explicitly<br>- Treat invariants as non-negotiable</pre><h3>Example: Reviewer Gem</h3><pre>/gems/reviewer.gem.md</pre><pre>GEM TYPE: Reviewer</pre><pre>ROLE:<br>Senior reviewer responsible for long-term maintainability.</pre><pre>BEHAVIORAL CONSTRAINTS:<br>- Do not redesign components<br>- Do not propose new patterns<br>- Avoid speculative improvements</pre><pre>REASONING POSTURE:<br>- Focus on consistency and intent<br>- Flag ambiguity and drift<br>- Assume the code must live for years</pre><h3>Example: Explainer Gem</h3><pre>/gems/explainer.gem.md</pre><pre>GEM TYPE: Explainer</pre><pre>ROLE:<br>System explainer responsible for intent preservation.</pre><pre>BEHAVIORAL CONSTRAINTS:<br>- Do not critique design<br>- Do not suggest changes<br>- Do not optimize language</pre><pre>REASONING POSTURE:<br>- Explain assumptions explicitly<br>- Surface invariants and non-obvious behavior<br>- Prefer clarity over completeness</pre><h3>How Gems Are Applied</h3><pre>Input: Code / PR / Module</pre><pre>Load:<br>- GEMINI.md<br>- &lt;role&gt;.gem.md<br>- &lt;role&gt;.agent.md</pre><pre>Execute:<br>- Agent performs task<br>- Gem constrains behavior<br>- Context anchors intent</pre><h3>Why File-Based Gems Work</h3><ul><li><strong>Explicit and reviewable</strong></li><li><strong>Version-controlled</strong> like code</li><li><strong>Stable across runs</strong></li><li><strong>Decoupled from tasks</strong></li><li><strong>Low entropy, high predictability</strong></li></ul><p>They behave like <strong>engineering policy</strong>, not prompts.</p><blockquote><strong><em>Gems are created through files, not conversations — behavior is defined once and reused safely.</em></strong></blockquote><p>Now the prompt to gemini CLI would be something like below, it translates to <em>Analyze the input </em><strong><em>as an architect</em></strong><em>, </em><strong><em>within constraints</em></strong><em>, </em><strong><em>inside system context</em></strong>:</p><pre>gemini analyze \<br>  --context ai/context/GEMINI.md \<br>  --gem ai/gems/architect.gem.md \<br>  --agent ai/agents/architect.agent.md \<br>  --input src/module/</pre><h3>Example Input</h3><pre>public void process(Context context) {<br>    stepOne.apply(context);<br>    stepTwo.apply(context);<br>}</pre><h3>Output: Architect Agent</h3><pre>ARCHITECTURAL REVIEW RESULT<br>Boundary Observations:<br>- Execution order between stepOne and stepTwo is implicit.<br>- No explicit contract defines whether stepTwo depends on side effects from stepOne.<br>- Failure behavior is not specified if stepOne partially succeeds.<br>- Idempotency guarantees are not declared for repeated execution.</pre><pre>Potential Boundary Risks:<br>- Introducing retries or parallel execution would violate implicit assumptions.<br>- Refactoring step execution order could break undocumented invariants.</pre><pre>Notes:<br>- No direct boundary violation detected.<br>- Architectural intent is implicit and should be treated as fragile.</pre><h3>Maintaining Boundaries with Gemini</h3><p>Even with Gemini , there are lines I don’t cross:</p><p>❌ <strong>Concurrency correctness</strong><br>Subtle race conditions and memory-visibility issues depend on execution timing and production behavior that static reasoning can’t reliably capture.</p><p>❌ <strong>Failure-mode ownership</strong><br>Deciding how systems fail, degrade, or recover requires deep domain knowledge and accountability for real-world consequences.</p><p>❌ <strong>Transaction semantics</strong><br>Consistency models and transactional boundaries are business decisions disguised as technical ones and must remain explicitly human-owned.</p><p>❌ <strong>Security design</strong><br> Security is adversarial by nature and demands threat modeling, compliance awareness, and risk tolerance that AI cannot own.</p><p>❌ <strong>Incident command decisions</strong><br> Production incidents involve incomplete data, time pressure, and human coordination — areas where confident AI suggestions can be dangerous.</p><p>Gemini supports <strong>alignment</strong>, not <strong>accountability</strong>.</p><p>That distinction keeps systems safe.</p><h3>Final Takeaway</h3><blockquote><strong><em>Gemini scales context, Engineers scale judgment.<br>Together, systems stay coherent.</em></strong></blockquote><p>Gemini — especially with <strong>Gemini 3, multi-agent workflows, and the CLI</strong> — is not about speed. It’s about <strong>keeping large Java systems aligned as they evolve.</strong>That’s the real leverage.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d51335e8349" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gen AI, Me and Java: Survival of the fittest]]></title>
            <link>https://medium.com/@sakshiv_31/gen-ai-me-and-java-survival-of-the-fittest-31b8d0286efe?source=rss-3ec4d03aa7d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/31b8d0286efe</guid>
            <dc:creator><![CDATA[Sakshi Vashishth]]></dc:creator>
            <pubDate>Sun, 01 Feb 2026 03:06:01 GMT</pubDate>
            <atom:updated>2026-02-01T03:06:01.383Z</atom:updated>
            <content:encoded><![CDATA[<p>As a Java Dev who has spent years in this industry, I have seen multiple waves of change.</p><p>From the early days of core Java, to frameworks taking over, to monoliths turning into microservices, to cloud becoming the default — the ecosystem has constantly evolved. And yet, <strong>JAVA has remained at the heart of it all. </strong>Every new advancement, every architectural shift circles back to strong Java fundamentals.</p><p>Then came <strong><em>Generative AI.</em></strong></p><p>The first time I seriously interacted with an AI model, I was thrilled. The capabilities were far beyond my expectations — not just autocomplete or suggestions , but actual reasoning, explanations, and code generation. It was exciting. Almost exhilarating.</p><p>And then, inevitably , came the fear.</p><blockquote>“Is this where the story ends for us?”<br>“Will AI replace developers?”</blockquote><p>These questions are not irrational. For the first time the change to me did not feel incremental — it felt <strong>existential.</strong></p><h3><strong>The Fear is Real — But Incomplete</strong></h3><p>Yes, AI can write code.<br>Yes, it can refactor, test and explain logic.<br>Yes, it can do in seconds what used to take hours.</p><p>But here’s the part that often gets missed:</p><blockquote><strong>AI doesn’t replace developers.<br>It replaces developers who refuse to evolve.</strong></blockquote><p>Every major shift in our industry came with same fear: Frameworks, Low-code tools, Cloud Platforms. Each time some roles disappeared — but <strong>strong engineers adapted and grew.</strong></p><p>Gen AI is no different.</p><h3>Coding is NOT the Same as Engineering</h3><p>One hard truth GenAI has exposed is this:</p><ol><li>Writing Code is becoming easier.</li><li>Thinking like an engineer is becoming more valuable.</li></ol><p>AI is great at patterns.It still struggles with:</p><ul><li>business-contex</li><li>trade-offs</li><li>long-term system ownership</li><li>ambiguous requirements</li><li>production responsibility</li></ul><p>This is where experienced developers still matter — <strong>a lot.</strong></p><h3><strong>The Series</strong></h3><p>I am writing this series because I do not belive in two things: Blind Fear and Blind Hype.</p><p>What we need more than ever today is <strong>clarity.</strong></p><p>This series is about:</p><ul><li>Understanding what GenAI is actually good at</li><li>Knowing which tool to use and when.</li><li>Learning how to work with AI, not against it</li><li>Staying relevant without losing engineering depth.</li></ul><p>This is not an AI tutorial series. This is a <strong>Java developer’s survival and growth guide in Gen AI era.</strong></p><h3><strong>Stay Relevant Always</strong></h3><p>A few principles I strongly believe in:</p><ul><li><strong><em>“After all this time, Always”</em></strong>. <strong>Core Java will always matter</strong><br>JVM, concurrency ,memory, performance — AI does not replace fundamentals.</li><li><em>“</em><strong><em>Just keep swimming</em></strong><em>” </em>. <strong>System thinking beat syntax<br></strong>Architecture, scalability, reliability, cost — these are human decisions.</li><li>“<strong>Main apni favorite hoon (I am my favorite)</strong>”. <strong>AI is just a tool not a replacement<br></strong>Use it to accelerate, not abdicate responsibility</li><li><strong>“With great power comes great responsibility.”. Adaption is non-negotiable<br></strong>The developers who learn to leverage AI will outpace those who resist it.</li></ul><h3>Stay Tuned For</h3><p>In this series:</p><ul><li>Geminifying my days.</li><li>Clauded atmosphere.</li></ul><p>And more topics as we move ahead.These will reflect my experiences in my AI journey.</p><h3>Final Thought</h3><p>This isn’t the end but just the beginning of something new.</p><p>Welcome to my first write-up. Let’s figure this new era together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31b8d0286efe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>