@rosh100yx/outlier 0.7.0 → 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,20 +93,21 @@ 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` | Map what your agents can reach + blast radius |
92
- | `npx @rosh100yx/outlier policy` | Configure Personal, Team, or Enterprise guardrails in CI |
93
- | `npx @rosh100yx/outlier --json` | Machine-readable audit for agents, CI, and swarms |
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 |
94
111
 
95
112
  ### For agents, CI & swarms (`--json`)
96
113
 
@@ -109,7 +126,7 @@ We are deliberately honest about this:
109
126
  ```
110
127
 
111
128
  ### The UX Flow
112
- 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:
113
130
  ```text
114
131
  └────────────────────────────────────────────────────────┘
115
132
 
@@ -128,30 +145,29 @@ If you run `npx @rosh100yx/outlier` directly, you'll instantly get your Thermal
128
145
 
129
146
  **Prerequisites:** You need Node/Bun installed and to be inside a Git repository.
130
147
 
131
- 1. **Set the Trap (Install the Bouncer)**
148
+ 1. **Run your first audit**
132
149
  ```bash
133
- npx @rosh100yx/outlier policy
150
+ npx outlier-audit
134
151
  ```
135
- *Select the "Team (70% Max AI)" tier.*
152
+ *See who wrote the code, what it cost, and what your agents can reach.*
136
153
 
137
- 2. **Trigger the Bouncer**
138
- Write a massive feature using 100% AI. Attempt to commit it:
154
+ 2. **Set a limit (optional)**
139
155
  ```bash
140
- git commit -am "added massive ai feature"
156
+ npx outlier-audit policy
141
157
  ```
142
- *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.*
143
159
 
144
- 3. **Measure the Damage**
160
+ 3. **Wire it into agents or CI**
145
161
  ```bash
146
- npx @rosh100yx/outlier
162
+ npx outlier-audit --json
147
163
  ```
148
- *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.*
149
165
 
150
166
  ## Theoretical Foundations
151
167
  `outlier` is the live, technical implementation of an academic thesis on the thermodynamics of AI code generation and digital sovereignty.
152
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).
153
169
  - **Disempowerment:** Incremental AI substitution erodes human influence. `outlier` acts as a sovereignty shield against opaque AI platforms.
154
- - **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.
155
171
 
156
172
  ## FAQ
157
173
 
@@ -162,14 +178,14 @@ If you run `npx @rosh100yx/outlier` directly, you'll instantly get your Thermal
162
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.
163
179
 
164
180
  **Can I run this in CI/CD like GitHub Actions?**
165
- 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.
166
182
 
167
183
  ## Who is this for?
168
184
 
169
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!
170
186
 
171
187
  - **Engineering Managers & CTOs:** Stop flying blind. Measure true AI adoption, enforce zero-trust security on your IP, and cut your API token bloat.
172
- - **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.
173
189
  - **Developers & "Vibe Coders":** Prove your mastery. Run the audit, check your vibe, and post your "Artisan" or "Centaur" terminal status to the community.
174
190
 
175
191
  ## Support the Thesis & Collaborate