@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 +70 -54
- package/bin/outlier.js +388 -36
- package/package.json +1 -1
- package/src/aggregate.ts +59 -0
- package/src/capabilities.ts +5 -0
- package/src/carbon.ts +33 -4
- package/src/cli.ts +164 -12
- package/src/economics.ts +66 -0
- package/src/emissions.ts +7 -3
- package/src/insights.ts +109 -0
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.
|
|
5
|
-
<p><i>
|
|
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/
|
|
10
|
-
<img src="https://img.shields.io/badge/
|
|
11
|
-
<img src="https://img.shields.io/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
|
|
16
|
+
<code>npx outlier-audit@latest</code>
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
19
|
<br/>
|
|
20
20
|
|
|
21
21
|
```text
|
|
22
|
-
|
|
23
|
-
│ █▀█ █░█ ▀█▀ █░░ █ █▀▀ █▀█ ::
|
|
24
|
-
│ █▄█ █▄█ ░█░ █▄▄ █ ██▄ █▀▄ ::
|
|
25
|
-
|
|
26
|
-
│
|
|
27
|
-
│
|
|
28
|
-
│
|
|
29
|
-
│
|
|
30
|
-
│
|
|
31
|
-
|
|
32
|
-
│
|
|
33
|
-
|
|
34
|
-
│
|
|
35
|
-
│
|
|
36
|
-
│
|
|
37
|
-
│
|
|
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
|
|
46
|
-
└───────────┘ └────────────┘
|
|
47
|
-
│ (
|
|
48
|
-
|
|
49
|
-
│
|
|
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 |
|
|
81
|
-
| **Commit Gate**|
|
|
82
|
-
| **Context** | Blind token spend |
|
|
83
|
-
| **
|
|
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
|
|
89
|
-
| `npx
|
|
90
|
-
| `npx
|
|
91
|
-
| `npx
|
|
92
|
-
| `npx
|
|
93
|
-
| `npx
|
|
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
|
|
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. **
|
|
148
|
+
1. **Run your first audit**
|
|
132
149
|
```bash
|
|
133
|
-
npx
|
|
150
|
+
npx outlier-audit
|
|
134
151
|
```
|
|
135
|
-
*
|
|
152
|
+
*See who wrote the code, what it cost, and what your agents can reach.*
|
|
136
153
|
|
|
137
|
-
2. **
|
|
138
|
-
Write a massive feature using 100% AI. Attempt to commit it:
|
|
154
|
+
2. **Set a limit (optional)**
|
|
139
155
|
```bash
|
|
140
|
-
|
|
156
|
+
npx outlier-audit policy
|
|
141
157
|
```
|
|
142
|
-
*
|
|
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. **
|
|
160
|
+
3. **Wire it into agents or CI**
|
|
145
161
|
```bash
|
|
146
|
-
npx
|
|
162
|
+
npx outlier-audit --json
|
|
147
163
|
```
|
|
148
|
-
*
|
|
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
|
|
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
|
|
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.
|
|
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
|