<?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: Ikkun</title>
    <description>The latest articles on DEV Community by Ikkun (@ikkun1222).</description>
    <link>https://dev.to/ikkun1222</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%2F4078352%2F0c81ce0e-3272-4e25-8763-0d733bb9806b.png</url>
      <title>DEV Community: Ikkun</title>
      <link>https://dev.to/ikkun1222</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ikkun1222"/>
    <language>en</language>
    <item>
      <title>Hide API keys behind a Cloudflare Worker</title>
      <dc:creator>Ikkun</dc:creator>
      <pubDate>Wed, 25 Nov 2026 00:15:38 +0000</pubDate>
      <link>https://dev.to/ikkun1222/hide-api-keys-behind-a-cloudflare-worker-389c</link>
      <guid>https://dev.to/ikkun1222/hide-api-keys-behind-a-cloudflare-worker-389c</guid>
      <description>&lt;p&gt;Every client that talks to an API ends up holding a key, and every copy of that key is another place it can leak. The pattern I use to avoid that: hide the key behind a &lt;a href="https://workers.cloudflare.com/" rel="noopener noreferrer"&gt;Cloudflare Worker&lt;/a&gt; on the free tier. The client calls the Worker. The Worker adds the real key server-side and forwards the request to the upstream API. The client never sees the key, and the Worker URL is the only credential it needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem: keys multiply until one leaks
&lt;/h2&gt;

&lt;p&gt;It starts with one script and one key. Then the key is in an environment file, then in a config, then in a notebook, then in a chat log because someone needed to debug quickly. Each copy is a separate leak surface, and keys leak exactly once — after that, the damage is done. My credential hygiene improved a lot once I stopped distributing keys at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the proxy works
&lt;/h2&gt;

&lt;p&gt;The mechanics are simple. The client sends its request to the Worker URL. The Worker takes the request, attaches the real API key from its own environment, and forwards it to the upstream API. The response comes back through the Worker to the client.&lt;/p&gt;

&lt;p&gt;From the client's point of view nothing changes except the base URL. From the key's point of view, it never leaves the Worker. There is no token in any request the client makes, so there is nothing for a logs dump, a browser extension, or a misconfigured proxy to grab.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the free tier is enough
&lt;/h2&gt;

&lt;p&gt;Two requirements drove this choice: zero maintenance cost, and keys never exposed to the client. The Cloudflare Worker free tier satisfies both. There is no server to patch, no process to supervise, and no bill while traffic stays within the free allowance. The Worker is a small piece of code with one job, which is the kind of thing that keeps working for months without attention.&lt;/p&gt;

&lt;p&gt;This fits the rest of my setup, which leans on free tiers wherever the workload is light. The pattern is not limited to Cloudflare either: if the upstream API is Google-adjacent, a Google Apps Script web app can do the same thing at zero cost. The shape is what matters — a thin proxy that owns the secret — not the specific host.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rotation without touching clients
&lt;/h2&gt;

&lt;p&gt;The quiet win of this pattern is key rotation. When a key needs to rotate, I change it in exactly one place: the Worker's environment. Every client keeps using the same Worker URL and keeps working. No redeploy of clients, no hunting through repos for the old key, no guessing which environment still holds the stale value.&lt;/p&gt;

&lt;p&gt;Rotation is the moment most key management fails, because it is rare enough that nobody practices it. A pattern where rotation is a one-line change is a pattern that actually gets rotated. That is worth more than any amount of ceremony around the key itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the pattern stops fitting
&lt;/h2&gt;

&lt;p&gt;The proxy is not a universal answer. If the client itself has to sign requests or the upstream API expects the key in a place the Worker cannot intercept cleanly, the pattern adds indirection without removing exposure. I also do not use it for short-lived experiments where the key never leaves my own machine anyway — the cost of standing up a Worker is not worth it there.&lt;/p&gt;

&lt;p&gt;It is also not a substitute for treating keys as replaceable. A leaked key behind a proxy is still a leaked key; the proxy just shrinks the number of places that can happen. I rotate on suspicion, and because rotation is a one-line change here, I actually do it.&lt;/p&gt;

&lt;p&gt;This is the same principle I apply to credentials everywhere else: the fewer places a secret lives, the fewer places it can be stolen from. The Worker is my narrowest possible surface.&lt;/p&gt;

&lt;p&gt;If you already proxy your agent traffic through a gateway or a custom endpoint, have you checked whether the keys behind it stay server-side, or are they visible to the client?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://agentjournal.dev/blog/worker-key-proxy/" rel="noopener noreferrer"&gt;agentjournal.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>api</category>
      <category>ai</category>
      <category>programming</category>
    </item>
    <item>
      <title>Giving Agents Memory: Self-Hosted Qdrant + Mem0</title>
      <dc:creator>Ikkun</dc:creator>
      <pubDate>Mon, 23 Nov 2026 00:15:40 +0000</pubDate>
      <link>https://dev.to/ikkun1222/giving-agents-memory-self-hosted-qdrant-mem0-5gca</link>
      <guid>https://dev.to/ikkun1222/giving-agents-memory-self-hosted-qdrant-mem0-5gca</guid>
      <description>&lt;p&gt;The way I give agents long-term memory is a small self-hosted stack: a vector database for storage, a Japanese-capable embedding model for indexing, and an open-source memory layer on top. The context window handles the current task; the memory layer handles everything the agent should still know next week. Keeping both local means the agent's memory never leaves my server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why agents need memory at all
&lt;/h2&gt;

&lt;p&gt;A context window is a scratchpad, not a memory. When the session ends, everything it contained is gone — unless something wrote it down. Memory is that something: a layer the agent queries before answering, and updates when it learns something durable.&lt;/p&gt;

&lt;p&gt;The practical difference is visible within days. An agent with memory does not ask you the same deployment detail twice. An agent without it treats every session as a first meeting.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;p&gt;Three pieces, each with a specific job:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Vector database — Qdrant, self-hosted.&lt;/strong&gt; Vectors in, neighbors out. Running my own instance means the index lives on my server, not in someone's cloud. &lt;a href="https://qdrant.tech/" rel="noopener noreferrer"&gt;Qdrant&lt;/a&gt; is the one I run, in &lt;a href="https://agentjournal.dev/blog/docker-security-basics/" rel="noopener noreferrer"&gt;Docker&lt;/a&gt;, with the same backup discipline as everything else.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://agentjournal.dev/blog/embedding-models-japanese/" rel="noopener noreferrer"&gt;Embedding model&lt;/a&gt; — a small Japanese-optimized model.&lt;/strong&gt; My text is a mix of Japanese and English, and generic English embedding models degrade on Japanese. I use a small Qwen3-4B-based embedding model with 2560-dim vectors. Small matters: embeddings are the highest-volume inference in the stack, so the model's size is a cost line, not a detail.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory layer — Mem0 (OSS).&lt;/strong&gt; The open-source self-hosted version gives the agent-facing tools: search before answering, add when it learns something, update when a fact changes, delete when it goes stale. Configured with my own LLM endpoint, my own embeddings, my own vector store.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The operational warts (this is the honest part)
&lt;/h2&gt;

&lt;p&gt;Self-hosting memory is not set-and-forget. The pieces that bite:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The embedding key is statically embedded in the config.&lt;/strong&gt; When the model provider rotates keys, the config needs a manual update. There is no auto-rotation, and forgetting it means silent embedding failures.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vector stores are append-heavy.&lt;/strong&gt; Old facts linger. Without hygiene, the store fills with superseded entries and the search quality degrades.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory is only as good as its write discipline.&lt;/strong&gt; An agent that never saves learns nothing. The workflow has to include explicit saves: when a durable fact surfaces, it gets stored, not just answered.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Memory hygiene rules I enforce
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Search before answering.&lt;/strong&gt; Multi-angle searches for multi-part questions, with follow-up searches on what the first results surface. One search is rarely enough.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Update in place, do not duplicate.&lt;/strong&gt; When a fact changes, the old entry is replaced, not appended. Duplicate memories are how agents contradict themselves.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Delete what is stale.&lt;/strong&gt; Task progress and session state do not belong in memory. They belong in session history, which is searchable separately. Memory holds durable facts — preferences, environment details, conventions — not yesterday's to-do list.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep memory compact.&lt;/strong&gt; Memory is injected into every turn. Every entry costs tokens every single time. Compact, high-signal entries are a performance decision, not a style preference.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What memory is not
&lt;/h2&gt;

&lt;p&gt;Memory is not a task tracker. That is what session history is for — and searching past sessions is a different, cheaper operation than stuffing everything into a vector store. The rule I use: &lt;strong&gt;if a fact will be stale in a week, it does not belong in memory.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What does your agent's memory store, and when did you last prune it?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://agentjournal.dev/blog/agent-memory/" rel="noopener noreferrer"&gt;agentjournal.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>A Japan stock data API an agent can actually call</title>
      <dc:creator>Ikkun</dc:creator>
      <pubDate>Fri, 20 Nov 2026 00:15:38 +0000</pubDate>
      <link>https://dev.to/ikkun1222/a-japan-stock-data-api-an-agent-can-actually-call-3i0</link>
      <guid>https://dev.to/ikkun1222/a-japan-stock-data-api-an-agent-can-actually-call-3i0</guid>
      <description>&lt;h2&gt;
  
  
  The gap is not data, it is join keys
