Skip to content

feat: enhance distill prompt with _about.md, folder paths, and daily notes - #10

Closed
cad0p wants to merge 9 commits into
Michaelliv:mainfrom
cad0p:main
Closed

feat: enhance distill prompt with _about.md, folder paths, and daily notes#10
cad0p wants to merge 9 commits into
Michaelliv:mainfrom
cad0p:main

Conversation

@cad0p

@cad0p cad0p commented May 4, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Read _about.md files to understand folder/namespace purposes
  • Use relevant folder path when creating notes
  • Append to today's daily note in the relevant namespace
  • Minor punctuation cleanup

Context

The distill prompt didn't guide the model to:

  1. Read _about.md metadata files for namespace context
  2. Scope note creation to the relevant folder
  3. Create or append to daily notes

These are small prompt tweaks that significantly improve distill output quality.

cad0p added 9 commits April 18, 2026 16:02
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
@cad0p

cad0p commented May 4, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by clean feature branch PR

@cad0p cad0p closed this May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant