From Frontend Engineer to Agent Engineer in 30 Days
Course questions · 127 / 127
136 more tagsShow fewer tags
D1 LLM API Basics: messages/roles, Tokens, Streaming, Temperature; What an Agent Actually Is
What are tokens and the context window, and how do they shape agent design?什么是 token 和上下文窗口?它们如何影响 Agent 的设计?
Common in ChinaCommon overseasBasic#llm-basics#context🔒 Unlock D1 to see the answer keys.
What do the system / user / assistant roles do, and why does system exist?messages 里的 system / user / assistant 三种角色各起什么作用?为什么要有 system?
Common in ChinaCommon overseasBasic#llm-basics#prompt🔒 Unlock D1 to see the answer keys.
Why do LLM apps stream responses, and how do you choose between SSE and WebSockets?为什么 LLM 应用几乎都用流式输出?SSE 和 WebSocket 该怎么选?
Common in ChinaCommon overseasIntermediate#streaming#protocol🔒 Unlock D1 to see the answer keys.
What fundamentally separates a chatbot from an agent?聊天机器人和 Agent 的本质区别是什么?
Common in ChinaCommon overseasBasic#agent-basics🔒 Unlock D1 to see the answer keys.
What do temperature and top_p control, and when would you use 0 versus 0.7?temperature 和 top_p 分别控制什么?什么场景用 0,什么场景用 0.7?
Common overseasBasic#llm-basics#sampling🔒 Unlock D1 to see the answer keys.
A streaming reply is cut off mid-way. What do the client and server each do, and can EventSource auto-reconnect help?流式回复到一半网络断了,前端和后端各要做什么?EventSource 的自动重连能用上吗?
Common in ChinaCommon overseasIntermediate#streaming#reliability#sse🔒 Unlock D1 to see the answer keys.
The user backgrounds the app or closes the tab. How do you restore a reply that was still being generated?用户切到后台或者直接关掉网页,回来后怎么恢复那条还在生成的回复?
Common in ChinaCommon overseasDeep dive#streaming#reliability#architecture🔒 Unlock D1 to see the answer keys.
After a retry, how do you avoid double billing and re-executing tool calls that already ran?断线重试之后,怎么保证不重复计费、也不重复执行已经做过的工具调用?
Common in ChinaCommon overseasDeep dive#reliability#tools#idempotency🔒 Unlock D1 to see the answer keys.
On mobile, connectivity is flaky. How would you design the reconnection strategy for a chat feature?移动端 App 里的对话,网络频繁抖动,你会怎么设计重连策略?
Common in ChinaCommon overseasIntermediate#reliability#mobile#streaming🔒 Unlock D1 to see the answer keys.
A user pressing stop and a dropped connection both look like a closed connection server-side. How do you tell them apart?用户主动点「停止生成」和网络意外断开,在服务端看起来都是连接没了,怎么区分处理?
Common in ChinaCommon overseasDeep dive#streaming#reliability#ux🔒 Unlock D1 to see the answer keys.
D2 How Tool Calling Works: JSON Schema, the tool_use Loop; Hand-Writing an Agent Loop With No Framework
Walk me through the complete function calling flow.function calling 的完整流程是怎样的?
Common in ChinaCommon overseasBasic#tool-calling#agent-loop🔒 Unlock D2 to see the answer keys.
What is the ReAct pattern, and how does it relate to a hand-rolled tool-calling loop?什么是 ReAct 模式?它和你手写的工具调用循环是什么关系?
Common in ChinaCommon overseasIntermediate#react#agent-loop#tool-calling🔒 Unlock D2 to see the answer keys.
When a tool fails, how should the error reach the model — and what must never reach it?工具执行报错时,应该怎么把错误信息传给模型?有没有不该传的?
Common in ChinaCommon overseasIntermediate#tool-calling#error-handling🔒 Unlock D2 to see the answer keys.
How do you keep an agent loop from running forever — is a max-step counter enough?怎么防止 Agent 循环停不下来?只加一个最大步数够吗?
Common in ChinaCommon overseasDeep dive#agent-loop#reliability#cost🔒 Unlock D2 to see the answer keys.
D3 Getting Started With the Pi SDK: the Three-Layer Architecture, Comparing It to the Agent Loop (dg P01/P02/M02/M03)
What problems does an agent framework's built-in agent loop have to solve?Agent 框架内部的 Agent Loop 一般要解决哪些问题?
Common in ChinaCommon overseasBasic#agent-loop#framework-design🔒 Unlock D3 to see the answer keys.
How do you decide between adopting an agent framework and hand-rolling the loop?选择使用 Agent 框架还是手写 Agent,你会怎么权衡?
Common in ChinaCommon overseasIntermediate#framework-design#engineering-tradeoffs🔒 Unlock D3 to see the answer keys.
What are the responsibilities of Pi SDK's three layers, and what does that layering buy you?Pi SDK 的三层架构分别对应什么职责?这样分层解决了什么问题?
Common in ChinaCommon overseasBasic#framework-design#architecture🔒 Unlock D3 to see the answer keys.
Once you adopt an agent framework, how do you know what it is doing internally, and where do you start debugging?用了 Agent 框架之后,你怎么知道它内部到底发生了什么?出问题从哪里查?
Common in ChinaCommon overseasDeep dive#observability#framework-design#debugging🔒 Unlock D3 to see the answer keys.
D4 Model Integration and System Prompts: a Multi-Provider Abstraction With Fallback, Overriding the Default Persona (dg P03/P04/M04)
Why do production agents usually integrate more than one model provider?为什么生产级 Agent 通常要接入多个模型 provider?
Common in ChinaCommon overseasBasic#model-routing#reliability🔒 Unlock D4 to see the answer keys.
What trade-offs shape a model fallback strategy?设计模型 fallback 策略时要权衡哪些因素?
Common in ChinaCommon overseasIntermediate#model-routing#reliability#cost🔒 Unlock D4 to see the answer keys.
What does the system prompt do in an agent, and why not rely on the framework default?系统提示词(system prompt)在 Agent 里起什么作用?为什么不能用框架默认的?
Common in ChinaCommon overseasIntermediate#prompt-engineering#system-prompt🔒 Unlock D4 to see the answer keys.
How do you pick the right model per task, balancing cost against latency?如何在成本和延迟之间给不同任务选择合适的模型?
Common in ChinaCommon overseasIntermediate#model-routing#cost#latency🔒 Unlock D4 to see the answer keys.
D5 The Tool System and Event-Driven Design: Parameter Validation, Feeding Errors Back for Self-Correction, Event Subscription (dg P05/P06/M05/M07)
What principles do you follow when designing tools for an agent — how do you write the name, the description and the parameter schema?设计 Agent 的工具时你会遵循哪些原则?名字、描述、参数分别该怎么写?
Common in ChinaCommon overseasBasic#tool-design#prompt-engineering🔒 Unlock D5 to see the answer keys.
When a tool call fails validation or errors out, how do you get the model to correct itself instead of failing the whole turn?工具调用报错或参数非法时,你怎么让模型自己纠正而不是直接失败?
Common in ChinaCommon overseasIntermediate#tool-calling#error-handling🔒 Unlock D5 to see the answer keys.
Which lifecycle events does an agent runtime typically expose, and why is waiting for the final return value not enough?Agent 的事件系统一般会暴露哪些生命周期事件?为什么不能只等最终返回值?
Common in ChinaCommon overseasIntermediate#event-driven#observability🔒 Unlock D5 to see the answer keys.
How do you bound an agent's tool permissions, and is putting the rules in the system prompt enough?怎么限定工具的权限边界,避免 Agent 越权操作?把规则写进系统提示词够不够?
Common in ChinaCommon overseasDeep dive#tool-permissions#security#prompt-injection🔒 Unlock D5 to see the answer keys.
D6 Messages, Context Engineering and Compression, Session Storage/Recovery/Forking (dg M06/M08/M09/M10)
When a long conversation outgrows the context window, how do you compress it — when do you trigger, what do you drop, and what do you keep?长对话里上下文放不下了,你会怎么压缩?什么时候触发、压掉什么、保留什么?
Common in ChinaCommon overseasIntermediate#context-engineering#compression#cost🔒 Unlock D6 to see the answer keys.
What problems do session persistence, restore, and forking each solve, and what goes wrong in each?会话的持久化、恢复和分叉分别解决什么问题?实现时各有什么坑?
Common in ChinaCommon overseasIntermediate#session-management#persistence#forking🔒 Unlock D6 to see the answer keys.
Where do you draw the line between short-term context and long-term memory, and how do you decide where a given fact belongs?短期上下文和长期记忆的边界怎么划?一条信息该往哪放,你的判断依据是什么?
Common in ChinaCommon overseasBasic#memory#context-engineering🔒 Unlock D6 to see the answer keys.
How do context engineering and RAG relate, and what breaks if you do RAG without context management?上下文工程和 RAG 检索是什么关系?只做 RAG 不做上下文管理会出什么问题?
Common in ChinaCommon overseasDeep dive#context-engineering#rag#retrieval🔒 Unlock D6 to see the answer keys.
D7 Packaging It as a Service: Fastify + SSE + Docker (dg P07); Week One Retrospective
For streaming LLM responses, would you pick SSE or WebSocket, and why?流式返回大模型回复,你会选 SSE 还是 WebSocket?为什么?
Common in ChinaCommon overseasBasic#sse#streaming#api-design🔒 Unlock D7 to see the answer keys.
When turning a local agent script into a production service, what does the interface layer have to get right?把一个本地跑的 Agent 脚本改造成生产服务,接口层要重点考虑哪些事?
Common in ChinaCommon overseasIntermediate#api-design#service-architecture#streaming🔒 Unlock D7 to see the answer keys.
What are the key decisions in a Dockerfile that packages a Node service?把一个 Node 服务打包成 Docker 镜像,Dockerfile 里有哪些关键决定?
Common in ChinaCommon overseasIntermediate#docker#deployment#nodejs🔒 Unlock D7 to see the answer keys.
For a long-lived SSE service in production, what problems do heartbeats, disconnect handling and graceful shutdown each solve?一个 SSE 长连接服务上线,心跳、连接断开处理和优雅退出分别在解决什么问题?
Common in ChinaCommon overseasDeep dive#sse#reliability#deployment🔒 Unlock D7 to see the answer keys.
In a two-minute self-introduction, how do you convey the value of an agent project?自我介绍时,怎么在两分钟里讲清楚一个 Agent 项目的价值?
Common in ChinaCommon overseasBasic#interview-prep#communication🔒 Unlock D7 to see the answer keys.
D8 Why Split Gateway and Worker; Postgres Table Design (sessions/runs/messages) + Drizzle
Why do production agent services usually split a gateway from workers, and when should you not split?为什么生产级 Agent 服务通常要把 Gateway 和 Worker 拆开?什么情况下不该拆?
Common in ChinaCommon overseasBasic#architecture#scalability🔒 Unlock D8 to see the answer keys.
What makes a service stateless, what does that mean for horizontal scaling, and are workers stateful?什么是无状态服务?它对水平扩展意味着什么?Worker 算不算有状态?
Common in ChinaCommon overseasIntermediate#stateless#scalability🔒 Unlock D8 to see the answer keys.
With at-least-once delivery, how do you guarantee a redelivered message does not create two runs?消息总线是至少一次投递,同一条消息被重复投递时,怎么保证不会产生两条 run?
Common in ChinaCommon overseasDeep dive#idempotency#database#reliability🔒 Unlock D8 to see the answer keys.
How would you design primary keys and indexes for sessions, runs and messages, and why avoid auto-increment ids?sessions / runs / messages 这三张表你会怎么设计主键与索引?为什么不用自增主键?
Common in ChinaCommon overseasIntermediate#database#schema-design#idempotency🔒 Unlock D8 to see the answer keys.
D9 A Redis Streams Message Bus: XADD/XREADGROUP/XACK/XAUTOCLAIM, Consumer Groups, Poison Messages
How does a Redis Streams consumer group work, and why can it serve both as a work queue and as pub/sub?Redis Streams 的 consumer group 是怎么工作的?为什么它既能做工作队列又能做发布订阅?
Common in ChinaCommon overseasBasic#message-bus#redis-streams🔒 Unlock D9 to see the answer keys.
What problems do XACK and XAUTOCLAIM each solve, and what changes if you XACK before instead of after doing the work?XACK 和 XAUTOCLAIM 分别解决什么问题?XACK 放在业务处理之前和之后有什么区别?
Common in ChinaCommon overseasIntermediate#message-bus#redis-streams#error-handling🔒 Unlock D9 to see the answer keys.
What is at-least-once delivery, and given that messages get redelivered, how do you actually make the business side idempotent?什么是 at-least-once?既然消息会被重复投递,业务上到底要怎么保证幂等?
Common in ChinaCommon overseasDeep dive#message-bus#idempotency#reliability🔒 Unlock D9 to see the answer keys.
How do you choose between Redis Streams and Kafka, and when is Streams clearly not enough?Redis Streams 和 Kafka 该怎么选?什么情况下 Streams 明显不够用?
Common in ChinaCommon overseasIntermediate#message-bus#redis-streams#architecture🔒 Unlock D9 to see the answer keys.
What do you do with a message that keeps failing? Design a poison-message isolation mechanism.一条消息反复处理失败怎么办?请设计一个毒消息隔离机制。
Common in ChinaCommon overseasIntermediate#message-bus#error-handling#reliability🔒 Unlock D9 to see the answer keys.
D10 Sharding and Leases: Hashing userId → shard, SET NX + TTL + Lua Renewal, Per-User Ordering, Handoff
Why hash user ids into shards instead of letting the consumer group dispatch freely, and how do you pick the shard count?为什么要对 userId 做哈希分片,而不是让消费组随机派发?分片数应该怎么选?
Common in ChinaCommon overseasBasic#sharding#consistent-hashing#scalability🔒 Unlock D10 to see the answer keys.
Why must a lease carry a TTL, and why renew it with a Lua script instead of GET followed by PEXPIRE?租约为什么必须配合 TTL?续约为什么要用 Lua 脚本,而不是先 GET 再 PEXPIRE?
Common in ChinaCommon overseasIntermediate#lease#redis#atomicity🔒 Unlock D10 to see the answer keys.
What happens when two workers both believe they hold the same shard lease (split brain), and how do you mitigate it?两个 worker 同时认为自己持有同一个 shard 的租约(脑裂)会造成什么后果,怎么规避?
Common in ChinaCommon overseasDeep dive#split-brain#fencing-token#reliability🔒 Unlock D10 to see the answer keys.
In a multi-worker agent service, how do you guarantee that one user's messages are processed in strict order?在一个多 worker 的 Agent 服务里,怎么保证同一个用户的消息严格按顺序被处理?
Common in ChinaCommon overseasIntermediate#ordering#sharding#distributed-systems🔒 Unlock D10 to see the answer keys.
D11 The Run State Machine, Streaming Output Back, Ordering by runId, SSE Waiters, Merging Interruptions Within 30 Seconds
How would you design the state machine for one agent run, and which failure states must it cover?怎么设计一次 Agent 执行(run)的状态机?需要覆盖哪些异常状态?
Common in ChinaCommon overseasBasic#state-machine#distributed-systems🔒 Unlock D11 to see the answer keys.
Several clients subscribe to the same run's streaming output at once. How do you guarantee each of them receives the full content in order?多个客户端同时订阅同一次执行的流式输出,怎么保证每个客户端都收到完整且有序的内容?
Common in ChinaCommon overseasIntermediate#sse#ordering#fan-out🔒 Unlock D11 to see the answer keys.
A user sends another message while the agent is still answering the previous one. How should the system handle it?用户在 Agent 还没回复完的时候又发来一条消息,应该怎么处理?
Common in ChinaCommon overseasIntermediate#interrupt-merge#state-machine#cost🔒 Unlock D11 to see the answer keys.
After a streaming client reconnects, how do you deliver every missed chunk exactly once — no gaps, no duplicates?流式接口的客户端断线重连后,怎么做到既不丢片段也不重复?
Common in ChinaCommon overseasDeep dive#sse#idempotency#reconnect🔒 Unlock D11 to see the answer keys.
D12 Long-Term Memory: pgvector, Embeddings, Chunking, the memory_search Tool
Why does an agent need a separate long-term memory instead of stuffing all history into the context window?为什么 Agent 需要额外的长期记忆,而不是把历史全部塞进上下文?
Common in ChinaCommon overseasBasic#long-term-memory#rag#cost🔒 Unlock D12 to see the answer keys.
How does pgvector compare with a dedicated vector database, and how would you choose?pgvector 和专用向量数据库相比,优劣分别是什么?你会怎么选?
Common in ChinaCommon overseasIntermediate#vector-database#pgvector#architecture🔒 Unlock D12 to see the answer keys.
How does the chunking strategy affect retrieval quality, and how do you pick a chunk size?chunking 的切分策略会怎么影响检索效果?切多大合适?
Common in ChinaCommon overseasIntermediate#chunking#rag#retrieval-quality🔒 Unlock D12 to see the answer keys.
What matters when designing the parameters of a retrieval tool such as memory_search?把记忆检索包装成 memory_search 这样的工具时,参数设计上要注意什么?
Common in ChinaCommon overseasDeep dive#tool-design#security#long-term-memory🔒 Unlock D12 to see the answer keys.
D13 Cron Scheduling (Central Scheduler → Stream Delivery) + Cost Metering (Token → USD Ledger, Usage Report)
When a service runs multiple replicas, why not let each replica start its own cron? What would you do instead?服务部署了多个实例,定时任务为什么不能让每个实例各自起一个 cron?你会怎么做?
Common in ChinaCommon overseasBasic#scheduling#distributed-systems#cost🔒 Unlock D13 to see the answer keys.
How would you design a token cost metering and ledger system from scratch?让你从零设计一套 token 成本计量和台账系统,你会怎么做?
Common in ChinaCommon overseasIntermediate#cost#observability#data-modeling🔒 Unlock D13 to see the answer keys.
Which dimensions should a usage report for an LLM product cover, and what decision does each one drive?一份 LLM 应用的 usage report 通常要覆盖哪些维度?这些维度分别用来做什么决策?
Common in ChinaCommon overseasIntermediate#observability#cost#reporting🔒 Unlock D13 to see the answer keys.
How do you keep a cron job from being published or executed twice, and how should the idempotency key be built?怎么保证一个 cron 任务不会被重复投递或重复执行?幂等键应该怎么构造?
Common in ChinaCommon overseasDeep dive#idempotency#scheduling#distributed-systems🔒 Unlock D13 to see the answer keys.
D14 Deployment and Operations: Multi-Worker Compose, Heartbeats, Health Checks, Graceful Shutdown, Dev/Prod Isolation; Week Two Retrospective
With multiple replicas, how do you design heartbeats and health checks? Are they the same thing?多实例部署下,怎么设计心跳和健康检查?两者是同一件事吗?
Common in ChinaCommon overseasIntermediate#observability#deployment#distributed-systems🔒 Unlock D14 to see the answer keys.
What is graceful shutdown, and why is killing a process outright risky? Walk through the steps.什么是优雅停机?为什么直接 kill 进程有风险?请说出具体步骤。
Common in ChinaCommon overseasIntermediate#deployment#reliability#operations🔒 Unlock D14 to see the answer keys.
During a rolling deploy, how do you keep in-flight tasks from being interrupted?滚动发布时,如何避免正在处理的任务被打断?
Common in ChinaCommon overseasIntermediate#deployment#reliability#operations🔒 Unlock D14 to see the answer keys.
How do you isolate dev from prod so local development cannot touch production data?怎么设计 dev 与 prod 的隔离,防止本地开发影响线上数据?
Common in ChinaCommon overseasBasic#operations#security#configuration🔒 Unlock D14 to see the answer keys.
System design: design an IM agent platform where users chat with an AI assistant inside a messaging app. The assistant calls tools, remembers long-term preferences, and proactively pushes scheduled messages. Target 100k daily active users.系统设计:请设计一个 IM Agent 平台——用户在即时通讯软件里和一个 AI 助手对话,助手能调用工具、记住长期偏好、还能定时主动推送。要求支撑十万日活。
Common in ChinaCommon overseasDeep dive#system-design#distributed-systems#cost#operations🔒 Unlock D14 to see the answer keys.
D15 A Tour of Multi-Agent Patterns (Router/Supervisor, Planner-Executor, Critic, Swarm, Blackboard) and When Not to Use Them; Getting Started With LangGraph
What are the common multi-agent collaboration patterns, and what shape of task suits each?常见的多 Agent 协作模式有哪些?分别适合什么形状的任务?
Common in ChinaCommon overseasBasic#multi-agent#orchestration#architecture🔒 Unlock D15 to see the answer keys.
In LangGraph, what roles do nodes, edges and state play? If you had no framework, how would you implement it yourself?LangGraph 里节点、边、状态分别扮演什么角色?如果不用框架,你自己会怎么实现?
Common in ChinaCommon overseasIntermediate#langgraph#orchestration#state-management🔒 Unlock D15 to see the answer keys.
What signals typically trigger the move from a single agent to a multi-agent system, and what does the upgrade cost you?从单 Agent 升级到多 Agent,通常是被什么信号触发的?升级之后系统会多付出什么?
Common in ChinaCommon overseasIntermediate#multi-agent#cost#architecture🔒 Unlock D15 to see the answer keys.
When should you not introduce a multi-agent system? Give operational criteria, not it depends.什么情况下不应该引入多 Agent 系统?请给出可操作的判据,而不是「视情况而定」。
Common in ChinaCommon overseasDeep dive#multi-agent#architecture#trade-offs🔒 Unlock D15 to see the answer keys.
D16 Dynamic Routing With a Supervisor: Structured-Output Routing, Override, routingReason
How is the routing decision usually implemented in a supervisor pattern? What should that node do, and what should it not do?Supervisor 模式里的路由决策一般怎么实现?请说说这个节点该做什么、不该做什么。
Common in ChinaCommon overseasBasic#multi-agent#routing#langgraph🔒 Unlock D16 to see the answer keys.
Why use structured output rather than natural language for routing? What exactly goes wrong with free text?为什么要让模型输出 structured output 而不是自然语言来做路由?自然语言到底差在哪?
Common in ChinaCommon overseasIntermediate#structured-output#routing#reliability🔒 Unlock D16 to see the answer keys.
How should the system handle an uncertain or wrong routing decision, and how do you pick the threshold?路由不确定或者路由错误时,系统应该怎么兜底?阈值该怎么定?
Common in ChinaCommon overseasDeep dive#routing#fallback#reliability🔒 Unlock D16 to see the answer keys.
What is a field like routingReason actually worth in production? Is it just logging?routingReason 这类调试信息在生产系统里有什么价值?只是打日志而已吗?
Common in ChinaCommon overseasIntermediate#observability#routing#debugging🔒 Unlock D16 to see the answer keys.
D17 Planner-Executor-Critic Plus a Shared Workspace: Workspace State, toolBudget, Parallel Fan-Out, a Review Loop
What problem does the Planner-Executor-Critic structure solve, and how is it different from Supervisor routing?Planner-Executor-Critic 这种结构解决了什么问题?它和 Supervisor 路由的区别在哪?
Common in ChinaCommon overseasBasic#multi-agent#orchestration#architecture🔒 Unlock D17 to see the answer keys.
When several subtasks run in parallel and all write the same shared state, how do you design it so they do not clobber each other?多个子任务并行执行、都要写同一份共享状态时,怎么设计才不会互相覆盖?
Common in ChinaCommon overseasDeep dive#multi-agent#state-management#concurrency🔒 Unlock D17 to see the answer keys.
Why give each subtask a tool-call budget, and what do you do when it runs out?为什么要给每个子任务设 toolBudget 这样的预算?超了预算之后你会怎么处理?
Common in ChinaCommon overseasIntermediate#cost-control#reliability#agent-design🔒 Unlock D17 to see the answer keys.
How do you keep a Critic review loop from spinning forever, and what else needs guarding besides a retry cap?Critic 的评审回路怎么防止陷入死循环?除了次数上限还有什么要防的?
Common in ChinaCommon overseasIntermediate#reflection#loop-guard#reliability🔒 Unlock D17 to see the answer keys.
D18 History Fidelity and Summarization, Multimodal Placeholders, Checkpointer Persistence
How should agent memory be layered? What belongs in short-term context, in summaries, and in long-term memory — and what happens when each is lost?记忆应该怎么分层?短期上下文、摘要、长期记忆分别放什么、丢了会怎么样?
Common in ChinaCommon overseasBasic#memory#context-management#multi-agent🔒 Unlock D18 to see the answer keys.
When summarizing a long conversation, how do you keep the critical information from being lost — and what is different about this in a multi-agent system?长对话做摘要时,怎么保证关键信息不丢?在多 Agent 场景下这件事有什么特别的?
Common in ChinaCommon overseasIntermediate#context-compression#multi-agent#reliability🔒 Unlock D18 to see the answer keys.
What do you need to watch out for when replaying execution from a checkpoint? Give failure modes you would actually hit.从 checkpoint 恢复执行(replay)需要注意什么?说几个真实会踩的坑。
Common in ChinaCommon overseasDeep dive#checkpointing#replay#reliability🔒 Unlock D18 to see the answer keys.
What problem does a checkpointer solve in a multi-agent system, and what does it cost?checkpointer 在多 Agent 系统里解决了什么问题?它的代价是什么?
Common in ChinaCommon overseasIntermediate#checkpointing#cost#operations🔒 Unlock D18 to see the answer keys.
D19 Cross-Service Agent Integration: Minting a User-Level JWT, JWKS Signature Verification, the inject/memory/usage Interfaces, Idempotent externalId
For service-to-service calls, would you use a service token or a user token? When does each apply?两个服务之间调用,你会用服务级令牌还是用户级令牌?分别适用于什么场景?
Common in ChinaCommon overseasIntermediate#auth#security#api-design🔒 Unlock D19 to see the answer keys.
How does JWKS-based verification work, and why does it fit cross-service scenarios better than a shared secret?JWKS 验签是怎么工作的?为什么跨服务场景下它比共享密钥更合适?
Common in ChinaCommon overseasBasic#auth#jwt#security🔒 Unlock D19 to see the answer keys.
How do you design an idempotency key for cross-service calls — who generates it, where does it live, and what do you return on a repeat?跨服务调用的幂等键该怎么设计?由谁生成、存在哪、重复了返回什么?
Common in ChinaCommon overseasIntermediate#idempotency#distributed-systems#api-design🔒 Unlock D19 to see the answer keys.
You are designing the API surface an Agent platform exposes to other services. How do you draw the responsibility boundaries?设计一组给外部服务调用的 Agent 平台接口,你会怎么划分职责边界?
Common in ChinaCommon overseasDeep dive#api-design#security#architecture🔒 Unlock D19 to see the answer keys.
D20 Scheduled Jobs and Proactive Outreach: Time Zones, Quiet Hours, Daily Caps, a Notification Provider Abstraction
How does a system-initiated message differ from a user-triggered one, from a system design point of view?系统主动发给用户的消息,和用户自己触发的消息,在系统设计上有什么不同?
Common in ChinaCommon overseasBasic#proactive-messaging#system-design#product-engineering🔒 Unlock D20 to see the answer keys.
Building a scheduled push service for users worldwide, what timezone pitfalls would you hit, and how do you handle the DST switchover day?做一个面向全球用户的定时推送服务,时区上你会踩到哪些坑?夏令时切换那天怎么处理?
Common in ChinaCommon overseasDeep dive#timezone#scheduling#correctness🔒 Unlock D20 to see the answer keys.
How would you implement quiet hours and a per-user daily cap, and where in the pipeline should they be evaluated?quiet hours 和每日发送上限这两条规则你会怎么实现?它们应该放在链路的哪一步判断?
Common in ChinaCommon overseasIntermediate#rate-limiting#quiet-hours#cost-control🔒 Unlock D20 to see the answer keys.
You have abstracted model calls, payments and notification channels behind providers. How does the notification interface differ from the other two?模型调用、支付、通知渠道你都做过 provider 抽象。通知这一份接口和另外两份有什么不同?
Common in ChinaCommon overseasIntermediate#provider-abstraction#api-design#retry-semantics🔒 Unlock D20 to see the answer keys.
D21 Evaluation and Observability: a Golden Set, LLM-as-Judge, Tracing, a Failure-Rate/Cost Dashboard; Pi vs. LangGraph Summary; Week Three Retrospective
How do you evaluate an agent's quality, and how does it differ from testing a conventional backend service?怎么评估一个 Agent 的效果?和传统后端服务的测试有什么不同?
Common in ChinaCommon overseasIntermediate#evaluation#testing#agent-quality🔒 Unlock D21 to see the answer keys.
What makes LLM-as-judge unreliable, and what do you do about it?用大模型给大模型的输出打分(LLM-as-judge),有哪些不可靠的地方?怎么办?
Common in ChinaCommon overseasDeep dive#evaluation#llm-as-judge#reliability🔒 Unlock D21 to see the answer keys.
What does observability look like for a multi-agent system, and how does it differ from a single agent?多 Agent 系统的可观测性要看哪些东西?和单 Agent 有什么不一样?
Common in ChinaCommon overseasIntermediate#observability#tracing#distributed-systems🔒 Unlock D21 to see the answer keys.
When should you reach for an orchestration framework like LangGraph, and when should you not?什么时候该用 LangGraph 这类编排框架,什么时候不该用?
Common in ChinaCommon overseasIntermediate#architecture#framework-selection#langgraph🔒 Unlock D21 to see the answer keys.
System design: a multi-agent support platform is live, the team edits prompts several times a week, nobody can say whether quality is improving, and cost is only known as a month-end total. Design its evaluation and observability system.系统设计:一个多 Agent 客服平台已经上线,团队每周改几次提示词,但没人说得清质量是变好还是变差,成本也只有一个月底的总数。请为它设计一套评估与可观测体系。
Common in ChinaCommon overseasDeep dive#system-design#evaluation#observability#cost🔒 Unlock D21 to see the answer keys.
D22 Security: Prompt Injection, Least Privilege for Tools, Sandboxing Approaches, Secret Management
What is prompt injection? How do direct and indirect injection differ, and why can't it be fixed the way SQL injection was?什么是 prompt injection?直接注入和间接注入有什么区别,为什么它不像 SQL 注入那样能被彻底修复?
Common in ChinaCommon overseasBasic#prompt-injection#security#agent-design🔒 Unlock D22 to see the answer keys.
How do you defend against prompt injection? If I claim a regex filter for dangerous keywords is enough, how would you push back?你们怎么防 prompt injection?如果我说「加个正则过滤掉危险关键词就行了」,你会怎么反驳我?
Common in ChinaCommon overseasDeep dive#prompt-injection#least-privilege#tool-permissions🔒 Unlock D22 to see the answer keys.
When an agent has to run untrusted code or commands, what sandboxing options do you have? Which tier would you pick and why?Agent 要执行不受信任的代码或命令时,有哪些沙箱隔离思路?你们选了哪一档,为什么?
Common in ChinaCommon overseasIntermediate#sandboxing#security#tool-execution🔒 Unlock D22 to see the answer keys.
How should secrets be managed in an agent system? Where must they never appear, and how do you rotate them without downtime?Agent 系统里的密钥应该怎么管理?它绝对不能出现在哪些地方,轮换要怎么做才能不停机?
Common in ChinaCommon overseasIntermediate#secrets-management#security#observability🔒 Unlock D22 to see the answer keys.
D23 MCP and Skills: the Protocol, Server/Client, How It Differs From Function Calling; a Tour of the Claude Agent SDK
What problem does MCP solve, and how is it different from function calling?MCP 协议解决了什么问题?它和 function calling 有什么区别?
Common in ChinaCommon overseasBasic#mcp#tool-calling#protocol🔒 Unlock D23 to see the answer keys.
What roles do the MCP server and client play, what can a server expose, and which transports exist?MCP 里 server 和 client 分别承担什么角色?server 能暴露哪几类东西,传输方式有哪些?
Common in ChinaCommon overseasIntermediate#mcp#protocol#transport🔒 Unlock D23 to see the answer keys.
When should you reach for MCP instead of plain function calling, and what does it cost when you shouldn't?什么场景下应该考虑用 MCP,而不是直接写 function calling?不该用的时候硬上会付出什么代价?
Common in ChinaCommon overseasIntermediate#mcp#architecture#trade-offs🔒 Unlock D23 to see the answer keys.
You are about to attach a third-party MCP server in production. What worries you, and what do you check?你要把一个第三方维护的 MCP server 接进生产环境,会担心什么、做哪些检查?
Common in ChinaCommon overseasDeep dive#mcp#security#operations🔒 Unlock D23 to see the answer keys.
D24 RAG, Level Up: Hybrid Search, Reranking, Citations, Recall Evaluation
Why isn't pure vector search enough — what does keyword search add?为什么单纯的向量检索不够,还要加一路关键词检索?
Common in ChinaCommon overseasBasic#rag#hybrid-search#retrieval🔒 Unlock D24 to see the answer keys.
How do you merge two retrieval rankings, and why not just take a weighted sum of the scores?两路检索结果怎么合并?为什么不能直接加权求和?
Common in ChinaCommon overseasIntermediate#rag#rrf#ranking🔒 Unlock D24 to see the answer keys.
How is reranking usually implemented, what problem does it solve, and what does it cost?重排(rerank)一般怎么实现?它解决了初步检索的什么问题,代价是什么?
Common in ChinaCommon overseasIntermediate#rag#rerank#latency🔒 Unlock D24 to see the answer keys.
How do you evaluate retrieval quality in a RAG system, and how should the evaluation set be built?怎么评估一个 RAG 系统的检索效果?评估集应该怎么构造?
Common in ChinaCommon overseasDeep dive#rag#evaluation#recall🔒 Unlock D24 to see the answer keys.
D25 The Frontend Agent Experience: Streaming Rendering, Visualizing Tool Calls, Interrupt/Retry, SSE Hooks
How does a frontend consume SSE to render a typewriter effect, and why do people usually avoid the built-in EventSource?前端怎么消费 SSE 并实现打字机效果?为什么一般不用浏览器自带的 EventSource?
Common in ChinaCommon overseasBasic#sse#streaming#frontend🔒 Unlock D25 to see the answer keys.
The user hits Stop and the frontend calls AbortController.abort(). What is the backend doing at that moment?用户点了「停止生成」,前端调用 AbortController.abort() 之后,后端在做什么?
Common in ChinaCommon overseasDeep dive#streaming#cancellation#cost🔒 Unlock D25 to see the answer keys.
What is different about frontend state management under streaming, and why not call setState on every token?流式场景下前端的状态管理要注意什么?为什么不能每个 token 都 setState?
Common in ChinaCommon overseasIntermediate#react#streaming#performance🔒 Unlock D25 to see the answer keys.
How do you design retry so it does not duplicate side effects, and should the tool-call process be visible to the user?失败重试怎么设计才不会产生重复副作用?工具调用过程要不要暴露给用户?
Common in ChinaCommon overseasIntermediate#idempotency#retry#ux🔒 Unlock D25 to see the answer keys.
D26 System Design Deep Dive: Agent Platforms / Customer-Support Agents / Multi-Tenancy / Cost Control
You get 35 to 40 minutes for a system design round. How do you budget that time, and why is drawing the architecture not step one?系统设计环节只有 35 到 40 分钟,你会怎么分配时间?为什么第一步不是画架构图?
Common in ChinaCommon overseasBasic#system-design#interview-process🔒 Unlock D26 to see the answer keys.
System design: design an e-commerce customer support agent. It looks up orders and shipments, drafts refunds by policy, answers product and policy questions, and escalates to a human when it cannot resolve the issue.系统设计:请设计一个电商客服 Agent。它要能查订单和物流、按规则拟退款方案、回答商品与政策问题,并在搞不定时转人工。
Common in ChinaCommon overseasDeep dive#system-design#customer-support#escalation🔒 Unlock D26 to see the answer keys.
For a multi-tenant agent service, how do you design data isolation and billing isolation, and when do you move from a shared table to a dedicated database per tenant?一个多租户的 Agent 服务,数据隔离和计费隔离要怎么设计?什么时候该从共享表升级到独立库?
Common in ChinaCommon overseasIntermediate#system-design#multi-tenancy#isolation🔒 Unlock D26 to see the answer keys.
An agent system's model spend is out of control. Which levers do you pull, in what order, and roughly how much does each save?一个 Agent 系统的模型成本失控了,你会从哪几个层面着手控制?每一层大概能省多少?
Common in ChinaCommon overseasIntermediate#system-design#cost#capacity-planning🔒 Unlock D26 to see the answer keys.
D27 Resume and Project Packaging: STAR, README, Architecture Diagrams, a Demo Video, an English Resume
Walk me through a technical project of yours using the STAR framework.请用 STAR 法则讲一个你做过的技术项目。
Common in ChinaCommon overseasBasic#behavioral#star#resume🔒 Unlock D27 to see the answer keys.
Tell me about the most challenging project you have worked on. What made it hard?讲讲你做过的最有挑战的一个项目,难在哪里?
Common in ChinaCommon overseasDeep dive#behavioral#project-storytelling🔒 Unlock D27 to see the answer keys.
Suppose I open one of your GitHub projects — what should a good README show me?我们点开了你 GitHub 上的项目,你觉得一份好的 README 应该让我看到什么?
Common in ChinaCommon overseasIntermediate#behavioral#documentation#portfolio🔒 Unlock D27 to see the answer keys.
Have you applied overseas? How does an English tech resume differ from a Chinese one?你投过海外岗位吗?英文简历和中文简历在写法上有什么不同?
Common in ChinaCommon overseasBasic#behavioral#resume#global-market🔒 Unlock D27 to see the answer keys.
D28 Mock Interview Day: One Full China-Domestic-Style and One Full Overseas-Style Round, Self-Assessment
How do domestic Chinese and overseas tech interview loops differ structurally, and how would you prepare for each?国内和海外技术面试的流程差异主要在哪里?你会怎么分别准备?
Common in ChinaCommon overseasBasic#interview-process#career🔒 Unlock D28 to see the answer keys.
What most commonly goes wrong in the self-introduction, and what does a good one look like?自我介绍环节最容易出的问题是什么?一段好的自我介绍应该长什么样?
Common in ChinaCommon overseasIntermediate#self-presentation#communication🔒 Unlock D28 to see the answer keys.
After a mock interview, how do you assess yourself objectively instead of settling for 'that felt okay'?一次模拟面试之后,你怎么做一次客观的自我评估,而不是停在「感觉还行」?
Common in ChinaCommon overseasIntermediate#self-assessment#deliberate-practice🔒 Unlock D28 to see the answer keys.
D29 Shoring Up Weak Points + a Coding Warm-Up: Rate Limiter, LRU, Concurrency Control, Streaming JSON Parsing
What are the common rate limiting algorithms, what are their trade-offs, and which one would you actually ship?限流器有哪几种常见算法?各自的优缺点是什么?如果只能落地一种,你选哪个?
Common in ChinaCommon overseasBasic#rate-limiting#concurrency🔒 Unlock D29 to see the answer keys.
How would you build a scheduler that caps in-flight async tasks, and why is Promise.all or asyncio.gather not enough?怎么实现一个限制并发数的调度器?为什么不能直接用 Promise.all 或者 asyncio.gather?
Common in ChinaCommon overseasIntermediate#concurrency#async🔒 Unlock D29 to see the answer keys.
Why can't you just call JSON.parse in a streaming response, and how would you parse incrementally?为什么流式场景下不能直接用 JSON.parse?你会怎么做增量解析?
Common in ChinaCommon overseasDeep dive#streaming#json-parsing🔒 Unlock D29 to see the answer keys.
D30 Full Retrospective and Application Kickoff: a Complete Pass Over the Interview Bank, a Knowledge Map, Month-Two Application Cadence, Public Launch of the Site
With only one week left before your interviews, how would you plan your review?如果只剩最后一周准备面试,你会怎么安排复盘节奏?
Common in ChinaCommon overseasBasic#interview-prep#prioritization🔒 Unlock D30 to see the answer keys.
How do you turn scattered knowledge into a map that is actually useful for review?怎么把零散的知识点组织成一张便于复习的知识地图?
Common in ChinaCommon overseasIntermediate#knowledge-organization#interview-prep🔒 Unlock D30 to see the answer keys.
Walk me through what you have been working on recently and why you moved toward agent engineering, in three to five minutes.用 3 到 5 分钟讲一下你最近这段时间的成长路径,以及为什么转向 Agent 工程。
Common in ChinaCommon overseasDeep dive#self-introduction#storytelling🔒 Unlock D30 to see the answer keys.