Skip to content

feat: add /dewey-store slash command and scaffold all Dewey commands in dewey init - #47

Merged
jflowers merged 1 commit into
mainfrom
opsx/dewey-store-command
Apr 19, 2026
Merged

jflowers merged 1 commit into
mainfrom
opsx/dewey-store-command

Conversation

@jflowers

Copy link
Copy Markdown
Contributor

Summary

  • New /dewey-store slash command with 3 interaction modes:
    • Fully specified: --tag and --category provided, calls store_learning immediately
    • Suggested: Agent analyzes pasted text, suggests 2-3 tags ranked by specificity and a category based on content patterns, asks for confirmation
    • Extract: --extract flag breaks long conversations into multiple distinct learnings with individual tag/category proposals
  • dewey init now scaffolds 5 Dewey slash commands into .opencode/command/ when .opencode/ exists: dewey-store, dewey-index, dewey-reindex, dewey-compile, dewey-lint
  • Idempotent: existing command files are not overwritten (preserves user customizations)
  • New slash_commands.go embeds command content as Go string constants
  • 3 new tests: scaffolding creates files, skips existing files, graceful skip without .opencode/

…in dewey init

- New /dewey-store command with 3 modes: fully specified (--tag
  --category), suggested (agent analyzes text and proposes
  tag/category), and extract (breaks conversations into multiple
  learnings)
- dewey init now scaffolds 5 Dewey slash commands into
  .opencode/command/ when .opencode/ exists: dewey-store,
  dewey-index, dewey-reindex, dewey-compile, dewey-lint
- Idempotent — existing command files are not overwritten
- 3 new tests for scaffolding, skip-existing, and no-opencode
@github-actions

Copy link
Copy Markdown

✅⚠️MegaLinter analysis: Success with warnings

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ GO golangci-lint yes yes no no 45.01s
⚠️ MARKDOWN markdownlint 3 0 3 0 0.71s
✅ REPOSITORY gitleaks yes no no 2.06s
✅ REPOSITORY git_diff yes no no 0.34s
✅ YAML yamllint 1 0 0 0.86s

Detailed Issues

⚠️ MARKDOWN / markdownlint - 3 errors
openspec/changes/dewey-store-command/design.md:1 error MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Context"]
openspec/changes/dewey-store-command/proposal.md:1 error MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Why"]
openspec/changes/dewey-store-command/tasks.md:1 error MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## 1. Create the Slash Command"]

See detailed reports in MegaLinter artifacts
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@jflowers
jflowers merged commit b717ad5 into main Apr 19, 2026
3 checks passed
@jflowers
jflowers deleted the opsx/dewey-store-command branch April 19, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant