Eno (@Phantomstone2) header
Eno (@Phantomstone2) profile picture

I build things & share what I learn. AI · Cloud · Systems Engineering Helping people around the world learn Chinese 🇨🇳 Life with my cat 🐈

Joined June 2018
Photo by Eno (@Phantomstone2)Photo by Eno (@Phantomstone2)Photo by Eno (@Phantomstone2)Photo by Eno (@Phantomstone2)Photo by Eno (@Phantomstone2)Photo by Eno (@Phantomstone2)Photo by Eno (@Phantomstone2)Photo by Eno (@Phantomstone2)Photo by Eno (@Phantomstone2)Photo by Eno (@Phantomstone2)
I'm Eno. I like building things, figuring out how they work, and sharing what I learn along the way. Around here, you'll find: • Real engineering experiments — including the ones that don't go as planned. • Behind-the-scenes stories from building my own products, including saiyia.com and vrent.sshipanoo.com. • AI, cloud infrastructure, virtualization, and the occasional deep dive into how things actually work. • Little moments from everyday life, usually involving my cat. 🐈 I don't have everything figured out, but that's part of the fun. If you're building something too, I'd love to hear what you're working on.
30
7
133
2,964
Time for Eno's tiny Chinese lesson ✍️ 明明 = "clearly, obviously," used to point out a fact that clashes with the situation (明明是他错了, he's clearly the one who's wrong). It often pairs with 却 or 为什么 to voice complaint.
2
Something worth knowing if you build with LLMs: Prompt design: ask for reasoning only where it changes the answer. "Think step by step" on a simple extraction task adds tokens and can invite invented steps; skip it for lookups, keep it for math and multi-hop.
3
2
34
Today's engineering tip 💡 cap tool output size before it reaches the model, not after. Truncate in the server with a clear marker like "[truncated, 4 more results]" so the agent knows it's seeing a partial view and can ask for more.
2
75
Quick Chinese lesson before you scroll on 👀 幸亏 vs 好在. 幸亏 = "luckily," thanking a lucky break that saved you (幸亏你提醒我, lucky you reminded me). 好在 = "fortunately," softer, noting a redeeming fact (好在还来得及, fortunately there's still time).
1
29
Quick tip for anyone building with AI: `dataclasses.asdict` is a deep copy and slow on hot paths. For serialization, write a small `to_dict()` or use `attrs` with `asdict(recurse=False)` when nested fields don't change.
3
5
222
Good evening, X! 🌙 Let's connect and build together 🧱 I'm into: • AI & machine learning • Software engineering • Cloud & DevOps • Developer productivity • Startups If that sounds like you, say hello. I'd love to hear your story. What's your favorite part of building? #LetsConnect #BuildInPublic
14
11
267
Eno's Chinese class, today's topic: 毕竟 = "after all," marking a fact that justifies the rest (他毕竟还小, he is still young after all). It softens judgment and often opens the reason clause in an argument.
4
94
My partner is a frontend developer. I've been teaching her to code with Codex for over two years. Recently her team hired a Java backend developer. He has a master's degree, but his skills are weak, he doesn't seem interested in improving, and he pushes back whenever someone reports a bug in his code. He often misunderstands the requirements, so the rest of the team ends up working overtime to finish on time. The project is an internal CRM, nothing very complex. Everyone on the team would rather he left, but their manager insists on keeping him. Most nights she doesn't get home until after 10pm, and it really hurts to watch. I've thought about talking to her manager, but it's their company and their call, so it doesn't feel like my place. Have you been in a situation like this? What would you do?
1
3
68
Dev note of the day 🛠️ score retrieval by the query as the user actually phrased it, then rewrite once for recall. A single rewrite pass often surfaces chunks the first query missed without a second model round-trip.
2
5
214
Small thing, saves big headaches 👇 `datetime.now()` is naive and silently local. Prefer `datetime.now(timezone.utc)` so comparisons and stored timestamps don't break when the server's timezone changes.
1
2
50
Eno's Chinese mini class is back 📚 一度 = "at one time, for a while," for a past phase that ended (他一度想放弃, he once thought about giving up). It implies the state is over now, unlike 曾经, which just says it happened.
41
How to design MCP tools an LLM can actually use (and the trade-offs nobody mentions) Most MCP servers fail for a boring reason: the tools work, but the model can't tell when to use them. You wire up five tools, point Claude or any agent at the server, and watch it pick the wrong one, pass a string where you wanted an int, or call the same tool twice with identical arguments. The code is fine. The interface is the problem. By the end of this you'll have a concrete checklist for tool design, plus the trade-offs between fat tools, thin tools, and the middle path. Save this one, you'll want it when your agent starts misbehaving. 1/ The model only sees your schema An agent has no idea what your function does internally. It sees a name, a description, and a JSON schema. That's the entire contract. So when a tool is called wrongly, the fix is almost never "better prompt". It's a better schema. Treat the description as API documentation written for a very literal reader who cannot ask follow-up questions. A tool the model can't describe in one sentence is a tool it will misuse. 2/ Fat tools vs thin tools Thin tools: one tool per operation. get_user, get_user_orders, get_order_items. Clear, composable, but the model must chain three calls and can lose the thread halfway. Fat tools: one tool with an action parameter. manage_user(action="get" | "list" | "delete"). Fewer round trips, but now the schema has conditional fields and the model has to reason about modes. The trade-off is real: thin tools cost latency and context, fat tools cost precision. Start thin. Merge only when you see the model repeatedly chaining the same two calls in the same order. 3/ Make invalid states unrepresentable If a parameter is an enum, use an enum. Don't accept a free string and validate later. Say you're building a tool that filters by status. "status: string" invites the model to invent "active_pending". "status: enum[active, pending, archived]" makes the wrong answer impossible. The same goes for required vs optional. Every optional field is a branch the model might take wrongly. If a field is needed 90% of the time, make it required and give it a sensible default in code. 4/ Return less, but return the right thing A common mistake: returning the full database row as JSON. The model burns context on fields it will never use and gets distracted by noise. Return a compact, purpose-built shape. If the agent needs an ID to call the next tool, put the ID first. If it needs a human-readable summary, include one short string. Good tool output is a briefing, not a dump. 5/ Design for the retry, not the first call Assume the first call will be wrong sometimes. What happens next matters more. Return errors as structured, actionable text: what was wrong, what was expected, what to try. "Error: invalid date" teaches nothing. "Error: 'date' must be ISO 8601 (YYYY-MM-DD); got '3/4/25'" lets the model self-correct on the next turn. Idempotency helps too. If a write tool can be safely retried, say so in the description. The model will retry less fearfully and you'll see fewer duplicate side effects. 6/ The checklist 1. Name the tool as a verb phrase the model would say out loud: search_orders, not orders_svc. 2. Write the description for a reader with zero context: what it does, when to use it, when NOT to. 3. Make every constrained value an enum or a typed field. No free-form strings where a set exists. 4. Keep the output shape small and stable. Include the IDs the next tool needs. 5. Return errors the model can act on, with the expected format spelled out. 6. Add one realistic example call in the description if the parameters are non-obvious. 7. Test with the actual model, not your mental model of it. Run the same task ten times and count the misfires. Step 7 is the one people skip. Tool design is empirical. You cannot reason your way to a good schema; you have to watch the model use it. The bigger frame An MCP server is not an API for humans. It's an API for a caller that reads the docs once, never asks questions, and improvises when confused. Design for that caller and the agent stops feeling fragile. Design for yourself and you'll spend the week debugging prompts that were never the problem. What's the worst tool schema you've had to work around?
8
4
331
Evening, builders! 🌙 Any AI builders on my timeline? 👀 Let's connect if you're into: • LLMs & RAG • AI agents • Python • MLOps & cloud • Open source AI I enjoy learning from people who are actually putting AI into real products. What's one thing AI made easier for you this year? #AI #TechCommunity #LetsConnect
13
8
215
Small thing, saves big headaches 👇 give long-running tasks a progress tool the model can call, but keep its output tiny. A one-line status serializes cleanly and keeps the loop from drowning in its own updates.
2
3
91
Quick tip for anyone building with AI: log every tool call with its arguments and result size. When an agent loops or burns context, the call log tells you instantly whether the model is misreading a schema or a tool is returning too much.
2
4
109
Time for Eno's tiny Chinese lesson ✍️ 偏偏 was covered, so try 非要: "insists on, must" against reason. 他非要自己去 (he insists on going alone). It adds stubbornness that 一定要 lacks, and often carries mild exasperation.
5
4
121
Dev note of the day 🛠️ `enumerate` with a start value beats manual counters. `for i, row in enumerate(rows, 1)` gives human-friendly numbering without `i = 1` bookkeeping, and it reads better than `range(len(...))`.
4
4
152
Another one for my Chinese learners 👇 始终 vs 一直 is tempting to confuse. 始终 means "from beginning to end, consistently" and leans written (他始终没说话). 一直 is neutral and everyday, marking an unbroken stretch (我一直在家). Use 始终 when you want a firm, almost evaluative tone.
1
2
83
Something worth knowing if you build with LLMs: `argparse` subcommands scale better than a pile of flags once a CLI has more than a few modes. Each subcommand gets its own parser, help text and defaults, so `tool sync --dry-run` and `tool serve --port` never leak options into each other.
1
2
75
Good morning, X! ☀️ Time to meet more builders 🙌 If you're passionate about: • AI agents • Automation • Full-stack development • Cloud architecture • Bootstrapped startups I'd love to follow your journey and share mine. What problem are you trying to solve right now? #BuildInPublic #LetsConnect
6
13
271