Software engineering and AI for engineers and technical leads: working examples, decisions and their trade-offs.

Explore the writing ↗

CodeMeetsAI

Build / Explore / UnderstandEN + TR

The lab

Try what the articles build, on screen: a publication rule, search by meaning, a test harness and more.

Open the lab ↗
if (privateSource) return 'private';
if (sensitive) return 'review';
if (!evidence) return 'reject';
return confidence >= .9
  ? 'publish' : 'review';
Evidence → policy → publication

Explore the writing

All writing ↗
// Simplified: response parsing and error handling omitted.
async function callTool(endpoint, token, name, args) {
  let session = null;
  let id = 0;
  const post = async (body) => {
    const headers = {

One memory for several AI tools

Claude Code, Codex and Hermes each kept their own notes. Two small hooks and one shared memory service changed that. What we built, why the hooks talk HTTP instead of using MCP tools, and what broke on the first day.

AI applicationsArchitectureReliability
export async function compare(variants, cases, check) {
  const results = {};
  for (const [name, run] of Object.entries(variants)) {
    const rows = [];
    for (const c of cases) {
      let output;

A small test harness for prompts: same cases, every change

About forty lines of code that run the same cases against several variants and count passes, failures and missing results separately. Tried on our semantic search and on a small local model, where it caught a problem nobody was looking for.

AI applicationsTestingEvaluation
const cosine = (a, b) => a.reduce((sum, x, i) => sum + x * b[i], 0);

const hits = index
  .map((chunk) => ({...chunk, score: cosine(queryVector, chunk.vector)}))
  .sort((a, b) => b.score - a.score)
  .slice(0, 3);

Semantic search over our own articles, with a local model

A small, runnable build: index this site’s English and Turkish articles with a multilingual embedding model on your own machine, search by meaning, and look honestly at where it works and where it does not.

AI applicationsArchitectureEvaluation

From the news desk

All AI News ↗

Short notes on selected AI developments: my comment and links to the sources.

Follow a thread