Should there be a Stack Overflow for AI coding agents to share learnings with each other?
Last week I announced Context Hub (chub), an open CLI tool that gives coding agents up-to-date API documentation. Since then, our GitHub repo has gained over 6K stars, and we've scaled from under 100 to over 1000 API documents, thanks to community contributions and a new agentic document writer. Thank you to everyone supporting Context Hub!
OpenClaw and Moltbook showed that agents can use social media built for them to share information. In our new chub release, agents can share feedback on documentation — what worked, what didn't, what's missing. This feedback helps refine the docs for everyone, with safeguards for privacy and security.
We're still early in building this out. You can find details and configuration options in the GitHub repo. Install chub as follows, and prompt your coding agent to use it:
npm install -g @aisuite/chub
GitHub: github.com/andrewyng/cont…
It's a good time to say goodbye to @portainerio who has been my remote home for the last 4 years. It's been an amazing journey and I'm looking forward to seeing where you're headed. Thanks to @NeilC_Portainer, Anthony, and Geoff for giving me this opportunity.
לא! אני לא מוכרת כרטיסים לדרבי! מימי לא ראיתי משחק, תסלחו לי.
זה אותו מתחזה בטלגרם שברוב פתטיות מתחזה שוב בשמי ובתמונתי.
די לשלוח לי הודעות בהקשר מכירה והתעניינות בקריפטו כזה או אחר. מתנצלת על ההודעה הזו בשעה כה קשה לעם ישראל.
מי אתם, אנשים שרואים ארגז או סלסילה או של אופניים וחושבים לעצמם "כן זה מקום טוב לזרוק פחית"?
זו הפעם העשירית בערך שזורקים לי זבל לאופניים ויש איזה 3 פחים ברדיוס של 5 מטר משם
אני: מעוניין לדעת מה התחנה הבאה ברכבת
הצג ברכבת: מראה לי מה השעה
הצג ברכבת כעבור דקה: מראה לי מה התאריך היום
הצג ברכבת כעבור 2 דקות: מאחל לי נסיעה טובה
הצג ברכבת כעבור 3 דקות: מציג לי מספר טלפון למקרה חירום
הצג ברכבת כעבור 4 דקות: בערבית
עד כמה קשה לכתוב ליד כל מספר «במקום האוטובוס הזה יש אפשרות 1 ואפשרות 2»
למשל:
במקום אוטובוס 905 אתם יכולים להשתמש עכשיו ברכבות הלילה
• נהריה – חיפה – תל אביב – נתב"ג
• הרצליה – תל אביב – נתב"ג – ירושלים
לוח זמנים מפורט באתר רכבת ישראל
נווווו, אגד, זה לא קשה…
@Tohar_Shalem כדתל"ש עם הרבה חברים דתל"שים, יש מגוון רחב של עמדות. אני למשל לא מדבר עם אבא שלי על פוליטיקה, כי חבל. לא מגדיר את עצמי כשמאל, אבל גם קשה לי למצוא את עצמי בימין.
נזכרתי שמישהו חכם אמר לי (או שקראתי איפשהו בעצם) שמצאו שנוער דתל"שי, על אף שמשנה את אורח חייו הדתי או מואס באמונה באל, נוטה להמשיך לאחוז בעמדות הימין. בעקבות זה האדם הסיק שלהורים היתה חשובה יותר הפוליטיקה מאשר האמונה ושזה שודר לילדים. חשבתי על זה וזה ממש אידיוטי.
🔮 How can I make type-safe and flexible abstractions over useQuery? Something like:
The answer is usually: It's hard, and you probably shouldn't. It'll take 4 type parameters to really make it work, and it's not worth the effort. Just pass in the options that you need right now:
This has one problem: It does't "scale". Sure, you can add more things, but did you know that `refetchInterval` can also be a function? Getting the types right is, again, hard. As soon as you want to pass in `select`, it's game over for this approach. You're back to needing all the type parameters. 😞
🦸 With the new QueryOptions API, we can now build abstractions that are not only better re-usable, but also fully type-safe without juggling type parameters:
We're sharing what we want all usages to have in common via `queryOptions` - and then spread that onto usages as-needed. This has multiple advantages:
- all other parameters will be fully typed (even select)
- we can use those options not only on `useQuery`, but for other function as well, like `queryClient.prefetchQuery()
- `queryOptions` stores the type of the `queryFn` on the `queryKey`, so you'll get type-safe setQueryData/getQueryData function, too.
It's seriously the best addition to @tan_stack query v5, and if you haven't found a reason to upgrade - I hope this will do :)