<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hüseyin Dinçer</title>
    <description>The latest articles on DEV Community by Hüseyin Dinçer (@havali55).</description>
    <link>https://dev.to/havali55</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4278575%2Fc2347df7-da63-49d2-9d2e-ab921c18f8d4.png</url>
      <title>DEV Community: Hüseyin Dinçer</title>
      <link>https://dev.to/havali55</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/havali55"/>
    <language>en</language>
    <item>
      <title>I built an investment committee of four Claude subagents for Borsa Istanbul</title>
      <dc:creator>Hüseyin Dinçer</dc:creator>
      <pubDate>Wed, 02 Dec 2026 13:00:17 +0000</pubDate>
      <link>https://dev.to/havali55/i-built-an-investment-committee-of-four-claude-subagents-for-borsa-istanbul-4fgp</link>
      <guid>https://dev.to/havali55/i-built-an-investment-committee-of-four-claude-subagents-for-borsa-istanbul-4fgp</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbfdvf4rgopdeomnxyz8m.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbfdvf4rgopdeomnxyz8m.gif" alt="Demo: /borsa:hisse THYAO and /borsa:komite TUPRS in Claude Code" width="600" height="338"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ask a general-purpose chatbot about a Turkish stock and you get one of two things. Either it politely refuses, or it invents a price from its training data with total confidence. Neither helps someone looking at Borsa Istanbul (BIST) on a Tuesday afternoon.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Borsa Zekâ&lt;/strong&gt; ("market intelligence"), an open-source Claude Code plugin that turns Claude into a BIST analyst. Its centrepiece is &lt;code&gt;/borsa:komite&lt;/code&gt;, an "investment committee": four specialist subagents analyse a stock &lt;strong&gt;in parallel&lt;/strong&gt;, and a chair weighs their views into a verdict that has to show its disagreements.&lt;/p&gt;

&lt;p&gt;This post covers how it is put together and the design rules that keep it honest. It also covers a few things I learned shipping it, which apply to anyone building a Claude Code plugin.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Everything below is informational. The tool is an analysis aid, not investment advice.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The core rule: Claude never supplies a number
&lt;/h2&gt;

&lt;p&gt;LLMs are good at reasoning about markets and bad at remembering market data. The plugin's main rule follows from that: &lt;strong&gt;every price, indicator and headline must come from a tool call.&lt;/strong&gt; The model's job is to read, reconcile and explain.&lt;/p&gt;

&lt;p&gt;That rule shapes the architecture:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;src/lib (one engine)
├─ yahoo.ts       quotes, history, fundamentals, news
├─ indicators.ts  RSI, MACD, ADX/DMI, Bollinger, ATR...
├─ analysis.ts    signals + composite score (-100..100)
└─ backtest.ts    strategies, no look-ahead
   │
   ├─► MCP server: stdio, 15 tools, one bundled .mjs
   ├─► Next.js web app: charts, screener, backtests
   └─► Remote MCP: Streamable HTTP, stateless
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One engine serves three surfaces. The MCP server is bundled with esbuild into a single file that ships inside the plugin, so users need nothing but Node. The web app reuses the same functions for interactive charts. A stateless HTTP endpoint exposes the read-only tools for clients that can't run local code.&lt;/p&gt;

&lt;p&gt;The tools have Turkish names (&lt;code&gt;hisse_analizi&lt;/code&gt;, &lt;code&gt;piyasa_tarama&lt;/code&gt;, &lt;code&gt;strateji_testi&lt;/code&gt;, ...) because the whole product speaks Turkish to its users. Claude handles that without any trouble.&lt;/p&gt;

&lt;h2&gt;
  
  
  The committee
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;/borsa:komite TUPRS&lt;/code&gt; is a skill (a Markdown file of instructions), not code. It tells Claude to act as the chair and to do four things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Prepare:&lt;/strong&gt; read the investor profile, if one is saved, and validate the ticker with a live quote.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fan out:&lt;/strong&gt; start four subagents &lt;strong&gt;in a single message&lt;/strong&gt;, so they run concurrently. Each agent is a Markdown file with its own instructions and a narrow remit:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Technical analyst:&lt;/strong&gt; trend, momentum, volume, support and resistance, and which systematic strategy has actually worked on this stock (it runs backtests).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fundamental analyst:&lt;/strong&gt; P/E, P/B, EV/EBITDA, profitability, leverage and peer comparison.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;News analyst:&lt;/strong&gt; company news, public disclosures and macro drivers (central bank, FX, oil).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Risk manager:&lt;/strong&gt; the devil's advocate. It writes the bear case, measures volatility, drawdown, VaR and correlation, and sizes the position.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reconcile.&lt;/strong&gt; Every specialist must end its report with one machine-readable line, &lt;code&gt;DURUŞ: olumlu|olumsuz|nötr; İNANÇ: 0-100&lt;/code&gt; (stance; conviction). The chair reads these lines, finds where the experts agree and disagree, and is told explicitly: &lt;em&gt;don't hide the disagreement, say whose evidence is stronger.&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Report:&lt;/strong&gt; a fixed format with votes, a chart, bull and bear scenarios with trigger levels, and a trading plan sized to the profile.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here is what that looked like in a real run on TUPRS (Tüpraş, the Turkish refiner). It took 2 min 37 s:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Specialist&lt;/th&gt;
&lt;th&gt;Stance&lt;/th&gt;
&lt;th&gt;Conviction&lt;/th&gt;
&lt;th&gt;Reason&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Technical&lt;/td&gt;
&lt;td&gt;Neutral&lt;/td&gt;
&lt;td&gt;55&lt;/td&gt;
&lt;td&gt;Lower highs below the 50-day average, no volume confirmation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fundamental&lt;/td&gt;
&lt;td&gt;Positive&lt;/td&gt;
&lt;td&gt;60&lt;/td&gt;
&lt;td&gt;ROE 28%, EV/EBITDA 2.7, strong free cash flow&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;News&lt;/td&gt;
&lt;td&gt;Positive&lt;/td&gt;
&lt;td&gt;62&lt;/td&gt;
&lt;td&gt;Quarter beat estimates, margin guidance raised&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Risk&lt;/td&gt;
&lt;td&gt;Neutral&lt;/td&gt;
&lt;td&gt;55&lt;/td&gt;
&lt;td&gt;40% volatility; reward/risk to consensus target only 1.16&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Verdict: Hold, 60% confidence.&lt;/strong&gt; The thesis is sound but the timing isn't confirmed. Instead of a buy signal the chair gave two conditional plans: buy on a pullback to a named band, or buy on a volume breakout above a named level.&lt;/p&gt;

