Karpathy's Full Agentic Engineering Lifecycle using Google's Agents-CLI
目前的 agent memory 系統受限於過度依賴檢索 (retrieval-heavy) 的設計,需要使用者確切知道該詢問什麼。更主動的方法是透過分析儲存資料中的結構關係來進行持續的 pattern recognition。透過使用 graph topology 而非 embedding-based similarity,系統能夠識別出單純 retrieval 所遺漏的複雜依賴關係與瓶頸。此流程透過建構 knowledge graph 並產生名為 Observations 的自動化摘要 pipeline 來實現。Google 的 Agents-CLI 讓開發者能在 coding agent 的環境中,使用自然語言 prompt 來管理整個 Agent Development Lifecycle (ADLC),包括治理 (governance) 階段。透過將特定技能注入 Cursor 或 Claude Code 等工具中,開發者可以配置安全性功能,例如 least-privilege identities、透過 Model Armor 的 prompt injection filters,以及透過 Agent Gateway 的 network egress controls。這種方法將安全性與部署直接整合到 engineering workflow 中,減少了傳統上與基於 manual console 治理相關的阻力。該流程確保 agents 在面對 prompt injection 時具備韌性,同時對關鍵任務保持 deterministic logic。
閱讀原文 ↗目錄
Agent memory 不該被動等待 query
目前的 agent memory 系統受限於高度依賴 retrieval 的設計,要求使用者必須精確知道該問什麼。更主動(proactive)的方法則是透過分析已儲存資料中的結構關係,進行持續的 pattern recognition。藉由使用 graph topology 而非 embedding-based similarity,系統能夠識別出單純 retrieval 會遺漏的複雜相依性與瓶頸。此流程是透過一個 pipeline 來實現,該 pipeline 會建構 knowledge graph 並產生名為 Observations 的自動化摘要。
- 傳統的 retrieval 系統無法識別跨多個 data point 組合而成的結構性 pattern。
- Pattern recognition 應該作為 retrieval 之上的 background process 運行,而非單純依賴更好的搜尋演算法。
- 提議的 pipeline 包含四個階段:Raw episodes、Signatures、Clusters 與 Observations。
- Graph topology 被用於 clustering,以避免與 embedding-based similarity scoring 相關的雜訊。
- Observations 是透過受限的 LLM call 產生的,用於總結特定 graph cluster 中發現的 pattern。
- Zep 實作了這項結構分析功能,並由開源 graph engine Graphiti 提供支援。
使用 Google Agents-CLI 實踐 Karpathy 的 Full Agentic Engineering Lifecycle
Google 的 Agents-CLI 讓開發者能夠在 coding agent 的環境中,透過 natural language prompt 管理整個 Agent Development Lifecycle (ADLC),包含 governance 階段。透過將特定 skill 注入 Cursor 或 Claude Code 等工具,開發者可以配置多種安全性功能,例如 least-privilege identity、透過 Model Armor 的 prompt injection 過濾器,以及透過 Agent Gateway 的 network egress 控制。這種方法將 security 與 deployment 直接整合到 engineering workflow 中,減少了傳統手動透過 console 進行 governance 的阻力。該流程確保 agent 在面對 prompt injection 時具備韌性,同時維持關鍵任務的 deterministic logic。
- Google 的 Agents-CLI 為 coding agent 增加了七個 bundled skill,用以處理 scaffolding、evaluation 和 deployment。
- Agent Development Lifecycle (ADLC) 中的 Govern 階段著重於 identity、network access 以及 input screening。
- Model Armor 在不受信任的文字送達 model 之前先行篩選,提供了一層抵禦 prompt injection 與 jailbreak 嘗試的防護。
- Agent Gateway 實作了 egress allow-listing,將 agent 的 network access 限制在特定授權的 domain。
- 在 reconciliation 工具中使用 deterministic code,可防止 prompt injection 影響最終的判定或邏輯。
- 像 least-privilege identity 和網路限制這類的 governance 控制項,現在可以透過 natural language prompt 來管理,而非依賴手動的 cloud console 設定。