&lt;/h2&gt;

&lt;p&gt;Japan publishes more company data than most markets. EDINET has annual reports going back a decade, TDnet pushes earnings releases in near real time, JPX publishes listing files, and none of it costs money. If you are writing English documentation for an agent that needs Japanese financials, the problem is not supply.&lt;/p&gt;

&lt;p&gt;The problem is that every one of those sources identifies a company differently, and the mismatch shows up at the join, not at the download. I spent the last months building a data pipeline over these sources and then a tool layer on top of it. Here is what I measured on the way, and which route I ended up keeping.&lt;/p&gt;

&lt;h2&gt;
  
  
  Route one: EDINET, official and free
&lt;/h2&gt;

&lt;p&gt;EDINET is the Financial Services Agency's disclosure system. It has a documented API, a subscription key, and document types for annual reports, semi-annual reports and extraordinary filings. For an agent that needs line-item detail, this is the only serious source, because the filings carry XBRL.&lt;/p&gt;

&lt;p&gt;Two things bite immediately.&lt;/p&gt;

&lt;p&gt;The first is the join key. EDINET's document list does not always tell you the ticker. On one day I pulled the list and got 5,741 documents, of which 3,694 came back without a securities code. That is 64 percent. Newly listed companies, foreign issuers and share-class filings are the usual suspects. If your loader keys on ticker only, two thirds of the day's filings silently fall out, and you will notice weeks later when a company you care about has a gap.&lt;/p&gt;

&lt;p&gt;The fallback is a two-step resolution: securities code first, then EDINET's own company code, then the filer name, normalised by folding full width characters and stripping the corporate form and punctuation. Name matching has to be fuzzy enough to survive "ＫＯＭＰＥＩＴＯ" against "株式会社コムペイト", and strict enough that two share classes of the same company do not collide. I chose to skip ambiguous matches rather than risk attributing a filing to the wrong entity.&lt;/p&gt;

&lt;p&gt;The second is that some filings have no numbers at all. Foreign companies come back with a flag that says no CSV is available, and the XBRL behind them contains no numeric facts, only converted HTML. Four of the companies in my universe are in that state. A pipeline that treats "no data" as "retry later" will retry forever.&lt;/p&gt;

&lt;h2&gt;
  
  
  Route two: the JPX route
&lt;/h2&gt;

&lt;p&gt;J-Quants is the JPX-backed API, and it is where I would send someone who needs prices and valuation ratios with a clean contract. I did not benchmark it, and I am not going to quote its plan limits here: the site returned a 403 to my scripted requests, and publishing numbers I could not verify seemed worse than saying so. If the limits matter to your budget, read them on the site yourself.&lt;/p&gt;

&lt;p&gt;What I can say is what it does not carry: XBRL line items. If your agent needs to answer "what was in the segment note" or "what did the cash flow statement actually say", the JPX route is not the source for that question. The two are complementary, not substitutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Route three: scrape the price pages
&lt;/h2&gt;

&lt;p&gt;The pragmatic route for daily prices is a library that scrapes a public quote page. I ran that for months. It works, with two traps I had to learn twice.&lt;/p&gt;

&lt;p&gt;First, the end date is exclusive. Pass today's date and today never lands, so your table looks one day stale forever. Second, in batch mode the most recent row often comes back with a null close, and if you write null rows you get holes that look like market holidays.&lt;/p&gt;

&lt;p&gt;Third, and this one hurt: never run the ingest during the session. A run at 09:27 wrote the intraday print as the close for 38 symbols, and because the freshness timestamp is derived from the newest row, the service reported "prices to today" while the values were wrong. The fix was to delete that day, republish, and move the job after the close. Freshness indicators are only as honest as the data they summarise.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually costs the weeks
&lt;/h2&gt;

&lt;p&gt;None of the above is the hard part. The hard part is the vocabulary.&lt;/p&gt;

&lt;p&gt;Japanese filings use three accounting vocabularies: the domestic standard, IFRS, and US GAAP. The same line item can appear under three element names, and US GAAP inserts a token into the middle of the name rather than using a separate prefix. Build your map from IFRS samples alone and a whole block of companies comes back empty, including some of the largest. I found that out by diffing "companies with zero extracted revenue" against the listing file, which is the only reliable detector I have.&lt;/p&gt;

&lt;p&gt;The other trap is consolidation. A company's current year numbers can live only in a non-consolidated context. If you default to consolidated you get a row where the prior year is populated and the current year is null, which looks like a parsing bug but is a data shape. In my universe that affects 466 of roughly 3,700 companies. The detector cannot be the "consolidated / non-consolidated" column either, because it is frequently "other"; the reliable signal is the audit report element in the filing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What an agent needs on top
&lt;/h2&gt;

&lt;p&gt;Once the numbers are one schema, the remaining question is the interface. Agents do better with tools than with an SDK and a retry loop. So each endpoint in my service is also an MCP tool with typed arguments, and both surfaces run the same query layer with a parity test that compares the two outputs. Fourteen tools, fourteen endpoints, no second dialect to keep in sync.&lt;/p&gt;

&lt;p&gt;I measured the round trips from Tokyo against the hosted version. Five years of annual financials for Toyota is 10.5 KB and 0.56 seconds. A screen of 50 companies by ROE and PER is 27.6 KB and 0.21 seconds. Fifty disclosures is 15.6 KB and 0.31 seconds. Fifty XBRL line items is 7.8 KB and 0.28 seconds. Cold starts add to the first call after idle, and none of these numbers are promises.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this route does not give you
&lt;/h2&gt;

&lt;p&gt;Being clear about the edges is cheaper than a support ticket later.&lt;/p&gt;

&lt;p&gt;Prices start in 2023 and are not split adjusted in this release. There is no real time feed and no order book. Forecast data only exists for companies that filed an earnings release while the source still keeps it, and that source keeps roughly one month, so guidance coverage is narrower than financial statement coverage by construction. Nothing here is investment advice, and it is not a licensed vendor for regulated use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this landed
&lt;/h2&gt;

&lt;p&gt;I put the result behind a free key: an MCP server and REST API over EDINET, TDnet and JPX, with five years of financials, XBRL line items, disclosures, screening and rankings. One hundred calls a month, no card. The product page and the key form are at &lt;a href="https://agentjournal.dev/discli/" rel="noopener noreferrer"&gt;discli&lt;/a&gt;, and the API contract is in the &lt;a href="https://agentjournal.dev/blog/edinet-api-v2/" rel="noopener noreferrer"&gt;EDINET API v2 notes&lt;/a&gt; if you want to build the ingest yourself instead.&lt;/p&gt;

&lt;p&gt;If you have wired Japanese filings into an agent, which part cost you the most: the join key, the vocabulary, or the freshness lie?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://agentjournal.dev/blog/japan-stock-data-api-for-agents/" rel="noopener noreferrer"&gt;agentjournal.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>mcp</category>
      <category>agents</category>
      <category>ai</category>
    </item>
    <item>
      <title>TDnet disclosures as an API: what the documents do not keep</title>
      <dc:creator>Ikkun</dc:creator>
      <pubDate>Wed, 18 Nov 2026 00:15:38 +0000</pubDate>
      <link>https://dev.to/ikkun1222/tdnet-disclosures-as-an-api-what-the-documents-do-not-keep-2h4g</link>
      <guid>https://dev.to/ikkun1222/tdnet-disclosures-as-an-api-what-the-documents-do-not-keep-2h4g</guid>
      <description>&lt;h2&gt;
  
  
  The short answer
&lt;/h2&gt;

&lt;p&gt;TDnet is where Japanese listed companies publish timely disclosures: earnings revisions, dividend changes, M&amp;amp;A, officer changes, buybacks. It works, it is free to read, and it is the canonical source for this material. What it is not is an API: the public face is a browser view of PDFs, so anyone who wants the data in a pipeline ingests the feed themselves or buys a distribution product.&lt;/p&gt;

&lt;p&gt;Two properties of that data decided my architecture, and neither is obvious from the outside:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Almost none of the disclosures carry XBRL. In my store, 6 of 7,154 rows have an XBRL URL.&lt;/li&gt;
&lt;li&gt;The PDF link stops working after about five weeks. I probed it: documents 35 days old returned 200, documents 45 days old returned 404.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Both are reasonable choices for a disclosure system. Both change what you build on top of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I measured
&lt;/h2&gt;

