know-code
Your agents don’t push until you know exactly what’s changed.
know-code is a cross-harness Agent Skill plus CLI that blocks git commit, git push, and PR creation until a human passes a short comprehension quiz about the current diff.
Install
# CLI (scoped package; bin is still `know-code`)
npm i -g @chtnnh/know-code
# Or from GitHub
npm i -g github:chtnnh/know-code#main:packages/cli
# In your repository
know-code init --level standard --agents claude,cursor,codex --workflow
# Skills — this project, or every repo (--global)
know-code skills
know-code skills --global
init --workflow writes .github/workflows/know-code.yml that runs the composite GitHub Action on pull requests and pushes to main.
First loop
- Let the agent run know-code-teach before non-trivial edits (or skip explicitly).
- Stage your changes.
- When commit/push is blocked, the agent writes a quiz and runs
know-code ask— answer in the browser form, not chat. - After a pass:
know-code passthenknow-code commit -m "…". - Push. CI verifies the
Know-Code-Verifiedtrailer.
Docs home: kc.chtnnhfoundation.org · Source: github.com/chtnnh/know-code