<?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 Nimit Kanani on Medium]]></title>
        <description><![CDATA[Stories by Nimit Kanani on Medium]]></description>
        <link>https://medium.com/@nimitmk7?source=rss-171152f24119------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_ou7CfVJi7lKnVPkc58Scw.jpeg</url>
            <title>Stories by Nimit Kanani on Medium</title>
            <link>https://medium.com/@nimitmk7?source=rss-171152f24119------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 10:54:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nimitmk7/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[Building Omnicode: An AI-powered coding assistant]]></title>
            <link>https://medium.com/@nimitmk7/building-omnicode-an-ai-powered-coding-assistant-479cdc625afa?source=rss-171152f24119------2</link>
            <guid isPermaLink="false">https://medium.com/p/479cdc625afa</guid>
            <category><![CDATA[sagemaker]]></category>
            <category><![CDATA[coding-assistant]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[vscode-extension]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Nimit Kanani]]></dc:creator>
            <pubDate>Fri, 07 Mar 2025 18:59:02 GMT</pubDate>
            <atom:updated>2025-03-07T18:59:02.129Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*mvQmIAYl-g_Bi9wT.jpg" /><figcaption>Credit: Google Images</figcaption></figure><p>Coding assistants like Github Copilot and Codeium are being widely used in IDEs today by developers to speed up the development process, improve code quality, debug faster, etc., thus improving the overall productivity of the developer.</p><p>They support features like code autocompletion, code refactoring, code documentation generation, suggestions for fixing errors, and an interactive chat feature. They work with multiple languages and integrate seamlessly with IDEs like VSCode, IntelliJ IDEA, etc.</p><p>I was always fascinated by them, so my team decided to build a small and cool prototype.</p><p><em>In this article, I’ll walk you through how my team built a prototype of an AI-powered coding assistant.</em></p><p><strong>Team Members</strong>: <a href="https://www.linkedin.com/in/nimit-kanani/">Nimit Kanani</a>, <a href="https://www.linkedin.com/in/zayaanra/">Zayaan Rahman</a>, <a href="https://www.linkedin.com/in/dc1998/">Deepak Chaurasiya</a>, <a href="https://www.linkedin.com/in/samkitshah18/">Samkit Shah</a></p><h3>Features</h3><p>Omnicode supports 4 features:</p><ol><li>Suggest Code Completions</li><li>Refactor Existing Code</li><li>Generate Documentation</li><li>Personal Usage Analytics</li></ol><p>We chose these 4 features because they are the most frequently used features of coding assistants.</p><h3>Architecture</h3><p>Omnicode is hosted on the Amazon Web Services(AWS) platform, and it heavily relies on connecting different AWS services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BFjcGa74BSLgs1rb9oJ6Ew.png" /><figcaption>Omnicode architecture overview</figcaption></figure><p>The details of the services and their use in Omnicode:</p><ul><li><strong>Cognito</strong>: User authentication</li><li><strong>S3</strong>: Hosting the static website for the analytics dashboard.</li><li><strong>API Gateway</strong>: Acts as the entry point for API requests and routes the API requests to the appropriate Lambda function.</li><li><strong>Lambda</strong>: Execute the core logic for code completion, documentation generation, code refactoring, and metrics collection.</li><li><strong>SageMaker</strong>: Hosting the inference endpoint for our AI model(Meta CodeLlama 70B), which powers the AI-driven features.</li><li><strong>EventBridge</strong>: Schedule the transfer of metrics data from SQS to DynamoDB via the Metrics Lambda function.</li><li><strong>DynamoDB</strong>: Storing usage metrics, which are used for generating usage dashboard statistics.</li><li><strong>SQS</strong>: Queues metrics events asynchronously to reduce write load on DynamoDB.</li></ul><h3>Implementation Details</h3><h4>Authentication</h4><p>Users register using an email and password, which are stored securely in AWS Cognito. Tokens generated by Cognito enable secure access to Omnicode’s features.</p><h4>Request fulfillment</h4><p>The Omnicode API is hosted on the AWS API gateway. There are 4 API routes for the 4 features(code completion, code refactor, and code documentation generation). All the routes are connected to their own Lambda function. This helps all the features scale independently.</p><p>The Lambdas for the code completion, refactoring, or documentation communicate with AWS Sagemaker with their respective prompts and tuned generation parameters.</p><h4>AI Model</h4><p>The AI model behind Omnicode is <strong>Meta CodeLlama 70B</strong>, a state-of-the-art LLM for coding. Code Llama is a state-of-the-art LLM capable of generating code, and natural language about code, from both code and natural language prompts, which is why it was the best choice for our use-case.</p><h4>Metrics Collection and Storage</h4><p>After completing a request, the Lambda function logs its details in SQS. Amazon EventBridge then schedules a batch-write to DynamoDB every hour. This system helps with the asynchronous processing of metrics.</p><h4>Analytics Dashboard</h4><p>A lightweight, static website hosted on <strong>AWS S3</strong> displays user metrics, including:</p><ol><li>Total bytes processed by Omnicode</li><li>Language distribution (pie chart)</li><li>Feature usage frequency (bar chart)</li></ol><p>For fetching the data to be displayed on the dashboard, the extension calls the metrics collection API, which pulls the usage data from DynamoDB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YcuGKxfYUbDLMkJz" /><figcaption>Omnicode usage dashboard</figcaption></figure><h4>VSCode Extension</h4><p>Registration and logging in are all implemented through a right-click menu. For both, users must only supply a valid email and a valid password.</p><p>After logging in, Cognito returns several tokens (ID token, access token, and refresh token). These tokens are safely stored in VSCode’s default global storage.</p><p>Code completion works by only activating after 3 seconds of user inactivity. When the user does not type for 3 seconds, a request is made to API Gateway, which in turn invokes a Lambda function that fetches LLM results.</p><p>Documentation generation is straightforward. It works by allowing the user to select some amount of text and opening up the right-click menu. The menu will have an option to generate a docstring for the selected text. Similarly to code completion, a request is made, and the results are immediately inserted before the selected text.</p><p>Code refactoring works the same way as documentation generation. The user selects some text and requests a refactor through the<br>right-click menu. The selected text will then be replaced with the new refactored code.</p><p>The personalized dashboard is also accessible through the right-click menu. It can only be accessed if the user is authenticated with Cognito.</p><h3>Performance and Possible Improvements</h3><p>The coding features’ API requests are quite high latency, and the major bottleneck is actually at the SageMaker endpoint. Some potential problems and their potential improvements are :</p><ol><li><strong>Model size</strong>: We chose the 70 B model because its responses were the most accurate, but a bigger model like that results in a relatively higher inference latency. The latency goes up linearly with the number of tokens passed as context. Techniques like pruning, quantization, or knowledge distillation can significantly reduce model size and improve response times.</li><li><strong>Instance Type</strong>: We chose the bare minimum instance type of node in Sagemaker, but by choosing a higher and more suitable instance type, the inference latency can be improved.</li></ol><h3>Video demonstration</h3><p>Watch our video demonstration, where Zayaan Rahman walks through Omnicode’s features in action.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FM6MfvreM6EU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DM6MfvreM6EU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FM6MfvreM6EU%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e3d18f2c0699cb4c1cc0a5fdcd952790/href">https://medium.com/media/e3d18f2c0699cb4c1cc0a5fdcd952790/href</a></iframe><p>Thank you for reading till the end. If you have any questions about this prototype or want to collaborate on future projects, reach out to me at <a href="http://nimitmk7@gmail.com/">nimitmk7@gmail.com</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=479cdc625afa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Flaw to Fuel]]></title>
            <link>https://medium.com/@nimitmk7/from-flaw-to-fuel-c1157cca21ee?source=rss-171152f24119------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1157cca21ee</guid>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[wisdom]]></category>
            <category><![CDATA[growth]]></category>
            <category><![CDATA[mindset-shift]]></category>
            <category><![CDATA[personal-development]]></category>
            <dc:creator><![CDATA[Nimit Kanani]]></dc:creator>
            <pubDate>Thu, 18 Jul 2024 00:53:46 GMT</pubDate>
            <atom:updated>2026-10-06T05:10:06.316Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Flaw to Fuel: How Your Weakness Can Be a Superpower</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*qi8PsP17ATUkpzJ1iOzeCw.jpeg" /><figcaption>Superman!! by <a href="https://www.alexrossart.com/">Alex Ross</a>.</figcaption></figure><blockquote><strong>“Your weakness can be your biggest strength.” <br> — </strong>Patrick Mouratoglou</blockquote><p>I heard this line being said by the legendary Tennis Coach, Patrick Mouratoglou in the series ‘The Playbook’ on Netflix. It got me thinking hard. At first glance, it didn’t make sense because the words strength and weakness are antonyms.</p><p>How can something be your strength as well as your weakness? But pondering over it for some days, I came across 3 anecdotes that helped me understand the meaning behind this statement, and get a direction of how this can be implemented in our lives.</p><h3><strong>A tale of diabetes</strong></h3><p>My younger brother is a Type 1 Diabetic, so his biggest physical weakness is that his body can’t produce insulin hormones and regulate his sugar levels on its own. So he injects insulin three times a day in his body. But how can this weakness be converted into his strength?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*9Jjc5r7MvvvtUK7QgYdxhA.jpeg" /><figcaption>A diabetes patient injecting Insulin. Image Credits: <a href="https://diabetesvoice.org/">https://diabetesvoice.org/</a></figcaption></figure><p>Due to this chronic disorder, he has to refrain from eating food that has any trace of refined sugar. This means letting go of most of the sweet treats and desserts we commonly savor. Now this is a lost privilege/luxury, but refined sugar is one of the biggest poisons and addictions in today’s age. So on the flip side, his body is completely avoiding all the potential damage caused to our bodies by refined sugar.</p><p>Apart from that, he has to keep his diet very healthy, he has to eat his meals on time and in reasonable portions. He has to sleep on time, wake up on time, and exercise regularly. Following all this helps him regulate his blood sugar levels. Isn’t this the lifestyle most of us want to follow and health experts prescribe as well? The benefits of such a lifestyle are immense, from boosting immunity to increasing longevity. Despite being a type 1 diabetic, he is a great Badminton player, and long-distance runner and has completed treks in the Himalayas.</p><p>So that is how he converted his weakness into a strength, from a disorder to a lifestyle whose benefits he will be reaping for life.</p><h3><strong>A personal discovery</strong></h3><p>Throughout my academic and professional career, I naturally realized I lagged in understanding some topics, whereas my peers were very comfortable in dealing with those concepts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*_DR8v9tW6EfXu0GXJdWu1w.jpeg" /></figure><p>Over time, I realized that 3 of my biggest hidden abilities were:</p><p>The ability to ask really good and specific questions, the ability to admit I didn’t understand something without hesitation or pride, and the ability to not be satisfied till I understand a concept to the core.</p><p>These abilities always led to me spending extra hours and effort, both in understanding concepts as well as practicing them.</p><p>But on the upside, over time I ended up understanding such concepts in more depth than other people, while also exploring the nuances, tradeoffs, and practical considerations of whatever I learned.</p><p>So that way, I converted my weakness of not being able to understand some concepts easily, to change my strategy and in turn learn those concepts in more nuance and detail.</p><h3><strong>The one-armed Judo Champion</strong></h3><p>This is a tale about a boy who was born without a right arm. On his ninth birthday, he asked his parents if he could join a Judo club. They were delighted by the idea and the boy quickly became a regular at the local Judo club.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*MivVkFkS41JTdWuNtY1zwQ.jpeg" /></figure><p>The boy dreamt of competing in a tournament and asked his master if this was possible. The master said he could but only if he listened carefully and trusted him.</p><p>The master taught the boy one move and one move only. The boy practiced it diligently but after a while, he was worried that the other boys were learning a range of moves and he only had one. He would repeatedly urge the master to teach him other moves but the master always said NO. The master just urged the boy to keep practicing that one move and emphasized that he needed only that move. So the boy kept practicing the move and mastered it after a few months.</p><p>Several months later, the master took the boy to a tournament. The boy won the first round of the tournament and then the next round and the one after that. Eventually, he won the entire tournament. And surprisingly it did not prove to be very difficult for him.</p><p>The boy was baffled. How did he do it?</p><p>Curious, he asked the master how a boy with only one arm and only one move could win a karate tournament. The master smiled and told the boy that the attacking move he had mastered was one of the most difficult ones in Judo. There was only one possible defense against that move: grabbing the attacker by the right arm.</p><h3>Conclusion</h3><p>So, the next time you find yourself frustrated by a personal limitation, remember: that it might just be the seed of your next superpower.</p><p>Embrace it, work with it, and let it fuel your journey to excellence. After all, in the grand tapestry of life, it’s often our flaws that make us truly exceptional.</p><p>If you loved reading this piece, do hit the follow button and shower some claps.</p><p>For any suggestions/feedback, write me at my email: nimitmk7@gmail.com.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1157cca21ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ocean — A shadow of the universe]]></title>
            <link>https://medium.com/@nimitmk7/ocean-a-shadow-of-the-universe-7cfa9d4b4f7a?source=rss-171152f24119------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cfa9d4b4f7a</guid>
            <category><![CDATA[universe]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[oceans]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[time]]></category>
            <dc:creator><![CDATA[Nimit Kanani]]></dc:creator>
            <pubDate>Sat, 08 Jan 2022 05:16:54 GMT</pubDate>
            <atom:updated>2022-01-08T05:16:54.421Z</atom:updated>
            <content:encoded><![CDATA[<h3>Ocean — A shadow of the universe</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Rk5VkBZxv4Nnm7Jh" /></figure><p>When I see the ocean standing from a beach, the first aspect of the ocean that startles me is its vastness. For me, this vastness is like a symbol of the infiniteness of the universe. The horizon is our limitation in perceiving and understanding this infinity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6yEnZTNx3XvN42DT.jpg" /></figure><p>The waves educate us about the cyclical and perishable nature of things in life and the universe. Waves come and go in a repetitive fashion. It is like how circumstances of both kinds keep coming and going.</p><p>There are times of high tide when there is a lot happening. Times are uncertain and volatile, we have difficult situations as well as celebrations. There are also times of low tide when there is stability and peace. Life looks sorted. You feel comfortable.</p><p>But both of them are necessary for each other’s existence and value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*suEpPrb3hX0Baifj.jpg" /></figure><p>Come what may, the ocean keeps rumbling. The universe moves on, time does not stop for anyone. It is a reminder for us to keep moving and not get stuck in the past. Live life in the present moment.</p><p>If you loved reading this piece, do hit the follow button and shower some claps. For any suggestions/feedback, write me at my email: nimitmk7@gmail.com.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cfa9d4b4f7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Maker-checker system with audit trail]]></title>
            <link>https://medium.com/hevo-data-engineering/building-a-maker-checker-system-with-audit-trail-8dd3ea9bf29d?source=rss-171152f24119------2</link>
            <guid isPermaLink="false">https://medium.com/p/8dd3ea9bf29d</guid>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[authorization]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[maker-checker]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Nimit Kanani]]></dc:creator>
            <pubDate>Fri, 08 Oct 2021 12:32:30 GMT</pubDate>
            <atom:updated>2021-10-08T12:32:30.994Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CKs_V2glZi5UtgjIa6PxlA.png" /></figure><p>Hevo is scaling rapidly, we now have 300+ customers across 40+ countries. Therefore, it has become difficult to keep up with the customers’ demands. Hevo’s internal teams have to increasingly execute a lot of critical customer-related operations and monitor the services provided by Hevo every week.</p><p>This gave rise to the Control Tower team. The purpose was to build tools to help the internal teams in APM(Application Performance Management) as well as executing customer-related operations. Alfred was built for executing customer-related operations like billing, account management, pipeline management, etc. across all deployments(environments) for all customer teams.</p><p>Hevo also has to ensure that these operations are executed accurately and rightfully. To prevent errors as well as incorrect use of these operations, we came up with an idea to build a maker-checker system in Alfred.</p><p><a href="https://en.wikipedia.org/wiki/Maker-checker">Maker-checker</a> is an authorization workflow that ensures that at least 2 people are involved in a transaction. A Maker is responsible for making the request and a checker is responsible for approving the request. The segregation of duties in maker-checker helps keep a strict check over the use of software and data.</p><p>For keeping track of all the operations performed using maker-checker, we decided to have an audit trail of them in the application DB. An <a href="https://en.wikipedia.org/wiki/Audit_trail">audit trail</a> is a series of records or events about user activities on an application. Therefore, all maker-checker requests made on Alfred are logged as well as persisted in the DB.</p><p><strong>Use case example</strong></p><p>An employee wants to execute a billing waiver operation for a customer.</p><p>S/he will undertake the following steps:</p><ol><li>S/he makes the request for the action with the relevant parameters and their values.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jGlRC1fRLp4Mlblm" /></figure><p>2. S/he selects the checker for the request and specifies the purpose behind making the request.</p><p>3. The checker receives an email having details about the action and the configured parameters. The checker can either decline or accept the request via buttons available in the mail or in the past requests tab in the Alfred app.</p><p>4. A notification mail is sent to the maker regarding the outcome. i.e whether the request was accepted and executed successfully or the request was declined.</p><p><strong>Detailed Flow:</strong></p><p>Whenever the maker makes a request, the request details are stored in a table in the DB. The request status is marked as <strong>PENDING</strong>. An email with these details is sent to the checker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*57YQJGHfOwHQUKuY" /></figure><p>For the checker to accept/decline the request, he/she is required to login into the app or he/she needs to have the cookie of his/her existing login in the browser. This ensures the accept/decline action can’t be undertaken by anyone except the checker.</p><p>If the checker accepts the request, it gets executed. If the execution is successful, it is marked as <strong>FINISHED</strong>. If the execution fails, it is marked as <strong>FAILED</strong>. The success/error message, status, and response data(if any) are also stored.</p><p>If the checker declines the request, the request is marked as <strong>DECLINED</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rQelqinJDZbJ64NT" /></figure><p>The accept() flow uses the <strong>Factory design pattern</strong> for determining the appropriate execution flow of the request based on the type of the request. Using the factory pattern enables us to have a single resource for handling all types of requests.</p><p><strong>Other features:</strong></p><ol><li>Past Requests Tab</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DCB88cE0re4ry_Mp" /></figure><p>All users of the Alfred app can view all the past maker-checker requests with their details in this tab. These details are retrieved from the database and can be filtered on the basis of environment, team(customer), maker, checker, request types, and status. They are always ordered by the time of creation.</p><p>2. Maker is allowed to cancel the request before the checker takes a decision or notify the checker if he does not respond on time.</p><p>3. In case the request is declined or fails after being accepted, the maker can make a duplicate request.</p><p><strong>Next Steps</strong></p><p>In order to ensure faster response from the checker, we can have an option for sending a slack notification as well when the maker makes a request along with an option of automatically resending the request notification after a fixed time duration in the case where the checker has not responded.</p><p>Alfred’s motivation has always been to reduce the turnaround time for any tickets or requests raised by our customers. With this in mind, we plan to build multiple dashboards that can help visualize important information depending on the particular problem. By categorizing this information at a generic problem level we hope to increase the efficiency of our support team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8dd3ea9bf29d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hevo-data-engineering/building-a-maker-checker-system-with-audit-trail-8dd3ea9bf29d">Building a Maker-checker system with audit trail</a> was originally published in <a href="https://medium.com/hevo-data-engineering">Hevo Data Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>