Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By asklokeshv0.1.0In 1 marketplace
Blocks Claude from finishing while your repo's tests fail or have been deleted, skipped or weakened. Its Stop hook runs after every response and blocks completion; it claims to run locally with no model calls.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
stop-hook, test-integrity, test-enforcement, verification, guardrails, test-regression, ci-config, tests ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Your agent says done. Loki proves it.
loki-seal is a Claude Code Stop hook. When the agent tries to finish, it runs your repo's real test suite and refuses "done" if tests newly fail or if tests or CI config were deleted, skipped, xfailed or weakened. It runs inside your existing session: no model calls, no global CLI, no dangerous flags, no dependencies beyond node.
In Claude Code: /plugin marketplace add asklokesh/loki-mode, then /plugin install loki-seal@loki-mode. A local checkout also works: /plugin marketplace add <path to a loki-mode checkout>.
The plugin is the enforcing install: its hooks/hooks.json registers SessionStart and Stop. The skill (skills/loki-seal/SKILL.md) is advisory guidance only and registers no hooks, so a skill-only install does not enforce anything.
npm test (node --test with default process isolation, launched directly; jest and vitest run without coverage), pytest, go test ./..., cargo test. The suite runs on the current working tree..skip, .only, .todo, xit, xtest, skip: true, @pytest.mark.skip/skipif/xfail, pytest.skip/xfail, @unittest.skip, t.Skip, #[ignore]continue-on-error: true, || true, if: falsebin/contract.js, no model calls, no network). It prefers under-deriving: when in doubt the receipt says "NOT VERIFIED: no contract" and the stop is allowed. The hook reads the first user message from transcript_path. Acceptance items are bullet or checkbox lines and sentences with must, shall, needs to, has to, have to, required or cannot (conversational should, make sure, never and ensure do not count; neither do pasted paths, git status or log lines, or requests that open with a question such as "explain ..."; a sentence that opens with I, I'm, I've, I'll, I'd, we, we're, we've, we'll, let me or let's, a tool version note such as "Node 20 is required" and a status such as "needs to be done" is ignored as chat, and each such filtered sentence is listed in the contract line as "filtered as chat: N sentence(s)" so a real promise is never dropped silently). Sentences that open with You, Our, My or Please are not filtered: a modal sentence among them is a requirement item. The assertion scan ignores line comments, block comments (including multi-line), Python docstrings and triple-quoted strings, string literals, multi-line template literals and regex literals (a quote or comment marker inside a regex does not open a string or comment), and accepts assert, expect, self.assert*, t.Error/Fatal, testify require./assert., pytest.raises and chai .should. An item needs at least 2 keywords. A local spec file is read only when the request marks it: "spec: docs/x.md", "per docs/x.md", "implement docs/x.md" or "according to docs/x.md" (inside the repo, max 5, never URLs); a bare mention such as "fix the typo in README.md" is not a spec. Each item is matched to tests by keyword overlap with test names (at least min(n,2) and ceil(n/2) of its n keywords), and the matched test body must contain an assertion token somewhere in its text (a text scan, not proof the assertion runs; see Known limits). Coverage requires a runner-reported pass: a matched test counts only when its id appears among the tests the runner reported as passed (node:test TAP or spec ok and check-mark lines, pytest PASSED via -rA, go --- PASS:, cargo ... ok, jest/vitest check-mark lines when the runner prints them). A test in a file the runner never ran, or skipped by any mechanism (a skip marker, ctx.skip(), a class-level or module-level pytest or unittest skip, a skip passed through an options variable, describe.skip), is not listed as passed and so never counts, whether the skip is new or already existed; if the runner's output does not list test names (for example jest without --verbose over several files) the item is NOT VERIFIED rather than assumed covered. Static skip detection (skip, it.skip, describe.skip, xit, test.todo, pytest skip markers, t.Skip, #[ignore]) still drops such tests from matching earlier. An item with no such test, or with ANY matched test failing now (exact test id, regardless of whether it was already red at session start; failing tests never count as covered, so a requesBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub asklokesh/loki-mode --plugin loki-sealPlugins from other owners that cover similar ground