loki-mode 8.9.0 → 8.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SKILL.md +2 -2
- package/VERSION +1 -1
- package/autonomy/lib/iteration_attribution.py +91 -0
- package/autonomy/loki +3 -0
- package/autonomy/run.sh +275 -5
- package/dashboard/__init__.py +1 -1
- package/loki-ts/dist/loki.js +283 -282
- package/mcp/__init__.py +1 -1
- package/package.json +1 -1
- package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
- package/skills/quality-gates.md +49 -0
package/mcp/__init__.py
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "loki-mode",
|
|
3
3
|
"mcpName": "io.github.asklokesh/loki-mode",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.10.0",
|
|
5
5
|
"description": "Loki Mode by Autonomi. Autonomous spec-to-product system: takes a PRD, GitHub issue, OpenAPI/JSON/YAML, or one-line brief to a deployed app via the RARV-C closure loop with 8 quality gates. Provider-agnostic (Claude Code, OpenAI Codex, Cline, Aider).",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"agent",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json",
|
|
3
3
|
"name": "loki-mode",
|
|
4
4
|
"displayName": "Loki Mode",
|
|
5
|
-
"version": "8.
|
|
5
|
+
"version": "8.10.0",
|
|
6
6
|
"description": "Autonomous spec-to-product build system with a built-in trust layer (RARV-C closure loop, 8 quality gates, completion council). Ships Loki's spec-hardening, drift-detection, and deterministic PR verification commands plus the Loki MCP server.",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Autonomi",
|
package/skills/quality-gates.md
CHANGED
|
@@ -857,6 +857,55 @@ velocity_quality_balance:
|
|
|
857
857
|
4. **Tie-breaker priority:** security-sentinel > test-coverage-auditor > performance-oracle > dependency-analyst
|
|
858
858
|
5. **No triggers match at all:** Default to security-sentinel + test-coverage-auditor
|
|
859
859
|
|
|
860
|
+
### Adding Your Own Reviewer (extension seam)
|
|
861
|
+
|
|
862
|
+
You can add a reviewer to the pool WITHOUT editing any engine file. Write an
|
|
863
|
+
agent manifest and install it:
|
|
864
|
+
|
|
865
|
+
```bash
|
|
866
|
+
cat > a11y-agent.json <<'EOF'
|
|
867
|
+
{
|
|
868
|
+
"schema_version": 1,
|
|
869
|
+
"kind": "agent",
|
|
870
|
+
"type": "my-a11y-auditor",
|
|
871
|
+
"name": "Accessibility Auditor",
|
|
872
|
+
"persona": "You are a WCAG 2.2 accessibility auditor.",
|
|
873
|
+
"focus": ["wcag", "aria", "contrast", "screenreader"],
|
|
874
|
+
"capabilities": "WCAG 2.2 AA, ARIA roles, color contrast, keyboard nav"
|
|
875
|
+
}
|
|
876
|
+
EOF
|
|
877
|
+
|
|
878
|
+
loki agent install ./a11y-agent.json # writes .loki/agents/installed.json
|
|
879
|
+
loki agent list # your agent appears alongside built-ins
|
|
880
|
+
```
|
|
881
|
+
|
|
882
|
+
From the next code review onward, your agent is scored against the diff exactly
|
|
883
|
+
like a built-in and dispatched as a real reviewer whose findings feed the same
|
|
884
|
+
Critical/High=block mechanism.
|
|
885
|
+
|
|
886
|
+
Rules that make this safe to use, and safe to ship:
|
|
887
|
+
|
|
888
|
+
- **`focus` is your trigger-keyword list.** It is matched against the diff and
|
|
889
|
+
changed filenames, so an a11y auditor fires on an HTML change and stays silent
|
|
890
|
+
on a backend-only one. An agent with no `focus` entries never fires.
|
|
891
|
+
- **Strictly additive.** Installed agents are APPENDED after the built-in
|
|
892
|
+
battery. They can never displace a built-in reviewer or the two always-on
|
|
893
|
+
mandatory reviewers, so installing an agent can only ADD scrutiny.
|
|
894
|
+
- **At most 2 installed reviewers** fire per review (each costs an LLM call
|
|
895
|
+
every iteration). Highest keyword score wins.
|
|
896
|
+
- **Cannot shadow a built-in.** A manifest whose `type` collides with a built-in
|
|
897
|
+
reviewer is rejected at install time and ignored by selection.
|
|
898
|
+
- **Data only, never executed.** `loki agent install` reads JSON data and never
|
|
899
|
+
runs anything from a manifest -- `postinstall`, `scripts`, `exec`, `command`,
|
|
900
|
+
and `hooks` fields are reported as ignored and never invoked. Your persona and
|
|
901
|
+
focus text reach a reviewer prompt; nothing from the manifest reaches a shell.
|
|
902
|
+
- **Fail-safe.** A corrupt `.loki/agents/installed.json` leaves the normal
|
|
903
|
+
battery intact rather than breaking code review.
|
|
904
|
+
|
|
905
|
+
Works on both routes (Bun and `LOKI_LEGACY_BASH=1`). Tests:
|
|
906
|
+
`tests/test-installed-agent-reviewer.sh`,
|
|
907
|
+
`loki-ts/tests/runner/installed_agent_reviewer.test.ts`.
|
|
908
|
+
|
|
860
909
|
### Dispatch Pattern
|
|
861
910
|
|
|
862
911
|
Launch all 3 in ONE message. Each reviewer sees ONLY the diff -- NOT other reviewers' findings (blind review preserved).
|