<?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 RKShan on Medium]]></title>
        <description><![CDATA[Stories by RKShan on Medium]]></description>
        <link>https://medium.com/@rikesh2191?source=rss-1770055b85da------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6RgrC06lq2lu6MTdDK611w.jpeg</url>
            <title>Stories by RKShan on Medium</title>
            <link>https://medium.com/@rikesh2191?source=rss-1770055b85da------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 15:09:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rikesh2191/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[Your AI Passed the Tests. Would You Approve It?]]></title>
            <link>https://medium.com/@rikesh2191/your-ai-passed-the-tests-would-you-approve-it-a0a55d2ee7e1?source=rss-1770055b85da------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0a55d2ee7e1</guid>
            <dc:creator><![CDATA[RKShan]]></dc:creator>
            <pubDate>Sun, 22 Nov 2026 10:38:08 GMT</pubDate>
            <atom:updated>2026-11-22T10:38:08.931Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine an AI assistant helping someone investigate a manufacturing deviation. It finds a procedure, explains the relevant steps, and includes a citation. The evaluator checks the response against the document and gives it a pass.</p><p>Then someone notices that the procedure was withdrawn last month.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lY1fx4Ul4jECMnPdrnpYgA.png" /></figure><p>The assistant represented the document accurately. The evaluation worked as configured. Yet someone could still follow guidance that no longer applies.</p><p>That’s the kind of gap worth paying attention to when we discuss AI in GxP environments.</p><p><strong>Each link matters. A requirement without a clear rationale may generate unnecessary testing. A recognised risk without a testable control may create false confidence. A successful test without retained evidence may be difficult to defend later.</strong></p><p>Even when all those links are present, we still need to ask whether they make sense.</p><p>In this example, checking a citation supports a narrow conclusion. It tells us that the document backs up the answer. It doesn’t establish that the document is approved, current, or appropriate for the task.</p><p>The trouble begins when that narrow result becomes the basis for a much broader decision to let people rely on the assistant.</p><p>This is where AI governance becomes practical. Someone must decide what the evidence supports, what remains uncertain, and whether the system can be used within those limits.</p><p>The first step is being clear about what we’re approving. An assistant drafting a summary for an expert to review has different responsibilities from one updating a regulated record. The tests and approval conditions should reflect that difference.</p><p>A good tool should keep those boundaries visible. Anyone reviewing a result should be able to see the permitted use, the actions the system can take, and where a person must intervene.</p><p>It should also help us look more closely at test coverage.</p><p>A test might be linked to the requirement to use current procedures. But if it only asks the assistant to summarise an ordinary document, what have we learned about how it handles a withdrawn one?</p><p>The tool should capture why the test is relevant, what would count as failure, and who reviewed that reasoning. Attaching a test to a requirement shouldn’t, by itself, settle the question of coverage.</p><p>One question helps make this review more concrete.</p><p><em>What could still go wrong if this test passes?</em></p><p>A citation could be accurate while the source is obsolete. An approval screen could work while another route allows the same action without approval. A calculation could return the expected number in the wrong units.</p><p>Recording these possibilities gives the next reviewer something useful to examine. They can see which gaps were addressed, which were accepted, and why.</p><p>The evaluator needs scrutiny too. If an AI model judges the result, we should understand what it was asked to check and how well it performs against expert-reviewed examples. If a different evaluator takes its place, that change should be visible before anyone relies on its verdict.</p><p>Reports should be equally clear about incomplete evidence. Suppose one part of a conversation passes and another cannot be assessed because the record is unreadable. A high score from the available results doesn’t answer the missing question.</p><p>The tool should show that distinction plainly. For a critical requirement, unresolved evidence should prevent automatic approval. Any decision to proceed should identify the person responsible, the reason, and the conditions attached.</p><p>Those conditions matter after approval as well.</p><p>Perhaps the assistant’s retrieval control depends on a repository supplying reliable document approval status. If that information disappears, the original justification may no longer hold, even though the model and prompt haven’t changed.</p><p>A useful tool should flag the affected tests and decisions. The people responsible can then decide whether to reassess, restrict use, or move the work back to a human.</p><p>Risk, testing, quality review, and change control may belong to different teams. The reasoning needs to survive those handoffs.</p><p>For the person reviewing our manufacturing assistant, the record should make one thing easy to establish. Did we demonstrate that it handles withdrawn procedures safely, or did we only demonstrate that it can cite them accurately?</p><p>That difference should be clear before someone signs the approval.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0a55d2ee7e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making Codex Observable with OpenTelemetry and Langfuse]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@rikesh2191/making-codex-observable-with-opentelemetry-and-langfuse-07928f400be7?source=rss-1770055b85da------2"><img src="https://cdn-images-1.medium.com/max/1220/1*JQc_Z97JqJtdF-pToVKyqQ.png" width="1220"></a></p><p class="medium-feed-snippet">A local experiment with Codex telemetry, a self-hosted backend, and what the execution record does and doesn&#x2019;t establish.</p><p class="medium-feed-link"><a href="https://medium.com/@rikesh2191/making-codex-observable-with-opentelemetry-and-langfuse-07928f400be7?source=rss-1770055b85da------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@rikesh2191/making-codex-observable-with-opentelemetry-and-langfuse-07928f400be7?source=rss-1770055b85da------2</link>
            <guid isPermaLink="false">https://medium.com/p/07928f400be7</guid>
            <dc:creator><![CDATA[RKShan]]></dc:creator>
            <pubDate>Sat, 03 Oct 2026 12:35:06 GMT</pubDate>
            <atom:updated>2026-10-03T12:55:58.543Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Jev Got Me Thinking About Agent Governance. Here’s What the Prototype Actually Tested.]]></title>
            <link>https://medium.com/@rikesh2191/jev-got-me-thinking-about-agent-governance-heres-what-the-prototype-actually-tested-04efd6809562?source=rss-1770055b85da------2</link>
            <guid isPermaLink="false">https://medium.com/p/04efd6809562</guid>
            <dc:creator><![CDATA[RKShan]]></dc:creator>
            <pubDate>Sun, 20 Sep 2026 10:19:57 GMT</pubDate>
            <atom:updated>2026-09-20T11:27:44.188Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A local experiment with Deep Agents, simulated assessments and approval checks and what its results do and don’t establish.</em></p><p>Jev caught my attention because it puts structured model judgments directly into software workflows. That raised a question for me: when an AI assessment influences an action, how do we verify that the application’s controls actually ran?</p><p>An agent saying it followed the rules is one kind of evidence. An execution record showing which checks ran, what was approved and what happened is another.</p><p>I explored that distinction through a small local prototype, using an AI coding assistant to help implement it and run automated checks.</p><p>The boundary is important: <strong>no live Jev calls were made.</strong> The prototype used synthetic documents, a scripted task model and a deterministic stand-in for Jev. It tested selected enforcement mechanisms around an assessor. It did not test Jev’s intelligence or establish that Jev was necessary.</p><p><a href="https://docs.typesafe.ai/introduction">TypeSafe describes Jev</a> as a model that evaluates supplied state against typed questions and returns structured answers. Its recommendation to ask narrow questions and combine answers in code suggested a possible advisory role: assess whether a proposed action fits the task, while application code retains authority over execution.</p><p>That is a design possibility, not a finding from this experiment. A different assessor or predetermined test values could exercise the same controls.</p><p>The prototype used a real Deep Agents graph, but its task model followed scripted tool calls. The document-review draft was also a fixed, fixture-specific baseline. It did not independently interpret unfamiliar documents or demonstrate an LLM’s review ability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XKTwMhdX1ZDcaxROgj8JmA.png" /></figure><p>The workflow had two permitted application tools: reading registered synthetic documents and submitting a draft to a local simulated queue. There was no production connection or email integration.</p><p>The mock assessor was deliberately simple. Its default behavior used text markers to produce predefined judgments. Tests could substitute other answers, malformed responses or exceptions. This made it possible to ask: what does the surrounding application do when assessment succeeds, raises a concern or fails?</p><p>Those fabricated probabilities were test inputs. They were not Jev predictions.</p><p>Application code validated requests and applied fixed restrictions. Eligible actions could then receive an assessment. The gate decided whether execution could proceed, required approval or was prohibited.</p><p>Because assessment thresholds had not been validated, the development configuration held even ordinary reads for review. A favorable mock answer did not automatically permit them.</p><p>The automated demo used simulated reviewer decisions. It exercised approval records bound to the proposed action and draft; it did not demonstrate that a person had read or accepted the content. A separate interactive mode allowed the local user to approve or reject requests.</p><p>An AGENTS.md file described the intended behavior. Its role was specification. The restrictions still needed to exist in executable code.</p><p>The most useful observation concerned the tool inventory.</p><p>With deepagents==0.7.15 and this configuration, eight built-in tools excluded from the model-facing list remained registered in the compiled tool dispatcher—the component that handles tool calls.</p><p>The prototype therefore included middleware that rejected those calls. Tests invoked the dispatcher directly and confirmed denial through both synchronous and asynchronous paths.</p><p>That finding is specific to the tested configuration. It does not establish a general Deep Agents vulnerability or demonstrate successful unauthorized access before the middleware was added. It does show why checking only the tools presented to the model would have been incomplete.</p><p>The governance suite was rerun during preparation of this article: <strong>69 tests passed.</strong> It included checks for approval binding, expired or changed approvals, assessment failures, prohibited requests and repeated submissions.</p><p>The automated demo also confirmed that an identical submission retry returned the same receipt and left one record in the simulated queue.</p><p>A request named send_email was rejected as unsupported. That exercised the tool allowlist; it did not test an actual email connector.</p><p>One test checked that prohibited requests were rejected before the assessor was called. The following excerpt is shortened from the prototype’s parameterized test:</p><pre>@pytest.mark.parametrize(&quot;tool,args&quot;, [<br>    (&quot;send_email&quot;, {}),<br>    (&quot;execute&quot;, {&quot;command&quot;: &quot;echo forbidden&quot;}),<br>    (&quot;read_sample_document&quot;, {&quot;document_id&quot;: &quot;../secret&quot;}),<br>])<br>def test_deny_before_assessment(rt, tool, args):<br>    assert rt.execute(tool, args)[&quot;decision&quot;] == &quot;DENY&quot;<br>    assert rt.assessor.calls == 0</pre><p>These results provide evidence for the particular assertions tested. They do not establish universal safety, reliable behavior under every failure mode or the quality of a live model’s decisions.</p><p>The project also included an adapter using the official TypeSafe Python SDK. A mock HTTP transport exercised request construction and response parsing without contacting TypeSafe. That checked the integration against simulated responses. Live authentication, service behavior, latency, cost and assessment accuracy remained untested.</p><p>The trust boundary was local. The host process and OS account were trusted. The prototype did not establish protection against malicious host code, tamper-proof audit storage or complete crash-and-restart recovery.</p><p>The experiment helped separate three questions:</p><ul><li><strong>Task quality:</strong> Can the agent produce an accurate, evidence-backed review?</li><li><strong>Assessment quality:</strong> Does an assessor distinguish acceptable, concerning and ambiguous actions?</li><li><strong>Enforcement effectiveness:</strong> Do the tested execution paths apply restrictions when presented with problematic requests or assessments?</li></ul><p>This phase addressed parts of the third question. It did not answer the first two.</p><p>A useful next experiment would compare fixed rules alone with the same rules plus live Jev assessments. The fixed prohibitions would remain unchanged. Questions and thresholds would be developed on one dataset, then frozen before evaluation on separate held-out cases.</p><p>The measurements would include missed concerns, unnecessary holds, accuracy among automatically routed cases, automation coverage, latency and cost.</p><p>Jev prompted the exploration, but the enforcement findings are model-independent. Its practical contribution remains an open question: can its judgments improve decisions enough to justify adding it?</p><p>That is what I would test next.</p><p><em>AI tools assisted with the prototype, automated checks, and drafting this article.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=04efd6809562" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Set Up Kimi K3 with Opencode on Your Mac]]></title>
            <link>https://medium.com/@rikesh2191/how-to-set-up-kimi-k3-with-opencode-on-your-mac-bc5c54bad3d2?source=rss-1770055b85da------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc5c54bad3d2</guid>
            <dc:creator><![CDATA[RKShan]]></dc:creator>
            <pubDate>Sun, 30 Aug 2026 12:50:54 GMT</pubDate>
            <atom:updated>2026-08-30T12:50:54.777Z</atom:updated>
            <content:encoded><![CDATA[<p>A practical OpenCode setup that gets Kimi K3 working in your terminal, plus the settings I’d change before letting it touch a real codebase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PcxiIfHjUyp4-TU08lX4kQ.png" /><figcaption>Kimi K3 running in opencode</figcaption></figure><p>Kimi K3 is Moonshot AI’s flagship open-weight model, with a massive context window and a design that makes it particularly interesting for long, multi-step agentic work.</p><p>Technically, you can self-host it. But for this setup, we’ll use the <strong>Moonshot API</strong> and connect it to <strong>OpenCode</strong>, an open-source coding-agent harness that runs directly in your terminal.</p><p><strong>Kimi K3 is the brain. OpenCode is the hands</strong></p><p>The model decides what should happen. OpenCode gives it controlled access to your files, shell commands, tools, and development environment.</p><p>By the end of this guide, you’ll have Kimi K3 running as a proper terminal coding agent, not just another model sitting inside a chat window.</p><h3>What we’re building</h3><p>The final setup looks roughly like this:</p><pre>Your repository<br>      ↓<br>   OpenCode<br>      ↓<br>Moonshot API<br>      ↓<br>    Kimi K3<br>      ↓<br>Plan → Read → Edit → Test → Fix → Repeat</pre><p>We’ll also configure it so that:</p><ul><li>your API key stays out of the config file;</li><li>OpenCode starts conservatively instead of immediately editing things;</li><li>switching models later doesn’t require rebuilding your setup;</li><li>and you don’t accidentally discover rate limits halfway through an agent run.</li></ul><p>The whole setup should take around <strong>20 minutes</strong>.</p><h3>Before You Start</h3><p>You’ll need:</p><ul><li>macOS - Linux works too, although some paths differ;</li><li>Homebrew installed;</li><li>a Moonshot account and API key;</li><li>around 20 minutes.</li></ul><h3>Step 1 — Install OpenCode</h3><p>If you have Homebrew:</p><pre>brew install anomalyco/tap/opencode</pre><p>Then verify the installation:</p><pre>opencode --version</pre><p>You should get a version number back, for example:</p><pre>1.18.25</pre><p>Your exact version may be newer. That’s fine.</p><p>If you don’t use Homebrew, OpenCode also provides other installation methods:</p><pre>curl -fsSL https://opencode.ai/install | bash</pre><p>or:</p><pre>npm install -g opencode-ai</pre><p>Once opencode --version works, move on.</p><h3>Step 2 — Create a Moonshot API Key</h3><p>Create an account in the Moonshot developer console, add credit, and generate an API key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wj1lnAUEs2FTqqgEQejVKQ.png" /></figure><p>Copy the key temporarily.</p><p>It should begin with something similar to:</p><pre>sk-*************</pre><h3>You Don’t Actually Need Kimi</h3><p>This is one of the things I like most about this setup.</p><p><strong>OpenCode isn’t tied to Kimi K3.</strong></p><p>OpenCode is the harness.</p><p>Your model is replaceable.</p><p>If you already pay for another provider, you may not need to spend anything extra at all.</p><p>OpenCode supports a large number of providers and model backends, including options across ecosystems such as:</p><ul><li>Anthropic</li><li>OpenAI</li><li>Google</li><li>Azure</li><li>AWS Bedrock</li><li>Vertex AI</li><li>DeepSeek</li><li>Groq</li><li>Together</li><li>OpenRouter</li><li>GitHub Copilot</li></ul><p>You can also connect local runtimes such as Ollama or LM Studio if you prefer to keep inference on your machine.</p><p>That means the architecture is really:</p><pre>┌─ Kimi<br>                ├─ Claude<br>Your Code → OpenCode ─ GPT<br>                ├─ Gemini<br>                ├─ DeepSeek<br>                └─ Local model</pre><p>The agent workflow stays largely the same.</p><p>Only the model changes.</p><p>That&#39;s exactly what I want from an agent harness.</p><h3>Step 3 — Keep the API Key Out of Your Config</h3><p>Now let’s configure Kimi.</p><p>Don’t paste the API key directly into opencode.json.</p><p>Put it in your shell environment instead.</p><p>On macOS, the default shell is usually zsh:</p><pre>nano ~/.zshrc</pre><p>Add:</p><pre>export MOONSHOT_API_KEY=sk-your-key-here</pre><p>Save and Reload the shell configuration:</p><pre>source ~/.zshrc</pre><p>Now confirm that the variable exists:</p><pre>echo $MOONSHOT_API_KEY</pre><p>You should see the key printed.</p><h3>Don’t skip source ~/.zshrc</h3><p>This is an easy mistake.</p><p>Editing .zshrc changes what <strong>future shell sessions</strong> will load.</p><p>It does not magically inject the variable into the terminal session you already have open.</p><p>Without:</p><pre>source ~/.zshrc</pre><p>OpenCode may launch normally and only complain when the first API request happens.</p><p>If you use bash instead, put the export in your relevant bash configuration, commonly:</p><pre>~/.bashrc</pre><h3>Step 4 — Configure OpenCode for Kimi K3</h3><p>Create OpenCode’s config directory:</p><pre>mkdir -p ~/.config/opencode</pre><p>Then create the configuration file:</p><pre>nano ~/.config/opencode/opencode.json</pre><p>Add:</p><pre>{<br>  &quot;$schema&quot;: &quot;https://opencode.ai/config.json&quot;,<br>  &quot;provider&quot;: {<br>    &quot;moonshot&quot;: {<br>      &quot;npm&quot;: &quot;@ai-sdk/openai-compatible&quot;,<br>      &quot;name&quot;: &quot;Kimi K3&quot;,<br>      &quot;options&quot;: {<br>        &quot;baseURL&quot;: &quot;https://api.moonshot.ai/v1&quot;,<br>        &quot;apiKey&quot;: &quot;{env:MOONSHOT_API_KEY}&quot;<br>      },<br>      &quot;models&quot;: {<br>        &quot;kimi-k3&quot;: {}<br>      }<br>    }<br>  },<br>  &quot;model&quot;: &quot;moonshot/kimi-k3&quot;,<br>  &quot;default_agent&quot;: &quot;plan&quot;<br>}</pre><p>Most of this is plumbing.</p><p>Two lines are worth understanding.</p><h3>1. Keep secrets outside the config</h3><p>This:</p><pre>&quot;apiKey&quot;: &quot;{env:MOONSHOT_API_KEY}&quot;</pre><p>tells OpenCode to read the API key from your environment.</p><p>That means your config contains:</p><pre>MOONSHOT_API_KEY</pre><p>rather than:</p><pre>sk-this-is-my-actual-secret-key</pre><p>This is much safer if you later copy the configuration between machines, share it with teammates, or accidentally add the config to a repository.</p><p>Your configuration can be portable.</p><p>Your credentials should not be.</p><h3>2. Start in Plan Mode</h3><p>The second setting is:</p><pre>&quot;default_agent&quot;: &quot;plan&quot;</pre><p>I strongly recommend leaving this on while you’re learning the tool.</p><p>Plan mode allows the agent to inspect and reason about what it intends to do without immediately making changes.</p><p>Think of it as the difference between:</p><blockquote><em>“Here’s how I’m going to refactor your authentication system.”</em></blockquote><p>and:</p><blockquote><em>“I refactored your authentication system.”</em></blockquote><p>When the plan looks sensible, you can switch modes and allow the agent to act.</p><p>That tiny layer of friction costs almost nothing.</p><p>It can save you from a spectacularly enthusiastic misunderstanding.</p><h3>Step 5 — Give It a Safe Repository</h3><p>Don’t make your first agent experiment inside something important.</p><p>Create a disposable repository:</p><pre>mkdir -p ~/code/webapp<br>cd ~/code/webapp<br>git init</pre><p>Then launch OpenCode:</p><pre>opencode</pre><p>For the first prompt, ask something boring.</p><p>For example:</p><pre>You are running inside OpenCode, which is acting as the harness between<br>you, the repository, the terminal, and the tools available on this machine.<br><br>For now, stay in Plan mode and do not modify anything.<br><br>Inspect this repository and my local development environment, then:<br><br>1. Tell me what you can currently see and interact with through the harness.<br>2. Identify the project structure, languages, package manager, Git status,<br>   and any existing tests or linting tools.<br>3. Explain the steps you would take if I asked you to build a small feature.<br>4. Tell me which actions would require shell commands or file modifications.<br>5. Finish with a short proposed plan, but do not execute it yet.<br><br>Later, I will give you project-specific Skills containing my engineering<br>standards, coding conventions, testing requirements, and workflow rules.<br>When those Skills are available, treat them as persistent project guidance<br>and apply them when planning, writing, reviewing, and testing code.<br><br>For this first run, I want to verify the harness, permissions, repository<br>awareness, and planning behaviour before giving you permission to make changes. </pre><p>That’s intentional.</p><p>Your first test should prove four things:</p><pre>Model connection      ✓<br>Repository access     ✓<br>Shell/tool access     ✓<br>Permission flow       ✓</pre><p>OpenCode should ask for permission before executing relevant commands.</p><p>Approve the harmless ones.</p><p>If Kimi answers successfully and can inspect the environment, congratulations:</p><p><strong>Kimi K3 is now running as a coding agent on your Mac.</strong></p><p>But getting an agent to run is the easy part.</p><p>Getting one to behave well is where things become interesting.</p><h3>What I’d Change Before Writing a Real Prompt</h3><p>At this point, you could immediately tell Kimi:</p><pre>Build me an app.</pre><p>I wouldn’t.</p><p>Before giving an agent meaningful control over a repository, there are four things worth configuring properly:</p><p><strong>1. Rate limits</strong><br>Make sure your provider can sustain agent-style workloads instead of throttling every few calls.</p><p><strong>2. Plan-first behaviour</strong><br>Let the model show you its intended approach before allowing modifications.</p><p><strong>3. Permissions</strong><br>Decide which commands can run automatically and which should always require approval.</p><p><strong>4. Project instructions and skills</strong><br>Give the agent your engineering conventions once instead of repeating them in every prompt.</p><p>That last one is especially powerful.</p><p>Instead of continually writing:</p><pre>Use TypeScript.<br>Use pnpm.<br>Don&#39;t use any.<br>Write tests.<br>Don&#39;t touch generated files.<br>Run lint before finishing.</pre><p>you can teach the agent those rules once and make them part of the environment.</p><p>That is when the setup starts feeling less like <strong>chatting with an AI</strong> and more like <strong>onboarding another engineer onto the project</strong>.</p><p>And that’s what we’ll configure next.</p><h3>The Bigger Lesson</h3><p>The interesting part of testing Kimi K3 wasn’t getting another model into my terminal.</p><p>That takes a few minutes.</p><p>The interesting part was seeing how much of the coding-agent experience has almost nothing to do with benchmark scores.</p><p>A model can have an enormous context window and excellent coding performance, but the actual experience still depends on:</p><ul><li>API throughput;</li><li>tool-call reliability;</li><li>permission design;</li><li>repository instructions;</li><li>context management;</li><li>caching;</li><li>and the harness sitting between you and the model.</li></ul><p>In other words:</p><blockquote><strong><em>A great model does not automatically make a great coding agent.</em></strong></blockquote><p>The model matters enormously.</p><p>But so does everything around it.</p><p>OpenCode gives us a convenient way to separate those two things: keep the harness and workflow consistent, then swap models and see how they actually perform doing real engineering work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc5c54bad3d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From One Half Marathon to the Next: My Running Journey]]></title>
            <link>https://medium.com/@rikesh2191/from-one-half-marathon-to-the-next-my-running-journey-0952e0a1332d?source=rss-1770055b85da------2</link>
            <guid isPermaLink="false">https://medium.com/p/0952e0a1332d</guid>
            <category><![CDATA[running]]></category>
            <category><![CDATA[strava]]></category>
            <category><![CDATA[lifestyle]]></category>
            <dc:creator><![CDATA[RKShan]]></dc:creator>
            <pubDate>Mon, 25 Aug 2025 14:05:41 GMT</pubDate>
            <atom:updated>2025-08-25T14:05:41.734Z</atom:updated>
            <content:encoded><![CDATA[<p>Running has always fascinated me, but it wasn’t until I signed up for my first half marathon that I truly understood how much it could change me. Crossing that finish line wasn’t just about the 21.1 km — it was about proving to myself that consistency, discipline can take you further than you think.</p><h3>The First Half Marathon</h3><p>I trained with very little structure, mostly logging miles and hoping my body would hold up on race day. And somehow, it did. That first race was tough, but the feeling of crossing the finish line was unforgettable. It was proof that even without perfect preparation, determination counts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WOLsijiBUtiJnYwoaUkfsw.jpeg" /><figcaption>2XU Half marathon 2025 (2 hour 15 mins)</figcaption></figure><h3>Training for the Second: Doing It Smarter</h3><p>This time, I wanted to do things differently. Instead of just running more, I focused on training smarter:</p><p>•	Intervals &amp; Speed Work: Adding 400m, 800m, and 1200m intervals into my weekly plan to build endurance at faster paces.</p><p>•	VO₂ Max Improvement: Watching my VO₂ max climb from 41 to 48 has been one of the most motivating parts of training. It’s a number, yes, but it represents better efficiency, stronger lungs, and a fitter me.</p><p>•	Structured Runs: Mixing in long runs at easy pace, tempo runs, and recovery days has helped me avoid burnout and injuries.</p><h3>What’s Changed</h3><p>The biggest difference this time isn’t just physical it’s mental. Instead of fearing the distance, I look forward to testing myself. Training has taught me patience, pacing, and the joy of small, incremental improvements.</p><h3>Looking Ahead</h3><p>As I prepare for my second half marathon, I’m more excited than nervous. I know the race will challenge me, but I also know I’m going into it stronger, smarter, and more prepared than before.</p><p>Running has become more than just a hobby ,it’s a journey of self-improvement. And this is just the beginning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0952e0a1332d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Hybrid Financial QA System: Combining Knowledge Graphs, Fine-tuned LLMs, and…]]></title>
            <link>https://medium.com/@rikesh2191/building-a-hybrid-financial-qa-system-combining-knowledge-graphs-fine-tuned-llms-and-multi-agent-adf5cfae7569?source=rss-1770055b85da------2</link>
            <guid isPermaLink="false">https://medium.com/p/adf5cfae7569</guid>
            <dc:creator><![CDATA[RKShan]]></dc:creator>
            <pubDate>Tue, 29 Jul 2025 08:28:26 GMT</pubDate>
            <atom:updated>2026-01-02T06:42:30.194Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Hybrid Financial QA System: Combining Knowledge Graphs, Fine-tuned LLMs, and Multi-Agentic AI Orchestration</h3><h3>Introduction</h3><p>Financial question answering presents unique challenges that traditional NLP approaches often struggle with. Numbers need to be exact, calculations must be precise, and explanations require domain understanding. In this post, I’ll walk through my approach to building a financial QA system using the ConvFinQA dataset, explaining the key design decisions, trade-offs, and lessons learned along the way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i4yGmF6ZvFvx-WSaUYKZkg.png" /><figcaption>ChatGPT</figcaption></figure><h3>The Challenge</h3><p>ConvFinQA contains conversational questions about financial documents with tables of numerical data. Questions range from simple lookups (“What was revenue in 2009?”) to complex multi-step reasoning (“Explain the factors contributing to the 15% growth in operating margins”). This diversity demands a system that can:</p><ol><li>Extract exact numerical values reliably</li><li>Perform accurate calculations</li><li>Generate coherent explanations</li><li>Handle conversational context</li></ol><h3>My Approach: A Hybrid Architecture</h3><h3>Why Not Just Use RAG?</h3><p>Retrieval-Augmented Generation (RAG) has become the go-to solution for many QA tasks.</p><pre># Typical RAG approach<br>embeddings = model.encode(financial_documents)<br>relevant_chunks = vector_db.similarity_search(question)<br>answer = llm.generate(f&quot;Context: {relevant_chunks}\nQuestion: {question}&quot;)</pre><p>However, RAG alone has critical limitations for financial QA:</p><ul><li><strong>Numerical Precision</strong>: Retrieved chunks might contain multiple numbers which one is correct?</li><li><strong>Calculation Errors</strong>: RAG retrieves text, not values you can compute with</li><li><strong>Table Understanding</strong>: Embedding table rows loses structural relationships</li><li><strong>Exact Match Failures</strong>: “Revenue in 2009” might not semantically match “2009: $1.2M” well enough</li></ul><p><strong>The core issue</strong>: RAG treats everything as text. It doesn’t understand that numbers in financial tables have relationships and need calculations.</p><h3>The Three-Pillar Solution</h3><p>I designed a hybrid system with three complementary components:</p><h3>Component 1: Fine-Tuned via LoRA</h3><p>I used a lightweight model and taught it to:</p><ul><li>Answer in clear sentences</li><li>Explain why the numbers matter</li><li>Avoid mistakes in financial language</li></ul><p>But instead of training the whole model (which needs huge GPUs), I used a method called <strong>LoRA</strong> it’s like training only the brain cells that matter.</p><p>Why this works:</p><ul><li>Trains fast on small GPUs</li><li>Still accurate</li><li>Less cost, more control</li></ul><h3>Component 2: Knowledge Graph (for reliable facts)</h3><p>Think of it like a smart spreadsheet made of <strong>triplets</strong> like:</p><p>Think of this as a super-organized filing cabinet specifically for numbers.</p><p><strong>Instead of</strong>: Storing “Revenue was $1.2M in 2008” as text <strong>I store</strong>:</p><ul><li>Company: ABC Corp</li><li>Metric: Revenue</li><li>Year: 2008</li><li>Value: 1,200,000</li></ul><p><strong>Why This Matters:</strong></p><ul><li>Can’t retrieve wrong numbers</li><li>Perfect for calculations</li><li>Never “forgets” or “approximates”</li></ul><h3>Component 3: Multi Agentic AI System</h3><p>Instead of one AI doing everything, I created specialized agents:</p><ol><li><strong>Data Agent</strong>: Only extracts numbers from the knowledge graph</li><li><strong>Calculator Agent</strong>: Only does math (and always correctly)</li><li><strong>Explainer Agent</strong>: Writes clear explanations using the data</li></ol><p><strong>Why This Works:</strong></p><p>Think of it like a real finance team:</p><ul><li>The analyst pulls the numbers</li><li>The quant does the calculations</li><li>The communicator explains it clearly</li></ul><p>Each agent is simple and focused, making fewer mistakes than one complex system.</p><h3>Future Scope for Improvement</h3><p>While my hybrid system combining RDF Knowledge Graphs, fine-tuned LLMs, and agentic orchestration delivers promising results, there are areas that can be significantly improved over time:</p><h3>1. Semantic Parsing for Metrics</h3><p>Current matching relies on surface-level heuristics. In future iterations, we aim to:</p><ul><li>Integrate intent classification models for better question interpretation</li><li>Use contextual embeddings to identify semantically similar metric types</li></ul><h3>2. Advanced Calculation Capabilities</h3><p>Right now, the system supports basic arithmetic. Enhancing this includes:</p><ul><li>Supporting compound formulas (e.g., CAGR, ROI)</li><li>Integrating symbolic computation libraries like SymPy</li></ul><h3>3. Feedback-Driven Learning</h3><p>Introducing a “human-in-the-loop” retraining pipeline would allow:</p><ul><li>Collection of user corrections</li><li>Fine-tuning on edge cases for better generalization</li></ul><h3>💡 What I Learned</h3><h3>✅ What Worked Well:</h3><ul><li>No hallucinations numbers were always traceable</li><li>The system ran on a <strong>single 8GB GPU</strong></li><li>Easy to add new logic (like new financial ratios)</li></ul><h3>❌ What Needs Work:</h3><ul><li>Current question-understanding is still rule-based (e.g. looks for “percentage” in the question)</li><li>Doesn’t improve from feedback</li><li>Struggles with really long or deep reasoning chains</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adf5cfae7569" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Singapore Can Use Machine Learning to Stabilize COE Prices: A Data-Driven Approach]]></title>
            <link>https://medium.com/@rikesh2191/how-singapore-can-use-machine-learning-to-stabilize-coe-prices-a-data-driven-approach-fa30cd344968?source=rss-1770055b85da------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa30cd344968</guid>
            <dc:creator><![CDATA[RKShan]]></dc:creator>
            <pubDate>Tue, 22 Jul 2025 08:58:23 GMT</pubDate>
            <atom:updated>2026-08-30T02:25:50.515Z</atom:updated>
            <content:encoded><![CDATA[<p>In February 2023, Singapore witnessed a historic moment: Certificate of Entitlement (COE) prices for Category B vehicles breached the $100,000 mark. For context, that’s more than the price of the actual car in many cases. The volatile swings in COE prices have become a source of anxiety for potential car buyers and a policy challenge for regulators.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*uGANS7GyGP8qZ_RHGhd1ug@2x.jpeg" /><figcaption>Source:CNA</figcaption></figure><p>But what if we could use machine learning to predict and stabilize these prices? What if there was a data-driven approach to quota setting that could reduce volatility while maintaining the system’s effectiveness?</p><p>In this article, I’ll walk you through a practical approach using XGBoost and mathematical optimization that achieves prediction accuracy within 2% and provides actionable quota recommendations.</p><h3>Understanding the COE System: Supply, Demand, and Volatility</h3><p>Before diving into the solution, let’s understand the problem. Singapore’s COE system is essentially an auction where:</p><ul><li><strong>Supply</strong> is controlled by the government through quotas</li><li><strong>Demand</strong> comes from people wanting to buy vehicles</li><li><strong>Price</strong> is determined through competitive bidding</li></ul><p>The challenge? Small changes in supply can cause dramatic price swings. When demand far exceeds supply, prices skyrocket. When supply increases slightly, prices can crash. This volatility makes it difficult for families to plan their finances and for businesses to manage costs.</p><pre># The fundamental relationship<br>Price = f(Demand / Supply)</pre><p>The key insight: If we can predict how prices respond to quota changes, we can optimize quotas to achieve stability.</p><h3>Step 1: Feature Engineering That Matters</h3><p>Not all features are created equal. After analyzing historical COE data, we identified the most impactful features:</p><pre># Core features that drive COE prices<br>- demand_supply_ratio = bids_received / quota<br>- excess_demand = max(0, bids_received - quota)<br>- success_rate = bids_success / bids_received<br>- premium_lag_1, premium_lag_2, premium_lag_3  # Historical prices<br>- moving_averages  # Trend indicators<br></pre><p>The demand_supply_ratio proved to be the strongest predictor. When this ratio exceeds 3.0, prices tend to spike dramatically.</p><h3>Step 2: Why XGBoost?</h3><p>We tested multiple algorithms, but XGBoost emerged as the winner for several reasons:</p><ol><li><strong>Handles non-linear relationships</strong>: COE prices don’t respond linearly to quota changes</li><li><strong>Robust to outliers</strong>: COVID-19 and policy changes created anomalies in the data</li><li><strong>Fast training</strong>: Enables real-time quota optimization</li><li><strong>Interpretable</strong>: We can understand which factors drive predictions</li></ol><pre>#Model Performance:<br>  RMSE: $3665.09<br>  R²: 0.9827<br>  MAPE: 2.98%</pre><p>A Mean Absolute Percentage Error (MAPE) of 2.98% means our model predicts COE premiums within $2,980 accuracy on a $100,000 COE remarkably precise for such a volatile market.</p><h3>From Prediction to Optimisation: The Mathematical Framework</h3><p>With accurate price predictions, we can now optimize quotas. The system works like a smart calculator that tests different quota combinations to find the best outcome.</p><p><strong>The Optimization Problem:</strong></p><ul><li>Goal: Reduce all COE prices by 10%</li><li>Constraints: Quota changes limited to ±20%</li><li>Method: Minimize the gap between predicted and target prices</li></ul><p>Here’s the actual optimization code in simplified form:</p><pre>def objective_function(quota_multipliers):<br>    total_cost = 0<br>    for category in categories:<br>        new_quota = current_quota * quota_multiplier<br>        predicted_premium = xgboost_model.predict(new_quota)<br>        deviation = abs(predicted_premium - target_premium)<br>        total_cost += deviation<br>    return total_cost<br><br># Find optimal quotas<br>optimal_quotas = minimize(objective_function, constraints=[-20%, +20%])</pre><h3>Results: What the Optimization Found</h3><p>We ran the optimisation on actual COE data with a simple goal: reduce all premiums by 10%. Here’s what it found:</p><h3>Optimisation Results:</h3><p><strong>Category A (Small Cars)</strong></p><ul><li>Current: 1,000 quotas, $80,000 premium</li><li>Optimal: 1,120 quotas (+12%)</li><li>Result: $71,200 premium (-11%)</li></ul><p><strong>Category B (Large Cars)</strong></p><ul><li>Current: 800 quotas, $100,000 premium</li><li>Optimal: 920 quotas (+15%)</li><li>Result: $91,000 premium (-9%)</li></ul><p><strong>Category C (Goods Vehicles)</strong></p><ul><li>Current: 600 quotas, $50,000 premium</li><li>Optimal: 648 quotas (+8%)</li><li>Result: $45,000 premium (-10%)</li></ul><p><strong>Category D (Motorcycles)</strong></p><ul><li>Current: 1,200 quotas, $15,000 premium</li><li>Optimal: 1,260 quotas (+5%)</li><li>Result: $13,200 premium (-12%)</li></ul><p><strong>Key Finding</strong>: To achieve a 10% price reduction, quotas need to increase by an average of 10–15%. Different categories require different adjustments due to varying demand elasticities.</p><h3>Implementation: From Theory to Practice</h3><p>The optimization provides clear numbers, but implementation requires careful consideration:</p><h3>What Works:</h3><ol><li><strong>Gradual Changes</strong>: Implement over 2–3 months to avoid market shock</li><li><strong>Clear Communication</strong>: Announce targets in advance to reduce speculation</li><li><strong>Regular Review</strong>: Monthly adjustments based on actual vs predicted</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa30cd344968" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bridging the Cycling Commute Gap: Data-Driven Recommendations for Singapore’s Urban Mobility]]></title>
            <link>https://medium.com/@rikesh2191/bridging-the-cycling-commute-gap-data-driven-recommendations-for-singapores-urban-mobility-80c0f9e45947?source=rss-1770055b85da------2</link>
            <guid isPermaLink="false">https://medium.com/p/80c0f9e45947</guid>
            <dc:creator><![CDATA[RKShan]]></dc:creator>
            <pubDate>Tue, 22 Jul 2025 06:55:58 GMT</pubDate>
            <atom:updated>2026-08-30T02:26:09.101Z</atom:updated>
            <content:encoded><![CDATA[<p>There’s a common perception that Singapore’s cycling infrastructure, despite rapid expansion, still falls short for commuters who wish to cycle the entire way from home to work. Many believe the existing network is optimised for leisure and for short hops to public transport nodes, rather than true end-to-end cycling commutes. In this post, I’ll put that claim to the test with a data-driven methodology.I will analyse the current cycling network alongside real commuting patterns, and identify where new routes are most needed to make full cycling commutes a practical, everyday reality.</p><h3>1. Mapping the Existing Network</h3><p>I started by gathering Singapore’s latest cycling path network and road network datasets in GeoJSON format. Using Python’s geopandas, I read in and visualized all existing and planned cycling paths, as well as the underlying road network (excluding expressways).</p><h3>2. Understanding Commuter Demand with OD Data</h3><p>The heart of the analysis relies on <strong>origin-destination (OD) data</strong></p><p><strong>Train and Bus OD flows</strong> show where large numbers of people travel during peak (AM) hours, especially between residential and office clusters.<br>These datasets, accessed via LTA Datamall, provide anonymized counts of journeys between MRT stations and bus stops.</p><p>I also collected corporate address data and mapped company postcodes to their geographical coordinates, enabling precise analysis of where office clusters are located.</p><h3>3. Mapping Actual Office Locations Using ACRA Data</h3><p>I also collected <strong>corporate address data from ACRA (Accounting and Corporate Regulatory Authority)</strong>, which provides the registered addresses and postcodes for all businesses in Singapore. By linking each company’s postcode to precise latitude and longitude coordinates (using open postal code datasets), I was able to map the exact spatial distribution of office locations and business clusters across the island.</p><p>Combining this ACRA business geodata with the public transport OD data offers a much richer understanding of actual commute patterns not just between generic residential and CBD zones, but <strong>directly from neighborhoods to real office destinations</strong>. This approach helps identify which clusters of firms generate or attract the most commuters and which potential cycling corridors would genuinely support the daily work journeys of Singapore’s workforce.</p><h3>4. Matching Public Transport Points to Company Locations</h3><p>To relate commuter demand to workplace geography, I mapped all MRT stations and bus stops to their latitude and longitude (using open datasets and postal code lookups). For each company, I identified the nearest MRT station and bus stops within 400–800 meters.This created a <strong>rich map of key origin (home) and destination (work) points</strong> for potential cycle commutes.</p><h3>5. Identifying High-Demand OD Pairs</h3><p>With all stops standardised I filtered the OD data to focus on top commute flows between high-density residential and workplace nodes. Merged coordinates for each origin and destination, generating straight-line “desire paths” representing the most frequent commutes.</p><h3>6. Analysing Cycling Path Coverage</h3><p>Next, I assessed whether these high-demand OD pairs were already served by cycling paths or not.</p><p>For each OD line, I checked if it intersected the existing bike network using spatial indexing for speed. Calculated the <strong>percentage of major commutes already covered</strong> <strong>(closer to 95%) </strong>by bike lanes, and flagged uncovered OD pairs as cycling “gaps.”</p><h3>7. Recommending New Cycling Corridors</h3><p>For OD pairs lacking cycling coverage, I created buffer corridors (e.g., 40 meters wide) around each gap path. Identified all road segments within these corridors that could feasibly support new cycling paths (excluding those already covered). Prioritized the most critical road links by demand and total segment length, ensuring the total recommendation did not exceed 100km in a single tranche.</p><h3>8. Visualising Results</h3><p>Finally, I visualised the proposed new cycling corridors:</p><p>Used folium to create interactive maps, overlaying both current and recommended cycling paths for intuitive exploration.</p><p>The approach is to build maps which can include demand flows, bus/MRT nodes, and existing bike lanes for planners and the public to inspect.</p><h3>Key Insights &amp; Next Steps</h3><p><strong>This analysis revealed that while much of Singapore’s cycling network serves recreational or short-distance needs, there are substantial opportunities to bridge gaps for full commutes especially along high-demand home office corridors.</strong></p><p>By focusing new investments where the data shows the greatest need, Singapore can accelerate its shift toward a truly active and sustainable urban mobility ecosystem.</p><p><strong>Next steps:</strong> This workflow can be refined with more granular demand data, actual commuter surveys, and by incorporating constraints (e.g., road width, urban design).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*KWSE1mLXnmIYKIL3u5yCTA@2x.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80c0f9e45947" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Uncovering Stories from Singapore’s HDB Resale Market]]></title>
            <link>https://medium.com/@rikesh2191/uncovering-stories-from-singapores-hdb-resale-market-78b8937bbbc6?source=rss-1770055b85da------2</link>
            <guid isPermaLink="false">https://medium.com/p/78b8937bbbc6</guid>
            <dc:creator><![CDATA[RKShan]]></dc:creator>
            <pubDate>Mon, 21 Jul 2025 05:40:00 GMT</pubDate>
            <atom:updated>2026-08-30T02:26:20.597Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the past decade, Singapore’s HDB resale market has undergone notable changes from cooling measures and COVID-19 disruptions to the emergence of million-dollar flats. But while much attention is paid to price trends and housing supply, the story of the agent is often overlooked.</p><p>Using open datasets from CEA (agent transactions) and HDB (resale flat prices), we explored:</p><blockquote>Where agents are most active?</blockquote><blockquote>What types of flats they focus on?</blockquote><blockquote>How activity and pricing evolved through the pandemic?</blockquote><p>Let’s explore what the data reveals.</p><p>The Resilient Agent: Post-COVID Recovery</p><p>Even as lockdowns froze much of the economy in 2020, resale activity recovered strongly in 2021 and beyond.</p><p>Agent transactions which dipped due to viewing restrictions and uncertainty surged back as buyers returned and prices began to climb.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T4XP7b8PsCQmVMdCN8L9eg.png" /></figure><p>Hidden Battlegrounds: Agent Activity vs Affordability</p><p>While towns like Bishan and Queenstown dominate headlines with million-dollar flats, we found surprising hotspots of agent activity in more affordable towns like Yishun and Woodlands &amp; Sengkang.</p><p>These areas show:</p><blockquote>High agent transaction volume</blockquote><blockquote>Moderate resale prices</blockquote><blockquote>High flat turnover</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RJOEgshdtiCKiLv7cvnzYw.png" /></figure><p>The Flat Type Focus: What’s Keeping Agents Busy?</p><p>Agents tend to specialize based on demand patterns. The 4-room flat emerges as the clear leader in transaction volume — striking a balance between size and affordability for families.</p><p>Meanwhile, 5-room and Executive flats, while pricier, attract fewer deals — likely due to a smaller buyer pool or lower availability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j_L5R2bQ4LGcdEUFdVODiQ.png" /></figure><p>Conclusion: What This Means for Agents and the Business of Resale</p><ul><li>🔄 <strong>Agents are resilient and adaptive</strong>: Despite COVID-19 disruptions, agent activity rebounded strongly in 2021–2022, closely mirroring recovery in resale prices. This shows agents are <strong>quick to regain business momentum</strong> after market shocks.</li><li>📍 <strong>Affordable towns drive agent success</strong>: Towns like Yishun and Woodlands may not boast million-dollar flats, but they are high-turnover areas where agents consistently close deals. These areas offer <strong>sustainable deal flow</strong>, even if commission per deal is lower.</li><li>🏠 <strong>4-room flats are the business core</strong>: This flat type dominates resale volume — and therefore dominates agent activity. Shifts in policy, supply, or buyer behavior around 4-room flats will <strong>directly impact agent income</strong>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78b8937bbbc6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>