GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — feat: configurable compaction by maxeonyx · Pull Request #4149 · anomalyco/opencode Conversation
|
|
@maxeonyx have u seen how we handle /init? I was thinking a cleaner solution here would be to make compact a built in slash command, a user could override the prompt by defining their own compact and it wouldn't require additional config fields The main change this would require is allowing slash commands to register functions to execute, which ofc couldn't be done in json but perhaps for now that functionality would remain internal |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I haven't seen that, no, but I assumed compact has special handling due to the fact that it replaces the full context window. I am very open to doing this a different way. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@rekram1-node in your suggestion, then, I would define my own |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
03211fa to
10a1998
Compare
f1dc981 to
3e15a39
Compare
f8ee907 to
6a9856d
Compare
There was an error while loading. Please reload this page.
I agree, I think I would advocate for trying to build the built-in slash commands such as /compact with the sdk, in other words forcing yourself to use the same functionality that a custom plugin developer would use. That would drive a architecture which makes sure that user custom commands can be just as powerful as the ones provided by default. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Yup total agreement, currently jumping between several fixes and then I can come back to these new feature prs |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I have the new version mostly implemented but I'm on holiday atm - feel free to take it over or close as I won't able to do the final "runnable as functions" part. But I have done the "custom md file to implement custom compact-type command". I can add precedence for overriding /compact - that's a good idea. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
10a1998 to
0ee7d14
Compare
/compact via markdown files
d47ece7 to
69bcc27
Compare
|
@rekram1-node @einarpersson This PR is ready for your review, hope it's what you are imagining. It has turned out pretty clean I think. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
bd56afe to
ec204d7
Compare
/compact via markdown files/compact commands
b574f2b to
6df3686
Compare
|
@rekram1-node Keeping this up-to date is becoming a hassle - would you be able to review? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
/compact commandsd9e801f to
6e8d1e1
Compare
6e8d1e1 to
61cac9e
Compare
61cac9e to
55cde50
Compare
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Model in BUILD mode does not have enough context to continue after compaction
There was an error while loading. Please reload this page.