r/opencode • • 5h ago

Need advice developing a plugin

I'm trying to make my own opencode plugin so that every plan, decision, or architecture of my repos are saved in opencode's storage, acting kind of a second brain for them. I made this to not clutter my private repos with markdown files for planning, and only keep docs for user-facing documentation.

Right now, I'm confused on how this works. I tried to make it like similar on how a human brain stores info in a dev context, to shifting my source to Claude's memory tool, and now it's a mess, and I don't really trust my agent on giving me the right answers, so should i just use someone else's plugin? lmao

https://github.com/rv-vr/agent-brain

2 Upvotes

6 comments sorted by

View all comments

1

u/chigarow 5h ago

https://github.com/cortexkit/magic-context

why dont you use this plugin instead? I think it matched your goal anyway

1

u/Ok_Cryptographer2870 5h ago

the plugin sounds interesting from the readme, have u used this?

2

u/chigarow 5h ago

yap im using this, somehow it works well

it can remember things on my project across my chat sessions

1

u/Ok_Cryptographer2870 4h ago

I also use dynamic context pruining, should i turn it off? sounds like it also does context compression

1

u/chigarow 4h ago

i just ask my antigravity to setup this plugin, and as far as I know, it disable the built in context compaction and context pruning from opencode

also you need models for the background context management for the magic-context to work

so you won't see any compaction anymore in ur opencode session, the context management will managed by magic-context

I'm using muse spark 1.3 and the fallback is mimo2.6-flash for all the magic-context agents