CSCraig Solomonincraigsolomon.hashnode.dev·1h ago · 7 min readTuning Keyword Weights From Thumbs Up/Down Feedback in a Monitoring AgentA keyword pre-filter is the cheap half of any two-pass monitoring pipeline. Items arrive from your sources, the filter matches terms you own, sums their weights, and decides which survivors are worth 00
CSCraig Solomonincraigsolomon.hashnode.dev·2d ago · 7 min readHow to Make MCP Tool Guards Fail Closed in PythonLook at three MCP tool signatures: call_api(url: str, method: str, body: str | None) query_database(sql: str) read_text_file(path: str) Every one of those arguments arrives from a model. Not from you00
CSCraig Solomonincraigsolomon.hashnode.dev·2d ago · 7 min readSanitize or Fail: Two Ways to Handle Rule Violations in LLM OutputAn em dash in generated text has one correct fix. Swap it for a comma, swap it for a period, or recast the sentence. The first two are a string replacement. You do not need a second model call to do i01M
CSCraig Solomonincraigsolomon.hashnode.dev·2d ago · 7 min readHow to Make an LLM Score Feed Items Against Your Business, Not in GeneralRelevance is not a property of an article. It is a function of two arguments: the item, and the business reading it. A scoring prompt that receives only the item can answer only the general question, 00
CSCraig Solomonincraigsolomon.hashnode.dev·5d ago · 8 min readIdempotent Scheduled AI Drafts: No Duplicates After a RestartA scheduled drafting agent looks correct right up until the process restarts. The scheduler comes back, the trigger fires, the model returns text, and now you have a second copy of a draft you already00