&lt;p&gt;My ingest has been pulling the disclosure feed since March 2025. Current state of the table:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Quantity&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Disclosures stored&lt;/td&gt;
&lt;td&gt;7,154&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Distinct security codes&lt;/td&gt;
&lt;td&gt;2,887&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Window&lt;/td&gt;
&lt;td&gt;2025-03-05 to 2026-11-05&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rows carrying an XBRL URL&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rows added in the last 30 days&lt;/td&gt;
&lt;td&gt;3,307&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Three thousand disclosures a month across roughly 2,900 companies. That shape matters: this is a stream you keep up with, not a table you query later. Designing for "fetch on demand" and discovering the volume is a common way to spend a weekend.&lt;/p&gt;

&lt;p&gt;The XBRL number surprised me more. Six out of seven thousand. XBRL in Japan means EDINET, which covers securities reports and quarterly filings with element level tagging. TDnet sits above that as the announcement layer, and announcements are PDFs because a PDF is what a company submits and what a person reads. If an agent needs structured numbers, the structured document is usually a separate filing that lands in EDINET. That is not a gap in TDnet, it is a division of labour between two systems that were designed for different readers.&lt;/p&gt;

&lt;h2&gt;
  
  
  The retention probe
&lt;/h2&gt;

&lt;p&gt;I took disclosures from buckets at 31, 35, 45, 50 and 55 days of age and requested the stored document URL, with a browser user agent, four URLs per bucket:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;31 days  -&amp;gt;  200 200 200 200
35 days  -&amp;gt;  200 200 200 200
45 days  -&amp;gt;  404
50 days  -&amp;gt;  404 404 404 404
55 days  -&amp;gt;  404 404 404 404
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The bucket at 40 days came back empty because no disclosures were published that day, a market holiday, which is its own small lesson about sampling by date.&lt;/p&gt;

&lt;p&gt;So the document lifetime sits somewhere between five and six weeks. The metadata I keep is permanent and the document behind it is not. I learned this the boring way: a citation from my own output stopped resolving, and nothing in my pipeline had failed, because nothing in my pipeline was watching the link.&lt;/p&gt;

&lt;h2&gt;
  
  
  What that changes
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Capture at ingest, not at query.&lt;/strong&gt; When the disclosure appears, take the title, the company name, the code, the timestamp, the document type, and either the text or a copy of the PDF. Late fetches fail quietly, because the metadata still looks perfectly fine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Separate the pointer from the content.&lt;/strong&gt; My table stores &lt;code&gt;document_url&lt;/code&gt; and it resolves for a while. An agent that cites it a month later is citing something that has already expired upstream. If you need citations that survive, the content has to be mirrored, and mirroring documents raises licensing questions that metadata does not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do not promise full text search you cannot serve.&lt;/strong&gt; I do not mirror PDF text, so I can filter by company, code and date, and I cannot answer "find every disclosure that mentions a specific customer". Pretending otherwise produces a feature that works in a demo and fails under load.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Treat XBRL as a separate route.&lt;/strong&gt; The six XBRL carrying disclosures are the exception. Structured numbers come from EDINET, which means a second ingest with its own vocabulary problem, covered in &lt;a href="https://agentjournal.dev/blog/edinet-api-v2/" rel="noopener noreferrer"&gt;the EDINET API v2 notes&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where a paid route fits
&lt;/h2&gt;

&lt;p&gt;JPX sells disclosures as an addon to J-Quants, described on their product page as timely delivery of listed company disclosure documents during the day. If your requirement is intraday latency and a contract to point at, that is the right answer, and it is priced like a data product rather than a side project. If your requirement is "an agent should know what was announced about this company this month", ingesting the feed and keeping the metadata is enough, and it costs nothing.&lt;/p&gt;

&lt;p&gt;The split is the familiar one in this data: the exchange sells freshness and accountability, and everyone else builds the joins.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this route does not do
&lt;/h2&gt;

&lt;p&gt;It is metadata only. No document text, no OCR of scanned PDFs, no full text search, and no promise that a document URL in a response still resolves. Coverage starts when the ingest started, so older disclosures are absent rather than sparse. The five week life of the upstream PDF means any feature that assumes permanence needs redesigning, and my own answers say so rather than pretending otherwise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this landed
&lt;/h2&gt;

&lt;p&gt;The disclosure table sits behind the same free key as the rest: an MCP tool called &lt;code&gt;disclosures_get&lt;/code&gt; that takes a code and returns date, title and document URL, plus REST for the same data. The product page is at &lt;a href="https://agentjournal.dev/discli/" rel="noopener noreferrer"&gt;discli&lt;/a&gt;. The identifier problem underneath is in &lt;a href="https://agentjournal.dev/blog/japan-data-join-keys/" rel="noopener noreferrer"&gt;Japanese company data: three identifiers&lt;/a&gt;, and the neighbouring route is in &lt;a href="https://agentjournal.dev/blog/jquants-alternative-agents/" rel="noopener noreferrer"&gt;J-Quants for agents&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you have built a disclosure pipeline, did you mirror the documents or accept that citations expire?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://agentjournal.dev/blog/tdnet-disclosure-api-agents/" rel="noopener noreferrer"&gt;agentjournal.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>agents</category>
      <category>ai</category>
      <category>programming</category>
    </item>
    <item>
      <title>Docker security: read-only, no-new-privileges</title>
      <dc:creator>Ikkun</dc:creator>
      <pubDate>Mon, 16 Nov 2026 00:15:36 +0000</pubDate>
      <link>https://dev.to/ikkun1222/docker-security-read-only-no-new-privileges-4e37</link>
      <guid>https://dev.to/ikkun1222/docker-security-read-only-no-new-privileges-4e37</guid>
      <description>&lt;p&gt;I run several self-hosted services in Docker, a vector database, my memory layer, and a few dashboards, and the question that kept coming back was how much container flags actually do. The direct answer: the three Docker security flags I rely on are a read-only root filesystem where possible, no-new-privileges, and dropped capabilities. None of them is a wall, but together they shrink the surface a container exposes, and they cost almost nothing to set. This post is what I actually configure and why.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read-only root filesystem
&lt;/h2&gt;

&lt;p&gt;The first flag is &lt;code&gt;--read-only&lt;/code&gt;. Mounting the container's root filesystem read-only means a compromised process cannot write to system paths it has no business touching. Many of my services are stateless enough that this works out of the box. The ones that need to write scratch data get a writable volume mounted at a single explicit path, usually &lt;code&gt;/tmp&lt;/code&gt; or a dedicated data directory.&lt;/p&gt;

&lt;p&gt;The honest caveat: some images just will not run read-only without work. When one of my services refuses, I trace the write and give it the narrowest writable mount I can. The goal is not perfection; it is making the default filesystem unwritable so an attacker who gets code execution has to work harder to persist.&lt;/p&gt;

&lt;h2&gt;
  
  
  no-new-privileges
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;--security-opt no-new-privileges&lt;/code&gt; flag tells the kernel that the process cannot gain additional privileges later in its lifetime. In practical terms it blocks the escalation paths that rely on setuid binaries and similar mechanisms. For a container that should run as an unprivileged user anyway, no-new-privileges removes a whole class of escalation without breaking anything.&lt;/p&gt;

&lt;p&gt;I treat it as a default, not an exception. There is no reason a web-facing service of mine needs to escalate privileges mid-run, so I add it everywhere and only think about the rare case that genuinely needs it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Dropped capabilities
&lt;/h2&gt;

&lt;p&gt;Capabilities are the granular permissions the kernel hands out, and containers start with a surprisingly broad set by default. The pattern I follow is to drop rather than grant: I remove the capabilities a service does not need instead of listing the ones it should have. The useful ones are rare in my workloads, and trimming the defaults leaves a small, boring surface.&lt;/p&gt;

&lt;p&gt;This mirrors the general principle I apply to systemd units: each service gets the minimal set of privileges its function needs. The same instinct carries over to containers. If a service needs no special capability, the container needs almost none.&lt;/p&gt;

&lt;h2&gt;
  
  
  Image discipline matters more than flags
&lt;/h2&gt;

&lt;p&gt;The flags only help if the image underneath is sound. Three habits I keep: pin images to a specific tag or digest so updates are deliberate rather than accidental, scan images for known vulnerabilities as part of my routine, and avoid running as root inside the container.&lt;/p&gt;

&lt;p&gt;Running as root in the container undoes much of the flag work, because a root process has far more to work with if it is compromised. I build images with an unprivileged user and run services as that user. Combined with read-only and no-new-privileges, a compromise in a container has a small box to move around in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Containers are a boundary, not a wall
&lt;/h2&gt;

&lt;p&gt;The most important framing shift for me was accepting that a container is a boundary, not a wall. The host kernel and the container configuration both matter, and neither replaces the other. A misconfigured container on a patched host is different from a misconfigured container on an unpatched one, so I keep the base image and the kernel current as well.&lt;/p&gt;

&lt;p&gt;For me this folds into the same workflow as the broader self-hosting setup I run for my agents. The vector database and memory pieces are the same containers I care about here. If you are running agents you are probably carrying similar state, so hardening these defaults is cheap insurance.&lt;/p&gt;

