# Ye Yu Blog - Full English Corpus > Complete Markdown collection of English articles from Ye Yu Blog (https://ye-yu.com/en). > Total Articles: 28 --- # [EN] Mac Troubleshooting: Why 'Auto Proxy Discovery' Causes Tailscale Connection Timeouts - URL: https://ye-yu.com/en/blog/macos-auto-proxy-discovery-tailscale - Date: 2026-11-08 - Category: Coder - Chinese Version: https://ye-yu.com/blog/macos-auto-proxy-discovery-tailscale ## 1. The Incident and BLUF (Bottom Line Up Front) Today, while setting up the built-in Tailscale module in Shadowrocket on macOS, I encountered a baffling issue: **the exact same Tailscale credentials and node configurations connected instantly on an iPhone, but stayed stuck on "Disconnected" on a Mac**. Looking into Shadowrocket's VPN diagnostic logs, every attempt to start the built-in Tailscale module threw the exact same error after 5 seconds: ```text failed to fetch control server key: 请求超时。 control server key fetch failed ``` Bottom line up front: **The culprit was neither the proxy nodes nor the Tailscale servers, but the "Auto Proxy Discovery" (WPAD) toggle enabled by default in macOS Wi-Fi settings**. In home Wi-Fi or mobile hotspot environments, this setting forces macOS's underlying networking library (`NSURLSession`) to attempt to locate a non-existent PAC proxy script across the local network before initiating any handshake. This resolution step blocks for 5 seconds until it fails, dragging the Tailscale client's public key retrieval directly into a timeout. Running a single terminal command to turn it off immediately restored sub-second connections to Tailscale: ```sh networksetup -setproxyautodiscovery Wi-Fi off ``` --- ## 2. Core Insights: Why Initial Hypotheses Failed During initial troubleshooting, I followed conventional wisdom and explored two dead ends: 1. **Suspecting an expired Tailscale Auth Key**: Checking the key status in the Tailscale admin console showed that while old keys must remain valid, the client hadn't even retrieved the server's public key yet—it had not reached server-side authentication at all. 2. **Suspecting DNS virtual IP poisoning**: Shadowrocket typically resolves domain names to the reserved `198.18.x.x` range to intercept and route traffic. I added `always-real-ip` for `controlplane.tailscale.com` in the configuration, and DNS indeed returned the public IP, but startup still consistently timed out after 5 seconds. 3. **Deceptive CLI curl success**: Running `curl https://controlplane.tailscale.com/key` directly in the terminal responded almost instantaneously, and standard web browsers also loaded it without any hitch. Why did curl succeed while the embedded Tailscale in Shadowrocket timed out? The crucial difference lies in the execution context: standard `curl` runs in a conventional user-space process network stack, whereas Shadowrocket on macOS runs as a `MacPacketTunnel` (Network Extension) system extension. Inside this extension, initializing Tailscale leverages the system's `NSURLSession`. Inspecting detailed records from the macOS unified log finally caught the culprit: ```text MacPacketTunnel: proxy:start_resolve MacPacketTunnel: unresolved proxies, waiting for resolution MacPacketTunnel: nw_proxy_resolver_create_parsed_array [C11.1.1 proxy pac] Evaluation error: NSURLErrorDomain: -1003 ``` Before the request could even touch a low-level TCP handshake, it was intercepted by macOS to perform WPAD auto proxy discovery. In typical consumer broadband environments, no WPAD server exists on the local network. The system simply hangs for 5 seconds waiting for a response before giving up with a `-1003` error. Tailscale's public key retrieval timeout budget happens to be exactly 5 seconds, causing it to fail every time. --- ## 3. Step-by-Step Reproduction and Fix If you encounter this mysterious 5-second timeout, follow these deterministic steps to inspect and resolve it. ### Step 1: Check Wi-Fi Auto Proxy Discovery Status Open Terminal and run: ```sh networksetup -getproxyautodiscovery Wi-Fi ``` If the output is: ```text Auto Proxy Discovery: On ``` auto proxy discovery is enabled on that network interface. ### Step 2: Disable Auto Proxy Discovery via Terminal Without restarting your Mac, run: ```sh networksetup -setproxyautodiscovery Wi-Fi off ``` Verify the status again: ```sh networksetup -getproxyautodiscovery Wi-Fi # Expected output: Auto Proxy Discovery: Off ``` ### Step 3: Reload Module and Verify Return to Shadowrocket and toggle the Tailscale module off and on. In the diagnostic log, what previously hung for 5 seconds now succeeds instantaneously: ```text tailscale_client_new: initialised tailscale: connected to network ``` The status immediately changes to "Connected", and the handshake drops from a 5-second failure to passing in milliseconds. --- ## 4. Troubleshooting Checklist and Pitfalls | Symptom / Misconception | Root Cause | Recommended Action | |---|---|---| | Terminal `curl` works, but in-app requests time out | `curl` does not necessarily trigger asynchronous system WPAD lookup, whereas `NSURLSession` in Extensions/Apps strictly adheres to system proxy discovery | Do not rely on `curl` alone; troubleshoot Network Extensions using the macOS unified log | | Suspecting local proxy app blocking traffic | WPAD requests a PAC script from the LAN and does not conflict with local HTTP/SOCKS proxies | Disabling WPAD only halts LAN multicast/probes; existing routing rules remain untouched | | Confusing `invalid key` errors mixed with timeouts | Overlapping issues with expired Auth Keys and WPAD timeouts | Resolve the 5-second network-level timeout first, then verify an active Reusable Auth Key in Tailscale console | --- ## 5. Summary and Applicability Boundaries - **Best Fit**: Personal MacBooks, home networks, mobile hotspots, and developer environments running tools like Shadowrocket, Surge, or Clash. In these scenarios, the system default "Auto Proxy Discovery" provides no benefit and often acts as a silent killer blocking specific network components (particularly Network Extensions). Keeping it `Off` is strongly recommended. - **When Not to Disable**: Certain corporate intranets or university campuses where network administrators explicitly push proxy configurations via DHCP Option 252. Disabling WPAD there might prevent access to specific internal resources. Even in those environments, having the administrator provide a static PAC URL (Automatic Proxy Configuration) manually is generally preferred over open network discovery broadcasts. --- # [EN] Restore Missing "Ask Gemini" in Chrome: Local State Fix Guide and Underlying Mechanics - URL: https://ye-yu.com/en/blog/restore-chrome-ask-gemini-by-modifying-local-state - Date: 2026-11-05 - Category: Coder - Chinese Version: https://ye-yu.com/blog/restore-chrome-ask-gemini-by-modifying-local-state I frequently use the "Ask Gemini" AI assistant in Chrome's address bar to summarize web pages. However, after moving environments or reinstalling Chrome, this entry point frequently vanishes without warning. Toggling flags under `chrome://flags` or changing the browser UI language to English often fails to bring the icon back. The proven solution is straightforward: **Chrome gates feature access based on the country code persisted in your user profile's `Local State` file**. Changing the persisted regional code from `cn` to `us` restores access reliably. Yet in practice, 90% of developers find their manual edits either "fail to take effect" or get instantly reverted by Chrome upon launch. This guide covers the memory flush mechanics behind this behavior and a reliable step-by-step procedure. ## Underlying Mechanics: Why Switching UI to English Fails Internally, Google refers to this integrated side-panel assistant by the project codename `glic` (Gemini Live in Chrome). A common assumption is that changing UI language to `English (United States)` or routing traffic through a global proxy will unlock the feature. However, Chrome's regional gating does not rely solely on real-time IP at startup, nor does it reset with UI language: 1. **Google Variations Pinning**: Chrome runs an experiment and rollout service (Google Variations). When syncing over the network, it computes a regional country assignment and locks it into local storage. 2. **Local State Persistence**: This country code is saved under `variations_country` and `variations_permanent_consistency_country` in `Local State`. As long as these keys remain set to `cn`, Chrome treats the browser as located in a non-eligible region and hides `glic` completely. > Note: This article details Chrome profile configurations and Google Variations gating. Make sure you understand the memory flush timing before modifying configuration files. ## The Common Pitfall: Why Edits Get Instantly Overwritten Many tutorials instruct users to open `Local State`, find `cn`, replace it with `us`, and save. But upon restarting Chrome, the icon remains absent—and checking `Local State` shows `us` was rewritten back to `cn`. **The root cause is Chrome's in-memory state dump**: - If you edit the file while Chrome (or any background Chrome Helper process) is still running, closing the browser triggers a memory dump that writes active state back to disk, **instantly overwriting your changes**. - Consequently, **fully terminating all Chrome processes must happen before opening and editing the file**. ## Step-by-Step Guide ### Step 1: Completely Terminate Chrome Processes Do not merely close the browser window or minimize it; ensure all background helper processes have exited. **macOS Users**: Right-click Chrome in the Dock and select "Quit" (`Cmd + Q`), or terminate it cleanly via terminal: ```sh osascript -e 'quit app "Google Chrome"' # 检查是否还有残留进程 pgrep -f "Google Chrome" || echo "Chrome 已彻底退出" ``` **Windows Users**: Open Task Manager (`Ctrl + Shift + Esc`) or force-stop leftover processes in PowerShell: ```powershell Stop-Process -Name chrome -Force -ErrorAction SilentlyContinue ``` ### Step 2: Locate and Back Up the Config File `Local State` is a JSON-formatted global configuration file. Always create a backup before modifying it. - **macOS Path**: `~/Library/Application Support/Google/Chrome/Local State` - **Windows Path**: `%LOCALAPPDATA%\Google\Chrome\User Data\Local State` Create a backup in macOS terminal: ```sh LOCAL_STATE="$HOME/Library/Application Support/Google/Chrome/Local State" cp "$LOCAL_STATE" "${LOCAL_STATE}.bak" ``` ### Step 3: Update Regional Keys Open `Local State` in VS Code or any text editor, then locate and update these three keys: ```json { "variations_country": "us", "variations_permanent_consistency_country": "us", "is_glic_eligible": true } ``` - Change `"variations_country"` (previously `"cn"` or another regional code) to `"us"`. - Change `"variations_permanent_consistency_country"` to `"us"`. - If `"is_glic_eligible"` exists in your build, set it to `true` (if absent, do not add it manually; leave as is). If you prefer command-line automation, run this safe Python replacement after Chrome is fully closed: ```sh python3 -c ' import json, os path = os.path.expanduser("~/Library/Application Support/Google/Chrome/Local State") with open(path, "r", encoding="utf-8") as f: data = json.load(f) data["variations_country"] = "us" data["variations_permanent_consistency_country"] = "us" if "is_glic_eligible" in data: data["is_glic_eligible"] = True with open(path, "w", encoding="utf-8") as f: json.dump(data, f, ensure_ascii=False) print("Local State 更新成功") ' ``` ### Step 4: Verify Environment and Launch After saving changes and reopening Chrome, ensure these three prerequisites are met to prevent Google Variations from reverting: 1. **Flags Experiment**: Navigate to `chrome://flags/`, search for `glic` or `gemini`, set relevant entries to `Enabled`, and relaunch. 2. **UI Language**: Go to `chrome://settings/languages` and set your preferred language to `English (United States)`. 3. **Network Routing**: Ensure outbound traffic routes through a US egress node so startup handshakes do not immediately report ineligible locations back to Google. After relaunching, the familiar Gemini icon will reappear in your address bar and side panel. ## Scope and Boundaries - This tweak addresses client-side feature gating in the Chrome binary. If your Google Account itself is restricted due to workspace policies or compliance settings, you still need a personal account with Gemini eligibility enabled. - Future major Chrome updates may alter Variations key names or locations, requiring re-inspection of current `Local State` structures. --- # [EN] Goodbye "Use Mac Preview for Now": Antigravity 2.28.0 Brings Built-in PDF Viewer and Browser - URL: https://ye-yu.com/en/blog/antigravity-2-28-0-builtin-pdf-viewer-browser - Date: 2026-10-28 - Category: Coder - Chinese Version: https://ye-yu.com/blog/antigravity-2-28-0-builtin-pdf-viewer-browser On October 27, Google Antigravity rolled out **v2.28.0** for desktop. While the changelog enumerates 19 improvements and 15 bug fixes, two marquee additions genuinely reshape daily workflows: a **built-in PDF viewer** and an **integrated side-panel browser**. The two actions that previously forced developers to switch away from agent conversations can now be completed directly in the right panel. --- ## 1. Built-in PDF Viewer: Kevin Hou's Promise Delivered First up is the update that feels most personal: the **Built-in PDF viewer**. Back on September 21, I was using Antigravity to translate and typeset a 24-page PDF guide (`grok-bot-guide-cn.pdf`). The task required repeated adjustments to cover cropping and bottom margins. At the time, the workflow was jarring. Each time the agent finished running a script, it produced a `.pdf` file pill in chat and listed the file in the `Files Changed` pane, but clicking or right-clicking produced no reaction whatsoever. For every layout iteration, I had to exit Antigravity, open Finder, and preview the PDF in macOS Preview. Frustrated, I recorded an 18-second clip, posted it on X, and tagged `@Google Antigravity` in Chinese: **"Could you tell me how to preview a PDF file inside Antigravity?"** To my surprise, Antigravity product lead **Kevin Hou** (`@kevinhou22`) replied directly in Chinese that afternoon with nine words: **"Coming soon. For now, use Mac Preview."** ![Question to Kevin Hou about PDF preview and his reply](/images/posts/2026/10/kevin-hou-pdf-reply.png) A little over a month later, that promise arrived in `v2.28.0`: > *"PDF files now open in a built-in PDF viewer, both in the file viewer and when an artifact is a PDF, so you can read them without leaving Antigravity."* No more jumping out to "use Mac Preview for now." Whether you click a `.pdf` file in the File Viewer or receive a PDF artifact generated by an agent, it renders right inside the Antigravity right pane. Combined with `v2.27.0`'s fix for missing Mermaid diagrams in PDF exports, verifying generated PDFs is now a completely closed loop inside the desktop app. --- ## 2. Built-in Browser: Click Links in Side Panel Without Mobile Shrinkage The second major addition is the **Built-in browser**. In the official live stream mid-month where Kevin Hou teased upcoming browser improvements, `2.28.0` officially introduces it into the Side Panel. In daily use, three refinements stand out: 1. **Auto-expanding panel width**: Many built-in browsers feel cramped because narrow sidebars trigger mobile responsive breakpoints. Antigravity automatically expands the right panel when opening web links, preserving clean desktop layouts. 2. **Default internal view with right-click external escape**: Clicking links in conversation opens them in the side browser by default (with HTTPS certificate inspection in the address bar). Need your system browser instead? Simply **right-click the link** to choose an external window, or adjust the default under `Settings > General > Open Links In`. 3. **`Cmd + Shift + T` tab restoration**: With web pages, PDFs, and code sharing tabs in the side panel, accidental closures happen. Hitting `Cmd + Shift + T` (or `Ctrl + Shift + T` on Windows/Linux) restores recently closed side tabs right where they were, preserving your scroll position. --- ## 3. Notable Polish and Bug Fixes Alongside the viewer and browser, several subtle updates in `2.28.0` improve everyday stability: - **Any file attachment up to 20 MB**: Dropping video clips, design mocks, or raw binary files into chat is no longer rejected—any file under 20 MB can now be attached for agent inspection. - **Word and character level diff highlighting**: Code review diffs highlight specific words and characters modified within a line, rather than turning the entire line solid red or green. - **Subagent permission persistence**: Fixed an annoying issue where permissions granted as `Always allow` in the primary conversation were repeatedly re-prompted when delegated to subagents. - **CJK punctuation bold rendering**: Fixed formatting regressions where bold or italic markers adjacent to Chinese, Japanese, or Korean punctuation left raw `**` asterisks exposed in chat. - **Model retention across restarts**: Fixed a bug where restarting the client or reconnecting caused active conversations to switch models unexpectedly. --- From the integrated browser to the native PDF viewer, Antigravity's recent focus is clear: ironing out the friction points of artifact verification so developers can remain focused in flow. Have you updated to `2.28.0`? How is the built-in browser and PDF preview working for your workflow? --- # [EN] How Much Weekly Quota Does a 5-Hour Window Consume? Calculating Claude, Codex, and Antigravity with CodexBar History - URL: https://ye-yu.com/en/blog/codexbar-5h-vs-weekly-quota-calculation - Date: 2026-10-22 - Category: Coder - Chinese Version: https://ye-yu.com/blog/codexbar-5h-vs-weekly-quota-calculation ## 1. Background and BLUF (Bottom Line Up Front) I subscribe to Claude Pro, ChatGPT Plus (using Codex), and Google AI Pro (using Antigravity). All three enforce a two-tier quota model: a rolling 5-hour session window and an overall weekly allotment. I wanted to understand two questions: How much of the weekly quota does a full 5-hour window consume? And what daily pacing ensures you don't waste unused quota before the weekly reset? CodexBar logs percentage snapshots locally. I wrote a Python script to parse these logs and extract consumption deltas within matching windows: | Account / Pool | One 5h Window ≈ Weekly Quota | Windows per Week | Confidence | | --- | --- | --- | --- | | Claude Pro | 12.5%–13% | 7.5–8 | High | | Codex (ChatGPT Plus) | ~16% | ~6.4 | High | | Antigravity Regular Gemini (Google AI Pro) | ~28.6% | ~3.5 | Moderate | Running this analysis revealed that October 22 was my Claude weekly reset day. At 11:54 AM, I had only used 46% of my weekly quota. Even by maxing out every remaining 5-hour window until the 10:00 PM reset, the total would cap out at ~73%. Because usage was too light earlier in the week, no amount of late sprint could recover the lost quota. **TL;DR**: Don't count individual session resets—monitor your daily weekly quota growth. For a 7-day work week, Claude requires burning slightly more than one full 5-hour window every day, Codex needs about 90% of a full window daily, and Antigravity only needs half a window per day. *Note: These benchmarks reflect real usage on my personal accounts in October 2026. Providers do not publish static conversion factors.* ## 2. Core Mental Model: Why You Cannot Simply Divide Current Percentages The intuitive approach is dividing the two current numbers shown in CodexBar: e.g., Claude 5h at 85% and weekly at 46%. This produces a meaningless ratio because 46% includes all cumulative sessions earlier in the week. Valid ratios require computing matching **deltas**. Within the same 5-hour window, any activity draws down both quotas simultaneously. Therefore: `(Weekly Quota Delta) ÷ (5-Hour Quota Delta) = Equivalent Weekly Quota for a Full 5-Hour Window`. Between 12:58 and 13:58 on October 19, my Claude 5h usage jumped from 48% to 80% (+32), while weekly usage moved from 8% to 12% (+4): 4 ÷ 32 = 12.5%. A subsequent window the next evening recorded +48 and +6, again exactly 12.5%. Two critical constraints to keep in mind: - A "5-hour window" represents a quota bucket, not 5 hours of continuous typing. Under agentic loads, a bucket can be depleted rapidly. - Changing clients does not provide separate quota. Anthropic documentation clarifies that claude.ai, Claude Code, and Claude Desktop share a single quota pool; OpenAI notes ChatGPT Work and Codex share usage, and Codex Pro currently has no 5-hour limit. Quota draw rate also varies with model selection, reasoning effort, context length, and tool calls. ## 3. Reproduction Steps ### Step 1: Locate CodexBar Local History Files ```sh codexbar --help | head -1 ls ~/Library/Application\ Support/com.steipete.codexbar/history/ ``` On CodexBar 0.79.0, the history directory contains `antigravity.json`, `claude.json`, and `codex.json`. You can query live usage via the CLI: ```sh codexbar usage --provider claude --format json --pretty ``` ### Step 2: Understand the JSON Schema Files are organized by account key. Each account contains two series: `session` (`windowMinutes: 300`) and `weekly` (`windowMinutes: 10080`). Entries record three fields: ```json {"capturedAt": "2026-10-19T04:58:37Z", "resetsAt": "2026-10-19T08:30:00Z", "usedPercent": 48} ``` Timestamps are stored in UTC, sampled roughly once per hour. They represent percentage snapshots rather than individual transaction billings. A file may contain multiple accounts; `preferredAccountKey` marks the active one. ### Step 3: Filter Paired Windows and Calculate Ratios Save the following script as `quota_ratio.py`: ```python #!/usr/bin/env python3 """用 CodexBar 本地历史估算:一整轮 5 小时额度约等于多少周额度。 用法:python3 quota_ratio.py [起始时间] [5 小时增量下限] """ import json import sys from datetime import datetime from pathlib import Path provider = sys.argv[1] since = sys.argv[2] if len(sys.argv) > 2 else "1970-01-01" # 只用这个时间之后的采样(UTC) min_delta = float(sys.argv[3]) if len(sys.argv) > 3 else 15 # 整数百分比的产品建议 15 path = Path.home() / "Library/Application Support/com.steipete.codexbar/history" / f"{provider}.json" data = json.loads(path.read_text()) series = data["accounts"][data["preferredAccountKey"]] # 只取当前账户 def entries(name, minutes): return {e["capturedAt"]: e for s in series if s["name"] == name and s["windowMinutes"] == minutes for e in s["entries"]} def ts(t): return datetime.fromisoformat(t.replace("Z", "+00:00")) def close(a, b): # resetsAt 会有 ±1 分钟抖动 return abs((ts(a) - ts(b)).total_seconds()) <= 60 session, weekly = entries("session", 300), entries("weekly", 10080) samples = [(t, session[t], weekly[t]) for t in sorted(session.keys() & weekly.keys()) if t >= since] def same_window(a, b): (_, sa, wa), (tb, sb, wb) = a, b if not all(e.get("resetsAt") for e in (sa, sb, wa, wb)): # 空闲条目可能没有 resetsAt return False return (close(sa["resetsAt"], sb["resetsAt"]) and close(wa["resetsAt"], wb["resetsAt"]) and ts(sb["resetsAt"]) > ts(tb) # 后一条还没过 5 小时重置点 and sb["usedPercent"] >= sa["usedPercent"] and wb["usedPercent"] >= wa["usedPercent"]) groups = [] for s in samples: if groups and same_window(groups[-1][-1], s): groups[-1].append(s) else: groups.append([s]) total_s = total_w = 0 for g in groups: (ta, sa, wa), (tb, sb, wb) = g[0], g[-1] ds = sb["usedPercent"] - sa["usedPercent"] dw = wb["usedPercent"] - wa["usedPercent"] if ds < min_delta or dw <= 0: continue total_s += ds total_w += dw print(f"{ta} → {tb} 5h +{ds:g} 周 +{dw:g} 比例 {dw / ds:.1%}") if total_s: r = total_w / total_s print(f"合计:5h +{total_s:g},周 +{total_w:g} → 一整轮 5h ≈ 周额度的 {r:.1%},一周约 {1 / r:.1f} 轮") else: print("没有符合条件的样本:放宽起始时间,或调低 5 小时增量下限") ``` Execution: ```sh python3 quota_ratio.py claude 2026-10-15 ``` Observed output from October 22: ```text 2026-10-19T03:59:15Z → 2026-10-19T07:59:31Z 5h +56 周 +8 比例 14.3% 2026-10-19T14:57:59Z → 2026-10-19T18:55:03Z 5h +19 周 +2 比例 10.5% 2026-10-20T10:56:43Z → 2026-10-20T14:57:51Z 5h +91 周 +11 比例 12.1% 2026-10-22T02:59:05Z → 2026-10-22T06:56:11Z 5h +64 周 +9 比例 14.1% 2026-10-22T07:56:59Z → 2026-10-22T11:52:47Z 5h +44 周 +6 比例 13.6% 合计:5h +274,周 +36 → 一整轮 5h ≈ 周额度的 13.1%,一周约 7.6 轮 ``` The script performs three tasks: 1. Filters timestamps matching `since` for the active account and aligns `session` and `weekly` entries. 2. Identifies continuous windows where `resetsAt` aligns within 60 seconds and neither metric decreases. 3. Calculates delta per window using first and last records, filters out trivial increments, and sums totals before dividing. Individual window ratios fluctuate between 10.5% and 14.3% due to integer truncation. The aggregated 13.1% lines up closely with the manual 12.5% samples, making 12.5%–13% a reliable budgeting baseline. For other providers: ```sh python3 quota_ratio.py codex 2026-10-20T07:23:40Z # 从本周周窗口开始的时间算起(UTC) python3 quota_ratio.py antigravity 2026-10-14 2 # 百分比是小数,但会回落,下限设成 2 ``` Codex yields 15.6% (~15.7% in interactive runs). Antigravity yields 28.9% (~28.57% across 2/7 integer fractions). ### Step 4: Translating Ratios into Daily Pacing Targets Formulas: - Windows per week ≈ `1 / r` - Target usage per day across `D` active days = `1 / (D × r)` full windows | Account (r) | 7 Active Days / Week | 5 Active Days / Week | | --- | --- | --- | | Claude (12.5%) | 1 full window daily + 1 extra window on 1 day | 2 windows daily at ~80% each | | Codex (16%) | ~90% of a full window daily | ~125% of a window daily (e.g., 80% morning, 45% evening) | | Antigravity (28.6%) | Half a window daily | ~70% of a window daily | Mid-week rebalancing formula: `Remaining Weekly Quota ÷ Remaining Days ÷ r` determines needed daily window throughput. Alternatively, compare elapsed weekly window percentage against consumed quota. The `expectedUsedPercent` field in `codexbar usage --format json` directly tracks this pace. ### Step 5: Near-Reset Feasibility Check `Maximum Achievable Quota = Current Weekly % + (Remaining in Current Window % + Max Usable Future Windows × 100%) × r` On October 22: at 11:54 AM, Claude weekly usage was 46% with 22:00 reset; the 5-hour window was at 85% with 15:20 reset. Burning the remaining 15%, completing a full window after 15:20, and running a final window before 22:00 yields: `46% + (15 + 100 + 100) × 12.5% ≈ 73%`. Over a quarter of weekly allocation was mathematically unreachable. ## 4. Troubleshooting and Edge Cases | Symptom | Root Cause | Fix | | --- | --- | --- | | Hardcoded timestamps throw `KeyError` on repeat runs | Snapshots within the same hour are overwritten by newer samples | Filter entries dynamically rather than hardcoding timestamps | | Window `resetsAt` values misalign | Idle entries use synthetic timestamps; resets jitter by ±1 min | Allow 60-second tolerance; treat missing fields as window breaks | | Antigravity `primary` is not 5 hours | Field mapping differs: Antigravity `primary` tracks Gemini weekly, `secondary` tracks Claude/GPT 5h | Key off `windowMinutes` and bucket `id` | | Menu bar displays 80% while CLI shows 85% | Menu bar UI uses cached state | Trust CLI values for calculations | | Adjacent sample ratios swing wildly between 12.5% and 20% | Integer percentage quantization | Use larger window deltas and aggregate before division | | Antigravity usage drops backward | Unknown server-side reconciliation; quota pools are fragmented | Only evaluate strictly increasing windows with large deltas | | Estimating Claude vs Gemini cost multiplier in Antigravity | Claude and GPT share a combined quota pool | Insufficient discrete logging; requires controlled benchmark tasks | | CLI dumps contain email or organization names | `accountEmail` and `accountOrganization` fields | Sanitize JSON before sharing logs | ## 5. Summary and Scope If you use CodexBar and need predictable capacity planning across multiple AI subscriptions, this delta-based method provides an actionable schedule: - Conversion ratios reflect single-account, single-cycle observations. Upgrades (e.g. Claude Max) or shifts in reasoning effort require re-evaluating. - Codex weekly reset timestamps can adjust mid-cycle. Follow live CLI reset values. - Complimentary quota resets are treated separately (e.g. Codex Full resets or Claude limit resets). - Antigravity's ~28.6% ratio has wider variance due to pool telemetry fluctuations. --- # [EN] Guiding ChatGPT in Chrome: Navigating to Moodle Question Banks and Editing Questions - URL: https://ye-yu.com/en/blog/chatgpt-browser-moodle-question-bank - Date: 2026-10-21 - Category: Coder - Chinese Version: https://ye-yu.com/blog/chatgpt-browser-moodle-question-bank I wanted ChatGPT to help me navigate an authenticated Moodle site to find a question bank and inspect the settings of a specific question. The most time-consuming part in complex LMS menus is locating the exact course administration path. The successful navigation path was: **Course → Course Administration Menu → More → Question Bank → Questions**. Once inside the question bank, scoping the category, including subcategories, and using in-page search reliably pinpointed the question. This workflow operates on a local, already-authenticated Chrome instance. The instructions below assume a ChatGPT session with browser interaction capabilities. ## Specifying the Target Browser Start with a grounding prompt: ```text 请使用我已经登录的 Chrome,打开 <网站地址>。 先确认当前网站、登录状态,以及能看到哪些课程管理入口。 ``` Ask the agent to report the active page and verify it has attached to your running browser session before issuing commands. If the browser interface fails to bind initially, you can follow up with: ```text 请检查当前可用的浏览器和应用。 如果能控制我正在使用的 Chrome,请接着使用这个已登录的窗口。 ``` This fallback requires local desktop computer-use tools. ## Navigating from Course to Question Bank Providing just the course name and question ID can lead the agent into site-wide search rabbit holes. Constrain the navigation path directly: ```text 请进入 <课程名称>,找到这门课的题库。 查看课程的管理菜单和“更多”入口,找到“题库 → 试题”。 请报告实际点击路径,并把页面停在题目列表。 ``` The verified step sequence is: 1. Open the course from the course catalog. 2. Turn on "Edit mode". 3. Open the course action menu and choose "More...". 4. Locate "Question bank" under course administration and open "Questions". This lands directly on the question bank table with category filters. ## Locating Questions: Scoping Categories and In-Page Search Questions frequently reside in nested subcategories. Without checking subcategory inheritance, the list may appear empty: ```text 请在这门课的题库中查找 <题目编号或名称>。 核对类别,必要时勾选“同时显示子类别的试题”,再应用过滤器。 列表加载后,用浏览器页内查找定位题目。 找到后,核对名称并报告该行的编辑入口。 ``` After checking "Also show questions from subcategories" and applying filters, in-page search (`Command + F` on macOS) quickly locates the target row. ## Editing Questions: Clarifying Fields and Values Once the row is identified, formulate clear field-level instructions: ```text 请打开这道题右侧的“编辑”菜单,进入编辑表单。 先确认题目名称和 <字段名称> 的当前值。 然后将该字段从 <原值> 改为 <目标值>。 ``` Replacing "please update this question" with explicit field labels and target values makes inspection and rollback trivial: ```text 请打开 <题目编号或名称> 的编辑页。 将“试题名称”改为 <新名称>。 ``` In the question editing view, the agent can parse question titles, prompts, grading schemes, and answer choices. ## Post-Save Validation Loop Form updates require saving and re-reading to verify persistence: ```text 请保存这次修改。 若页面出现校验提示,请报告提示和对应字段。 保存后重新打开目标题目,确认 <字段名称> 已是 <目标值>。 再使用预览检查 <期望看到的界面行为>。 请分别报告修改、保存、重新读取和预览的结果。 ``` If you manually take over the browser mid-way, instruct the agent: *"I just interacted with the page manually; please re-read the current page state before proceeding."* > Note: This post outlines prompt-driven browser automation patterns for navigating deeply nested administrative web consoles. --- # [EN] Updating Six CLI Tools Weekly with Codex: From Automation Setup to Execution Verification - URL: https://ye-yu.com/en/blog/codex-scheduled-cli-updates - Date: 2026-10-18 - Category: Coder - Chinese Version: https://ye-yu.com/blog/codex-scheduled-cli-updates I wanted to consolidate updates for several CLI tools into Monday mornings: `agy`, `grok`, `codex`, `claude`, and later `mole` and `herdr`. The requirements were simple: execute locally on my Mac at 6:00 AM Singapore time every Monday, and report results back to the original Codex thread. After completing configuration, I manually triggered a test run: **2 updated successfully, 2 were already up to date, and 2 failed**. The failed `agy` update succeeded on a retry with the original command, while `herdr` required switching to `brew upgrade herdr`. The most important takeaway: having `update` in help docs doesn't guarantee the self-updater works. Because Herdr was installed via Homebrew, running its internal self-updater failed by design. I revised the automation's command list and constraints accordingly. ## Observed Test Results | Tool | Initial Exit Code | First Run Outcome | Follow-up Outcome | | --- | --- | --- | --- | | agy | 1 | Detected 1.4.2 from 1.4.0, download interrupted | Succeeded on retry, verified version 1.4.2 | | grok | 0 | Already latest: 1.0.62 | Unrecognized `privacy` config warning logged | | codex | 0 | Updated successfully | Verified version 0.163.0, restart recommended | | claude | 0 | Already latest: 2.1.302 | No re-run needed | | mole | 0 | 1.56.1 → 1.61.0 | Verified version 1.61.0 | | herdr | 1 | Homebrew install disables self-update | Switched to Homebrew: 0.9.3 → 0.9.5 verified | During the initial 6-way parallel run, one failure did not block other updates, and individual outputs and exit codes were collected. While the two failed tools were resolved manually, the full 6-tool suite now reflects verified commands. This test executed on Sunday, October 18, 2026, at 21:35 Singapore time. It verified the execution pipeline end to end. ## Defining "Configuration Complete" Three distinct aspects must be verified: - **Command Availability**: Does the local install expose an `update` sub-command? - **Task Configuration**: Are schedules, command lists, working directory, and destination threads persisted accurately? - **Process Outcomes**: What stdout/stderr and exit codes did each subprocess produce? A status of `ACTIVE` on the automation does not mean all tasks succeeded. In the initial execution, the parent orchestrator exited with code 0 while child tasks for `agy` and `herdr` exited with code 1. Health checks must inspect every subprocess. > Note: Scheduled automations execute on local macOS environments involving shell permissions and subprocess exit code collection. Validate individual update semantics before scheduling. ## Step 1: Verify Command Paths and Entrypoints Inspect command locations in the local terminal: ```sh zsh -lc 'command -v agy grok codex claude mole herdr brew' ``` Resolve any missing paths or environment dependencies. Hardcoding absolute paths to a specific Node version ties the automation to that runtime directory; commands should be dynamically resolved via `command -v`. Next, inspect help entries: ```sh zsh -lc 'agy help update' zsh -lc 'grok update --help' zsh -lc 'codex update --help' zsh -lc 'claude update --help' zsh -lc 'mole --help' zsh -lc 'herdr --help' ``` `mole` lists `mo update` in docs but executes cleanly via `mole update`. `herdr` lists `herdr update` but fails when installed through Homebrew. The final validated command list is: ```text agy update grok update codex update claude update mole update brew upgrade herdr ``` Always align update commands with installation managers. Mole delegates to Homebrew internally; Codex invokes npm. ## Step 2: Formulate Comprehensive Prompt Instructions Scheduling an automation requires clear error-handling and environment bounds. Here is the exact prompt configured in Codex: ```text 请在当前聊天创建一个定时任务:每周一早上 06:00,时区 Asia/Singapore, 在当前这台本地 Mac 上更新以下六个已安装程序: agy update grok update codex update claude update mole update brew upgrade herdr 我授权这个定时任务执行以上六项更新。结果返回当前聊天。 每次使用本机 zsh 登录 shell,以我的主目录为工作目录, 先用 command -v 重新确认每个命令的位置,不固定写入 Node 版本路径。 六项更新并行执行,分别保留输出与退出码,并等待全部结束。 一项失败不影响其他项。拿到最终输出和退出码后,再判断各项结果。 Herdr 使用 brew upgrade herdr,其余五项使用各程序自带的 update。 不要再执行 herdr update。保留当前发布通道。 不使用 sudo,不修改 shell 配置或项目文件。 遇到缺少程序、网络失败、权限不足或需要人工输入,报告具体原因; 不自动确认未知提示,不更换安装方式。 有更新或异常时,用简体中文简要列出各项结果与失败原因。 全部已经是最新版本且没有异常时,保持安静。 ``` The initial run verified parallel execution and fault isolation. The runner closes stdin and enforces a 20-minute execution timeout per tool. ## Step 3: Verify Persistence and Modify in Place After creating the automation, verify the returned task ID and `ACTIVE` state, then read back parameters to confirm schedules and target threads. When adding `mole` and `herdr` later, amend the existing task rather than creating duplicate automations: ```text 请把 <工具名> update 加入刚才的每周更新任务。 先核对本机命令和帮助信息,保持原有调度时间、目标聊天和执行要求。 修改后回读配置,确认完整命令清单。 ``` When Herdr failed on self-update, the command was changed to `brew upgrade herdr`, and the prompt constraint "all use built-in update" was corrected. ## Configuration Pitfall: Local Execution vs. Destination Thread The initial creation failed with: ```text automation_update received invalid arguments: targetThreadId: Missing targetThreadId or destination=thread. ``` The tool expected `destination: "thread"` along with `targetThreadId` when routing notifications. Separating "runs locally on Mac" from "reports back to current thread" resolved the issue. ## Troubleshooting Case Studies ### Herdr: Packaging Decides the Upgrade Command `herdr update` exited with code 1, reporting that Homebrew installations disable built-in updates. Retrying the same command was pointless. I updated the automation and executed manually: ```sh zsh -lc 'cd ~ && command -v brew && brew upgrade herdr' 📌 **Practical Example** > If you previously had an agent troubleshoot a tricky network error and only recall a snippet of the error message, you can now search the snippet directly instead of scrolling through history. Additionally, **archived conversations now retain their status and last updated timestamps**, with clear `(Archived)` markers in sidebar titles to avoid navigation confusion. ![](/images/posts/2026/10/img-muyxi9jfs883.jpg) ## 2. Scheduled Tasks Renamed to Automations The previous "Scheduled Tasks" tab is now **Automations**. Beyond the name change, two key capabilities have been added: 1. **Run Now**: Trigger any scheduled automation immediately without waiting for its scheduled execution time. Ideal for testing newly created tasks or fetching ad-hoc reports. 2. **Create with Prompt**: Skip manual form configuration—describe what you need in natural language, and let the agent guide you through building the automation step by step. ![](/images/posts/2026/10/img-muyxj08zi8xx.jpg) Manual configuration remains simple, requiring just three fields: | Field | Description | |---|---| | Name | The name of the automation task | | Schedule | Frequency (e.g., Daily), execution time, and local timezone (e.g., GMT+8) | | Prompt | The instructions for the agent to execute | Note the fine print: **All automations run as Flash.** All background automations currently run on Gemini Flash. Keep instructions focused on lightweight, repeatable tasks (e.g., "summarize daily updates", "check CLI version bumps") rather than heavy architectural reasoning. > 📌 **Common Use Case** > A daily 7:00 AM automation that inspects CLI releases (such as Codex, AGY, Grok) and automatically triggers updates if new versions are available. ## 3. Collapsible Agent Operation Rows Previously, when an agent chained file edits, bash commands, and file reads between responses, terminal logs often cluttered the chat, pushing final answers off-screen. Now, these actions are **consolidated into a single collapsible row with a concise summary**. You can expand the row whenever you need to inspect raw execution details. Timestamps under agent messages also display relative time by default (e.g., `5m ago`), revealing the exact ISO timestamp on hover. ## 4. Quality of Life Refinements - **Gruvbox Material Theme**: Added both Light and Dark variants with matching syntax highlighting palettes. - **Image-Aware Titles**: Auto-generated titles now inspect images included in your initial message; attachment-only messages also get meaningful titles. - **Windows / Linux**: Clicking the top-left Antigravity window icon starts a new conversation immediately. - **macOS Permissions**: If macOS security blocks Antigravity from reading drag-and-dropped folders, the UI directs you directly to `System Settings > Privacy & Security > Files and Folders`, and the agent won't falsely claim the file does not exist. ## 5. Key Bug Fixes Among the 14 bug fixes in this release, several resolve high-impact edge cases: **Crash & Error Fixes:** - Fixed a bug where reading truncated or incomplete MP4/MOV videos permanently broke subsequent messages in the conversation. - Fixed an issue where saving settings files via Windows Notepad or PowerShell prepended invisible BOM characters, invalidating settings. **UI & State Fixes:** - Fixed switched models in one thread occasionally showing incorrectly when switching between conversations. - Fixed non-text artifacts (PDF, Word, Excel, PowerPoint) rendering as raw text instead of displaying proper download cards. - Fixed missing file tree sidebars in standalone conversations outside defined workspaces. - Fixed jumping to the page top when toggling focus between Markdown preview, artifacts, and diff reviewers. - Fixed holding `Cmd+B` / `Ctrl+B` repeatedly toggling the sidebar uncontrollably. - Fixed selecting text and pressing `Cmd+L` / `Ctrl+L` failing to focus the prompt input. **Other Fixes:** - Fixed attachments uploaded from the homepage unexpectedly reappearing in new conversation inputs. - Restored syntax highlighting for Rust (`.rs`) files and codeblocks. - Fixed plugin updates on Windows failing when background processes were still holding open handles. ## Summary 1. `Cmd+K` full-text search across all conversation contents. 2. Scheduled Tasks transformed into Automations with `Run Now` and `Create with Prompt`. 3. Consolidated, collapsible agent action rows for cleaner chat threads. Full release notes are available on the official [Releases page](https://antigravity.google/releases?tab=hub). --- ### Recent Version Highlights | Version | Focus | |---|---| | v2.19.1 | Subagent direct messaging, Markdown to PDF export, conversation-only undo | | v2.18.1 | Customizations tab and Plugin Marketplace | | v2.17.0 | `/plan` workflow, dedicated 20,000 token rule budgets, Plan Review Policy | | v2.16.0 | WSL support, Office attachments, subagent real-time status cards | | v2.15.1 | Windows Sandbox | --- # [EN] Antigravity 2.17.0: Plan Before You Code - URL: https://ye-yu.com/en/blog/antigravity-2-17-0-plan-before-code - Date: 2026-09-25 - Category: Coder - Chinese Version: https://ye-yu.com/blog/antigravity-2-17-0-plan-before-code Google Antigravity has received its v2.17.0 update. The guiding philosophy of this release is clear: *"Plan before you build."* From formalizing structured agent planning workflows to completely restructuring how rules occupy the model's context window, these changes directly target the pain points of complex software engineering. ![](/images/posts/2026/09/img-muh202yr1ipm.jpg) Here is a summary of what's new 👇 ## 1️⃣ Headline Feature: /plan — Review Before Writing Code In complex engineering tasks, an agent making uncoordinated edits across an entire codebase can introduce regressions. Version 2.17.0 brings a disciplined workflow: - **Plan Review & Iteration**: Triggering `/plan` prompts the agent to draft a comprehensive implementation design document first. You review and refine the proposal before code modification commences. - **Plan Review Policies**: Select between three review policies in settings: review every plan, delegate review decisions to the agent based on critical seam thresholds, or bypass planning for simple one-off tasks. ## 2️⃣ Dedicated 20,000 Token Budget for Rules Previously, extensive project guidelines risked crowding out Skills, Subagents, and MCP definitions within the limited active context window. - **Dedicated Rule Allocation**: Project rules now enjoy an independent 20,000 token budget that does not compete with active conversational context. - **Graceful Fallbacks**: Rules exceeding the budget automatically fold into compact "path + description" index stubs, dynamically fetched only when relevant. ## 3️⃣ Configuration Consolidation - **New Config Location**: Workspace settings officially migrate to `/.gemini/config.json`. - **Deprecated Directory**: The legacy `.agents/settings.json` file is no longer read. Custom paths such as `personal_customization_dir` should be migrated to the new file. ## 4️⃣ Quality of Life Enhancements - **Quick Theme Switching**: Toggle dark/light themes directly from the Command Palette without opening the full Settings view. - **Custom Agent Hooks**: Markdown agent specifications can now register lifecycle hooks in frontmatter via the `hooks:` property with relative and absolute path support. - **Paste Fidelity**: Right-click paste supports rich text and images while preserving Markdown hyperlink formats; pasting over attachments no longer overwrites existing input text. - **Productized Command Surfaces**: Slash commands and built-in Google plugins present official product branding and icons (e.g., Chrome DevTools, Gemini API) rather than raw internal identifiers. - **Quiet Links**: Only actionable artifacts (such as newly created reviews or local dev servers) display interactive cards, while informational web lookups save quietly to sidebar history. - **Language Support**: Added C++20 module interface (`.cppm`) syntax highlighting and icons. ## 5️⃣ Bug Fixes - **/rewind Snapshot Precision**: Resolved an issue where rewinds selected outdated historical snapshots; rollbacks now strictly target the latest state preceding the selected checkpoint. - **Large File & Diff Responsiveness**: Syntax highlighting and diff computations moved off the UI main thread; files exceeding 100 KB gracefully fallback to plain text to preserve fluidity. - **Large Repo Timeout Prevention**: Extended custom rule and workflow discovery timeouts from 3s to 15s to eliminate false-negative loading failures in large monorepos. - **/btw Context Preservation**: Interleaved side-queries now maintain the active subagent profile rather than resetting to the root agent. - **Math Formula Rendering**: Fixed rendering artifacts where inline math containers with `$$` caused dropped text or stray dollar symbols. - **Media Asset Export**: Addressed silent failures when saving SVGs and encoded video streams. --- 💡 **Summary** Antigravity 2.17.0 represents a mature step forward in agentic engineering discipline: establishing a formal planning phase with `/plan` and decoupling rule tokens from execution context. If you are using Antigravity on medium to large codebases, upgrading is strongly recommended! --- # [EN] Google Antigravity 2.16.0 Released: Practical New Features Breakdown - URL: https://ye-yu.com/en/blog/google-antigravity-2-16-0-new-features - Date: 2026-09-23 - Category: Coder - Chinese Version: https://ye-yu.com/blog/google-antigravity-2-16-0-new-features Google Antigravity has rolled out its 2.16.0 release! Beyond noticeable performance enhancements across large codebases, this release introduces several highly practical features addressing developer feedback. Here is an overview of the key highlights. ![](/images/posts/2026/09/img-mudkij90aspi.jpg) ## 1. Native Windows WSL Support 🐧 A welcome addition for Windows developers: 2.16.0 integrates first-class support for the Windows Subsystem for Linux (WSL). You can now target and switch between installed WSL distributions directly within application settings. The title bar clearly reflects the active environment, offering a unified development experience across Linux toolchains on Windows. ![](/images/posts/2026/09/img-mudkjhekxqu8.jpg) ## 2. Direct Drag-and-Drop Parsing for Office Attachments 📄 No more manual copying and converting tabular data. Beginning with 2.16.0, you can drag and drop Word (.docx), Excel (.xlsx), and PowerPoint (.pptx) documents directly into chat. Powered by underlying multimodal parser upgrades, the Gemini model processes document structure and data tables natively. ## 3. Full Visibility for Subagents 🤖 Multi-agent coordination is now significantly more transparent. Subagent invocations render as dedicated interactive cards inline within the timeline. You can monitor their live lifecycle state in real-time—whether Running, Waiting, or Completed. Cards also feature hover-to-terminate controls and one-click deep links into sidecar session panels, removing guesswork from background delegation. ## 4. Performance & Polish ⚡ Several refined touches round out the release: - **Near-Instant Large Project Scans**: Scanning for custom Skills and workspace configuration in monorepos or network-mounted directories has dropped from over a minute to sub-second speeds. - **Improved Image Handling**: Context menus now support direct right-click copy and save for generated imagery. SVG assets copy cleanly to the clipboard ready for pasting into design tools and editors. - **Transparent Execution Feedback**: Enhanced progress indicators detail precise agent staging activities (such as tool initialization). During network retries, a live countdown with attempt counters keeps you informed. ## Conclusion Antigravity 2.16.0 delivers substantial upgrades across cross-platform environments (WSL), document understanding, and agent observability. The indexing speed improvements alone will save meaningful time in large projects. Recommended update for all active users! --- # [EN] Deep Dive into Antigravity's New Default Agent Permissions - URL: https://ye-yu.com/en/blog/antigravity-agent-default-permissions-deep-dive - Date: 2026-09-16 - Category: Coder - Chinese Version: https://ye-yu.com/blog/antigravity-agent-default-permissions-deep-dive ![](/images/posts/2026/09/img-mu3k8mabg9wv.jpg) The permission architecture in Google Antigravity is undergoing a significant evolution. **The short takeaway:** Under the new Default permission preset, you will be interrupted by far fewer confirmation prompts. By introducing upgraded operating-system-level sandboxing on macOS and Linux, terminal commands now execute inside an isolated sandbox by default. So long as the agent is interacting strictly with files inside your active workspace without outbound network access, commands proceed autonomously without manual approval. > *Note: Windows currently retains the legacy permission model.* Previously, developers had to choose between two extremes: fully permissive Turbo mode, or an interactive review cycle that prompted on virtually every command. The new Default preset establishes a well-balanced middle ground. ![](/images/posts/2026/09/img-mu3k1ihikdou.jpg) ### Mode Overview ## Request Review - Every terminal command requires explicit human authorization; commands run outside the sandbox. - Read and write file access is restricted to the workspace. - Outbound network requests are blocked by default and require approval. ## Default - Commands run autonomously inside the sandbox without manual confirmation. The agent can request unsandboxed execution when necessary, subject to human approval. - Sandbox file read/write is strictly confined to the active workspace and system temp directories. - Outbound networking inside the sandbox is blocked. To access external APIs, the agent requests unsandboxed execution. ## Turbo - All commands execute automatically outside the sandbox without prompts. - Global filesystem read/write access is permitted. - Unrestricted network access is enabled for the agent. The update also refines how granular permission rules bind to sandbox states: - When sandboxing is disabled, standard `command` rules govern all commands; when sandboxing is enabled, they govern commands running inside the sandbox. - When sandboxing is enabled, `unsandboxed` rules apply exclusively to commands attempting to bypass the sandbox. ## Permission Presets in Practice Permission presets dictate baseline behavior, while your explicit `allow`, `deny`, and `ask` lists layer on top with authoritative precedence. In Default mode, terminal operations run inside an isolated Terminal Sandbox. When an agent legitimately requires host network access or system-wide resources, it petitions for unsandboxed execution. Unless pre-cleared by a matching `command(...) allow` rule, Antigravity pauses for your review. You can configure global presets under `Settings → General → Permission Settings`, or override them per project in `Settings → Projects`. Newly initialized workspaces default to `Inherit Global`. ## Glossary Reference | Antigravity Term | Context / Meaning | |---|---| | `Security Preset` | High-level baseline policy across sandbox and approvals | | `Default` | Autonomous sandboxed execution with approval for host access | | `Turbo mode` | Unsandboxed, fully autonomous execution | | `Local Permissions` | Filesystem access boundaries | | `Network Access Rules` | Egress networking policies | | `Terminal Commands` | Shell execution rules | | `Commands Outside Sandbox` | Unsandboxed execution permissions | | `MCP Tools` | Model Context Protocol server capabilities | | `sandbox` | Isolated OS process container | | `agent` | Autonomous coding persona | *(Note: As of writing, this rollout is progressively deploying across active release channels.)* --- # [EN] Beyond the Desktop GUI: Headless Remote Control in Antigravity CLI 1.2.0 - URL: https://ye-yu.com/en/blog/antigravity-cli-headless-remote-control - Date: 2026-09-10 - Category: Coder - Chinese Version: https://ye-yu.com/blog/antigravity-cli-headless-remote-control ![](/images/posts/2026/09/img-mtv6qsgwhnhi.jpg) When executing large-scale refactorings, comprehensive test suites, or multi-repo migrations, AI agents frequently run for dozens of minutes or hours. In the past, if you wanted to step away and monitor progress from a phone or browser, you had to keep the full Antigravity 2.0 desktop editor running with Remote Control enabled. With the release of **Antigravity CLI 1.2.0**, Google has baked this capability directly into the terminal runtime: **Headless Remote Control (Daemon)**. You no longer need to keep a heavy desktop UI running or leave a terminal session active. Your local dev workstation can now operate as an always-available headless daemon, ready for orchestration from any web browser on any device. --- ## What Is "Headless Remote Control"? "Headless" means running without a graphical interface. Previously, closing your terminal window or dropping an SSH connection would terminate the active CLI session. The 1.2.0 daemon registers Antigravity CLI directly into your **operating system's native background service manager**: * **Linux**: Managed via `systemd` user services. * **macOS**: Registered as a `LaunchAgent`. * **Windows**: Registered as a Scheduled Task. Once launched, the service establishes a secure reverse connection to Antigravity's cloud relay. Even if you close the terminal, lock your screen, or recover from unexpected crashes, the daemon resumes automatically. --- ## Three Essential Commands for Lifecycle Management You don't need to handcraft systemd units or macOS plists. The CLI provides three concise subcommands: ### 1. Register and Start Daemon: `agy remote-control start` Run in an authenticated terminal session: ```bash agy remote-control start ``` The CLI installs the system service and starts the background process immediately. If you manage multiple workstations under the same Google account, assign a custom name to distinguish machines in the web UI: ```bash agy remote-control start --name "workstation-mac" ``` *(If omitted, Antigravity assigns an auto-generated memorable handle like `my-machine-distant-plume`.)* ### 2. Check Status and Identity: `agy remote-control status` Inspect daemon health, connection state, and assigned machine identifiers: ```bash agy remote-control status ``` ![](/images/posts/2026/09/img-mtv6fs3xd9jd.jpg) ### 3. Stop and Unregister: `agy remote-control stop` When you no longer need the machine on standby, stop the daemon and cleanly deregister it: ```bash agy remote-control stop ``` --- ## Connecting via Web Browser Once the daemon is active, interacting with it follows the familiar Remote Control experience: 1. **Open the Console**: Navigate to [https://antigravity.google.com/](https://antigravity.google.com/) on mobile, tablet, or another computer. 2. **Authenticate**: Log in with the same Google account used in your CLI. 3. **Select Your Host**: Choose your workstation from the instance roster. 4. **Take Command**: Launch new sessions, review active context, inspect code diffs and artifacts, and approve tool authorizations remotely with a single tap. *(Tip: On mobile devices, add the site to your Home Screen to receive native push notifications when background tasks complete or require input).* ![](/images/posts/2026/09/img-mtv6odduromz.jpg) --- ## Key Technical Nuances * **Independent Auth Profiles**: The headless daemon utilizes the CLI's authentication state (`agy login`), completely separated from the desktop Antigravity IDE app session. * **Operating System Lifecycle Guarantees**: * **Linux**: Starts on boot and persists regardless of active interactive user sessions. * **macOS**: Boots when the user logs into the desktop environment and pauses upon sign-out. * **Windows**: Runs without logon if installed with elevated administrator privileges; otherwise starts upon user logon. * **Renaming Instances**: To change your host alias, re-run `agy remote-control start --name "new-name"`, or update `cliRemoteControlHostname` in `~/.gemini/config/config.json` and restart the daemon. --- With CLI 1.2.0, your physical hardware transforms into a private, on-demand AI compute node—retaining the speed and toolchain depth of your local environment while freeing you from your physical desk. --- # [EN] Frontier Engineering: 10 Core Principles - URL: https://ye-yu.com/en/blog/frontier-engineering-ten-core-principles - Date: 2026-09-10 - Category: Coder - Chinese Version: https://ye-yu.com/blog/frontier-engineering-ten-core-principles > **Source**: https://kiro.dev/topics/frontier-engineering/ > **Terminology note**: Terms such as `agent`, `prompt`, `context`, `steering file`, `skill`, `MCP`, `vibe coding`, `CI`, `PR`, and `guardrail` are retained in their industry standard forms. --- ## Overview and Manifesto Software developers are bifurcating into two distinct camps: those who fundamentally changed how they collaborate with AI agents, and those who merely swapped their editing tools. Today, autonomous AI agents write code, run suites, diagnose failures, and iterate continuously for hours without human intervention. The nature of software development has shifted accordingly. The developers experiencing non-linear productivity leaps did not find a magic tool; they adopted an entirely different operational model: they no longer write software directly—they build environments in which autonomous agents reliably produce software. This guide is written for engineers on the ground. If you are already pairing with AI assistants but haven't seen a dramatic leap in shipping velocity, this manifesto lays out what needs to change. Be warned: this is an engineering investment, not a toggle. Cultivating intuition, writing `steering files`, refactoring codebases for agent-readability, and mastering modular task decomposition takes deliberate practice. Expect velocity to dip during the first few weeks before accelerating exponentially. ### The 10 Principles at a Glance 1. **You Are the Architect, Not the Typist** 2. **Maximize Agent Autonomy; Minimize Your Interventions** 3. **Engineer the Codebase for Agents** 4. **Build Fast, Local Feedback Loops for Agents** 5. **Execution Is Cheap; Direction Is Everything** 6. **Treat Code as Disposable Artifacts** 7. **Hold AI Output to Human Standards** 8. **Trust Guardrails, Not Agents** 9. **Involve Agents Across the Entire Lifecycle, Not Just Implementation** 10. **Continuously Tune Your Agent Operating System** ### Frontier Engineering Is Not "Vibe Coding" Frontier Engineering is not "vibe coding," nor is it pasting casual prompts into a chatbox and hoping for the best. It is a disciplined, rigorous practice marrying traditional software engineering principles with the massive leverage of autonomous agents. Over time, your primary scarce resource is attention. Managing cognitive load across concurrent agent contexts, upholding rigorous code quality under high velocity, and resisting the urge to micromanage agent threads becomes the core skill. Your job becomes a continuous filter: what demands human judgment, and what does not. We remain in the early adopter phase. Standardized blueprints for agent-first infrastructure, test harnesses, and automated reviews are still emerging. Much of the workflow relies on sharp engineering instincts: which tasks to delegate, where to place boundaries, and when to step in. Once mastered, velocity surges—freeing bandwidth to tackle architectural debt, edge cases, and long-deferred ambitions that previously fell outside scope. --- ## 01. You Are the Architect, Not the Typist The core value of engineering is no longer typing syntax; it is clarifying intent. In practice, frontier developers directly write less than 1% of the code deployed under their names. The rest is produced, refined, and verified by agents under their direction. Your role condenses into two pillars: defining what "done" means (requirements, operational constraints, acceptance criteria), and verifying that outputs match intent. Clear communication of intent is not new, but it is now indispensable. Stating "add authentication to this API" is insufficient. You must define token lifecycles, role permissions per endpoint, unauthorized handling behaviors, and regression expectations. Then, let the agent construct the code. --- ## 02. Maximize Agent Autonomy; Minimize Your Interventions Too many developers remain trapped in a fragile 60-second loop: submit a prompt, wait a minute, grab the snippet, test manually, paste errors back, and repeat. High velocity cannot exist in this loop. Frontier engineers hand over long-running objectives complete with self-validation instructions: *"Implement this feature, write tests, run the suite, verify that all assertions pass, and maintain 90% branch coverage."* The agent can then operate uninterrupted for 30 minutes or more while you focus elsewhere. Agents will encounter hiccups; allow them to cycle, self-correct, and converge autonomously. Orchestrate multiple agents in parallel across decoupled tasks. Your productivity ceiling is no longer your typing speed, but the number of meaningful concurrent threads you can keep effectively engaged. --- ## 03. Engineer the Codebase for Agents An agent's effectiveness is constrained by the clarity of the codebase it encounters. Foundational engineering practices that help human engineers pay massive compounding dividends with agents: clean READMEs, explicit architecture specs, informative tests, strict module boundaries, strong typing, and deterministic build toolchains. In legacy systems, isolate and prep one module at a time rather than casting agents into unstructured chaos. Human teammates onboard once; AI agents re-onboard on every new session. Capture implicit institutional knowledge explicitly: `steering files` codify conventions, `skills` encapsulate procedural workflows, automated scripts bootstrap environments, and MCP servers expose dynamic context. Instruct agents to leave durable decision logs and clear comments, ensuring future agent sessions inherit not just code, but the rationale behind it. --- ## 04. Build Fast, Local Feedback Loops for Agents If an agent cannot execute tests locally and diagnose failures before you read the diff, you remain the blocking bottleneck. Invest heavily in deterministic, fast, locally executable test harnesses. Agents must be equipped to run linters, execute unit tests, render UI changes via headless browsers, query mock services, and spin up local stacks. Anything you use to validate your own code should be accessible to the agent as a tool. Property-based testing is especially potent: it stress-tests edge cases that human developers and LLMs routinely overlook. High-velocity code generation without automated guardrails only accelerates tech debt; coupled with autonomous feedback loops, it elevates overall software robustness. --- ## 05. Execution Is Cheap; Direction Is Everything When complete features can be synthesized in an afternoon, the bottleneck shifts from implementation to problem definition: what is worth building, what constraints matter, and when to pivot. Code is cheap; architectural trade-offs, API contracts, and domain models remain expensive. Leverage agents during discovery as brainstorming partners to poke holes in assumptions, map alternative trade-offs, and prototype competing solutions. Spec-driven development becomes mandatory: collaborate with the agent to draft concrete requirements upfront to prevent divergent downstream assumptions. --- ## 06. Treat Code as Disposable Artifacts With low generation costs, code is no longer precious. Sunk cost fallacies must be abandoned: whether a prototype took a day or two weeks, if architectural validation fails, discard it cleanly. Do not carry forward brittle code simply because effort was invested. Rebuilding from a sharpened spec takes hours, not months. The critical exception lies in boundary tests. While ephemeral unit tests can be rewritten alongside implementation, high-level integration, property, and stress tests must be preserved—they represent the immutable contract that any replacement implementation must satisfy. --- ## 07. Hold AI Output to Human Standards Speed without quality is pure production liability. Regardless of what synthesized the lines, your name is on the commit, and ownership is yours. Initially, this demands meticulous line-by-line review to establish calibrated trust. As velocity scales, manual review becomes unsustainable. Introduce automated AI reviewer personas into pre-commit hooks and CI pipelines to audit correctness, security vulnerabilities, test depth, and idiomatic maintainability. Reserve human attention for systemic architecture, downstream operational impacts, and security boundaries. Ensure agents observe deployments into production and stand ready to remediate regressions. --- ## 08. Trust Guardrails, Not Agents Long-duration autonomy requires robust, automated guardrails. Avoid the false dichotomy of unbounded system access versus tedious per-tool confirmation fatigue. Scope permissions strictly to the directories, toolsets, and network boundaries required for the task. Enforce deterministic safety nets: SAST scans, credential leak detection, and sandboxed runtimes. Every guardrail automated is one less human interruption required. --- ## 09. Involve Agents Across the Entire Lifecycle, Not Just Implementation Extend agent workflows beyond writing source code. System design docs, performance incident forensics, sprint summaries, documentation maintenance, and on-call runbooks can all follow the same pattern: provide context, specify constraints, generate a first draft, and refine via review. Standardize steering files and MCP tool registries so pipeline agents, documentation agents, and triage agents share a unified foundation. --- ## 10. Continuously Tune Your Agent Operating System Every time an agent derails or forces an unnecessary human intervention, treat it as a bug in your operating system: add a steering rule, encapsulate a missing workflow in a `skill`, automate a manual step via CLI, or refine an MCP interface. Frontier engineering is a meta-discipline: you are simultaneously building the product and iterating on the system that builds the product. Over time, this compounding flywheel transforms reactive prompting into an autonomous, self-healing engineering engine. --- # [EN] Fixing macOS High CPU Usage in dasd Process with Antigravity - URL: https://ye-yu.com/en/blog/fixing-macos-high-cpu-usage-in-dasd-process-with-antigravity - Date: 2026-09-08 - Category: Coder - Chinese Version: https://ye-yu.com/blog/fixing-macos-high-cpu-usage-in-dasd-process-with-antigravity ![](/images/posts/2026/09/image-1024x576.png) Today, my Mac (running the latest macOS 27.0 beta 8) suddenly started lagging. Opening Activity Monitor revealed that a system process named **`dasd`** was pinning a single CPU core at 90%–120%. A quick search yielded no useful answers. Tracing it down with Google Antigravity, I uncovered a hilarious blunder: **an infinite loop caused by an Apple engineer handling time zones incorrectly**. ![](/images/posts/2026/09/image-1-1024x685.png) * * * ## TL;DR — Run this command directly: ``` defaults write com.apple.appstored ArcadePayoutResetDate \ -date "$(date -v+3d -u +"%Y-%m-%dT%H:%M:%SZ")" && \ killall appstoreagent ``` * * * ## Troubleshooting Process with Google Antigravity ### Conclusion & Current Status (BLUF) `dasd` continuously consuming 90%–99% CPU is **not routine background system maintenance, but rather `appstoreagent` (the App Store background daemon) trapped in a hyperactive scheduling loop**. The root cause has been isolated and **resolved**. CPU usage for `dasd` dropped from **98.1% to 0.0%**, and the system returned to normal without requiring a reboot. * * * ### Root Cause Analysis Unified Logging System captures and process call traces provided clear evidence of the infinite loop: 1. **Offending Task**: `com.apple.appstored.ArcadeResetPO` (Apple Arcade payout metrics reset task). 2. **Logic Flaw**: * The actual current time was in the afternoon, but `ArcadePayoutResetDate` in `com.apple.appstored` preferences was pinned to midnight earlier that day: `2026-09-06 00:00:00 +0800` (a timestamp in the past). * After finishing the reset, `appstoreagent` failed to advance the timestamp to the next cycle (the following day). Instead, it re-registered the task using the already expired timestamp `2026-09-06 00:00:00`. * When `dasd` (Duet Activity Scheduler) received the registration, it saw that the scheduled execution time was in the past, marked it as overdue, and triggered it immediately (`Running immediately on submission`). * Outcome: **Over 400 dispatch and IPC events triggered per second**, keeping `dasd` pegging a full CPU core continuously. #### Unified Log Trace ``` appstoreagent: [ArcadePayoutReset] Payout metrics reset with current payout reset time: 2026-09-06 00:00:00+0800 appstoreagent: [ArcadePayoutReset] Reset with reason: Rescheduling appstoreagent: [ArcadePayoutReset] Using new date: 2026-09-06 00:00:00+0800 with reason: Rescheduling appstoreagent: [ArcadePayoutReset] Activity not scheduled; submitting request dasd: SUBMITTING: 501:com.apple.appstored.ArcadeResetPO dasd: Running immediately on submission dasd: REQUESTING START: 501:com.apple.appstored.ArcadeResetPO ``` * * * ### Mitigation & Verification The loop was broken by manually pushing the scheduled date forward in user defaults and gracefully restarting `appstoreagent`: 1. **Command Executed**: `defaults write com.apple.appstored ArcadePayoutResetDate -date "2026-09-06T16:00:00Z" && killall appstoreagent` 2. **Verification Results**: * Monitored via `top` / `ps`: `dasd` (PID 404) CPU usage instantly fell to **0.0%**. * After restarting, `appstoreagent` suspended normally and stopped flooding the system log at 400+ entries/sec. * * * After working through the trace with Google Antigravity, CPU usage is back to normal. ![](/images/posts/2026/09/image-2-1024x692.png) --- # [EN] Antigravity 2.12.0 Introduces the /boost Command - URL: https://ye-yu.com/en/blog/antigravity-2-12-0-boost-command - Date: 2026-09-03 - Category: Coder - Chinese Version: https://ye-yu.com/blog/antigravity-2-12-0-boost-command ![](/images/posts/2026/09/img-mtlqlj31og8a.jpg) Both `/boost` and `/teamwork-preview` represent advanced execution paradigms in Antigravity for tackling sophisticated engineering tasks. However, they differ fundamentally in **architectural focus, team topology, and upfront alignment**: --- ### 1. Core Positioning and Target Scenarios | Dimension | `/boost` (Deep Hardening / Focused Delegation) | `/teamwork-preview` (Multi-Agent Teaming / Systems Projects) | | :--- | :--- | :--- | | **Primary Focus** | **Vertical Depth**: Solves singular, highly complex tasks requiring sustained deep reasoning and exhaustive verification. | **Horizontal Scale**: Coordinates large, cross-module systems requiring multi-role specialization or massive parallel exploration. | | **Use Cases** | • Complex architectural refactoring and non-trivial algorithms
• Elusive bug root-cause analysis, deadlock/perf troubleshooting
• Single-topic technical investigations and strict trade-off evaluations | • Green-field system builds from 0 to 1 (e.g., compilers, full-stack web applications)
• Formal theorem verification and large-scale parallel search
• Comprehensive multi-stakeholder technical documentation reviews | | **Agent Topology** | Orchestrator delegating to specialized deep agents:
• `DeepCoder` (laser-focused implementation)
• `DeepInvestigator` (root cause & empirical verification) | Dynamic multi-agent team tailored to project archetype:
• Review panels / formal verification pipelines
• Massive parallel exploration swarms (scaling to dozens/hundreds of agents)
• Modular development and adversarial auditing squads | --- ### 2. Workflow and Interaction Differences #### `/boost`: Rapid Routing and Autonomous Convergence * **Zero Front-Loaded Bureaucracy**: The Orchestrator automatically selects Solo vs. Delegation execution without requiring extensive requirement negotiation. * **High-Fidelity Goal Handoff**: Delegates the exact context directly to deep subagents without forcing users into rigid specification templates. * **Iterative Verification Loop**: Once the worker completes a draft, the orchestrator acts as a strict adversary—challenging edge cases and driving extra correction turns until requirements are fully satisfied. #### `/teamwork-preview`: Rigorous Specification and Acceptance Contracts * **Two-Phase Methodology**: Enforces a strict boundary between **(1) Prompt Engineering & Contract Definition** and **(2) Formal Autonomous Launch**. * **Anti-Self-Certification**: Interactively drafts objective acceptance criteria and guardrails to prevent agent teams from prematurely declaring success without verification. * **Artifact-Driven State**: Actively maintains a structured `prompt_draft.md` draft artifact before commissioning multi-agent swarms. --- ### 3. Rule of Thumb * Choose **`/boost`** when you have a **single tough nut to crack** (a gnarly bug, a delicate refactor, or complex algorithms) and need an expert agent to drill deep and stress-test the solution. * Choose **`/teamwork-preview`** when you are **kickstarting an expansive system project** or parallel exploratory workload where defining explicit acceptance criteria and coordinating diverse sub-agents is crucial. ![](/images/posts/2026/09/img-mtlq5vzw6xx5.jpg) --- # [EN] Gemini Stealth-Launches 3.8 Flash: Google's Release Cadence Is Accelerating - URL: https://ye-yu.com/en/blog/gemini-3-8-flash-stealth-release - Date: 2026-09-02 - Category: Coder - Chinese Version: https://ye-yu.com/blog/gemini-3-8-flash-stealth-release Today, on a whim, I asked Gemini on the web app what model it was running. Its response directly identified itself as **Gemini 3.8 Flash**. Curiously, the bottom-right badge still displayed "Flash," while the top dropdown selector still read 3.7. When I pressed it on why the UI was out of sync, it explained the architectural reality matter-of-factly: frontend copy and cached assets hadn't updated yet, but backend request routing had already been switched over to the newer model. No launch tweets, no official blog posts—a classic dark launch in production. --- ![](/images/posts/2026/09/img-mtjvebm8351v.jpg) ### What Does This Screenshot Reveal? Looking at the model's self-explanation, it aligns closely with standard canary deployment practices in large-scale web services: 1. **Frontend-Backend Decoupling**: Static UI labels follow longer deploy cycles, whereas backend model routing and A/B test experiments can shift dynamically on the fly. 2. **Progressive Rollout**: If you ask now, some sessions might still resolve to 3.7, while new chat sessions or assigned experiment cohorts route to 3.8. Once again, this release targets the **Flash** tier. As the lightweight, low-latency, and cost-efficient member of the family, Flash is designed for daily automation and rapid back-and-forth tasks. Google uses Flash to deploy iterative optimizations directly into real production traffic to evaluate performance at scale. --- ### An Unusually Fast Release Rhythm Looking back at Gemini's trajectory over the past six weeks, the velocity is unmistakably different: * **Late July**: Gemini 3.6 Flash rolled out. * **Mid-August**: Gemini 3.7 Flash launched roughly three weeks later. * **Early September**: Gemini 3.8 Flash is already running live in canary buckets, under three weeks after 3.7. Jumping two sub-versions (from 3.6 to 3.8) in just over a month highlights two broader shifts: 1. **Point Releases Are Becoming Agile Sprints** In the early days of LLMs, a dot release (like 3.0 to 3.5) signified structural architectural shifts or substantial benchmark jumps. Today, a .x increment functions more like a bi-weekly agile sprint: refinement of alignment, localized data supplements, or targeted fixes for specific domains, shipped as soon as quality gates pass. 2. **Flash as the Innovation Proving Ground** Compared to compute-intensive, high-cost models like Pro or Ultra, Flash has near-zero barrier to entry and minimal latency. Google clearly favors deploying high-frequency improvements to Flash first to validate behavior against massive interactive volumes. --- For developers relying on models for daily programming, workflow automation, or accelerated research, continuous incremental tuning provides a noticeably smoother curve. You might not see dramatic leaps overnight, but under the hood, the foundation is continuously evolving. Try asking your own web session what version it is running to see which canary pool you've landed in. --- # [EN] Fixing Frequent Chrome DevTools MCP Permission Prompts in Google Antigravity - URL: https://ye-yu.com/en/blog/fix-antigravity-chrome-devtools-mcp-permission-prompt - Date: 2026-08-23 - Category: Coder - Chinese Version: https://ye-yu.com/blog/fix-antigravity-chrome-devtools-mcp-permission-prompt ![](/images/posts/2026/08/img-mt55rurq4vp8.jpg) When using Google Antigravity (or the Gemini agent environment) for frontend debugging and web automation, many developers configure and enable the Chrome DevTools MCP plugin. In practice, however, you may encounter an annoying loop: **even after selecting "Yes, and always allow" every time a dialog appears, new permission prompts continue to pop up every couple of steps.** This post explains the underlying cause and the one-line configuration that permanently resolves it. --- ## Problem Description While an agent executes web workflows, confirmation prompts frequently interrupt execution: ```text Allow using this MCP tool? chrome-devtools/list_network_requests 1. Yes, allow this time 2. Yes, and always allow in this conversation 3. Yes, and always allow in this project 4. Yes, and always allow 5. No (tell the agent what to do instead) ``` Even if you choose `4` (globally allow forever), another dialog appears the moment the agent attempts to inspect console logs, take a screenshot, or click a button. --- ## Why Does It Still Prompt After Choosing "Always Allow"? **The issue lies in permission granularity.** When you choose `4. Yes, and always allow`, Antigravity adds only the **specific invoked sub-tool** to your allowlist: - `mcp(chrome-devtools/list_network_requests)` - `mcp(chrome-devtools/evaluate_script)` However, the Chrome DevTools MCP suite exposes more than 20 distinct tools (`click`, `fill`, `hover`, `navigate_page`, `take_snapshot`, `get_console_message`, `lighthouse_audit`, etc.). During a multi-step workflow, an agent dynamically invokes different sub-tools as needed. Whenever it calls a tool that hasn't been individually whitelisted yet, the confirmation dialog triggers anew. --- ## Solution: Authorize the Entire MCP Server The fix is straightforward: grant permission at the **MCP server level** rather than the individual sub-tool level. ### Steps 1. Open your global configuration file: - Path: `~/.gemini/config/config.json` 2. Locate the `userSettings.globalPermissionGrants.allow` array. 3. Add `"mcp(chrome-devtools)"` to the array. Example configuration: ```json { "userSettings": { "globalPermissionGrants": { "allow": [ "mcp(chrome-devtools)", "command(git log)", "command(npm run)" ] } } } ``` ### Comparison | Permission Format | Scope | Use Case | | :--- | :--- | :--- | | `mcp(chrome-devtools/navigate_page)` | Single sub-tool only | Strict boundaries (e.g., read-only inspection tools) | | `mcp(chrome-devtools)` | **All** tools under this MCP server | Fully trusted server, zero interruptions across sub-tools | --- ## Additional Tips 1. **Universal across MCP servers**: If you integrate other custom or third-party MCP servers (like local shell runners or SSH managers), you can apply the same `mcp()` wildcard pattern to bypass prompts entirely. 2. **Project-scoped overrides**: If you prefer not to whitelist it globally, configure `permissionGrants` in the project-specific config file (`~/.gemini/config/projects/.json`) so it only applies within that repository. Changes take effect immediately without restarting Antigravity. Subsequent agent calls to any Chrome DevTools tool will execute smoothly without interruptions. --- # [EN] Six Cities: Which One Captures the Essence Best? - URL: https://ye-yu.com/en/blog/six-cities-which-one-is-most-vivid - Date: 2026-08-23 - Category: Editor - Chinese Version: https://ye-yu.com/blog/six-cities-which-one-is-most-vivid ![](/images/posts/2026/08/img-mt63st1omai8.jpg) ![](/images/posts/2026/08/img-mt63t9czepys.jpg) ![](/images/posts/2026/08/img-mt63u3z1b2nt.jpg) ![](/images/posts/2026/08/img-mt63ufe9pbtk.jpg) ![](/images/posts/2026/08/img-mt63uxxf44i9.jpg) ![](/images/posts/2026/08/img-mt63v3h7ue1y.jpg) Interpret the unique visual identity of [City Name] and construct each composition around five core elements: - A recognizable architectural feature, landmark, or skyline silhouette. - A distinctive local mode of urban transit. - A subtle, intimate moment of everyday street life. - Native vegetation, local terrain, or environmental atmosphere. - A compositional perspective and angle that naturally belongs to the city. The overall scene architecture must vary distinctly across cities, deliberately avoiding repetitive object placement or templated visual formulas. --- # [EN] macOS Golden Gate 27.0 Beta 2: Fixing appstoreagent at 100% CPU with SIGSTOP - URL: https://ye-yu.com/en/blog/macos-golden-gate-27-0-beta-2-fixing-appstoreagent-at-100-cpu-with-sigstop - Date: 2026-07-04 - Category: Coder - Chinese Version: https://ye-yu.com/blog/macos-golden-gate-27-0-beta-2-fixing-appstoreagent-at-100-cpu-with-sigstop ## 1\. Symptoms After upgrading to macOS Golden Gate 27.0 Developer Beta 2 (Build 26A5368g), my MacBook began running extremely hot and the battery drained rapidly. I checked the process status in Terminal: ```bash $ ps aux | grep appstoreagent 19002 107.0 0.1 488771680 25088 ?? R 12:20AM 14:55.36 /System/Library/PrivateFrameworks/AppStoreDaemon.framework/Support/appstoreagent ``` Even though the App Store app was not open, the `appstoreagent` daemon continuously consumed more than 100% of one CPU core. Force-quitting it did not help: the process was relaunched immediately and returned to full load. * * * ## 2\. Tracing the Logs and Finding the Root Cause To identify the actual failure, I queried macOS Unified Logging for messages from this process: ```bash $ /usr/bin/log show --predicate 'process == "appstoreagent" and eventMessage contains "recent_launch_times"' --last 5m ``` The command produced the following error: ```bash 2026-07-04 00:34:55.462135+0800 0x7969e Error 0x0 19002 0 appstoreagent: (libsqlite3.dylib) [com.apple.libsqlite3:logging] no such column: active_launch_events.recent_launch_times in "SELECT active_launch_events.ROWID, active_launch_events.bundle_id, active_launch_events.containing_bundle_id, active_launch_events.event_source, active_launch_events.is_extension, active_launch_events.launch_end_time, active_launch_events.launch_start_time, active_launch_events.recent_launch_times, active_launch_events.timestamp, active_launch_events.payload FROM active_launch_events" ``` ### What the error indicates * **Root cause:** while macOS Golden Gate 27.0 Beta 2 builds or migrates the security database schema in memory, its upgrade migration appears to omit the `recent_launch_times` column from the physical `active_launch_events` table. * **Why CPU usage spikes:** because the column is missing, the underlying SQLite query repeatedly throws a `no such column` error. After catching the error, `appstoreagent` immediately retries at high frequency with no delay, creating a query-fail-retry loop that saturates one CPU core. * * * ## 3\. Why a Normal Kill Does Not Fix It On macOS, `appstoreagent` is a user agent managed by the system’s root `launchd` daemon. When you force-quit it with `kill -9`: 1. The process exits and briefly releases the CPU. 2. `launchd` detects that the managed service exited unexpectedly and immediately relaunches it. 3. The new `appstoreagent` instance runs the same database initialization query, hits the missing-schema error again, and returns to 100% CPU usage. Force-quitting the process therefore creates a repeated launch-crash-relaunch cycle, adding system overhead and generating large volumes of logs. * * * ## 4\. A SIGSTOP / SIGCONT Workaround Because the system’s read-only volume is protected by SIP (System Integrity Protection), a regular user cannot directly repair the underlying database schema. A temporary behavioral workaround is therefore the practical option. The strategy is to control the process with signals and **suspend it**. * Send `SIGSTOP`: this places the process in the `T` (stopped) state. macOS stops scheduling CPU time for it, so **CPU usage immediately falls to 0%**. Crucially, `launchd` still considers the process alive and does not relaunch it. * Send `SIGCONT`: when you need the App Store, this signal resumes the process immediately so downloads and updates can work normally. The following Python 3 daemon, `guardian.py`, automates this behavior: ```python #!/usr/bin/env python3 import subprocess import time import os import sys import signal def get_pids(process_name): """Return all PIDs for the specified process name.""" try: output = subprocess.check_output(["pgrep", "-x", process_name], text=True) return [int(pid.strip()) for pid in output.strip().split("\n") if pid.strip()] except subprocess.CalledProcessError: return [] def is_app_store_running(): """Check whether the App Store GUI client is running.""" return len(get_pids("App Store")) > 0 def get_process_state(pid): """Return the process state. 'T' means stopped; other values mean running.""" try: output = subprocess.check_output(["ps", "-o", "state", "-p", str(pid)], text=True) lines = output.strip().split("\n") if len(lines) > 1: return lines[1].strip() except subprocess.CalledProcessError: pass return None def main(): print(f"[{time.strftime('%Y-%m-%d %H:%M:%S')}] appstoreagent guardian daemon started.") while True: try: agent_pids = get_pids("appstoreagent") app_store_active = is_app_store_running() for pid in agent_pids: state = get_process_state(pid) if not state: continue # Resume appstoreagent when the App Store is open and the process is stopped. if app_store_active: if 'T' in state: print(f"[{time.strftime('%Y-%m-%d %H:%M:%S')}] App Store is running. Resuming appstoreagent (PID {pid})...") os.kill(pid, signal.SIGCONT) # Suspend appstoreagent when the App Store is closed and the process is running. else: if 'T' not in state: print(f"[{time.strftime('%Y-%m-%d %H:%M:%S')}] App Store is closed. Suspending appstoreagent (PID {pid}) to save CPU...") os.kill(pid, signal.SIGSTOP) except Exception as e: print(f"Error in guardian loop: {e}", file=sys.stderr) time.sleep(5) if __name__ == "__main__": main() ``` * * * ## 5\. Running the Guardian Silently with launchd To keep the guardian running silently in the background, package it as a macOS Launch Agent. ### 5.1 Create the Configuration File Create `com.user.appstoreagent-guardian.plist` locally: ```xml Label com.user.appstoreagent-guardian ProgramArguments /usr/bin/python3 -u /path/to/guardian.py RunAtLoad KeepAlive StandardOutPath /path/to/guardian.log StandardErrorPath /path/to/guardian.err ``` > \[!WARNING\] Replace `/path/to/guardian.py` and the other example paths with absolute paths on your Mac. The `-u` option is strongly recommended so Python writes unbuffered output to `guardian.log` immediately. ### 5.2 Load and Activate the Service 1. Make the guardian script executable: `chmod +x /path/to/guardian.py` 2. Copy the configuration file into the user’s LaunchAgents directory: `cp com.user.appstoreagent-guardian.plist ~/Library/LaunchAgents/` 3. Load and bootstrap the guardian with `launchctl`: `launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.user.appstoreagent-guardian.plist` 4. Verify the service status: `launchctl print gui/$(id -u)/com.user.appstoreagent-guardian` If the output shows `state = running` and the expected PID, deployment succeeded. While the App Store is closed, `appstoreagent` should appear as `T` (stopped) in `ps aux`, with CPU usage holding at **0.0%**. Opening the App Store immediately wakes the process so it can provide normal service. ### 5.3 Remove the Service After Apple ships a later beta that fixes the schema-migration bug, remove this temporary guardian with the following commands: ```bash # Stop the background service launchctl bootout gui/$(id -u)/com.user.appstoreagent-guardian # Remove the configuration file rm ~/Library/LaunchAgents/com.user.appstoreagent-guardian.plist ``` --- # [EN] Chengdu in 3D Miniature - URL: https://ye-yu.com/en/blog/chengdu-in-3d-miniature - Date: 2025-12-14 - Category: Coder - Chinese Version: https://ye-yu.com/blog/chengdu-in-3d-miniature ![](/images/posts/2025/12/cd-1.jpg) ![](/images/posts/2025/12/cd-2.jpg) ![](/images/posts/2025/12/cd-3.jpg) --- # [EN] Securely Access Remote Synology SSH Using Cloudflare Tunnel - URL: https://ye-yu.com/en/blog/securely-access-remote-synology-ssh-using-cloudflare-tunnel - Date: 2025-07-12 - Category: Coder - Chinese Version: https://ye-yu.com/blog/securely-access-remote-synology-ssh-using-cloudflare-tunnel Do you have a Synology NAS in a remote location (like your home or office) and wish you could securely manage it via SSH just like you would locally, no matter where you are? This guide documents how to achieve this using Cloudflare Tunnel (a Zero Trust tunnel). **Advantages of using Cloudflare Tunnel:** * **No Public IP Required**: Even if your Synology NAS is behind a complex internal network, you don’t need to worry about having a public IP address. * **No Open Ports**: You don’t need to configure any port forwarding on your router. This significantly enhances security by preventing your SSH port from being exposed to malicious scans on the public internet. * **Highly Secure**: All traffic is encrypted and protected through Cloudflare’s global network, and you can benefit from its powerful DDoS protection capabilities. * **Stable and Free**: Cloudflare offers a generous free plan for personal users, which is more than sufficient for remote SSH management needs. **Prerequisites:** 1. **A Synology NAS**: You must know its administrator account and password. 2. **Your own domain name**: For example, `yourdomain.com`. You must be able to change this domain’s DNS settings. ### **Part One: Cloud-Side Setup on Cloudflare** In this part, we will create a tunnel in the Cloudflare dashboard and obtain the token required for the connection. #### **Step 1.1: Add Your Domain to Cloudflare** If your domain is not yet managed by Cloudflare, first log in to the [Cloudflare website](https://dash.cloudflare.com/), click “Add a Site,” and follow the instructions to add your domain. This usually requires you to change your domain’s Name Servers to the addresses provided by Cloudflare in your domain registrar’s settings. #### **Step 1.2: Enter the Zero Trust Dashboard** On the main Cloudflare dashboard, select **Zero Trust** from the left-hand menu. The first time you enter, you may need to select a free plan and set up a team name. #### **Step 1.3: Create a Tunnel** 1. In the Zero Trust dashboard, select **Access** -> **Tunnels** from the left-hand menu. 2. Click the **Create a tunnel** button. 3. Give your tunnel an easily recognizable name, such as `synology-nas`, and then click **Save tunnel**. #### **Step 1.4: Get and Save the Connector Token** After creating the tunnel, you will see a “Choose your environment” page. This page provides commands to install the connector (`cloudflared`) on different operating systems. **This is a very crucial step!** In the command box on the right, you will see a full installation command, similar to `cloudflared service install ey...`. You only need to copy the long, random-looking string that follows `install`. This is your tunnel token. Please copy this token completely and save it in a safe place, as we will need it on the Synology NAS shortly. ### **Part Two: Installing and Configuring the Tunnel on Synology NAS (Package Center Version)** Now, we will use the more convenient Package Center method to install the `cloudflared` software on your Synology NAS and connect it to Cloudflare. #### **Step 2.1: Add a Third-Party Package Source** 1. Log in to your Synology DSM desktop and open the **Package Center**. 2. Click the **Settings** button in the upper-right corner. 3. In the pop-up window, select the **Package Sources** tab. 4. Click **Add**, enter `SynoCommunity` in the “Name” field, and enter the following address in the “Location” field: `https://packages.synocommunity.com` 5. Click **OK** to save. #### **Step 2.2: Install Cloudflared from the Package Center** 1. Return to the main Package Center interface and select **Community** from the left-hand menu. 2. In the search box in the upper-right corner, type `Cloudflared` and search. 3. Find the `Cloudflared` package and click **Install**. 4. Wait for the installation to complete. This step automatically handles user, permission, and background service configurations. #### **Step 2.3: Configure the Tunnel Token** 1. After installation, find `Cloudflared` in the Package Center and click **Open**. 2. The package’s configuration interface will be very simple, usually with an input box prompting you to enter the **Tunnel Token**. 3. Paste the long **token string** you copied from the Cloudflare dashboard in **Step 1.4** completely into this input box. 4. Click **Apply** or **Save**. The package will automatically start in the background and use your token to connect to Cloudflare’s network. #### **Step 2.4: Verify the Connection and Point it to the SSH Service** 1. Go back to the Cloudflare Zero Trust dashboard in your browser. Refresh the page, and you should see your connector status display as **“Connected”** on the tunnel configuration page. If so, your Synology NAS has successfully connected to the cloud! 2. Now, let’s tell the tunnel to forward incoming requests to the Synology’s SSH service. Click the **Public Hostnames** tab. 3. Click **Add a public hostname**. 4. Fill out the rule: * **Subdomain**: Enter a subdomain you like, e.g., `ssh` or `nas .` * **Domain**: Select your domain. * **Path**: Leave this blank. * **Service**: * **Type**: **You must select `SSH`**. * **URL**: Enter `localhost:22` (where `22` is the default port for the Synology SSH service). 5. Click **Save hostname**. At this point, all server-side configuration is complete! ### **Part Three: Configuring the SSH Client on Your Computer** For the final step, we need to configure the SSH client on your own computer so it knows how to connect through the Cloudflare Tunnel. #### **Step 3.1: Install `cloudflared` on Your Computer** Your computer also needs this tool installed to act as a “client-side proxy.” You might wonder why you need to install it on your computer if it’s already on the Synology. This is because they play different roles: the `cloudflared` on your Synology NAS is responsible for securely “sending” the internal service to the cloud, while the `cloudflared` on your computer is responsible for securely “bringing” your SSH command to the cloud. They shake hands in the cloud to form a complete, encrypted channel. * **Official download link**: [https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/) * Please download and install it according to your operating system (Windows/macOS/Linux). For example, on macOS, it’s recommended to use Homebrew: `brew install cloudflared`. #### **Step 3.2: Modify Your Local SSH Configuration File** This is the key step that makes the magic happen. 1. Open your computer’s SSH configuration file with a text editor. It is usually located at `~/.ssh/config` (macOS/Linux) or `C:\Users\YourUsername\.ssh\config` (Windows). If the file or directory does not exist, please create it manually. 2. **Add** the following configuration block to the file:`# Connect to Synology NAS via Cloudflare Tunnel Host ssh.yourdomain.com ProxyCommand /opt/homebrew/bin/cloudflared access ssh --hostname %h` 3. **Be sure to modify the following**: * `Host ssh.yourdomain.com`: Replace `ssh.yourdomain.com` here with the **full hostname** you set up in **Step 2.4**. * `/opt/homebrew/bin/cloudflared`: Replace this with the **actual installation path** of `cloudflared` on your computer. You can find it by typing `which cloudflared` (macOS/Linux) or `where.exe cloudflared` (Windows) in your terminal. ### **Part Four: Time to Connect!** All configurations are complete! Now, no matter where you are, just open your computer’s terminal and type the familiar SSH command: ```bash ssh [your_synology_username]@ssh.yourdomain.com ``` (Please replace `ssh.yourdomain.com` with your own hostname) You will find that the system prompts you for your password as usual. After successful authentication, you have successfully logged into your remote Synology NAS! ### **Conclusion and Troubleshooting** Congratulations! You have successfully built an extremely secure and convenient path back to your NAS. * **Q: What should I do if the connection times out or fails?** A: First, go back to the Cloudflare Zero Trust tunnel management page and confirm that your tunnel connector has a green “Connected” status. If not, try restarting the Cloudflared package in the Synology Package Center. If the status is normal but you still can’t connect, carefully check that the hostname and `ProxyCommand` path in your local `.ssh/config` file are completely correct. * **Q: I get a `Classic tunnels have been deprecated` error when connecting via SSH?** A: This is because the `ProxyCommand` in your SSH config file is outdated. Make sure you are using `cloudflared access ssh --hostname %h` and not the old `cloudflared tunnel ...` command. * **Q: When using `sudo`, it fails even with the correct password?** A: This is likely due to a mismatch between your local computer’s keyboard layout and the remote server’s layout, causing special characters (like `@`, `!`, `#`) to be entered incorrectly. You can use an “echo test” to verify or temporarily change your password to something simpler to resolve this. --- # [EN] Source Note: Ian Johnson’s Foreword to Faithful Disobedience - URL: https://ye-yu.com/en/blog/source-note-ian-johnsons-foreword-to-faithful-disobedience - Date: 2025-04-10 - Category: Editor - Chinese Version: https://ye-yu.com/blog/source-note-ian-johnsons-foreword-to-faithful-disobedience This page accompanies my Chinese translation of Ian Johnson’s foreword to *Faithful Disobedience: Writings on Church and State from a Chinese House Church Movement*. The original English text is copyrighted and is not reproduced here. Please consult the [published book](https://www.amazon.com/Faithful-Disobedience-Writings-Chinese-Movement/dp/1514004135/ref=sr_1_1) for the original foreword. About the author: [Ian Johnson’s official website](https://ian-johnson.com/). --- # [EN] Remembering My Mother in Hope - URL: https://ye-yu.com/en/blog/remembering-my-mother-in-hope - Date: 2025-02-14 - Category: Christian - Chinese Version: https://ye-yu.com/blog/remembering-my-mother-in-hope While I was still in a meeting, I received a call from my younger brother telling me our mother had passed away. I did not expect it to happen so quickly. During the Spring Festival, we had been in Chengdu. While video chatting with Mother, she seemed perfectly fine. I hastily booked a ticket and returned to my hometown in Shandong. My mother’s name was He Naixiang; she and my father were from the same village. The village had a beautiful name—Xilou (West Tower). However, its poetic name did not come from romantic imagery like “moonlight bathing the west tower.” Instead, legend says it originated from a landlord’s tower or blockhouse built by villagers with the surname He, hence initially called Hejia Lou (He Family Tower). Later, some villagers moved eastward, creating Donglou (East Tower), and the original settlement became Xilou. The tower itself disappeared long ago, yet the area is still colloquially known as “Lou Di” (Tower Bottom). My mother was born in this area called Lou Di. My maternal grandmother passed away very early; Mother was only two or three years old at the time. Grandfather raised her alone, and their life was very hard. Life was difficult for most families, let alone theirs. Later, Mother married my father from the same village. Their life was tough initially. Eventually, my father started driving a tractor, later taking out loans to buy another tractor for transportation, and their living conditions gradually improved. Good days did not last. In 1987, my father died in an accident; Mother was only 35. Thinking about it now, as a man in my forties, I can only imagine how painfully she endured that period. Perhaps since then, her asthma became severe. Later, my stepfather married my mother, moving into our home to help carry the family burden. My mother first had a little sister, who passed away before reaching six months. Then my younger brother was born. From junior high school onward, I lived at school, seldom staying home. Holidays in junior high were somewhat frequent, but in high school, I could only go home once a week, just for half a day. My memories of Mother are fragmented. As a child, I frequently asked about my birth. She told me when pregnant with me, my sister was not yet three, making me an illegal birth under the One-Child policy. Thus, she ran away, hiding at her aunt’s home. I no longer recall those details clearly. But these stories made watching shows like “Guerrilla against Birth Control” painful rather than comedic. Hiding with fear and anxiety, how could this be humorous? Some painful memories remain vividly etched. One year, Mother’s aunt came to visit and handed me ten yuan. I was in elementary school and had never seen so much money. After sending her off, I immediately headed to school with the ten yuan. Mother chased me for nearly two kilometers and took the money back. Recalling this incident now fills me with both sorrow and humor; Mother was still healthy back then. Mother had limited literacy; her teaching was simple yet practical. Our surname “He” was widespread in the village, and due to her low seniority, nearly everyone we met outside had to be addressed as “uncle,” “aunt,” or “grandparent.” Mother instructed us to respect elders, greeting everyone politely, regardless of age. In junior and senior high school, she encouraged me to study diligently; in university, to make good friends and avoid trouble; when I began working, to cooperate well with colleagues; when I married, she advised me to be gentle and kind. I rarely responded beyond agreeing. Conversations between Mother and me were limited. Her world consisted of neighbors and relatives; my life outside left me unfamiliar with these details. Likewise, my work and social circles were beyond her grasp. Each time I returned, mostly she spoke and I listened. I knew she cared deeply, and all I could say was, “I’m fine, don’t worry.” For over a decade, Mother’s health was frail. Asthma deteriorated into severe pulmonary heart disease. My stepfather, brother, and sister cared for her tirelessly. Born in 1952, according to our local age reckoning, she would be 74 this year. Without their painstaking care, she likely would not have survived these additional years. In August 2022, Mother’s condition worsened again. Hospitalized in Rizhao People’s Hospital, her prognosis seemed bleak. With strict pandemic restrictions in place, it was difficult for me to enter the hospital. When I finally saw her, she still recognized me. During her hospitalization, my wife shared joyful news of her pregnancy, which I told Mother. Perhaps coincidentally, Mother pulled through. The night before discharge, I stayed at Shuqi’s home; their child K had just been born. They even lent me their car to transport Mother back to Wulian from Rizhao. On that occasion, I once again shared the gospel with her, leading her in the prayer of acceptance, which she repeated after me word by word. > “Dear Jesus, I acknowledge I am a sinner and need you. You sacrificed yourself on the cross for me, saving my life. I repent and desire eternal life. In Jesus’ name, Amen.” I encouraged her to pray to Jesus in every difficult situation, simply saying, “Jesus, save me.” I assured her we would meet again in heaven one day. But I knew nothing about local churches. She had no subsequent pastoral care, follow-up, or baptism. Whenever I returned, I would only remind her of our hope and final destination. When Mother passed away, I contemplated arranging a Christian funeral through Rizhao’s church. But upon returning, I found my brother and sister had already made arrangements. Out of deep respect for them and immense cultural pressure, I complied with their wishes. Yet I hold this hope firmly in my heart—I believe Mother confessed with her mouth, believed in her heart, and was thus saved. ![](/images/posts/2025/02/IMG_7137-1-1024x576.jpg) West of the village lies a ridge. The day after the burial, the weather was clear. I captured the sunset’s glow from the rooftop. Seeing the sun still hanging above the western ridge, I drove quickly, hoping to catch one more photo. Yet, within mere minutes, by the time I arrived, the sun had already vanished. As a child, I gazed at the mountains in the east and ridges in the west, wondering what lay beyond. Once I walked eastward to Kunshan Mountain, though never reached its peak. Westward, I traveled as far as Mantangyu Village—my paternal aunt’s home and the ancestral place of an elder brother from our church in Chengdu. Seeking a broader world, I chose Sichuan University in Chengdu for college, nearly the farthest option available, requiring a two-to-three-day train journey. Nearly thirty years have passed; I’ve traveled extensively and experienced much. Yet unlike my wife, who dearly loves her hometown Harbin, I harbor less attachment to any specific place. I care deeply only for people. Wherever the ones I love reside, there my heart calls home. Even if they lived on Mars, I would regard Mars as my hometown. My sister said that in recent bedridden years, Mother often gazed outward through the window, perhaps yearning for a walk, perhaps awaiting visitors. I feel profound regret for not spending more time with her, sympathizing deeply with her soul trapped in a fading body. Now, Mother rests somewhere unknown to me. Yet I am certain her name is inscribed in the Book of Life, and one day, surely, we will reunite. In memory of my mother, He Naixiang (May 14, 1952 – February 8, 2025). --- # [EN] My Testimony of Faith in Christ - URL: https://ye-yu.com/en/blog/my-testimony-of-faith-in-christ - Date: 2025-02-02 - Category: Christian - Chinese Version: https://ye-yu.com/blog/my-testimony-of-faith-in-christ I was born in a rural area of Shandong. During my childhood, until I went to elementary school, we did not have electricity. What left a deep impression on me was that in the summer nights, people liked to cool off in the grain fields. I saw many starry skies there and heard many ghost stories. Among them were the famous “ghost hitting the wall” (a phenomenon where a person is inexplicably trapped, walking in circles and continually ending up back where they started, as though guided by an unseen force) and various ghost tales from *LiaoZhai ( a collection of ancient Chinese ghost stories)*. As a result, I was too scared to walk alone at night when I was young, always afraid of ghosts. ### The Story of My Father’s Death In the countryside, there are people who are said to be able to “communicate with spirits,” usually middle-aged or older women, whom we call “Shen Pozi” (spiritual mediums). When someone in the family falls ill or something bad happens, they often seek the help of these mediums. In March 1987, my father died in a tractor accident. On the third day after his death, a woman, my aunt, who was also a “Shen Pozi,” came to our home, suddenly collapsed to the ground, and started speaking to my mother. Her tone and the things she said sounded exactly like my father, and she spoke about many things only my parents knew. Everyone said that my father’s soul had possessed her, and I was terrified. There was another time when I witnessed my uncle being possessed by a ghost. His body and arms trembled at a speed far beyond what a normal person could do. It terrified me deeply. Therefore, from a very young age, I realized that there was another realm, the spiritual world, beyond what I could see with my eyes. These events were kept inside me, and I always tried to seek an explanation. ### My Scientific Explanation When I went to university, I took a first-year course called *Modern Technology*, which introduced the concept of entropy. I tried to use scientific principles to explain the phenomenon of ghost possession. I believed that each person has an energy field emitting signals, like a television tower. When the tower loses power, its signals can still linger, and if these signals are picked up by someone else, they might cause a reaction. Ghost possession, in my view, could occur when a deceased person’s energy is received by someone else, resulting in the effect of possession. I felt good about my explanation; it seemed logical. ### The Paranormal Event in 2004 However, a few years after I graduated from university, I had an experience where I saw a ghost. In the fall and winter of 2004, for a period of time, every night when I lay in bed and closed my eyes, I could feel a dark shadow at the foot of my bed. When I opened my eyes, I saw nothing. The feeling was very real, and it terrified me; I couldn’t sleep the entire night. I worried that it might be a mental issue, so I inquired and heard that a philosophy professor who had just returned from France, studying under a master of psychoanalysis, had opened a clinic at Sichuan University. I contacted him and went. This professor’s clinic was located in the faculty dormitory area of Sichuan University, and there was a reclining chair in the room that could be adjusted to any position. The process had no set procedure—he just let me talk, whatever I wanted to say, without offering any feedback. After I finished speaking, he would simply tell me to come again next time, charging fifty yuan per session. On the third visit, I arrived on time, but the professor opened the door and said my time was up. He asked me to pay another fifty yuan. I paid, feeling resentful, and decided not to return. When I was in college, my dorm was on the same floor as the philosophy department, so I was familiar with many of the philosophy students. Many of my friends were preparing for graduate school, so I went to ask them for advice. One of them, a Buddhist, said that reciting the *Diamond Sutra* would help calm the situation. So, I started reciting: “Thus I have heard. At one time, the Buddha was staying in the country of Shravasti…” But even though I recited it, the situation did not improve. ### Bible Study There was a graduate student in the philosophy department, named Wang, who was studying Christianity. Previously, a Korean student had preached the gospel to me, but I didn’t feel anything. One day, while having a meal with Wang, I asked him if the Christian God could control Chinese ghosts. He didn’t answer directly but shared many testimonies of Christians driving away ghosts and invited me to a Bible study held at an office in the campus every week. I went and started attending the study, and through it, I learned that there is one God, and indeed only one God. Around the same time, a debate between a Christian apologist Gideon ( 基甸) and the scientist Fang Zhouzi (方舟子) was published in *New Threads* (a Chinese publication), and besides attending Bible study weekly, I also watched their debates daily. I started seeing the flaws in evolutionary theory from a scientific perspective and tried to find the evidence for God’s existence, which shattered my previous “scientific view.” There was one example that I still remember vividly: We say that cameras are designed based on the principle of how the human eye works. Yet, while we believe a camera must be designed and created by someone, the human eye, which is far more sophisticated than a camera, doesn’t need any design—it naturally forms in nature. This is very unscientific. Before long, I could no longer see that shadow at the foot of my bed, and my ghostly encounters problem were over. ### Quitting Smoking I started smoking after graduating from high school, smoking heavily—about three packs every two days. My ex-girlfriend also wanted me to quit, and I wanted to as well. I tried to quit eight or nine times, but it was always very difficult, with my longest period being a month. One time, after Bible study, I went downstairs and lit a cigarette. A brother saw me smoking and said, “Brother Ye, your body is the temple of the Holy Spirit. How can you burn fire in the temple?” I felt deeply ashamed and decided to quit smoking before my baptism, asking others to pray for me. One day, I was in my office, looking at a website called *Chinese* *Christian Life Web* (which still exists today, cclw.net). The site had a story about a Christian who wanted to quit drinking. He threw away all the alcohol he had collected. At that moment, I seemed to hear a voice, or maybe it wasn’t a voice, but an awareness or command that said, “Throw the cigarettes on your desk into the trash can.” I did as instructed. It was a very miraculous experience. From that day on, whenever I smelled cigarette smoke, I felt disgusted and had no desire to smoke. Twenty years have passed now, and while I may occasionally smoke a few cigarettes to accompany someone, I no longer have a craving. I generally don’t urge others to quit smoking because I know it’s really hard, and for me, it was God’s grace. He helped me quit in a miraculous way, so I don’t feel comfortable asking others to quit. I pray that God will help those brothers bound by nicotine addiction and that He may personally assist them. ### Baptism ![](/images/posts/2025/02/P3270018-1024x768.jpg) 2005-03-27 On March 27, 2005, Easter, I was baptized in the Fuhe River upstream from Sandao Yan and officially became a Christian. This March marks exactly twenty years. Over these years, I’ve encountered many events—some that require rational understanding and others that defy explanation and must be accepted in faith. There have also been times when I doubted God, but through my experience of faith and the wonderful miracles He has given me, these graces have confirmed my belief and I no longer waver between faith and doubt. My testimony may not be very rational, and it may not align with the style of Early Rain Covenant Church (ERCC). But God’s way of choosing people is wondrous, and everyone’s path is different. My path seems to be—between science and superstition, fear of ghosts led me to become a disciple of Jesus. Thanks be to God for His selection, glory be to Him forever. --- # [EN] My son Ye Jiale - URL: https://ye-yu.com/en/blog/my-son-ye-jiale - Date: 2023-03-31 - Category: Father - Chinese Version: https://ye-yu.com/blog/my-son-ye-jiale March 15th marks the birthday of my son, Ye Jiale. If he were still alive, he would have turned seven years old. ### pregnancy In July 2015, my wife was found to be pregnant. In early 2016, while I was at work one morning, I received a call from my wife informing me that the hospital had detected a problem of the baby with the fetal heart’s aortic valve during a check-up. At that time, she was already seven months pregnant. Later, we went to Anzhen Hospital in Beijing, where the issue was diagnosed. ![](/images/posts/2023/03/IMG_2905-1024x768.jpg) At that time, my wife was hesitant about whether or not to have the child. I encouraged her and said that the sovereignty over the child belonges to God, not us. What God gives, God will take care of. If we reject the child, the guilt will fall upon us. So we encouraged and supported each other to welcome the birth of our child. We named him Ye Jiale, which means “may he be rewarded by God for his joy” in Chinese. ### Birth ![](/images/posts/2023/03/mmexport1458027999101-edited.jpg) Just two hours after he was born, we had to transfer him to another hospital because the one where we gave birth didn’t have an ICU. We consulted some pediatric experts and found that during the newborn stage, there was no intervention available for aortic valve stenosis. However, the hospital was afraid of taking responsibility and refused to keep him. With the accompaniment of Pastor Li Xiangxue and teacher Li Xiaodong from our church, I left the hospital carrying Ye Jiale. We ran halfway across Beijing and eventually decided to take him home. It was a difficult decision, but it was the best one for him because subjecting a newborn to meaningless treatments and separating him from his parents would have been cruel. ### Treatment During that time, he also went through a relatively long period of jaundice. Later, we admitted him to Peking University Hospital where the doctors issued a critical illness notice. One day, while we were registering for his hospital stay, I accidentally pushed him into a Catholic church, where we took a photo together and prayed. After some time, he miraculously recovered, and we were happy that the doctor’s diagnosis was wrong. ![](/images/posts/2023/03/黄与病.jpg) ### JOY When our baby was 100 days old, we planned a DIY photo shoot. ![](/images/posts/2023/03/百天.jpg) In the summer, we went back to grandpa and grandma’s house, took a walk together by the Songhua River, and also visited the Sophia Church. ![](/images/posts/2023/03/去哈尔滨.jpg) In the autumn, we went on a barbecue and autumn outing with brothers and sisters from the church. ![](/images/posts/2023/03/顺义秋游.jpg) Ye Jiale and I often had a lot of interactions. ![](/images/posts/2023/03/互动.jpg) I just found out that he has a slight “lazy eye,” but so what? When he looks into my eyes, my heart melts. Spring has come again in the blink of an eye, and on March 15th, his birthday, we took him to buy a toy car, played at Chaoyang Park, and had a birthday meal together. ![](/images/posts/2023/03/生日.jpg) ### Admission to hospital. Finally, not long after his first birthday, due to a minor cold, he had difficulty breathing and was admitted to the children’s hospital. The severity of his condition far exceeded our imagination. We had previously envisioned surgery for him when he was a few years old, but this time, the doctor quickly gave us a critical illness notice. ![](/images/posts/2023/03/IMG_0578-1024x768.jpg) On March 29th, the doctor said he had to be transferred to the pediatric ICU, and we saw him cry bitterly when he left us, which broke our hearts. But that was not the most desperate moment yet. ### Despair In less than half an hour, the ICU doctor called us for a meeting. The doctor said that now all treatments were meaningless, and hoped that we could take him home. They even suggested preparing a few bags of oxygen for us to use on the way home. If he stopped breathing on the way, we could go to a nearby hospital to get a death certificate. We were grateful for the doctor’s decision, and didn’t want him to walk the rest of his life alone in the hospital. This was the longest road I had ever walked. I drove in front, while my wife held him in the back seat, crying and shouting his name, trying to keep him conscious. At the same time, we called all of our relatives and church brothers and sisters to come and say goodbye to him. That night, all of our relatives gathered. We asked the pastor to baptize him. The moment of farewell had finally arrived. ### LEAVING On March 30, 2017, my son stopped breathing at home and ended his labor. That day, God gave me three marks of comfort and hope. First, at the moment of Lele’s passing, I remembered two occasions when he often cried and refused to sleep at night, and I treated him poorly because of my exhaustion, and even spanked him. I told him, “Daddy’s attitude was not good, and I hit you. I’m sorry. Please forgive Daddy.” His breathing was rapid and heavy at the time, but he responded with a loud “yes.” My child, Ye Jiale, really forgave me. Second, after he stopped breathing, I went to his room and saw that his mouth was upturned with a smile. Third, on that day, God spoke to us through reading the Bible, and it became our greatest comfort. > Truly, I say to you, unless you turn and become like children, you will never enter the kingdom of heaven. Whoever humbles himself like this child is the greatest in the kingdom of heaven. > > (Matthew 18:3-4 ESV) ![](/images/posts/2023/03/IMG_0580-576x1024.png) ### farewell On April 1st, 2017, we held a memorial service for Ye Jiale at our church in Beijing. Many people came together to bid him farewell. ![](/images/posts/2023/03/送别-1024x576.jpg) Thank you for loving me. Going to heaven is not a permanent goodbye. Our Heavenly Father loves you, and if you believe in Jesus, we will see each other again. Ye Jiale 2016.3.15-2017.3.30 ![](/images/posts/2023/03/追思1-1024x576.jpg) Someone asked us, do we regret giving birth to him? No, we don’t regret it. We are especially grateful that Lele brought us 1 year and 15 days of joy. The length of life, whether it’s a day, a year, or a hundred years, is just a moment in eternity. The Bible says, “You do not even know what will happen tomorrow. What is your life? You are a mist that appears for a little while and then vanishes.” The world will eventually forget the name of Lele, but his name is written in the Book of Life. As parents, isn’t our lifelong effort to bring our children before God and give them eternal life? On Christmas Day of 2016, we wrote him a card, hoping that he would live well for the glory of the Lord. ![](/images/posts/2023/03/IMG_2904-1024x768.jpg) Now that he’s no longer on this earth, may the glory of God be upon him. ### IN CHENGDU Do we miss him? Yes, we do. Every day. Is it hard? Of course it is. Sometimes we cry when we look at his pictures and videos. Are there moments of joy? Yes, there are. We find comfort in knowing that he is safe in God’s hands, and that he is doing better than we could ever imagine. After we came to Chengdu from Beijing, the experience of Ye Jiale also helped many families who lost their children, such as the family of Yangbiao and Xiaolan, who lost their son Zimi, and the family of Zhongge and Hailing, who lost their son Li Zhuoqian. ![](/images/posts/2023/03/IMG_5122-1024x683.jpg) On the memorial service of Brother Li Zhuoqian, I wrote the following prayer: > … My son, Ye Jiale, was my helper. In the past, my flesh was heavy and I was attached to earthly things, and did not long for the kingdom of God. After my son left, whenever I think of him, I feel that I should serve Lord more, and I hope that through my service, God’s kingdom will come quickly.。  > > For the world, the greatest success in one’s life is to live for a few decades, at most a hundred years. But for a person in Christ, the greatest success in life is to be able to go to heaven and bring others to heaven. Now, these two children in Jesus have achieved it… By the grace of Jesus, one day, we will meet them in heaven. I look forward to singing praises and serving together with them in heaven. Glory be to our Father GOD forever and ever. In Jesus’ name, amen. ### Afterwords On March 30th, 2023, exactly six years after the passing of Ye Jiale, God’s grace has allowed us to give birth to a younger brother. we have named him Ye Jiaxin(叶嘉信) – in the hope that he will receive God’s reward for his faith. --- # [EN] My Personal History with Television Media - URL: https://ye-yu.com/en/blog/my-personal-history-with-television-media - Date: 2022-10-04 - Category: Technician - Chinese Version: https://ye-yu.com/blog/my-personal-history-with-television-media After I came to Chengdu, I discovered that many brothers and sisters’ families did not have TVs installed in their homes for the sake of their children’s education. This was quite surprising to me, as I felt differently. Ever since I went to elementary school, I have liked watching TV after watching TV shows such as “**Journey to the West**” and “**Ikkyū-san**“. ### Black and white TV I remember that there were a total of two or three TVs in my village. When watching “Journey to the West”, a yard was filled with dozens or hundreds of people. In reality, without amplification, the sound was faint. From over ten meters away, you couldn’t make out details on the small 14-inch screen. What I loved was the atmosphere; what I yearned for was a glimpse into a larger world. ![](/images/posts/2022/10/lihuanying_tv-1024x466.jpg) The scene of watching TV in the movie “Hello Li Huanying” ### Color TV In the late 1980s, my stepfather brought a 14-inch color TV produced by Sichuan Changhong Factory, which finally ended the history of going to other people’s homes to watch TV. This type of television is terrestrial television, which is transmitted wirelessly and requires an indoor antenna or an outdoor antenna. This TV has 8 buttons for switching channels. The right side of the button can be opened, and the signal and color can be fine-tuned inside. I have been living on campus since I was in junior high school. I come back once or twice a week. When it was time to leave, I felt reluctant to part with the TV. I’d often linger to watch Shandong TV’s afternoon ‘advertising and literature’ segment before heading back to school. ![](/images/posts/2022/10/changhong14.jpg) ### Satellite TV I didn’t watch TV in high school, and I watched videos and movies in college. In 2005, I went to work in Beijing and became obsessed with satellite TV. At that time, I lived in the Mingguang Beili Community next to the Jimen Bridge on the North Third Ring Road. I had a balcony facing south, and the headquarters of China University of Political Science and Law was downstairs opposite. On a balcony less than two square meters, I began my journey into satellite TV enthusiasm. ![](/images/posts/2022/10/CIMG5074-768x1024.jpg) An antenna supported by an electric fan stand, the highest point is the tuner The main satellite receiver is dm500s. I forgot what model of the machine I used before. Many satellite TVs are not free and require a subscription card. The subscribe card is very expensive. Some subscribe cards on a satellite will cost about several hundreds dollars. In my country of piracy, they came up with a plan. Just buy a genuine card, put it on a server, and then all receivers connected to the Internet to read the account information on the genuine card. ![](/images/posts/2022/10/截屏2022-10-04-14.48.48.jpg) With this small dish antenna, I could probably receive signals from a few satellites. But I mainly receive programs on the Asia-Pacific 5C satellite at 138 degrees. On this satellite, there are several channels of BBC, CNN, HBO, CTITV, EBC, Phoenix TV, National Geographic, as well as CCTV. What I often watch is a gospel TV station in Taiwan – GOODTV. There is a Christian talk show “True Love Blog” that I often watch, and it is for some Christians to share their testimony. One episode featured an interview with a Christian named Jiang Ximing, titled ‘Rivers in the Desert’. Jiang played a live poem of his own creation (the video starts at 45 minutes and 11 seconds), and I still remember it now: > no longer go with the flow > > From now on, I will walk with the Lord, no longer go with the flow, I will turn back now, please love me, and no longer go with the flow > Lost, I didn’t know to turn back; Jesus pleaded for me. Henceforth, the prodigal returned; Jesus still loves me. True Love Blog” hosted by Li Jingyu The station also broadcasts many preaching programs, such as “Joel Osteen” ([](https://www.joelosteen.com/)[https://www.joelosteen.com/](https://www.joelosteen.com/) ). I later realized that this is the standard prosperity preaching exactly. Then why not use youtube? Youtube was only established in 2005, and there are not many program sources then. ### Maige box In 2012, an IPTV box called “Maige TV” became popular. I use its service from 1st generation to 3rd generation. Its general method is: collect some satellite TV or cable TV signal sources in Hong Kong, Taiwan or somewhere in the mainland china, and then broadcast it through video streaming. About one or two hundred TV stations can be received, including various TV stations in Europe, America, Hong Kong, Taiwan and mainland China. Therefore, this box was used not only in mainland China, but also by Chinese TV lovers all over the world. ![](/images/posts/2022/10/IMG_0649-1024x683.jpg) I am debugging the machine, the white box is the first generation of Maige box. ![](/images/posts/2022/10/microMsg.1411716082127-1024x576.jpg) There are many program sources, the lower right is the second generation of Maige box. In the second half of 2014, after the launch of the third-generation H3D model, within a year, Hong Kong and the mainland began to crack down on this piracy. The server was shut down. ![](/images/posts/2022/10/20130802_214647-1024x768.jpg) sometimes the service was not very stable At the end of 2020, one day I suddenly received a QQ message from a Maige box agent I had added, and asked me if I remembered him. He had just been released from prison in those days and had been isolated from the world for five years. He was afraid that the world had forgotten him. ![](/images/posts/2022/10/WechatIMG10-1-770x1024.jpeg) ### Online TV Android TV was only released in 2014. It can be said that this is a set of operating systems. I bought several Xiaomi boxes based on android tv, and the most impressive one is the enhanced version of Xiaomi Box 3. It can install google framework with root permission, thus you can install youtube in it. But it was later abandoned due to Xiaomi’s censorship of user-installed software and its secret deletion. Mibox s international version is a TV box launched by Xiaomi for foreign markets. In addition to youtube, it has the certification of Netflix and can watch Netflix. I remember being excited for a while after installing Netflix successfully for the first time. ![](/images/posts/2022/10/IMG_6883-1024x644.jpg) In 2019, using netflix for the first time This year, when recommending a TV box to a friend, I found that mibox s are not very popular anymore. Google built google tv on the TV stick chromecast and launched chromecast with google tv. The price is $39.99, and the domestic price is less than 400 RMB. ![](/images/posts/2022/10/chromecastwithgoogletv-1024x744.webp) In addition to its beautiful appearance, the Chromecast has a very beautiful interface. If you can have a US ip address, you can see this interface with many options. If it is a non-US ip, it is a very concise interface. ![](/images/posts/2022/10/IMG_2374-1024x576.jpg) interface when using the USA ip address. Moreover, users in the United States will have built-in TV stations by Pluto tv. There are probably hundreds of TV stations to broadcast. ![](/images/posts/2022/10/IMG_2375-1024x576.jpg) free live tv station provided by pluto tv As a fan of Marvel and National Geographic, I subscribe to Disney+ . It has five parts of TV to watch: Disney, Pixar, Marvel, Star Wars and National Geographic (subject to change based on ip). Disney+ is worth subscribing, although its ip requirements are very strict. ![](/images/posts/2022/10/IMG_2378-1024x608.jpg) Disney+ interface ### Conclusion 1. The important role of television media is to transmit information, and access to information is a basic human right. 2. I don’t believe it makes no difference who holds power. If Mao had lived another 40 years, I likely wouldn’t have been able to watch any television programs from outside China, similar to the situation in North Korea. 3. Reform and opening up gave me the opportunity to know more about the world. --- # [EN] Format Specification for Chinese Sermon Documents (First Draft) - URL: https://ye-yu.com/en/blog/format-specification-for-chinese-sermon-documents-first-draft - Date: 2022-09-08 - Category: Christian - Chinese Version: https://ye-yu.com/blog/format-specification-for-chinese-sermon-documents-first-draft In the past few years, I have done a few sermon transcriptions. During the process, I found that there is no complete specification of Chinese sermons transcription on the Internet. I tried to make some norms myself and discuss them with brothers and sisters. ## Title and article structure This part of the specification takes the use of markdwon as an example, and the same is true for word documents. ### Hierarchy The title is divided into four levels \- 一级标题:文章的标题 - 三级标题:文章主要部分的大标题 - 四级标题:三级标题下面一级的小标题 - 五级标题:四级标题下面某一方面的小标题 Here is an example \# 渴望完美的带领与顺服 ### 引言 ### 超然带领与顺服 ### 通常带领与顺服 #### 1、上帝子民的合一与前行(10.1-7) ##### 1)子民的合一 ##### 2)子民的前行 #### 2、上帝子民的争战与敬拜 (10:8-10) ### 结论 The rendering result of the above example is as follows: # 渴望完美的带领与顺服 ### 引言 ### 超然带领与顺服 ### 通常带领与顺服 #### 1、上帝子民的合一与前行(10.1-7) ##### 1)子民的合一 ##### 2)子民的前行 #### 2、上帝子民的争战与敬拜 (10:8-10) ### 结论 * * * #### Why is starting with a secondary heading deprecated? * In the default font size rendering of each editor, the font size of the first-level heading is the largest, and the font size of the following headings becomes smaller in turn. Heading No. 2 is used in the main text, and is appropriate if the article is very long, such as a longer paper or book. * But in a sermon article, the amounts of words generally does not exceed 20,000 words. The main structure of the article generally does not exceed the third level, so that the main text starts with the second level title, and the font size is too large. Therefore, it is recommended to start with heading3. ### in principle 1. Use headings in the body to avoid isolation, that is, there cannot be only one heading at the same level. Example: In the article structure below, `二级标题 A` only one is included `三级标题` and can be completely omitted `三级标题 A`. \## 二级标题 A ### 三级标题 A ## 二级标题 B 2. Subordinate headings do not repeat the name of the previous heading Example: In the following article structure, the second-level title has the same name as the subordinate third-level title, and it is recommended to avoid it. \## 概述 ### 概述 3. Try to avoid the following situations Subordinate headings do not have to repeat the parent heading \## 概述 ### 概述-第一点 ### 概述-第二点 --- # [EN] How a church organize a wedding - URL: https://ye-yu.com/en/blog/how-a-church-organize-a-wedding - Date: 2021-08-22 - Category: Christian - Chinese Version: https://ye-yu.com/blog/how-a-church-organize-a-wedding ### Marriage is a worship There is nothing wrong with saying that a couple is the star of a wedding. But for a Christian, the primary purpose of life is to glorify God, not to mention your wedding. Essentially, a wedding is the worship of God through the union of a couple. That’s why we call it a “wedding service”, or “wedding” for short. ### Pre-Marriage Counseling The secular world believes that marriage is something that does not have to be learned, or at least can be learned on its own. However, most Christians and their churches believe that marriage requires Bible-based teaching. In my church, for example, it usually takes eight sessions of premarital counseling lasting 3-6 months to successfully complete before a wedding can take place ### Wedding place A congregation is the preferred venue for weddings. However, for a couple in a church that does not have a synagogue or has lost one, the first thing that needs to be determined for a wedding is the venue. The following factors need to be considered in determining the venue. * The number of people attending the ceremony. Estimate the number of relatives, friends and church members who will come to the ceremony to determine the number of seats. * Budget. In the case of a congregation, the cost of the venue is not a consideration. However, in the case of no synagogue, the venue needs to be paid by the couple and needs to be mutually agreed upon by both parties according to the actual situation. * Venue style. Each person’s preferred wedding style is different, and with an appropriate budget, both parties can choose a style that suits them, such as indoor, outdoor; central or suburban with different venue styles. * Layout style. ### The following are some of the venues available for reference. Different star hotel ballroom Park outdoor Small museums Live house Showrooms in large shopping malls Professional exhibition venues ### Timing In secular weddings and wedding receptions throughout China, there are different customs and time periods for choosing the time of the wedding. Our churches generally hold weddings in the afternoon, and it is generally recommended to start within the time period of 14:00 to 15:00 and finish by 16:30. The exact time can be worked out by both parties according to the actual situation. Some of the benefits of holding a wedding in the afternoon are as follows. 1. No need to get up too early, including the couple, the ministry participants and the people watching the ceremony. 2. No banquet for church weddings; possible delays in the morning when the ceremony is held will delay the meal for everyone. 3. The venue requires a lot of flowers to set up; if held in the morning, it would need to be all set up the night before and the flowers may not be fresh. ### Invitation list After the venue and time is indeed good, the couple needs to be determined by the invitation candidates, including ![](/images/posts/2022/03/image-1024x401.png) ### Wedding Process ![](/images/posts/2022/03/image-1-706x1024.png) ### FAQ #### When is the right time to prepare for the wedding? If you have started marriage assistance, you can start to prepare some preparations. #### What are the fees paid by the newcomer? In the absence of a synagogue, all expenses related to the wedding need to be paid by the newcomer, including but not limited to: venue fees, decoration costs, required materials, refreshments, etc.; if the church is still available, there is no venue fee. The service of the church is limited to manpower. If the fee is advanced, the consent of the newcomer is required. #### Why don’t you give gifts and newcomers treat? The primary purpose of the wedding is to witness the glory of God. The wedding of the friends is a blessing to the newlyweds and a worship to God. It is the most important thing for newcomers to get everyone’s blessings. From a practical point of view, in a larger church, if there are more weddings a year, giving gifts will impose a financial burden on friends, and attending a wedding will lose the meaning of blessing. If you are both a friend and a good friend of a newcomer, gift-giving is a category of private intercourse, which should be held before (after) of the wedding. However, if the newlywed holds some positions in the church, they must abide by the relevant rules for receiving gifts in the church. #### What if a friend sends gifts at the wedding? When many unbelieving relatives and friends attend the wedding, it may involve gift-giving situations. The newlyweds should designate 1-2 relatives and friends to record and keep the gifts received. --- # [EN] Remembering my Pastor and Elder - URL: https://ye-yu.com/en/blog/remembering-pastor-and-elder - Date: 2021-06-01 - Category: Christian - Chinese Version: https://ye-yu.com/blog/remembering-pastor-and-elder Next to the Jiangxin Building, the waves on the Jinjiang River are rippling. It has been almost three years since the farewell in the winter of 2018. In the fall of 2017, I moved from Beijing to live in Chengdu, while my work required me to travel between Beijing and Chengdu, delaying several transfer studies. It wasn’t until June of the following year that I transferred to EarlyRain Covenant Church. After serving for a long time, I became very familiar with the brothers and sisters, as if I had known them for many years. However, I generally avoided the pastors and elders. I was afraid that if they had any gift that could read my mind since I am a sinner, wouldn’t it be troublesome? By September, we knew that the new church was ready. I went to the sixth floor and saw that the new church was in a mess. Elder Qin, who manages the synagogue, was busy moving around inside. I went to ask him to assign something to do, and he said, “You install the TVs”. Elder Qin is not tall, but has a good figure, fair skin, good looks, and always has a smile on his face even when he is busy. That day I worked with him until the dark night, that was our first acquaintance. The pastor has a round face, he writes poetry and articles well, and he is very easy-going and joyful. His sermons were like the flowing water of a mountain river, sometimes trickling, sometimes surging. I first knew him from the internet and only met him when I arrived in Chengdu. For more than a year, I sat in the front row of the church because I was afraid of the noise in the back that would interfere with the sermon. I often smiled at him after the meeting, shook his hand and greet each other. Until the December 9th persecution, there was no serious talk between us. After that, I could only watch his photos and videos and listen to his sermons on the salvation of Jesus Christ to remember him. Oh! I often tell my brothers, If you love someone, you must say it early. Alas. The ancients said, “What you encounter in life is actually a divine arrangement.” Just as Paul was taken to the city of Rome, and John was imprisoned on the island of Patmos, how could they make their own decisions? When my brother is locked up for four years and my pastor for nine years, in order to test them, and what the Lord has done will be accomplished, What can I do ? When I couldn’t sleep, I remembered that I was a coward and a coward to make a living. What hope can I have when I feel so much sorrow? But the Bible says, “Lord, what am I waiting for now? My hope is in you! Deliver me from all my transgressions, and do not put me to the shame of fools.” God has mercy on His people, and though we are scattered to the winds, yet in Jesus Christ we become one. The high walls cannot stop the contact in the Lord, and the mountains and seas cannot separate us. May brothers and sisters in the Lord often raise their hands in prayer, saying, “Holy is the Lord! Your glory fills the whole earth! Look after their food and shelter, and protect their parents and wives and children. Wipe away our tears that we miss them. Hear my prayer, O Lord.” This is what I want to say. Written by Ye, a brother who is in the Lord with you, in June 2021. ---