Imported from chenpg2/kw-engine (
AGENTS.md). Install upstream withnpx skills add chenpg2/kw-engine. Copyright stays with the author.
AGENTS.md
kw-engine: methodology evolution engine substrate. Distill → abstract → synthesize → search by problem structure.
Commands
uv run kw reindex --memory-dir path # rebuild SQLite + index.json from markdown
uv run kw verify --memory-dir path # run SCHEMA §6 invariants
uv run kw status --memory-dir path # show counts + pending/stale state
uv run pytest # all tests
uv run ruff check . # lint
uv run mypy src/ # type check
Conventions
- Markdown is truth; SQLite + index.json are derived (kw reindex rebuilds both)
- Paper id = PDF filename stem
- Principle id = P-#### (zero-padded)
- All models in models.py; store/ never imports from cli.py
- No silent fallback: validation errors raise, never coerce.