@rosh100yx/outlier 0.4.25 → 0.10.2

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/README.md CHANGED
@@ -1,53 +1,69 @@
1
1
  <div align="center">
2
2
  <img src="https://raw.githubusercontent.com/rosh100yx/outlier/main/assets/cover.jpg" alt="Outlier: AI Code Governance and Policy Engine" width="100%" />
3
3
  <h1>Outlier: The Governance & Policy Engine for AI Engineering</h1>
4
- <p><b>Measure AI adoption. Enforce Zero-Trust. Protect Human Mastery.</b></p>
5
- <p><i>Outlier is an open-source, local-first CLI tool that measures AI code reliance, enforces zero-trust telemetry, and protects developers from deskilling by auditing local agent logs (Claude, Cursor) and Git history.</i></p>
4
+ <p><b>Measure AI adoption. See what your agents can reach. Keep your skill.</b></p>
5
+ <p><i>A local-first CLI for when you are building in a room full of agents — it measures how much of your code AI wrote, what it cost, and what your agents can actually touch, all without a single byte leaving your terminal.</i></p>
6
6
  <br/>
7
7
 
8
8
  <p>
9
- <img src="https://img.shields.io/badge/Compliance-Strict-blue?style=for-the-badge" />
10
- <img src="https://img.shields.io/badge/AI_Safety-Enabled-green?style=for-the-badge" />
11
- <img src="https://img.shields.io/badge/Zero_Trust-Verified-orange?style=for-the-badge" />
9
+ <a href="https://www.npmjs.com/package/outlier-audit"><img src="https://img.shields.io/npm/v/outlier-audit?style=for-the-badge&color=cb3837&logo=npm" /></a>
10
+ <img src="https://img.shields.io/badge/Local_First-Zero_Trust-orange?style=for-the-badge" />
11
+ <img src="https://img.shields.io/badge/License-MIT-green?style=for-the-badge" />
12
12
  </p>
13
13
 
14
14
  <p>
15
15
  <b>Get Started Instantly:</b><br/>
16
- <code>npx @rosh100yx/outlier@latest</code>
16
+ <code>npx outlier-audit@latest</code>
17
17
  </p>
18
18
 
19
19
  <br/>
20
20
 
21
21
  ```text
22
- ┌────────────────────────────────────────────────────────┐
23
- │ █▀█ █░█ ▀█▀ █░░ █ █▀▀ █▀█ :: THERMAL AUDIT RECEIPT
24
- │ █▄█ █▄█ ░█░ █▄▄ █ ██▄ █▀▄ :: TIMESTAMP: 2026-06-23
25
- ├────────────────────────────────────────────────────────┤
26
- [ COGNITIVE BUDGET ]
27
- AI Authorship ................. ▇▇▇▇░░░░░░ 40%
28
- Human Sovereignty ................. ▇▇▇▇▇▇░░░░ 60%
29
-
30
- Verdict: (=^ ^=) CENTAUR
31
- │ Healthy symbiosis. You orchestrate agents │
32
- but maintain architectural authority.
33
- ├────────────────────────────────────────────────────────┤
34
- [ FINANCIAL & COMPUTE TOLL ]
35
- Tokens Burnt ................. 3.12M vs Human
36
- Cache Bloat ................. ▇▇▇▇▇▇▇▇░░ 80%
37
- Regional Grid ................. 1.54 kgCO2
38
- └────────────────────────────────────────────────────────┘
22
+ ┌──────────────────────────────────────────────────────────────────┐
23
+ │ █▀█ █░█ ▀█▀ █░░ █ █▀▀ █▀█ :: CODE AUDIT
24
+ │ █▄█ █▄█ ░█░ █▄▄ █ ██▄ █▀▄ :: my-repo · JUN 23, 2026
25
+ ├──────────────────────────────────────────────────────────────────┤
26
+ WHO WROTE THE CODE
27
+ AI ▰▰▰▰░░░░░░ 40% (64 of 160 commits)
28
+ You ▰▰▰▰▰▰░░░░ 60%
29
+ Typical: solo devs 10–40% · AI-framework repos up to ~80%
30
+ You're driving you still write the core. Good.
31
+ ├──────────────────────────────────────────────────────────────────┤
32
+ WHAT IT COST
33
+ │ Tokens used 3.1M │
34
+ Est. spend $18.40
35
+ Re-used context ▰▰▰▰▰▰▰▰░░ 80%
36
+ Energy 0.12kg CO2 (Global Average grid)
37
+ Source: estimated · Claude Code transcripts
38
+ ├──────────────────────────────────────────────────────────────────┤
39
+ │ WHAT YOUR AGENTS CAN REACH │
40
+ │ Blast radius HIGH · 13 tools, 5 can write/deploy │
41
+ │ Full map (deploy/push/write tools): outlier capabilities │
42
+ ├──────────────────────────────────────────────────────────────────┤
43
+ │ YOUR LIMIT │
44
+ │ AI cap 70% · change with: outlier policy │
45
+ │ Status Within limit · Nothing to do. │
46
+ ├──────────────────────────────────────────────────────────────────┤
47
+ │ WHAT TO DO │
48
+ │ ⚠ Blast radius HIGH │
49
+ │ → Disable the write/deploy MCP tools you don't need now. │
50
+ └──────────────────────────────────────────────────────────────────┘
39
51
  ```