&lt;p&gt;That disagreement is the point of the design. A single prompt tends to flatten into one confident tone. Splitting the work into narrow roles, with one role paid to be pessimistic, gives you tension you can read. &lt;a href="https://github.com/Havali55/borsa-zeka/blob/main/docs/examples/TUPRS-yatirim-komitesi.md" rel="noopener noreferrer"&gt;The full report is in the repo.&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Guardrails that live in code, not prompts
&lt;/h2&gt;

&lt;p&gt;Some honesty can't be delegated to instructions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The backtest can't see the future.&lt;/strong&gt; A signal is computed on a bar's close and executed at the &lt;em&gt;next&lt;/em&gt; bar's open. Stops and take-profits that gap are filled at the open, not at the level you wished for:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// apply the previous bar's signal at this bar's open&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;inPos&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;entryPrice&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;bar&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;open&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="cm"&gt;/* ... */&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="c1"&gt;// intrabar stop: a gap down fills at the open, not at the stop price&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sl&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;bar&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;low&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;entryPrice&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;sl&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="nf"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bar&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;open&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;entryPrice&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;sl&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"stop"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;The data has to be cleaned before Claude sees it.&lt;/strong&gt; Yahoo's BIST fundamentals are inconsistent. Some companies (Turkish Airlines, for example) report financials in USD while the stock trades in lira, which makes naive P/E and P/B wrong by a factor of the exchange rate. The engine detects the currency mismatch, corrects price-based ratios, and hides absurd values instead of passing them to the model.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The score is a summary, not a decision.&lt;/strong&gt; The composite score (-100 to +100) weights trend 40%, momentum 30%, volume 15% and volatility 15%. The server instructions tell Claude to call out contradictions inside the score, for example strong trend with fading momentum, instead of reading out a label.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Turkish lira returns include inflation.&lt;/strong&gt; The instructions remind Claude to judge performance against USD/TRY and the BIST 100 index, not in nominal lira.&lt;/p&gt;

&lt;p&gt;Indicator and backtest logic has reference tests. CI runs type checks, lint, the tests, and an end-to-end smoke test of the bundled MCP server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things I learned shipping a Claude Code plugin
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Plugins are mostly Markdown.&lt;/strong&gt; The MCP server is the only real code. Agents, commands, the output style and the orchestration are prose. Most iterations were editing instructions, not TypeScript.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Charts in a terminal are worth it.&lt;/strong&gt; A &lt;code&gt;terminal_grafik&lt;/code&gt; tool renders a block-character price chart with support and resistance markers, and Claude shows it as-is. It turns out to be the most "wow" part of the output.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. The Claude plugin directory has strict, sensible rules.&lt;/strong&gt; Organizations that aren't verified can't submit plugins that ship hooks, local MCP servers or scripts. So I kept the full local plugin for the GitHub marketplace and &lt;em&gt;generated&lt;/em&gt; a directory edition from the same source with a build script. That edition has the agents, the commands and a &lt;strong&gt;remote&lt;/strong&gt; MCP server, and no local code.&lt;/p&gt;

&lt;p&gt;The validator also flagged something I wouldn't have thought of: the edition's README told users how to install the &lt;em&gt;other&lt;/em&gt; edition. That counts as an undeclared server. The fix was to describe the other edition without its install command.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Make the demo reproducible.&lt;/strong&gt; The README GIF isn't a screen recording. It's an HTML scene rendered frame by frame through the Chrome DevTools Protocol into ffmpeg, and every number in it comes from a real run. If the output format changes, the demo can be rebuilt.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;In Claude Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/plugin marketplace add Havali55/borsa-zeka
/plugin install borsa@borsa-zeka
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then &lt;code&gt;/borsa:hisse THYAO&lt;/code&gt; for a single stock, &lt;code&gt;/borsa:brifing&lt;/code&gt; for a market briefing, or &lt;code&gt;/borsa:komite ASELS&lt;/code&gt; to convene the committee. No API key is needed, and market data is about 15 minutes delayed.&lt;/p&gt;

&lt;p&gt;The code is MIT-licensed: &lt;strong&gt;&lt;a href="https://github.com/Havali55/borsa-zeka" rel="noopener noreferrer"&gt;github.com/Havali55/borsa-zeka&lt;/a&gt;&lt;/strong&gt;. Issues tagged &lt;em&gt;good first issue&lt;/em&gt; cover dividends, Ichimoku and an English output mode. Contributions are welcome.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Borsa Zekâ is an analysis tool. Nothing it produces is investment advice.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>claude</category>
      <category>mcp</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
