feat: /knowledge to extract knowledge files#5253
Conversation
0f62a3e to
5b07d28
Compare
This comment was marked as outdated.
This comment was marked as outdated.
bafd214 to
c30c320
Compare
This comment was marked as outdated.
This comment was marked as outdated.
c30c320 to
a135b5a
Compare
|
Hey @paralin, the format CI is set up to auto-push formatting fixes, but this doesn't work for PRs from forks (the GitHub token can't push to external repos). You'll need to run |
b37b416 to
e0af373
Compare
This comment was marked as outdated.
This comment was marked as outdated.
|
@paralin Don't worry too much about the format CI - it fails on fork PRs because it can't push back to external repos. Once a maintainer approves and merges to dev, the auto-formatting will run with proper permissions and fix it up. |
|
If you really wanted all green lights, then: # 1. Generate SDK
bun ./packages/sdk/js/script/build.ts
# 2. Format everything (including generated SDK)
bun run prettier --ignore-unknown --write .
# 3. Commit and push
git add -A && git commit --amend && git push -fThe key is formatting after SDK generation so the generated files are also formatted. |
e0af373 to
536ffe9
Compare
This comment was marked as outdated.
This comment was marked as outdated.
ccb3e43 to
a228f1a
Compare
Sdk ci format and format ci always clash with each other, so you will never see both turn green. So chill, even if the ci fails they don’t bother much. It will still get merged |
This comment was marked as resolved.
This comment was marked as resolved.
a228f1a to
b33b23c
Compare
b33b23c to
f3b3a27
Compare
|
Working now and this PR is as minimal as possible to add the feature. I'm using it a lot in my projects. In opencode.jsonc: |
5f291b1 to
33e8840
Compare
7a3d09a to
880b71b
Compare
Adds a command /knowledge which creates a sub-agent to take any new "knowledge" in the session and format it neatly into markdown docs in ./.opencode/knowledge/ This is particularly useful both for human-readable documentation for getting familiarized with a codebase, and for providing an extended version of AGENTS.md which does not pollute the context. A follow-on commit adds a system to automatically load files from the knowledge directory according to topics mentioned in the conversation. Try running /knowledge to create the sub-agent. Signed-off-by: Christian Stewart <christian@aperture.us>
880b71b to
46671ec
Compare
Adds a command /knowledge which creates a sub-agent to take any new "knowledge" in the session and format it neatly into markdown docs in ./.opencode/knowledge/
This is particularly useful both for human-readable documentation for getting familiarized with a codebase, and for providing an extended version of AGENTS.md which does not pollute the context.
A follow-on commit adds a system to automatically load files from the knowledge directory according to topics mentioned in the conversation.
Try running /knowledge to create the sub-agent.