Pahud Hsieh

Pahud Hsieh

@pahud.net

56 followers42 following70 posts

【讓AI幫你打出降龍十八掌】 讓AI editor幫你debug問題的時候,多次iterations終於定位到問題並且解決之後,有一件事非常重要,你要問AI 「這次debug你學到了什麼?」 (然後AI會跟你講一大堆) 「好!全部記下寫成一個markdown放在 doc/ 下面」 (搞定) Agent的記憶就跟金魚腦一樣,你下次再開一個Agent session它會不記得昨天或上禮拜發生了什麼事,很多事情就得重新摸索,所以你跟一個Agent周旋三百回合打完收功的時候,務必讓他留下武功秘笈,下一個Agent來直接讓他看秘笈就行了!降龍十八掌直接打出第十八掌不需要從第一掌重新開始摸索。

Pahud Hsieh@pahud.net

Lessen learned today working with AI editor - after a lot of iterations with AI and finally get it fixed. You got to say "What have you learned here?" It should tell you a lot of key take-aways and you just say "Good. Take notes all of them and save a mkdoc under doc/ for future reference." Done

Lessen learned today working with AI editor - after a lot of iterations with AI and finally get it fixed. You got to say "What have you learned here?" It should tell you a lot of key take-aways and you just say "Good. Take notes all of them and save a mkdoc under doc/ for future reference." Done

一直很喜歡YF的影片,看來他也在跟我一樣糾結Cursor vs WindSurf,其實兩個都很不錯,WS相對來說比較aggressive一些,WS的Cascade跟Cursor的Composer Agent已經相當接近了。我也每天兩個一起交換使用。 Windsurf vs Cursor: In-Depth AI Code Editor Comparison youtu.be/C-6Jn4Tbg0g?...

在三萬四千英尺的高空寫代碼是什麼體驗?Well, 你只要跟你的Cascade講,讓他幫你跑完這堆pytest並且找出問題修正錯誤,你就可以讓他幫你iterate代碼直到pytest 全部跑成功,然後自動產生git commit message提交上去GitHub,而其實你只需要用一隻手敲鍵盤就夠了😂

Pahud Hsieh@pahud.net

Cascade has been working so hard to help me iterate the pytests until everything passes when I was flying from NYC to LAS using the Delta air WIFI. All I need to do is just clicking "Accept All" and watch it iterating.

Cascade has been working so hard to help me iterate the pytests until everything passes when I was flying from NYC to LAS using the Delta air WIFI. All I need to do is just clicking "Accept All" and watch it iterating.

Amazon Bedrock pricing文件似乎沒有比較適合AI閱讀的模式,而是這種傳統文件模式,不過沒關係,我依然可以要AI去看這個網址,然後產生一個價格表存在我的class裡面,這樣我在invoke model的每一次返回就可以計算花了多少錢,超級方便!價格改了也沒關係,叫AI再去看一眼文件進行相應的class修改即可。

Cursor composer agent似乎這兩天變聰明了,調整一個代碼裡面的功能,composer agent居然知道自動幫我新增相應的測試,以及新增PRD文件相應的說明,這樣一來等於我只專注抽象的概念,他幫我實現細節之外還同時補充了相應的測試與文件,這真的非常貼心。

使用紐約的公用WIFI OTA升級車子,這技巧很久前分享過,現在依然覺得無敵好用! #Tesla #OTA #NYC #PublicWIFI

認真推薦這位來自上海小紅書的博主,她的內容都非常棒,不用AI配音而是用自己的聲音,非常誠懇,也實際hands on了很多產品的新功能第一時間發布,這種博主小紅書已經很少見了,推薦!

如果你錯過我前兩天的分享的話,這個Twitch連結你可以看到完整重播 #Amarathon www.twitch.tv/videos/23087...

Pahud Hsieh@pahud.net

Super excited having a lightening talk today in #Amarathon Geek Talk with all amazing speakers! ✅ Agent-as-the-Code ✅ Plan-Ahead AI Coding Strategy ✅ Amazon Q Developer ✅ KB chunking strategies We reserved Michelin restaurants via our Agent as we stop by many Asia cities. So much fun today!

幾個小時之前Anthropic 發布的MCP功能,已經有博主開箱了,創建了三種MCP - puppeteer MCP 可以幫你對網站模擬執行任何原本需要人才能進行的操作 - filesystem MCP 可以讓Claude訪問你本地檔案系統,創建修改刪除文件,不需要手動操作 - GitHub MCP 可以讓它直接操作你的GitHub包括創建repo新增刪除修改甚至有可能review PR都有機會實現。這是我最期待的!