&lt;p&gt;Do you reach for the read-only flag on every container, or do you only enable it for the services that tolerate it?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://agentjournal.dev/blog/docker-security-basics/" rel="noopener noreferrer"&gt;agentjournal.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>docker</category>
      <category>security</category>
      <category>containers</category>
      <category>agents</category>
    </item>
    <item>
      <title>The 2B model scored 10%. 93% of its answers were right</title>
      <dc:creator>Ikkun</dc:creator>
      <pubDate>Fri, 13 Nov 2026 00:15:37 +0000</pubDate>
      <link>https://dev.to/ikkun1222/the-2b-model-scored-10-93-of-its-answers-were-right-2l2p</link>
      <guid>https://dev.to/ikkun1222/the-2b-model-scored-10-93-of-its-answers-were-right-2l2p</guid>
      <description>&lt;p&gt;I expected small local models to be worse than a hosted decision API at Japanese classification. I did not expect most of the gap to be something other than judgement. On the hardest of three tasks one model scored &lt;strong&gt;10.8% overall&lt;/strong&gt; while getting &lt;strong&gt;27 of the 29 answers it produced&lt;/strong&gt; right. The other 221 rows it never answered.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I ran, and what the accuracy number counted
&lt;/h2&gt;

&lt;p&gt;Three Japanese tasks, 250 identical rows each. livedoor is 9-class news-topic classification (mean 1,308 characters), rakuten is 2-class review polarity (165), chabsa is 3-class financial-sentence polarity (100). Chance is 11.1%, 50.0% and 33.3%. Every system got the same prompt asking for one label as JSON, and a row counted correct only if the parsed label matched gold. Unparseable output counted as wrong.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;System&lt;/th&gt;
&lt;th&gt;livedoor&lt;/th&gt;
&lt;th&gt;rakuten&lt;/th&gt;
&lt;th&gt;chabsa&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Jev (hosted API)&lt;/td&gt;
&lt;td&gt;76.8%&lt;/td&gt;
&lt;td&gt;94.4%&lt;/td&gt;
&lt;td&gt;74.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemma 4 26B-A4B (local MoE)&lt;/td&gt;
&lt;td&gt;65.2%&lt;/td&gt;
&lt;td&gt;94.4%&lt;/td&gt;
&lt;td&gt;75.2%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SemIf (Qwen3.5-4B)&lt;/td&gt;
&lt;td&gt;68.8%&lt;/td&gt;
&lt;td&gt;92.0%&lt;/td&gt;
&lt;td&gt;64.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;phi-4-mini 3.8B Q4&lt;/td&gt;
&lt;td&gt;38.0%&lt;/td&gt;
&lt;td&gt;89.6%&lt;/td&gt;
&lt;td&gt;71.6%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MiniCPM5-2B Q4&lt;/td&gt;
&lt;td&gt;36.4%&lt;/td&gt;
&lt;td&gt;89.2%&lt;/td&gt;
&lt;td&gt;61.6%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LFM2.5-2.6B Q4&lt;/td&gt;
&lt;td&gt;10.8%&lt;/td&gt;
&lt;td&gt;75.6%&lt;/td&gt;
&lt;td&gt;26.4%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How many rows actually produced an answer?
&lt;/h2&gt;

&lt;p&gt;This is the column I should have read first:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;livedoor&lt;/th&gt;
&lt;th&gt;rakuten&lt;/th&gt;
&lt;th&gt;chabsa&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;phi-4-mini 3.8B&lt;/td&gt;
&lt;td&gt;243/250&lt;/td&gt;
&lt;td&gt;249/250&lt;/td&gt;
&lt;td&gt;250/250&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MiniCPM5-2B&lt;/td&gt;
&lt;td&gt;197/250&lt;/td&gt;
&lt;td&gt;250/250&lt;/td&gt;
&lt;td&gt;250/250&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LFM2.5-2.6B&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;29/250&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;199/250&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;87/250&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Score only the rows that answered and the ranking moves. LFM2.5-2.6B's livedoor figure becomes &lt;strong&gt;93.1% (27/29)&lt;/strong&gt;, and its rakuten figure &lt;strong&gt;95.0%&lt;/strong&gt;, above phi-4-mini's 89.6% and level with the hosted API's 94.4%. These models were not failing to judge. They failed to finish.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a small model returns nothing
&lt;/h2&gt;

&lt;p&gt;I reproduced it on the mini-PC on 2026-10-26 (llama.cpp &lt;code&gt;60081bb&lt;/code&gt;, CPU-only) on the same livedoor row. With a 512-token budget the response body came back &lt;strong&gt;empty&lt;/strong&gt; with &lt;code&gt;finish_reason: length&lt;/code&gt; and 512 completion tokens spent. The tokens went to a populated &lt;code&gt;reasoning_content&lt;/code&gt; field holding the model's step-by-step working: it ran out of budget before the answer.&lt;/p&gt;

&lt;p&gt;Raise the budget to 2,048 and that row returns &lt;code&gt;{"label": "MOVIE ENTER"}&lt;/code&gt;, correct, &lt;code&gt;finish_reason: stop&lt;/code&gt;, 790 tokens. Same weights and prompt, temperature 0.&lt;/p&gt;

&lt;p&gt;Raising the budget is not a complete fix. On the first 40 livedoor rows at 2,048: 28 answered (70%, against 11.6% at 512), but 11 still hit the cap and returned nothing, and one answered with an out-of-vocabulary label (&lt;code&gt;IT Lifehack&lt;/code&gt;) that a strict parser rejects. Answer rate and answer validity are separate failure modes.&lt;/p&gt;

&lt;p&gt;A reasoning-capable model spends tokens thinking, and a budget sized for the answer truncates it to nothing, which the harness scores as wrong. My earlier Gemma 4 E2B run shows the same shape at the format layer: 142 of 250 rows emitted valid JSON (56.8%), and &lt;strong&gt;140 of those 142 were correct&lt;/strong&gt; (98.6%).&lt;/p&gt;

&lt;h2&gt;
  
  
  Does a 2B model ever beat the API?
&lt;/h2&gt;

&lt;p&gt;On accuracy, in my data, no. Paired McNemar on identical row ids, two-sided: phi-4-mini vs Jev −38.8pt on livedoor (p=1.2e-21), −4.8pt on rakuten (p=0.029), −2.4pt on chabsa (p=0.59); MiniCPM5-2B −40.4pt / −5.2pt (p=0.0072) / −12.4pt (p=0.0042); SemIf 4B −8.0pt (p=0.0012) / −2.4pt (p=0.070) / −10.0pt (p=0.014). The gap narrows as the task gets shorter and more lexical: 4.8 points on the 165-character polarity task, 39 to 40 on the long 9-class one.&lt;/p&gt;

&lt;p&gt;Costs do not favour the small side either. Summed per-row latency over all 750 rows: MiniCPM5-2B &lt;strong&gt;20 minutes&lt;/strong&gt;, phi-4-mini &lt;strong&gt;39&lt;/strong&gt;, SemIf 4B &lt;strong&gt;40&lt;/strong&gt;, LFM2.5-2.6B &lt;strong&gt;191&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Meanwhile 2,000 Jev requests across eight experimental arms produced zero unparseable responses. A closed-choice API cannot format-fail; a chat model can, and that difference dominates the table.&lt;/p&gt;

&lt;p&gt;Measure answered rows before accuracy: a number averaging "wrong" and "silent" tells you nothing about which one you are buying. Background is in &lt;a href="https://agentjournal.dev/blog/trained-encoder-vs-decision-api/" rel="noopener noreferrer"&gt;the zero-shot versus trained comparison&lt;/a&gt; and &lt;a href="https://agentjournal.dev/blog/cpu-inference-reality/" rel="noopener noreferrer"&gt;the CPU throughput limits&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Measured 2026-09-19 to 2026-10-26 on a Ryzen 9 7940HS mini-PC, llama.cpp &lt;code&gt;60081bb&lt;/code&gt;, Q4_K_M weights, temperature 0, 250 rows per task.&lt;/p&gt;

&lt;p&gt;If you have sized a token budget for a local model's answers rather than its thinking, what budget actually cleared it?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://agentjournal.dev/blog/small-local-models-silent-failures/" rel="noopener noreferrer"&gt;agentjournal.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>J-Quants for agents: what it covers, and when you need more</title>
      <dc:creator>Ikkun</dc:creator>
      <pubDate>Wed, 11 Nov 2026 00:15:41 +0000</pubDate>
      <link>https://dev.to/ikkun1222/j-quants-for-agents-what-it-covers-and-when-you-need-more-1bcb</link>
      <guid>https://dev.to/ikkun1222/j-quants-for-agents-what-it-covers-and-when-you-need-more-1bcb</guid>
      <description>&lt;h2&gt;
  
  
  The short answer
&lt;/h2&gt;

&lt;p&gt;J-Quants is the official JPX product for Japanese market data, and for most agents it is the right first call. It is operated by the exchange, it is priced for individuals, and since December 2025 it authenticates with a plain API key instead of a token refresh dance, which removes the most annoying part of wiring it into an agent.&lt;/p&gt;

&lt;p&gt;There is a category of question it does not cover, and that category is why I built something else. This post is about where that line sits, with plan facts from JPX's own releases and numbers from my own ingest.&lt;/p&gt;

&lt;h2&gt;
  
  
  What J-Quants does well
&lt;/h2&gt;

&lt;p&gt;From JPX's August 2025 release, four plans: free at 0 yen, Light at 1,650 yen a month, Standard at 3,300, Premium at 16,500 (all tax included). Data windows follow the price: two years with a twelve week delay on free, five years on Light, ten on Standard, everything on Premium.&lt;/p&gt;

&lt;p&gt;The free plan is generous in a way that is rare. It includes prices, the listed securities table, the trading calendar, earnings announcement dates, and 財務情報, the quarterly summary. Paying widens the history window and adds datasets, but the shape of the product is the same, so what you learn on the free plan still applies after you upgrade.&lt;/p&gt;

&lt;p&gt;Two rows in that release are worth knowing before you pick a plan:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;財務情報 (quarterly summary financial data) is available on &lt;strong&gt;all four plans&lt;/strong&gt;, including free.&lt;/li&gt;
&lt;li&gt;財務諸表, meaning the balance sheet and profit and loss statement detail, plus 配当金情報 (dividend data), are &lt;strong&gt;Premium only&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For an agent that screens companies, pulls a price series and reads headline figures, the free plan is a working setup at zero cost and Light is a reasonable upgrade. A later release from January 2026 added CSV bulk downloads for Light and above, and minute and tick data as a 5,500 yen addon.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the edge sits
&lt;/h2&gt;

&lt;p&gt;An agent does not read a table the way a person does. It reads whatever fields the response carries, then either answers or asks for more. The questions that stall at summary level are the ones that need a number the summary does not carry:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Compare operating margin and equity ratio over five years." Needs a consistent time series of two ratios, derivable from summaries. Fine from Light.&lt;/li&gt;
&lt;li&gt;"Which segment drove the profit drop last quarter?" Needs the segment table, which lives in the XBRL rather than in a quarterly summary.&lt;/li&gt;
&lt;li&gt;"Show the raw line items behind that figure." Needs the element name, the context (consolidated or not) and the period. That is XBRL.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is a design boundary rather than a defect. J-Quants distributes curated datasets, and the element level table with contexts is a different artifact: it sits inside the filing, and the exchange sells it there. Every product in this space draws the same line somewhere, mine included.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part I built
&lt;/h2&gt;

&lt;p&gt;I needed the filing level, so I parse EDINET XBRL, TDnet disclosures and JPX listings into one shape and expose it over REST and MCP. Measured on the live service:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Quantity&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Listed securities&lt;/td&gt;
&lt;td&gt;4,471 with market segment and industry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Annual and interim financial statements&lt;/td&gt;
&lt;td&gt;28,863 rows across 3,715 codes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;XBRL line items&lt;/td&gt;
&lt;td&gt;2,113,558 rows at element level&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Toyota, five years of annual figures&lt;/td&gt;
&lt;td&gt;10.5 KB in 0.56 s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That last row decides whether an agent can afford to ask. Ten kilobytes is smaller than most prompt preambles, so the model can hold five years of a company in context and reason over it instead of paginating.&lt;/p&gt;

&lt;p&gt;The line item count is also the honest measure of the work. Two million rows is not a download, it is a parse, a vocabulary mapping across three accounting regimes, and a decision about rows that appear in one year and vanish the next.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who should pick which
&lt;/h2&gt;

&lt;p&gt;Most people should start with J-Quants.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You want an official, contracted, split adjusted price history, intraday bars or tick data.&lt;/strong&gt; J-Quants, without hesitation. Mine has daily closes from 2023, unadjusted, and no intraday data at all.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You want the shortest path from zero to a working screen.&lt;/strong&gt; Either works from the free tier. J-Quants has the exchange behind it, which some teams need for procurement.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You want the agent to read a filing the way an analyst reads it.&lt;/strong&gt; Element level rows with their context. That is where mine fits, with one caveat I should state plainly: the rows are all there, but turning them into a clean segment table is work I have only done for one pilot company so far.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You want an MCP endpoint with no wrapper.&lt;/strong&gt; The official J-Quants spec is REST with API keys, so an agent needs a small wrapper. Mine speaks MCP directly, fourteen tools.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You need someone to stand behind the number.&lt;/strong&gt; J-Quants is the exchange's own product. My terms say the opposite of that: data comes as is, with no warranty of accuracy and no support obligation, so check the filing before you rely on a figure.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last point matters more than it sounds. If your use is regulated, or a wrong number costs money, the official route answers "where did this come from" in a way a personal project cannot.&lt;/p&gt;

&lt;h2&gt;
  
  
  What mine does not do
&lt;/h2&gt;

&lt;p&gt;Prices start in 2023 and are not split adjusted, so a five year chart of a company that split in 2024 will look wrong. No intraday data. Forecast coverage depends on the upstream source still holding the release, which I measured at about five weeks, so guidance is narrower than financial statements. It is reference data, not investment advice, and not a licensed feed. The free tier is one hundred calls a month, enough to evaluate and to run a small agent, not enough for a nightly job over the whole market.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this landed
&lt;/h2&gt;

&lt;p&gt;Both routes are legitimate and they answer different questions. Start with JPX if you want adjusted exchange grade prices, a contract and an accountable source. If the question is "what is inside this filing", that is the layer I build, and the product page with the free key form is at &lt;a href="https://agentjournal.dev/discli/" rel="noopener noreferrer"&gt;discli&lt;/a&gt;. The join key work behind it is in &lt;a href="https://agentjournal.dev/blog/japan-data-join-keys/" rel="noopener noreferrer"&gt;Japanese company data: three identifiers&lt;/a&gt;, and the disclosure side in &lt;a href="https://agentjournal.dev/blog/tdnet-disclosure-api-agents/" rel="noopener noreferrer"&gt;TDnet as an API&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you have run both, what made you reach past the summary level the first time?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://agentjournal.dev/blog/jquants-alternative-agents/" rel="noopener noreferrer"&gt;agentjournal.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>mcp</category>
      <category>agents</category>
      <category>ai</category>
    </item>
    <item>
      <title>A $1.50 search API where the URL is the interface</title>
      <dc:creator>Ikkun</dc:creator>
      <pubDate>Mon, 09 Nov 2026 00:15:36 +0000</pubDate>
      <link>https://dev.to/ikkun1222/a-150-search-api-where-the-url-is-the-interface-3ihf</link>
      <guid>https://dev.to/ikkun1222/a-150-search-api-where-the-url-is-the-interface-3ihf</guid>
      <description>&lt;p&gt;I use a hosted Google search API to find company websites from a company name, and I switched to Bright Data's SERP endpoint because the billing model fits intermittent use: $1.50 per 1,000 successful requests, a 5,000 request monthly free tier, no monthly minimum, and failed requests are not billed.&lt;/p&gt;

&lt;p&gt;Then my first accuracy test confirmed 15 of 25. The API was not slow and it was not erroring. Two parameters were missing from the URL I sent, and one of them changed the search results from Japan to India.&lt;/p&gt;

&lt;h2&gt;
  
  
  The call
&lt;/h2&gt;

&lt;p&gt;The endpoint takes a search URL and returns the engine's response. For Google with organic results in a light JSON shape:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST https://api.brightdata.com/request &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer &lt;/span&gt;&lt;span class="nv"&gt;$BRIGHTDATA_TOKEN&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{
    "zone": "&amp;lt;serp zone&amp;gt;",
    "format": "raw",
    "url": "https://www.google.com/search?q=ACME+%E6%A0%AA%E5%BC%8F%E4%BC%9A%E7%A4%BE&amp;amp;hl=ja&amp;amp;gl=jp&amp;amp;brd_json=parsed_light",
    "data_format": "parsed_light"
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;format: "raw"&lt;/code&gt; returns the body as text. &lt;code&gt;brd_json=parsed_light&lt;/code&gt; asks for the parsed view, and &lt;code&gt;data_format&lt;/code&gt; tells the API to hand it back as JSON rather than a string.&lt;/p&gt;

&lt;h2&gt;
  
  
  The five things that broke
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Symptom&lt;/th&gt;
&lt;th&gt;Cause&lt;/th&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Japanese companies missing from results&lt;/td&gt;
&lt;td&gt;no &lt;code&gt;gl&lt;/code&gt; parameter, so the geolocation defaulted elsewhere&lt;/td&gt;
&lt;td&gt;set &lt;code&gt;gl=jp&lt;/code&gt; (and &lt;code&gt;hl=ja&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;400&lt;/code&gt; with no useful message&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;num&lt;/code&gt; is rejected by the SERP layer&lt;/td&gt;
&lt;td&gt;ask for the default page size, paginate with &lt;code&gt;start&lt;/code&gt; if needed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;request timed out&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;brd_json=1&lt;/code&gt; (full JSON) on a heavy result set&lt;/td&gt;
&lt;td&gt;use &lt;code&gt;brd_json=parsed_light&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;took 6 to 12 seconds per call&lt;/td&gt;
&lt;td&gt;it is a real browser fetch, not a cached index&lt;/td&gt;
&lt;td&gt;budget for it, run calls concurrently&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;occasional &lt;code&gt;502&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;upstream fetch failure&lt;/td&gt;
&lt;td&gt;retry once, then treat as no result&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The geolocation one is the expensive mistake. With no &lt;code&gt;gl&lt;/code&gt;, the API returned results with a &lt;code&gt;country&lt;/code&gt; field of India or Portugal for Japanese company names. Nothing in the response says the search was performed from the wrong place; the results just look plausible and are wrong. If your pipeline extracts the first organic link, you get a confident wrong answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the numbers looked like
&lt;/h2&gt;

&lt;p&gt;I test any search provider against a hard set: 25 companies whose websites I have already confirmed by hand, chosen because name-based guessing had failed on them before. For each company I count three things separately:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;retrieved: the correct domain appears anywhere in the organic results&lt;/li&gt;
&lt;li&gt;confirmed: my verification step accepts it as the company's site&lt;/li&gt;
&lt;li&gt;false confirmation: the pipeline accepted a wrong domain&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Path&lt;/th&gt;
&lt;th&gt;Retrieved&lt;/th&gt;
&lt;th&gt;Confirmed&lt;/th&gt;
&lt;th&gt;Wrong domain accepted&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;guessed URL from the company name, old rules&lt;/td&gt;
&lt;td&gt;not applicable&lt;/td&gt;
&lt;td&gt;15 of 25&lt;/td&gt;
&lt;td&gt;yes, before a Japan check was added&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;plain JSON, no geolocation&lt;/td&gt;
&lt;td&gt;16 of 25&lt;/td&gt;
&lt;td&gt;15 of 25&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;parsed light JSON with &lt;code&gt;gl=jp&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;19 of 25&lt;/td&gt;
&lt;td&gt;16 of 25&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Retrieval went from 64 percent to 76 percent just by telling the API where I was searching from. The confirmed count moved more, because correct results that were previously outranked by same-name foreign companies became reachable.&lt;/p&gt;

&lt;p&gt;Zero wrong domains in the two API configurations is the number I care about most, and it is zero because the verification step now requires evidence that the page belongs to a Japanese entity: Japanese text, a Japan address, or a location. Before that check existed, the guessing path nearly accepted a Slovenian domain for a Japanese company whose name matched. For this use case a miss costs one manual lookup, and a wrong domain corrupts the record silently.&lt;/p&gt;

&lt;h2&gt;
  
  
  What comes back
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;parsed_light&lt;/code&gt; gives you the organic block as structured JSON: position, title, link, description, plus the engine's own metadata. It is around ten results, which is what the first page holds. The full JSON variant contains every module Google renders on that page, and on a rich result set it is large enough that the whole request occasionally fails. If you need a knowledge panel or related questions, pay for the full parse deliberately rather than by default.&lt;/p&gt;

&lt;p&gt;One billing detail that surprised me, from the docs: the pay-per-success model applies to the standard configuration. If you set custom headers or cookies on the zone, every request is billed including failures, and retries are still not extra. If you need a specific Accept-Language or a consent cookie, model the cost as "all attempts" rather than "successes".&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this tool is the wrong choice
&lt;/h2&gt;

&lt;p&gt;For anything that can wait, a queued batch API is cheaper per request. This endpoint exists for the case where you want the answer in the same second, and you pay for that: a real browser, a proxy that is not your datacenter IP, and a parser on the other side.&lt;/p&gt;

&lt;p&gt;It is also not a search index. Asking it the same question repeatedly costs the same every time, so caching the query and the result is not optional at any volume.&lt;/p&gt;

&lt;p&gt;What it costs at different volumes, and where the cheaper option is not the one you would guess, is in &lt;a href="https://agentjournal.dev/blog/serp-api-pricing-not-a-price-list/" rel="noopener noreferrer"&gt;the pricing model post&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you have moved a scraping job from a self-hosted headless browser to a hosted SERP API: what did you lose that you did not expect?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://agentjournal.dev/blog/brightdata-serp-api-quirks/" rel="noopener noreferrer"&gt;agentjournal.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>webdev</category>
      <category>google</category>
      <category>ai</category>
    </item>
    <item>
      <title>Oracle Cloud free tier: the always-free ARM instance</title>
      <dc:creator>Ikkun</dc:creator>
      <pubDate>Fri, 06 Nov 2026 00:15:44 +0000</pubDate>
      <link>https://dev.to/ikkun1222/oracle-cloud-free-tier-the-always-free-arm-instance-37o</link>
      <guid>https://dev.to/ikkun1222/oracle-cloud-free-tier-the-always-free-arm-instance-37o</guid>
      <description>&lt;p&gt;Yes, Oracle Cloud's always-free tier really does include a permanently free ARM instance — I run a meaningful part of my agent infrastructure on one. The catch people miss is not the price, it is the availability and the mindset. The free-tier ARM instance hosts agent services and a long-running site in my stack, and it has been genuinely useful. But I treat it as a nearly-free compute resource with a recall clause, not as a permanent home for anything I cannot afford to lose.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the always-free tier gives you
&lt;/h2&gt;

&lt;p&gt;Oracle Cloud's free tier covers a small set of always-free resources, distinct from the temporary trial credit you start with. The part that stands out for people running agents is the ARM instance: it is always-free rather than a time-boxed trial, which means you can leave a service running on it indefinitely without it expiring. For an always-on workload — an agent service that needs to answer around the clock, or a site that is expected to stay up — that long-running nature is the whole point. A time-limited free trial that vanishes after a month is useless for a service; an always-free instance is a different category of thing entirely.&lt;/p&gt;

&lt;p&gt;I deliberately keep the platform's monitoring agents on it as well. Some installations strip those out to save resources or reduce noise, but I leave them in place. They are the console's eyes — the signal I rely on to notice when something on the instance stops behaving. On a free resource with no support contract to call, that visibility matters more than the modest overhead it costs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where I use it, and where I do not
&lt;/h2&gt;

&lt;p&gt;Generic terms here, because the specifics matter less than the lesson. The ARM instance runs agent services and a long-running site in my infrastructure. It handles sustained, always-on work that does not need the headroom of my paid hardware. That split is deliberate: free-tier compute is excellent for workloads that are steady and predictable, and awkward for anything that suddenly needs a burst of cycles.&lt;/p&gt;

&lt;p&gt;What I do not do is treat it as my only copy of anything. If a service on the free tier dies, I want the recovery to be a re-provision and a restore, not a reconstruction. That is the discipline the &lt;a href="https://agentjournal.dev/blog/free-tier-stack/" rel="noopener noreferrer"&gt;free-tier stack&lt;/a&gt; post lays out, and it applies here more than anywhere.&lt;/p&gt;

&lt;h2&gt;
  
  
  The caveat that changes the design
&lt;/h2&gt;

&lt;p&gt;The honest caveat: instance availability on the free tier can be reclaimed. Oracle can take an always-free instance back, and when it does, the instance is gone — you do not get a negotiation, you get a notice. I have not been bitten, but I design as if I will be. That constraint is what forces the important habit: keep state somewhere else.&lt;/p&gt;

&lt;p&gt;The principle is simple. The instance is a cattle resource, not a pet. Its job is to run the compute. The data it produces and the state its services depend on live elsewhere, backed up and recoverable. That way, if the instance is reclaimed, it is an inconvenience — a re-provision, a restore, a few hours of my time — not a disaster where I lose the accumulated state my agents depend on. My &lt;a href="https://agentjournal.dev/blog/agent-memory/" rel="noopener noreferrer"&gt;agent memory&lt;/a&gt; layer and its vector store live outside the free instance for exactly this reason.&lt;/p&gt;

&lt;h2&gt;
  
  
  The mental model
&lt;/h2&gt;

&lt;p&gt;The always-free ARM instance is real, capable compute at zero monthly cost, and that makes it easy to over-trust it. The useful frame is: free compute, guaranteed only until it is not. Run the always-on services on it, keep the platform's monitoring eyes attached, and keep everything that matters recoverable somewhere that a reclaim cannot touch. Done that way, it is one of the best cost-per-mileage pieces of my whole stack. Done the other way, it is a single point of failure wrapped in a great price.&lt;/p&gt;

&lt;p&gt;What would you be willing to re-provision from scratch in exchange for a permanently free ARM instance?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://agentjournal.dev/blog/oracle-free-tier/" rel="noopener noreferrer"&gt;agentjournal.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cloud</category>
      <category>agents</category>
      <category>monitoring</category>
      <category>ai</category>
    </item>
    <item>
      <title>Alpha Vantage limits and the Japanese stock gap</title>
      <dc:creator>Ikkun</dc:creator>
      <pubDate>Wed, 04 Nov 2026 00:15:45 +0000</pubDate>
      <link>https://dev.to/ikkun1222/alpha-vantage-limits-and-the-japanese-stock-gap-4ll7</link>
      <guid>https://dev.to/ikkun1222/alpha-vantage-limits-and-the-japanese-stock-gap-4ll7</guid>
      <description>&lt;p&gt;When I first went to wire up a stock data feed, Alpha Vantage looked like the obvious default: it's free, it's a real API, and it covers a huge swath of assets. So I wrote my pipeline against it — and then discovered two things that changed how I think about any free financial data feed. First, the free tier is rate-limited so tightly (I measured roughly 5 requests per minute) that any loop needs a sleep between calls. Second, and bigger for me: it doesn't cover Japanese stocks at all, which is the market I actually needed. Checked and confirmed in my own setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  The free tier is a scheduling constraint, not a firehose
&lt;/h2&gt;

&lt;p&gt;The headline "free" hides a real operational constraint. On the free tier I observed roughly 5 requests per minute, which is fine if your job makes a handful of calls. But if you write a loop that iterates over a list of tickers without throttling, you'll blow through the limit in the first few seconds and spend the rest of the run backing off.&lt;/p&gt;

&lt;p&gt;My fix was boring and effective: a sleep between requests. I pace the loop to stay under the observed rate, and I treat the limit as part of the contract I'm designing against rather than a surprise. This is the same discipline I apply to any upstream that isn't mine to hammer — throttle, back off, and make the job idempotent so a partial run can resume cleanly.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Alpha Vantage does cover well
&lt;/h2&gt;

&lt;p&gt;To be fair, the coverage where it exists is broad. The API handles US and other global stocks, forex, crypto, commodities, and economic indicators. If your universe is US equities, a free-tier Alpha Vantage feed with a throttled loop is a perfectly reasonable place to start a research pipeline. The rate limit is manageable when your request volume is small.&lt;/p&gt;

&lt;p&gt;That's exactly why the gap stung: the tool is good at the things it does, and the missing piece is precisely the market I needed. For Japanese equity data, Alpha Vantage simply wasn't the answer, and no amount of throttling fixes a coverage hole.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Japanese stock gap
&lt;/h2&gt;

&lt;p&gt;The hard lesson wasn't about rate limits — it was about coverage. Japanese stocks aren't on the free global feed, and that's a category problem rather than a config problem. You can't sleep your way to data the API doesn't have.&lt;/p&gt;

&lt;p&gt;So for Japanese tickers I use a Japan-specific source instead, one that covers daily OHLCV going back years plus valuation and dividend data. Different endpoint, different rate budget, same throttling discipline. The point is that the two feeds serve different asset classes, and choosing between them is a coverage decision first and a pricing decision second.&lt;/p&gt;

&lt;h2&gt;
  
  
  The decision rule I now run with
&lt;/h2&gt;

&lt;p&gt;Before I build any pipeline on a free financial feed, I check three things in order. Coverage: does it actually serve my market and asset class? Rate limits: can the free tier sustain my request volume once throttled, or will I be waiting all day? Officialness: is there an official source for this data that's more reliable and documented? Alpha Vantage fails me on the first question for Japan, which is enough to disqualify it for that job no matter how good the rest is — the same reasoning I applied when I replaced scraping with proper Japanese data feeds.&lt;/p&gt;

&lt;p&gt;The rule generalizes beyond stocks. Any free API with a tight free tier and partial coverage is a candidate for the "check before you build" list. Read the limits, confirm the coverage actually includes your universe, and only then write the pipeline.&lt;/p&gt;

&lt;p&gt;What's your go-to when a free API covers most of the world but not the one market you actually trade — do you tolerate the gap or switch sources entirely?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://agentjournal.dev/blog/alpha-vantage-limits/" rel="noopener noreferrer"&gt;agentjournal.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>data</category>
      <category>api</category>
      <category>ai</category>
      <category>programming</category>
    </item>
    <item>
      <title>Enterprise Agent Selection: A Field Report (Series)</title>
      <dc:creator>Ikkun</dc:creator>
      <pubDate>Mon, 02 Nov 2026 00:15:44 +0000</pubDate>
      <link>https://dev.to/ikkun1222/enterprise-agent-selection-a-field-report-series-527j</link>
      <guid>https://dev.to/ikkun1222/enterprise-agent-selection-a-field-report-series-527j</guid>
      <description>&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;: When an organization handles information that must not leak, audit coverage decides the agent platform — not model quality. This series walks through a real selection process I supported, why a desktop app excluded from Compliance API lost the lead role, and what would change the conclusion.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;One-line summary&lt;/strong&gt;: Audit coverage &amp;gt; model benchmarks for regulated environments; pick the platform whose &lt;em&gt;entire&lt;/em&gt; surface set is auditable.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Most articles about choosing an AI platform are written by and for engineering organizations. This one is not. The organization I recently helped has no dedicated engineering staff, handles pre-release information whose exposure carries material consequences, and runs ordinary managed Windows laptops. If that sounds unusual: per 2026 surveys, only ~12% of companies have deployed AI agents at all (under half among large enterprises). The constraint set in this series is not exotic — it is the default starting point for most first-time adopters.&lt;/p&gt;

&lt;p&gt;I've anonymized everything the NDA covers. What remains is the decision process, which is the part worth recording.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this series exists
&lt;/h2&gt;

&lt;p&gt;The existing guide on this site, &lt;a href="https://agentjournal.dev/blog/choosing-your-agent/" rel="noopener noreferrer"&gt;Choosing Your Agent&lt;/a&gt;, answers "which agent should &lt;em&gt;I&lt;/em&gt; run." This series answers a harder question: &lt;strong&gt;"which platform can my organization live with for the length of a contract?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That reframing matters because three things are expensive to change after signing:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Audit coverage&lt;/strong&gt; — what the vendor records about user activity, and whether you can pull it into your own systems.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Management plane shape&lt;/strong&gt; — how many consoles, toggles, and config files it takes to keep the deployment consistent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost structure&lt;/strong&gt; — where the bill is flat (seats) and where it is variable (usage).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Model quality, feature velocity, benchmark deltas — all of that churns monthly. The three items above are structural. You inherit them for the contract term.&lt;/p&gt;

&lt;h2&gt;
  
  
  The parts
&lt;/h2&gt;

&lt;p&gt;Each part stands alone: direct answer in the first paragraph, tables over prose, facts dated "as of August 2026," and a one-line takeaway you can lift into your own decision memo.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Part&lt;/th&gt;
&lt;th&gt;Title&lt;/th&gt;
&lt;th&gt;Core question&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;&lt;a href="https://agentjournal.dev/blog/audit-gap-decides-platform/" rel="noopener noreferrer"&gt;The Audit Gap Decides the Platform&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Which surfaces actually land in audit logs?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;One Admin Console Beats Three&lt;/td&gt;
&lt;td&gt;How much management complexity can a staff-less org absorb?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;What Seat Pricing Actually Covers&lt;/td&gt;
&lt;td&gt;Where does the flat rate end and usage billing begin?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Why Command Allowlists Fail Alone&lt;/td&gt;
&lt;td&gt;What actually constrains an agent on a managed laptop?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Research Tasks on a Locked-Down Network&lt;/td&gt;
&lt;td&gt;Can agents do web research under default-deny egress?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;The Decision, and What Would Change It&lt;/td&gt;
&lt;td&gt;What was chosen, and which facts would reverse it?&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;(Links go live as each part publishes.)&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Who this is for
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Compliance / IT owners at companies adopting AI agents &lt;strong&gt;without&lt;/strong&gt; a dedicated engineering team&lt;/li&gt;
&lt;li&gt;Vendors' docs readers who want to know which admin controls matter first&lt;/li&gt;
&lt;li&gt;Anyone who has been asked "can we just buy licenses?" by their board&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Q: Is this a recommendation to avoid Anthropic?&lt;/strong&gt;&lt;br&gt;
No. It's a record of one selection process where audit coverage outweighed model preference. The reversal conditions are documented in Part 6.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q: Are the prices in this series official?&lt;/strong&gt;&lt;br&gt;
All pricing is quoted as of August 2026 from public plan pages; Enterprise tiers are custom quotes, so treat numbers as directional.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q: Why write about a client engagement?&lt;/strong&gt;&lt;br&gt;
Because the failure mode — picking a platform nobody can audit or operate later — is common enough that the process deserves documentation.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Next: Part 1 — The Audit Gap Decides the Platform&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://agentjournal.dev/blog/enterprise-agent-selection/" rel="noopener noreferrer"&gt;agentjournal.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>claude</category>
      <category>security</category>
      <category>agents</category>
      <category>ai</category>
    </item>
    <item>
      <title>Running AI Coding Agents in Production: My 2026 Stack</title>
      <dc:creator>Ikkun</dc:creator>
      <pubDate>Fri, 30 Oct 2026 00:15:38 +0000</pubDate>
      <link>https://dev.to/ikkun1222/running-ai-coding-agents-in-production-my-2026-stack-4fh1</link>
      <guid>https://dev.to/ikkun1222/running-ai-coding-agents-in-production-my-2026-stack-4fh1</guid>
      <description>&lt;p&gt;Everyone has an opinion about AI agents. Almost nobody publishes their actual production setup — the gateways, the &lt;a href="https://agentjournal.dev/blog/mcp-server-security/" rel="noopener noreferrer"&gt;MCP servers&lt;/a&gt;, the credential handling, the monthly bill. This is mine, as of August 2026, with real numbers and the failures included.&lt;/p&gt;

&lt;p&gt;I run coding and automation agents daily for real work: this site, open-source tooling, and the automation that runs my infrastructure. Here's the stack, layer by layer.&lt;/p&gt;

&lt;h2&gt;
  
  
  The agents (division of labor)
&lt;/h2&gt;

&lt;p&gt;I don't use one agent for everything. Using the right tool per task is the cheapest optimization available:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;opencode&lt;/strong&gt; — my open-source coding agent for repository-scale work. Runs with a local provider config, executes code, verifies results. It's the workhorse for feature work where I want full control of the loop.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude Code / Codex&lt;/strong&gt; — used for sessions where their specific strengths apply (long-context refactors, or tasks tuned to their model families). I treat them as specialists, not a default.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hermes (Nous Research)&lt;/strong&gt; — the automation layer. &lt;a href="https://agentjournal.dev/blog/cron-job-monitoring/" rel="noopener noreferrer"&gt;Cron jobs&lt;/a&gt;, scheduled pipelines, monitoring: things that run while I sleep and message me when they break. This is the agent that writes the drafts for this site, runs my infrastructure checks, and handles repetitive ops.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The rule I've landed on: &lt;strong&gt;a coding agent that runs unattended is an ops problem, not a coding problem.&lt;/strong&gt; Which is why the layers below matter more than which agent you pick.&lt;/p&gt;

&lt;h2&gt;
  
  
  The gateway layer
&lt;/h2&gt;

&lt;p&gt;Routing through gateways instead of calling providers directly is the single biggest sanity improvement. I use three:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;OpenRouter&lt;/strong&gt; — the default router for experimentation. The free tier covers low-stakes calls, and the model catalog means I can A/B test providers without touching config. &lt;a href="https://openrouter.ai/" rel="noopener noreferrer"&gt;OpenRouter&lt;/a&gt; - &lt;strong&gt;Merge&lt;/strong&gt; — my main paid gateway. One API for the models I use daily, with &lt;a href="https://agentjournal.dev/blog/merge-gateway-pro/" rel="noopener noreferrer"&gt;cost tracking&lt;/a&gt; across agents. At $10/mo it pays for itself in what it stops me from overspending on direct API calls. &lt;a href="https://merge.dev/" rel="noopener noreferrer"&gt;Merge&lt;/a&gt; - &lt;strong&gt;&lt;a href="https://agentjournal.dev/blog/vercel-ai-gateway-free/" rel="noopener noreferrer"&gt;Vercel AI Gateway&lt;/a&gt;&lt;/strong&gt; — for the projects already on Vercel's stack. Its free tier ($5 of credits per 30 days) handles the low-volume path fine; I only reach for it when the project is already there. &lt;a href="https://vercel.com/" rel="noopener noreferrer"&gt;Vercel&lt;/a&gt; Why gateways and not direct API keys? Because &lt;strong&gt;every agent that holds a direct provider key is a credential you're one prompt injection away from leaking.&lt;/strong&gt; Gateways centralize the key, give you a kill switch, and make the bill auditable. This matters more than any model choice.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Credential handling (the part nobody writes about)
&lt;/h2&gt;

&lt;p&gt;This is where most agent setups are a disaster waiting to happen. My rules:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Secrets live in &lt;code&gt;pass&lt;/code&gt; / Bitwarden, never in agent context.&lt;/strong&gt; Agents get credentials via an injection layer at runtime, not by reading a &lt;code&gt;.env&lt;/code&gt; that sits in the repo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I maintain &lt;a href="https://github.com/ikkun1222/trustless" rel="noopener noreferrer"&gt;trustless&lt;/a&gt;&lt;/strong&gt; — an open-source credential broker that serves secrets to agents through a local proxy, with DLP scrubbing and per-call authorization. It exists because I watched agents echo API keys into logs, chat history, and debug output. Once per week was too often.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Long-lived keys are the enemy.&lt;/strong&gt; Refresh tokens that rotate, short-lived sessions, and per-service keys scoped to exactly one tool. When a key leaks (it will), the blast radius is one service, one function.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  MCP servers and tooling
&lt;/h2&gt;

&lt;p&gt;The MCP layer is where the real leverage is. Currently running:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Filesystem + git servers&lt;/strong&gt; — for agent access to repos without shelling out into the filesystem blindly&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Web search / fetch servers&lt;/strong&gt; — the ones that make agents useful for research without hallucinating URLs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Home-grown servers for my own infra&lt;/strong&gt; — including a server that wraps my credential broker so agents can request secrets through a structured interface instead of me pasting them&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The lesson: &lt;strong&gt;a well-scoped MCP server beats a prompt telling the agent to "be careful" every time.&lt;/strong&gt; If the agent can't reach it, it can't break it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Networking and self-hosted pieces
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tailscale&lt;/strong&gt; — all agent access to my infra goes over the tailnet; SSH is not exposed publicly. Agents reach services by tailnet name, which also means the &lt;a href="https://agentjournal.dev/blog/tailnet-for-agents/" rel="noopener noreferrer"&gt;public attack surface&lt;/a&gt; is ~zero. &lt;a href="https://tailscale.com/" rel="noopener noreferrer"&gt;Tailscale&lt;/a&gt; - &lt;strong&gt;Cloudflare&lt;/strong&gt; — DNS, Pages (this site), Workers, and the edge layer. The free tier covers everything this site needs. &lt;a href="https://cloudflare.com/" rel="noopener noreferrer"&gt;Cloudflare&lt;/a&gt; - &lt;strong&gt;&lt;a href="https://agentjournal.dev/blog/qdrant-selfhosted/" rel="noopener noreferrer"&gt;Qdrant&lt;/a&gt; + Mem0&lt;/strong&gt; — self-hosted memory/vector layer for the automation agent. Running my own instance means the agent's memory never leaves my server. &lt;a href="https://qdrant.tech/" rel="noopener noreferrer"&gt;Qdrant&lt;/a&gt; - &lt;strong&gt;vLLM&lt;/strong&gt; — for the local models I run (a small Japanese-optimized model does embedding and light extraction work). Keeping boring inference local cuts gateway spend measurably.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The bill (real numbers)
&lt;/h2&gt;

&lt;p&gt;Monthly, as of this writing:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Gateways (Merge Pro + Vercel free tier + OpenRouter free)&lt;/td&gt;
&lt;td&gt;~$10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cloudflare (DNS + Pages + Workers)&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Self-hosted infra (cloud free tiers, one cheap VPS)&lt;/td&gt;
&lt;td&gt;~$5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;~$15/mo&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The trick is boring: &lt;strong&gt;route the expensive calls through the free tiers, self-host the repetitive work, and let the gateways absorb the variance.&lt;/strong&gt; I've seen the same setup run $200+/mo when the routing is lazy.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd change / what's broken
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Context management is still the bottleneck.&lt;/strong&gt; Long-running agents degrade; I still restart sessions more than I'd like.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The agents occasionally fight each other&lt;/strong&gt; — two automation runs touching the same state. File locking and job ownership markers helped, but it's not solved.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model quality is uneven across providers.&lt;/strong&gt; The gateway makes switching cheap, but "cheap to switch" means I spend more time evaluating than I'd like.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The agent you pick matters less than the plumbing around it: gateway routing, credential hygiene, scoped MCP access, and a tailnet. Get those right and you can swap models and agents freely — which is exactly what you'll want to do, because this space moves monthly.&lt;/p&gt;

&lt;p&gt;This is the first post in what will be a series on the details: MCP server design, gateway cost engineering, and credential handling for agents. If you're running agents in production too, &lt;a href="https://github.com/ikkun1222" rel="noopener noreferrer"&gt;I'd like to hear what your stack looks like&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: some links in this post are affiliate links — see &lt;a href="https://agentjournal.dev/disclosure/" rel="noopener noreferrer"&gt;disclosure&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://agentjournal.dev/blog/running-ai-coding-agents-in-production/" rel="noopener noreferrer"&gt;agentjournal.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>mcp</category>
      <category>security</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