40
52
  </div>
41
53
 
54
+ > *"In a room full of agents" shifts the perspective. The developer is no longer a solo coder — they are a manager of bots. Outlier exists to make sure the human doesn't get lazy while managing them. We all want our time back; we don't want to lose control of the craft.*
55
+
56
+ > **Note:** the npm package is `outlier-audit`; the command it installs is `outlier`. So `npx outlier-audit` runs `outlier …`.
57
+
42
58
  ## How It Works
43
59
  ```text
44
- ┌───────────┐ ┌────────────┐ ┌───────────┐ ┌─────────────┐
45
- │ AI CODING │──▸│ GIT COMMIT │──▸│ BOUNCER │──▸│ AUDIT TRACE
46
- └───────────┘ └────────────┘ └───────────┘ └─────────────┘
47
- │ (Fails)
48
- ┌───────────┐
49
- MENTORING
50
- └───────────┘
60
+ ┌───────────┐ ┌────────────┐ ┌──────────┐ ┌──────────────┐
61
+ │ AI CODING │──▸│ GIT + LOGS │──▸│ OUTLIER │──▸│ AUDIT + WARN
62
+ └───────────┘ └────────────┘ └──────────┘ └──────────────┘
63
+ │ (over your limit)
64
+ ┌──────────────┐
65
+ REVIEW PROMPT (warns, never blocks)
66
+ └──────────────┘
51
67
  ```
52
68
  **Step 1:** Developer delegates code generation to an AI agent (Claude Code, Cursor).
53
69
  **Step 2:** `outlier` reads the local trace — git history + AI logs — already on the machine.
@@ -77,22 +93,40 @@ We are deliberately honest about this:
77
93
 
78
94
  | Capability | Ungoverned AI | Outlier Governed |
79
95
  |------------|---------------|------------------|