xhslink.comClaude秒变Cursor MCP让AI直接编辑本地文件 - 小红书3 亿人的生活经验,都在小红书

Wow I love this feature!

AWS News(Unofficial)@awsnews.bsky.social

Amazon S3 adds new functionality for conditional writes Amazon S3 can now perform conditional writes that evaluate if an object is unmodified before updating it. This helps you coordinate simultaneous writes to the same object and prevents multiple concurrent wri... #AWS #AwsGovcloudUs #AmazonS3

aws.amazon.comAmazon S3 adds new functionality for conditional writesAmazon S3 can now perform conditional writes that evaluate if an object is unmodified before updating it. This helps you coordinate simultaneous writes to the same object and prevents multiple concurrent writers from unintentionally overwriting the object without knowing the state of its content. You can use this capability by providing the ETag of an object using S3 PutObject or CompleteMultipartUpload API requests in both S3 general purpose and directory buckets. Conditional writes simplify how distributed applications with multiple clients concurrently update data across shared datasets. Similar to using the https://aws.amazon.com/about-aws/whats-new/2024/08/amazon-s3-conditional-writes/, clients can now perform conditional-write checks on an object’s Etag, which reflects changes to the object, by specifying it via the HTTP if-match header in the API request. S3 then evaluates if the object's ETag matches the value provided in the API request before committing the write and prevents your clients from overwriting the object until the condition is satisfied. This new conditional header can help improve the efficiency of your large-scale analytics, distributed machine learning, and other highly parallelized workloads by reliably offloading compare and swap operations to S3. This new conditional-write functionality is available at no additional charge in all AWS Regions. You can use the AWS SDK, API, or CLI to perform conditional writes. To learn more about conditional writes, visit the https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html.

學到兩個cursor composer agent新玩法分享給大家: 1. 讓cursor根據PRD(Product Requirement Document)產生tests之後: "validate the tests for me and fix them when necessary" 然後你要做的就是sit back看Agent幫你不斷iterate直到測試完成,要有心理準備這裡會用掉好幾次高級model。

2. 看到一個很棒的開源專案想要學習,先整個clone下來,讓cursor agent掃描整個項目,列出它在處理某一個你特別關注的功能是怎麼實現的,讓cursor產生一個self-explainable python 代碼包涵詳盡的comments,這單一python應該可以用來說明一些核心設計或思路。 把這個python放到你項目的 doc/ 下,然後讓cursor agent去比較你當前自己的實現跟對方的實現有什麼不同,讓agent進行分析,提出pros and cons,

最終: “show me what we can improve my current implementation by learning from there" 這樣就可以取其精華,截長補短,讓好的思路用於自己的代碼裡面,最後讓cursor翻過來把你當前的最新implementation輸出成一份md文件描述整個思路。

Have tried the latest #Cursor composer agent. Amazing! Now you can instruct your agent to validate your unit tests and let it fix them if they're failing and iterate the fix-and-test loop until everything passes. You still have to click the buttons but you can just watch the show.

BlueSky有一個feed是所有提到台灣(Taiwan)而且超過兩個likes的,你include這個feed之後你等於可以跳脫演算法,用自定義的dimension去看所有符合這條件的貼文,我喜歡! 這真的很像回到20年前的twitter,當時百花齊放好多工具好多app,可以用你喜歡的方式來使用twitter,如今這感覺在bsky回來了! #Taiwan

奇怪昨晚好像沒有播放 #SNL ,那來複習一下上週的吧!美國感恩節要到了,從這天開始就開啟了準備過聖誕節的序幕,各種年底促銷大拍賣也都開打,SNL每年感恩節都會拍這個Thanksgiving Baking Champion 的段子,找四個「信心爆棚」的參賽者來做蛋糕比賽,一開始都會描述的超棒超漂亮,結果打開所有人都傻眼。 今年的挑戰除了要做出創意蛋糕之外,還要做一個小機關(mechanical element), 好讓你蛋糕動起來,活靈活現的!🧵

youtube.comThanksgiving Baking Championship 2024 - SNLYouTube video by Saturday Night Live

Super excited having a lightening talk today in #Amarathon Geek Talk with all amazing speakers! ✅ Agent-as-the-Code ✅ Plan-Ahead AI Coding Strategy ✅ Amazon Q Developer ✅ KB chunking strategies We reserved Michelin restaurants via our Agent as we stop by many Asia cities. So much fun today!