Загрузка видео...

Не удалось загрузить видео

На главную

One feature I got to implement in OpenCode 2.0 was allowing for HOT CONTEXT¹ without busting the cache. Here's me explaining how it works ↓ ¹ ⁿᵒᵗ ᵃ ᵗᵉʳᵐ

112,249 просмотров • 3 месяцев назад •via X (Twitter)

Комментарии: 41

Фото профиля Kit Langton
Kit Langton3 месяцев назад

obligatory @samwhoo link

Фото профиля zeb
zeb3 месяцев назад

@opencode This is smart but also I'm distracted by this really nice looking demo ui

Фото профиля Kit Langton
Kit Langton3 месяцев назад

@opencode 🥰 aw, thank ye zeb!

Фото профиля beginbot 🃏
beginbot 🃏3 месяцев назад

@opencode wait HOT LOCAL CONTEXT??? in my AREA???

Фото профиля Alan Rice
Alan Rice3 месяцев назад

@opencode crazy they hired the same narrator as effect institute

Фото профиля Rhys
Rhys3 месяцев назад

@opencode great explanation

Фото профиля AP
AP3 месяцев назад

@opencode your demos are always the best holy

Фото профиля Kit Langton
Kit Langton3 месяцев назад

@opencode 😳 😍

Фото профиля Sam Rose
Sam Rose3 месяцев назад

@opencode How did you evaluate that this way of updating context values doesn’t affect the quality of the LLM’s replies?

Фото профиля Anders Lie
Anders Lie3 месяцев назад

@opencode pretty cool! though makes you wonder in what cases you might just want to intentionally change the prefix rather than append deltas, e.g. if you are on a provider with known low cache ttl, or if returning to a session after a long time

Фото профиля Kit Langton
Kit Langton3 месяцев назад

@opencode Yeah! If we have that information about the provider/model we can squash everything back into the prompt. I’ll look into this :)

Фото профиля Marcelo Prado
Marcelo Prado3 месяцев назад

@opencode We built something very similar for our own internal harness. Lovely representation though, will share with my team bc it makes understanding the concept a lot easier lol

Фото профиля Jason Cameron
Jason Cameron3 месяцев назад

@opencode Very intuitive demo

Фото профиля Alade Yessoufou
Alade Yessoufou3 месяцев назад

@opencode Nice UI is that openTUI ?

Фото профиля Gjermund Garaba
Gjermund Garaba22 дней назад

@opencode

Фото профиля Antoine
Antoine3 месяцев назад

@thdxr @opencode I wish opencode app would make cache easier to understand in general. Like if messages hit or miss cache, why (ttl, change of system prompt). Also knowing how much requests cost at message level would be sooo good to self improve.

Фото профиля Aman
Aman3 месяцев назад

I use a simpler version of this for my personal agent, I keep the system prompt stable, then inject dynamic context right before the latest user turn. That gives me cache hits up to that point. It also works well for reminders and temporary instructions, since the context is recent and the LLM is more likely to follow them. The tradeoff is that on the next turn, I pay again for the previous turn’s new content, but I think it’s a nice tradeoff for the simplicity and cache efficiency.

Фото профиля Amaan
Amaan3 месяцев назад

@opencode very interesting

Фото профиля manavv
manavv2 месяцев назад

@opencode very interesting. learned something new today

Фото профиля Austin
Austin3 месяцев назад

@opencode Cc @gubatron

Фото профиля agusti
agusti3 месяцев назад

@opencode I always thought prepending that at the end of the transcript would work

Фото профиля Prathmesh
Prathmesh3 месяцев назад

@opencode 😮🔥

Фото профиля Nick Venturi
Nick Venturi3 месяцев назад

@opencode im stealing the term hot context and using it in my next meeting 😂

Фото профиля ManiGupt
ManiGupt3 месяцев назад

@thdxr @opencode Urgently add method in app to delete project. Stuck with a dead project path. Cant add new.

Фото профиля Kit Langton
Kit Langton3 месяцев назад

@thdxr @opencode Sorry, could you elaborate?

Фото профиля ManiGupt
ManiGupt3 месяцев назад

@thdxr @opencode Desktop app doesnt have a project delete button option. I changed project location, now even after app restart it is stuck with old path. I deleted config and session files, didnt work. I tried deleting project using oc server too. This issue is open on gh. Many people requested

Фото профиля Kit Langton
Kit Langton3 месяцев назад

@thdxr @opencode Got it! I’ll pass this along to the desktop ppl

Фото профиля Gregor
Gregor3 месяцев назад

@opencode When the hot context itself changes between turns, which parts of the cache do you actually recover on the next request?

Фото профиля Evan
Evan3 месяцев назад

@opencode cool implementation. have you run evals on this? i wonder if there are losses from the prompt structure

Фото профиля MobaiLabs | 墨白实验室
MobaiLabs | 墨白实验室2 месяцев назад

@opencode @grok 具体是如何实现的

Фото профиля Vishal Gupta
Vishal Gupta3 месяцев назад

@opencode The cache invalidation boundary is the architecture decision most inference implementations never make explicit. Once you do, cost and latency stop being mysteries and become variables you can control.

Фото профиля Caleb Norton
Caleb Norton3 месяцев назад

@opencode i prefer to let my contexts bust as they please, keeping the hot ones from doing it seems kinda discriminatory

Фото профиля Andrés Delfino
Andrés Delfino3 месяцев назад

@opencode This works non-deterministically, right? You rely on the model understanding what you want to do with the "context" tags, or understanding that it should change the date when they see several "today is". Not bashing, just wanting to understand! Looks cool :)

Фото профиля Mason Veilleux
Mason Veilleux22 дней назад

@opencode Is it getting hot in here?

Фото профиля Vishal Gupta
Vishal Gupta3 месяцев назад

@opencode Separating mutable context from cacheable structure is the right split. Most implementations just re-run everything. Isolating what changes from what doesn't — that's correct architecture.

Фото профиля ishak
ishak2 месяцев назад

@opencode but what if the diff is large? doesn't keeping both the before and after versions bloat the context?

Фото профиля 🔥 fire
🔥 fire2 месяцев назад

@opencode does this piecemeal approach have any effect when handling models with mid-thread dynamic tool injection like k3? ( I presume not )

Фото профиля Yousef Amirghofran
Yousef Amirghofran3 месяцев назад

@opencode Very nice!!

Фото профиля bukit 🇮🇩 🇵🇸 🔻
bukit 🇮🇩 🇵🇸 🔻3 месяцев назад

@opencode Question modal need new flow.. submit -> keep planning or submit -> build.

Фото профиля robby - rbby.dev
robby - rbby.dev3 месяцев назад

@opencode Is this a new gui?

Фото профиля Rick Blalock
Rick Blalock3 месяцев назад

@opencode nice!

Похожие видео