80
- | **Deskilling** | Silent skill atrophy | JIT Mentoring Triggers on high-reliance |
81
- | **Commit Gate**| Accepts hallucinated code | Physically blocks code over AI-thresholds |
82
- | **Context** | Blind token spend | Detects "Cache Bloat" and context waste |
83
- | **Security** | Opaque MCP access | Maps and audits active skills/capabilities |
96
+ | **Deskilling** | Silent skill atrophy | Flags high AI-authorship as a deskilling risk |
97
+ | **Commit Gate**| Ships AI code unchecked | A local hook *warns* when AI authorship is over your limit |
98
+ | **Context** | Blind token spend | Surfaces re-used context (the part that's most of your bill) |
99
+ | **Agent reach** | Opaque MCP access | Maps what your agents can reach + a **blast-radius** score |
100
+ | **Agents & CI** | No machine signal | `--json` audit a supervisor agent or pipeline can act on |
84
101
 
85
102
  ## Commands
86
103
  | Command | Purpose |
87
104
  |---------|---------|
88
- | `npx @rosh100yx/outlier` | Run the full AI reliance & capability audit |
89
- | `npx @rosh100yx/outlier authorship` | Scan git history for AI co-authorship ratio |
90
- | `npx @rosh100yx/outlier carbon` | Scan local logs for context waste & token costs |
91
- | `npx @rosh100yx/outlier capabilities` | Audit active MCPs, skills, and orchestrations |
92
- | `npx @rosh100yx/outlier policy` | Configure Personal, Team, or Enterprise guardrails in CI |
105
+ | `npx outlier-audit` | Run the full AI reliance & capability audit |
106
+ | `npx outlier-audit authorship` | Scan git history for AI co-authorship ratio |
107
+ | `npx outlier-audit carbon` | Scan local logs for context waste & token costs |
108
+ | `npx outlier-audit capabilities` | Map what your agents can reach + blast radius |
109
+ | `npx outlier-audit policy` | Configure Personal, Team, or Enterprise guardrails in CI |
110
+ | `npx outlier-audit --json` | Machine-readable audit for agents, CI, and swarms |
111
+
112
+ ### For agents, CI & swarms (`--json`)
113
+
114
+ `outlier --json` emits a clean, ANSI-free JSON audit and nothing else — so an agent (or a supervisor in a swarm) can read its own authorship, cost, carbon, and **blast radius** before it acts, and CI can gate on it. Local-first: it still never leaves the machine.
115
+
116
+ ```jsonc
117
+ {
118
+ "tool": "outlier",
119
+ "authorship": { "aiPercent": 7.4, "provenance": "proxy" },
120
+ "cost": { "totalTokens": 137700000, "estUsd": 63.76, "provenance": "measured" },
121
+ "carbon": { "co2Kg": 0.10, "region": "Global Average", "provenance": "estimated" },
122
+ "reach": { "blastRadius": "HIGH", "toolCount": 13, "writeOrDeployCount": 5,
123
+ "reasons": ["can deploy to production", "can push to your remote repos"] },
124
+ "policy": { "aiCapPercent": 70, "status": "within" }
125
+ }
126
+ ```
93
127
 
94
128
  ### The UX Flow
95
- If you run `npx @rosh100yx/outlier` directly, you'll instantly get your Thermal Receipt and a simple list of follow-up commands:
129
+ If you run `npx outlier-audit` directly, you'll instantly get your audit receipt and a simple list of follow-up commands:
96
130
  ```text
97
131
  └────────────────────────────────────────────────────────┘
98
132
 
@@ -111,30 +145,29 @@ If you run `npx @rosh100yx/outlier` directly, you'll instantly get your Thermal
111
145
 
112
146
  **Prerequisites:** You need Node/Bun installed and to be inside a Git repository.
113
147
 
114
- 1. **Set the Trap (Install the Bouncer)**
148
+ 1. **Run your first audit**
115
149
  ```bash
116
- npx @rosh100yx/outlier policy
150
+ npx outlier-audit
117
151
  ```
118
- *Select the "Team (70% Max AI)" tier.*
152
+ *See who wrote the code, what it cost, and what your agents can reach.*
119
153
 
120
- 2. **Trigger the Bouncer**
121
- Write a massive feature using 100% AI. Attempt to commit it:
154
+ 2. **Set a limit (optional)**
122
155
  ```bash
123
- git commit -am "added massive ai feature"
156
+ npx outlier-audit policy
124
157
  ```
125
- *Watch the Bouncer physically block your commit for deskilling risk.*
158
+ *Pick a tier (e.g. "Team 70% max AI"). It installs a local pre-commit hook that **warns** when AI authorship goes over your limit — it never silently blocks your work.*
126
159
 
127
- 3. **Measure the Damage**
160
+ 3. **Wire it into agents or CI**
128
161
  ```bash
129
- npx @rosh100yx/outlier
162
+ npx outlier-audit --json
130
163
  ```
131
- *Instantly generate your Thermal Receipt to see your exact AI Authorship ratio and Token Waste.*
164
+ *A clean JSON audit a supervisor agent, a swarm, or a CI pipeline can read and act on.*
132
165
 
133
166
  ## Theoretical Foundations
134
167
  `outlier` is the live, technical implementation of an academic thesis on the thermodynamics of AI code generation and digital sovereignty.
135
168
  - **The Geographic Tax:** Western tech companies ship highly compute-intensive AI tools globally, but local infrastructure in the Global South is forced to absorb the carbon cost. `outlier` proves this by weighting session carbon by regional grid intensity (e.g., proving identical work imports 31x more carbon in Vietnam than France).
136
169
  - **Disempowerment:** Incremental AI substitution erodes human influence. `outlier` acts as a sovereignty shield against opaque AI platforms.
137
- - **Deskilling:** Delegating operators lose supervisory skills. By parsing `Co-Authored-By` Git trailers, `outlier` tracks AI reliance per-individual and flags high reliance as a "Deskilling Risk", triggering mandatory mentoring checkpoints.
170
+ - **Deskilling:** Delegating operators lose the skills they need to supervise (Bainbridge, 1983). By parsing `Co-Authored-By` Git trailers, `outlier` tracks AI reliance per-individual and flags high reliance as a "Deskilling Risk" — a prompt to review before you delegate more, not a wall.
138
171
 
139
172
  ## FAQ
140
173
 
@@ -145,14 +178,14 @@ If you run `npx @rosh100yx/outlier` directly, you'll instantly get your Thermal
145
178
  `outlier` is IDE-agnostic. It works by parsing standard `Co-Authored-By` Git trailers, meaning it supports Claude Code, Cursor, Aider, and manual generation.
146
179
 
147
180
  **Can I run this in CI/CD like GitHub Actions?**
148
- Yes. Use the `--strict` flag (`npx @rosh100yx/outlier audit --strict`) to return standard zero-exit-code parsing for headless CI environments.
181
+ Yes. Use the `--strict` flag (`npx outlier-audit audit --strict`) to return standard zero-exit-code parsing for headless CI environments.
149
182
 
150
183
  ## Who is this for?
151
184
 
152
185
  If you hold one of these roles, `outlier` was built specifically for you. Please help us improve the framework by running an audit and sharing your terminal screenshot on X.com or your favorite developer community!
153
186
 
154
187
  - **Engineering Managers & CTOs:** Stop flying blind. Measure true AI adoption, enforce zero-trust security on your IP, and cut your API token bloat.
155
- - **Principal & Staff Engineers:** Protect the craft. Use the Bouncer hook to enforce architectural standards and prevent your team from deskilling.
188
+ - **Principal & Staff Engineers:** Protect the craft. See your team's blast radius (what your agents can deploy/push/write) and use the warn-on-commit hook to keep humans in the loop.
156
189
  - **Developers & "Vibe Coders":** Prove your mastery. Run the audit, check your vibe, and post your "Artisan" or "Centaur" terminal status to the community.
157
190
 
158
191
  ## Support the Thesis & Collaborate