feat: enhance distill prompt with _about.md, folder paths, and daily notes - #10
Closed
cad0p wants to merge 9 commits into
Closed
feat: enhance distill prompt with _about.md, folder paths, and daily notes#10cad0p wants to merge 9 commits into
cad0p wants to merge 9 commits into
Conversation
The two napkin kb tools did not register a `renderResult` callback, so `ToolExecutionComponent` fell back to `createResultFallback` which dumps the full text output unconditionally. Ctrl+O had nothing to toggle. Add a shared `formatKbResult` helper that truncates to N lines when `!expanded` and appends a "… (N more lines, Ctrl+O to expand)" hint, mirroring the built-in `read` / `grep` / `ls` / `find` / `bash` tools. Collapsed line counts: - kb_search: 15 lines (matches `grep`) - kb_read: 10 lines (matches `read`)
Remove vault-resolve.ts and use napkin-ai's findVault() directly, which now supports $XDG_CONFIG_HOME/napkin/config.json as a global vault config fallback. This eliminates duplicated vault resolution logic and ensures consistent behavior between the napkin CLI and pi-napkin extensions. - Delete extensions/vault-resolve.ts - napkin-context: use new Napkin(cwd) directly - distill: use new Napkin(cwd).vault.configPath for config access Requires napkin-ai >= 0.9.0 (with global config support).
- Update vault resolution section to reflect napkin-ai's native support - Add migration guide from ~/.pi/agent/napkin.json to ~/.config/napkin/config.json
…notes - Read _about.md files to understand folder purposes - Use relevant folder path when creating notes - Append to today's daily note in the relevant namespace - Minor punctuation cleanup
Contributor
Author
|
Superseded by clean feature branch PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
_about.mdfiles to understand folder/namespace purposesContext
The distill prompt didn't guide the model to:
_about.mdmetadata files for namespace contextThese are small prompt tweaks that significantly improve distill output quality.