Melta Blog
Guides and honest comparisons on running Herdr, Claude Code and Codex from your phone, and the SSH plumbing underneath.
-
Where an AI memory's search harm hides: raw passages served without the memory's own verdict
We traced every harmful answer our memory's search returned on four synthetic test sets. About 96% came from raw passages served without the memory's own decision about those words. A rule withholding another person's pasted text is built; its blind test is still ahead.
-
Why every vector query timed out at 100,000 chunks, and the idea that fixed it: check after the sort
At about 100,000 stored chunks, every verified vector search in our AI memory timed out. The cause was a safety check run on every readable row before sorting. Checking after the sort fixed it, with 0 differences in results. Ranking at scale is still open.
-
When an AI memory metric counts words that hold nothing: splitting real values from framing
Our two main measures of who-said-what in AI memory both counted lead-in words like 'Ravi wrote:' that hold no fact. Splitting real values from framing changed which rules looked good. Then an audit showed one rule's harm drop was real anyway.
-
How to compare AI memory systems fairly: sealed installs, one store per person, fresh questions
Before comparing our AI memory with other memory systems, we wrote the rules first: install each from its own source, sealed from the internet; one store per person; fresh questions never tuned on; a log-everything baseline; one clock for searchable.
-
The server finished the job. The phone never fetched it
Every server number looked healthy: uploads answered in 0.6 s, 99% of jobs finished. Counting result reads per job id showed 7.6% of the photos the server processed were never fetched by the phone.
-
The database did not crash, it waited: binary logs filled the disk and every write hung for 55 minutes
A database’s data disk hit 100%. MySQL did not crash; it waited. Every write hung for 55 minutes, and nothing alerted, because the process was up and the health check was green.
-
A free API we called without a key started asking for one: 47 of 64 lookups failed
An app’s server asked a public catalogue’s free API without a key, because it worked. One afternoon every anonymous call got 401. The server retried, the phone said try again, and a cache hid it.
-
The auto-trigger shipped before its gate: 28% of what it fired was not the target
A phone app’s camera mode learned to capture by itself. An update published by hand carried the trigger but not the check that asks whether the object is there: 2,001 of 7,200 automatic captures were not the target.
-
Can a decision model tell a reminder from a maybe? Five models tested as an AI memory gate
We asked five decision models, which answer yes/no questions with probabilities instead of writing text, to flag standing reminders and temporary states in 555 synthetic turns in English, Hindi and Hinglish. None met our pre-set line. Hedges, sarcasm and hypotheticals were the hard part.
-
A nightly job vanished from the process manager, and nothing failed
A nightly loader lived only in a process manager’s saved list. After an out-of-memory restart it was gone. Nothing failed: the API kept answering from a 39-hour-old table, and every check stayed green.
-
Detected but not applied: telling a user's own words from pasted text in AI memory
When a user pastes a colleague's message, AI memory can store it as the user's own fact. Our rule passed 72 of 72 test cases and still removed only 6 of 219 misattributions on a blind set. An ids-only account showed why: it found 33 pastes but applied the mark to 6.
-
Can a small local model decide what AI memory keeps? Five models under 2B, tested blind
We ran five local models of 0.6B to 2B parameters on a laptop CPU as the proposer in Yukti Memory's propose-check-confirm design, on the same frozen blind sets as a hosted small model. The best local model caught 26 of 80 reminders; the hosted one caught 79. One result changed our design.
-
Our AI memory's token estimate was a third low: counting what a memory packet really costs
Yukti Memory sized its context packets with a bytes-divided-by-three token estimate. A real tokenizer count on synthetic English, Hindi and Hinglish text found packets about a third larger than promised. The obvious fix lost answers; the one that held kept every byte and made the numbers honest.
-
Our graceful shutdown waited for requests. The work ran after the response
A Node server drained its workers on every deploy: stop taking requests, wait for what is in flight, exit. The real work ran after the response, so the drain counted zero. 7 of 481 jobs in a day never finished, each at a process death.
-
A model proposes, code checks, you confirm: a blind test of AI agent memory
Code word lists recognised 15 of 80 reminders on a blind test. We let a small language model propose instead, kept code as the checker, and stored nothing without the person's confirm. On a fresh blind set it recognised 79 of 80, stored nothing unconfirmed, and still failed four of its lines. Here is the design, the protocol and every number.
-
Our own tests said 100%. A blind test said 19%: testing AI agent memory blind
Two AI agent memory features, standing reminders and time-bounded states, scored perfectly on test cases their own author wrote. A blind test, written by an independent AI model from the definitions alone and scored once, found 15 of 80 reminders. Here is the protocol and what held.
-
Where should an AI agent's memory live? Model weights, latent vectors, a knowledge graph, or a governed store
Four places an AI agent's memory can live: trained model weights, latent vectors, an ontology or knowledge graph, or a governed retrieval store. We compare them on citing sources, erasure, per-reader access, cost and device limits, using two research papers' own numbers and our own benchmark gap.
-
Stress-testing an AI memory design with an AI brainstorming partner: four redesigns in one day, and what survived
How we put an AI agent memory design through four rival redesigns from an AI brainstorming partner in one day, sorted every idea into have it, test it, keep the seam, or push back, and came out with four new pre-registered tests and five positions we now hold.
-
Every privacy fix in AI memory has side effects: how we found ours without reading the test data
We made an AI memory system keep unplaced statements private to their speaker. It cut leaks to teammates, but moved other numbers. A blind diagnosis by ids alone split 750 changes into 744 expected losses and 4 real defects.
-
What memory metadata costs in an AI agent's context window, and how we cut it from 10.5% to 2.7%
We typed every memory item an AI agent receives, measured what the labels cost in tokens, cut that cost from 10.5% to 2.7% by printing a label only when it carries information, and made the memory block byte-stable for prompt caching.
-
How to split an AI memory system into layers without changing a single decision
How we restructured the decision layer of an AI agent memory system into core, access and policy layers, with one policy function at nine fixed decision points and policy packs as data, and proved with a parity replay that 234,163 replayed outputs did not change. Plus what we measure next: context bloat, context rot and implicit preferences on PersonaMem-v2.
-
Three workers, one cache each: 230 MB of garbage on every save
A three-worker Node API on an 8 GB server was killed for memory 9 times in 9 days. Each worker rewrote a 111 MB cache file every few seconds, and each save left about 230 MB of garbage. The 10-minute graph never showed it; the peak figure did.
-
Twelve merges to one file in a day. All clean, and the page still was not what was asked
AI coding agents merged twelve changes to one settings page file in 20 hours. Git found no conflict and every review passed, yet at 20:13 five finished asks were still outside the page. Why a clean merge is not enough, two git commands to see it, and the one rule that fixes it.
-
Is your AI memory search reproducible? Three causes of drift we found, one of them in our own test
Why an AI agent memory layer can return different results for the same question on two copies of the same data: quantized embeddings that depend on their batch, ties broken by random ids, and a test harness that gave every store new event ids. How we labelled each difference by cause and proved the fix.
-
How AI memory systems are built: six architectures compared (mem0, Supermemory, cognee, Graphiti, Letta, Hindsight)
How six AI memory systems are built, read from their source code: what mem0, Supermemory, cognee, Graphiti, Letta Code and Hindsight store, how each decides what to remember, retrieves, updates, forgets and scopes access.
-
Where each AI memory design wins and where it struggles: trade-offs in mem0, Supermemory, cognee, Graphiti, Letta and Hindsight
Design trade-offs in six AI memory systems, each backed by a code citation at a recorded commit: LLM extraction, graphs, append-only stores, consolidation, forgetting and permissions in mem0, Supermemory, cognee, Graphiti, Letta Code and Hindsight.
-
Hybrid search for AI agent memory: what we tested, from multilingual embeddings to BM25, RRF fusion and a reranker
What we tested to search an AI agent's memory in English, Hindi and Hinglish: ten embedding models screened, arctic-embed-m-v2.0 chosen, BM25, exact-text search and RRF fusion on LongMemEval, and a reranker we did not adopt.
-
Before you build your own AI memory layer: 12 things we wish we had known
Twelve technical points to settle before you build an AI agent memory layer, from our Lab's tests: erasure with no residue, HNSW forget cost, crypto-shredding, permissions on every read, reproducible ranking, Hinglish, secrets and blind test sets.
-
Our feature lifted sales 39%. 17 of those points happened to everyone
A tool for online sellers measured a new feature that changes prices automatically, before and after: +39% sales a day. The same measurement on accounts that never used it, over the same dates, read +17%. Why a before/after number measures the calendar, and the checks anyone can run.
-
The guard and its key shipped together. Every open tab was locked out
A web app added a sign-in check to one call and, in the same release, the code that sends the token. Tabs left open from before the deploy kept the old code, and every price push from them was refused. What happened, and the fixes anyone can apply.
-
A fallback of zero made “no price” a price
A reseller app fell back to zero when an item had no price. The server stored the 0, nothing could list it, and the message said to re-scan, which gave 0 again. What happened, and the fixes anyone can apply.
-
The outage I reported was the one my checks were causing
One step of a sign-up flow crashed the whole server when loaded directly. I reported errors on and off, then found my own re-loads were most of them. What happened, and the fixes anyone can apply.
-
The pause lived in one worker's memory
A breaker paused an outside price vendor for 5 minutes and showed "Back soon". It worked for one vendor and not the other: the pause sat in one worker's memory, and the other vendor's answer came from a different worker.
-
It changed 8 of 992 and never said why
A pricing tool checked all 992 of a user's items and repriced 8. Its summary said "no match 687", and the user blamed a plan limit that does not exist. How to show whose rule said no, with counts that add up.
-
The guard checked too high, never too low
A listing tool copied the featured used offer's price. A guard caught prices too high, nothing checked too low, and the flagged winner was often a worse grade. How a one-way guard hides a hole, and five fixes.
-
The undo job said done. One percent never came back
A pricing tool raised 5,760 prices for the night and put them back in the morning. The undo job said done. 56 prices, about 1%, were still raised. Three general traps, and how to make done mean the end state.
-
A green run that shipped nothing: when a skipped job counts as success
A CI workflow that ships phone app updates went green about 40 times in six days and delivered nothing: the publish job was skipped, and a skipped job does not fail a run. Read job conclusions, not the run's, and make the skip loud.
-
Two self-hosted runners on one host share more than you think
Two self-hosted CI runners on one Linux box hit three failures on day one: a log path in the shared /tmp, ports held by processes that never exited, and a reused workspace missing directories. A hosted runner cleaned all three up for free; on your own machine that job is yours.
-
How to screenshot a write-heavy flow on a real account without writing anything
A reviewer needed the real screens of a new flow that saves, schedules and re-adds, on a real account, before merge. Fake the API answers, block the database writes, and watch for the one branch the record's own state picks.
-
An “exactly one” lookup that reads two as none
A chat bot door told a user our agent was closed, three times in a row, while it was open in the app. The lookup returned a match only when exactly one session looked right. A worker session made two, and two was read as none.
-
The cheapest guard for a mirrored pipeline is a count against the source
A seller tool mirrored each seller's orders from a marketplace API and showed profit from the copy. For 26 accounts the orders had quietly stopped, about 13,200 in all, and no screen said so. A nightly per-account count against the source would have caught it on day two.
-
Splitting a long agent build into blocks cost 8x more tokens
We built a controller that sends long agent builds in 8-step blocks with a checkpoint between them, to keep context from rotting. Measured first, it read 811K cached tokens where one prompt read 97K. Every block is a new first turn that re-reads the cached prefix. Count turns before you split.
-
One expired secret looked like 861 revoked customers
An app-level OAuth client secret expired, every per-seller API call returned 403, and a nightly sweep read each one as a seller revoking access, parking 861 sellers for a week. The rule: an error that hits everyone at once is a shared outage, not many individual facts.
-
What a worker needs in its context to finish in the fewest calls
A coding agent given the whole repo explores before it works. A short brief with eight fixed sections, a lean start, a secrets fence and a receipt lets it start at the right file. How we measure what the brief missed, and turn misses into the next brief.
-
A draft PR never gets reviewed: four false rounds in one day
Our agent pipeline opened pull requests as drafts, the reviewer skipped drafts, and the pipeline read "no score" as "failed" and sent the agent back to work. Four times in one day. The general rule: automation must tell absent from negative.
-
A 300 KB file is a token leak
A coding agent that reads a big source file whole pays for it on every request that follows. Grep first, read a line range, name ranges in the brief, and keep files small. With an honest example: our own 323 KB, 5,833-line file.
-
Your agent's cost estimate is not a measurement
A routing model said a coding agent would use 51% fewer tokens, 728K down to 360K. It was a formula, not a count. What to record per task from the agent's own transcript instead, and how to tune settings from it without fooling yourself.
-
Teleport a Claude Code session between any two of your computers, in either direction
Teleport moves a running Claude Code session's work between any two computers you have in Melta, in either direction, with one tap. Laptop to server, server to laptop, server to server; the work travels on a git branch and secrets stay behind.
-
What a Claude Code session costs at startup, and how to cut it
Measured on one machine and one repo: a normal Claude Code start used 30.8K input tokens for a one-word prompt, 27.7K with MCP servers off and 18.7K in safe mode. About 11.1K is the system prompt and built-in tools, which nothing removes. How to measure your own.
-
Run Claude Code on Windows from your phone in one press
One line pasted into PowerShell as administrator turns on Windows' SSH server, allows your phone's key, can sign the PC in to Tailscale, installs Herdr in Ubuntu (WSL) and keeps it running with a sign-in task. What each step does and what a warn line means.
-
How to wake a Mac remotely, and keep it awake for SSH
You usually can't wake a sleeping Mac from outside your home network, so the fix is to stop it sleeping. The System Settings switch for each macOS version, the pmset and caffeinate commands, MacBook lid rules, and what Wake-on-LAN can and can't do.
-
Can you use a terminal on an iPhone? What works, and what you actually want
Yes, with an app. iOS has no built-in Terminal, so you choose between a local shell such as a-Shell or iSH, an SSH client that shows another computer's terminal, or an app built for one remote job. Here is what each really is and which to pick.
-
How to SSH into your computer from outside your network without port forwarding
You can SSH into a computer behind a home router without port forwarding. Put both devices on a mesh VPN such as Tailscale, or use Cloudflare Tunnel or a reverse SSH tunnel through a VPS. What each one installs, costs and exposes, and which suits a phone.
-
How to SSH into a Raspberry Pi from your iPhone or Android phone
To SSH into a Raspberry Pi from a phone, enable SSH on the Pi (it is off by default), find its address, and connect with any SSH app as the user you created. Covers Raspberry Pi Imager, headless setup, keys, and reaching the Pi from outside your network.
-
Mosh vs SSH: which should you use from a phone?
Mosh keeps a terminal usable on bad mobile networks: it runs over UDP, survives IP changes and sleep, and echoes typing instantly. SSH does more and needs nothing extra. How they differ, what Mosh cannot do, and when plain SSH with tmux is enough.
-
Claude Code and tmux: setup, scrolling, and keeping sessions alive
Run Claude Code inside tmux so it survives a closed terminal or a dropped SSH connection. A minimal setup, the ~/.tmux.conf lines that matter (Anthropic documents three of them), and how to scroll up now that Claude Code has two renderers.
-
Claude Code Remote Control not working or keeps disconnecting? What to check
Claude Code Remote Control fails for a short list of reasons: the wrong login or plan, an API key overriding your subscription, an old version, a stopped process, a sleeping computer or a network change. How to tell which one it is, and what to do if it still drops.
-
Too many Claude Code permission prompts? How to reduce them safely
Claude Code asks before shell commands, file edits and network access. To cut the prompts safely, update so auto mode is available, allow the commands you run constantly, turn on the Bash sandbox, and keep deny rules for secrets. Exact settings below.
-
Running Claude Code on a VPS: setup, requirements, and using it from your phone
Claude Code runs on a headless VPS with Ubuntu 20.04+, 4 GB of RAM and one install command. You sign in by opening a link on another device and pasting a code back. Full setup, lockdown, and what Anthropic's terms say about it.
-
How to get Claude Code notifications on your phone when it finishes or needs approval
Claude Code can push to your phone through the Claude app when Remote Control is on. For everything else, a Notification hook in settings.json and a push service such as ntfy does it in a dozen lines. Here is the exact config, what each hook event means, and the limits.
-
Herdr vs tmux for AI coding agents: which multiplexer?
Herdr vs tmux, compared honestly. Both keep your agents alive when you disconnect. Herdr also knows which pane is an agent and whether it's working, blocked or done. When that matters, when tmux's ubiquity wins, and how to try Herdr without giving up tmux habits.
-
Tailscale SSH from iPhone or Android to your Mac or Linux box
Can you SSH from an iPhone to a Mac? Yes, in ten minutes. Step by step: Tailscale on both devices, Remote Login on the Mac, an SSH key made on the phone, MagicDNS names instead of IPs, and the settings that stop your computer dropping off the network.
-
How to run Claude Code from your phone (2026)
Claude Code on your phone, remotely: keep it running on your own Mac or Linux box and drive it from your phone: Tailscale for the connection, SSH for control, Herdr so nothing dies when you disconnect. Every option compared, including Anthropic's Remote Control.
-
Herdr cheat sheet: keys, commands and the agent status model
The Herdr keybindings you use every day, the CLI commands worth knowing (agent prompt, agent wait, attach over SSH), what idle, working, blocked and done mean, and the settings that matter for phone access.
-
Fix SSH from your phone: permission denied, timeouts, host key changed, and reconnects
The errors you hit connecting a phone to your own computer, in the order they usually happen, with the actual cause of each and the fix. Covers Tailscale, Mac Remote Login, keys and permissions, sleeping computers, and Android dropping connections.
-
The best phone apps for Claude Code and Codex in 2026
An honest look at every way to run coding agents from an iPhone or Android phone: Anthropic's Remote Control, Moshi, Termius, Blink Shell, Claudette Echo and Melta, with prices, what each needs on your computer, and who each one suits.
-
Moshi vs Melta: an honest comparison
Both put Claude Code and Herdr on your phone. Where Moshi is ahead, where Melta is different, and which one fits how you work.