codebase-brain 0.3.5__tar.gz → 0.3.6__tar.gz

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.
Files changed (28) hide show
  1. codebase_brain-0.3.6/PKG-INFO +137 -0
  2. codebase_brain-0.3.6/README.md +114 -0
  3. codebase_brain-0.3.6/codebase_brain.egg-info/PKG-INFO +137 -0
  4. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/setup.py +9 -2
  5. codebase_brain-0.3.5/PKG-INFO +0 -19
  6. codebase_brain-0.3.5/README.md +0 -61
  7. codebase_brain-0.3.5/codebase_brain.egg-info/PKG-INFO +0 -19
  8. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/brain_cli.py +0 -0
  9. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/brain_parser/__init__.py +0 -0
  10. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/brain_parser/ast_parser.py +0 -0
  11. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/brain_parser/bug_detector.py +0 -0
  12. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/brain_parser/codebase_walker.py +0 -0
  13. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/brain_parser/file_watcher.py +0 -0
  14. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/brain_parser/graph_builder.py +0 -0
  15. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/brain_parser/llm_router.py +0 -0
  16. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/brain_parser/query_engine.py +0 -0
  17. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/brain_parser/root_cause.py +0 -0
  18. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/brain_parser/universal_parser.py +0 -0
  19. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/codebase_brain.egg-info/SOURCES.txt +0 -0
  20. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/codebase_brain.egg-info/dependency_links.txt +0 -0
  21. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/codebase_brain.egg-info/entry_points.txt +0 -0
  22. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/codebase_brain.egg-info/requires.txt +0 -0
  23. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/codebase_brain.egg-info/top_level.txt +0 -0
  24. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/setup.cfg +0 -0
  25. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/tests/test_bugs.py +0 -0
  26. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/tests/test_classes.py +0 -0
  27. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/tests/test_parser.py +0 -0
  28. {codebase_brain-0.3.5 → codebase_brain-0.3.6}/tests/test_treesitter.py +0 -0
@@ -0,0 +1,137 @@
1
+ Metadata-Version: 2.4
2
+ Name: codebase-brain
3
+ Version: 0.3.6
4
+ Summary: Know what you will break before you break it — a git hook that blocks risky commits and explains why in plain English.
5
+ Requires-Python: >=3.8
6
+ Description-Content-Type: text/markdown
7
+ Requires-Dist: watchdog
8
+ Requires-Dist: networkx
9
+ Requires-Dist: matplotlib
10
+ Requires-Dist: pyvis
11
+ Requires-Dist: groq
12
+ Requires-Dist: tree-sitter
13
+ Requires-Dist: tree-sitter-python
14
+ Requires-Dist: tree-sitter-javascript
15
+ Requires-Dist: tree-sitter-java
16
+ Requires-Dist: tree-sitter-typescript
17
+ Requires-Dist: python-dotenv
18
+ Dynamic: description
19
+ Dynamic: description-content-type
20
+ Dynamic: requires-dist
21
+ Dynamic: requires-python
22
+ Dynamic: summary
23
+
24
+ <div align="center">
25
+
26
+ # Codebase Brain
27
+
28
+ ### Know what you'll break — before you break it.
29
+
30
+ **pip install codebase-brain**
31
+
32
+ </div>
33
+
34
+ ---
35
+
36
+ It's 11 PM. You asked Claude Code to refactor a helper function — something small, something that should've taken five minutes. It did the job, the diff looked clean, you skimmed it, it made sense, you committed.
37
+
38
+ Two days later, your on-call phone goes off. Something's broken in production. Not in the file you changed — somewhere else, three files away, in a part of the app you haven't opened in months. You spend the next four hours doing what developers have always done: `grep`, follow the imports by hand, retrace every step, until you finally land on it. The refactor. The one that looked completely reasonable in isolation.
39
+
40
+ You didn't write careless code. You just don't have the mental model anymore — the AI wrote it, you reviewed it in thirty seconds, and thirty seconds isn't enough time to hold an entire dependency graph in your head. Nobody's is. That's not a skill problem. That's a structural one, and it's getting worse the faster these tools get, not better.
41
+
42
+ This happens to every developer using Cursor, Claude Code, or Copilot right now. Most people haven't said it out loud yet, because it sounds a little paranoid. It isn't. It's just what happens when code moves faster than the human reviewing it can build intuition for it.
43
+
44
+ **Codebase Brain is the fix for that specific moment.**
45
+
46
+ It's a git hook — the kind that fires automatically every time you type `git commit`, before the commit actually happens. It maps your entire codebase as a dependency graph, and the second you try to commit something risky, it stops you, shows you exactly which files are affected, and — using AI — explains in plain English *why* it matters and what to actually check. Not a list of filenames. An explanation, the way a senior developer glancing over your shoulder would give you one.
47
+
48
+ If something already broke, you don't need to `grep` for four hours. You paste the stacktrace into `brain rootcause`, and Brain walks backward through the real dependency graph — the same one it built when it scanned your project — and tells you the exact file, the exact function, and why, in seconds.
49
+
50
+ This is free. Not a trial, not a limited tier designed to expire — the hook itself, the thing that actually catches you at the moment that matters, doesn't cost anything and never will. It runs on your machine, on your code, and the only thing that ever leaves your computer is what you explicitly choose to send to whichever AI provider you pick — your key, your choice, your control.
51
+
52
+ ---
53
+
54
+ ### We didn't just build this and hope it works. We tested it against a real bug.
55
+
56
+ Python's own core team confirmed and fixed a real `UnicodeDecodeError` in the standard library — [GitHub issue #98744](https://github.com/python/cpython/issues/98744), public, verifiable, nothing hidden.
57
+
58
+ We gave Brain nothing but the stacktrace. No hints. No prior knowledge of the fix.
59
+
60
+ ```
61
+ $ brain rootcause
62
+ [pasted the real traceback from the issue]
63
+
64
+ BRAIN DIAGNOSIS
65
+ ==================================================
66
+ The root cause of the error is in `_byte_offset_to_character_offset`
67
+ in traceback.py — an invalid or truncated UTF-8 byte sequence being
68
+ passed to the decode method...
69
+ ```
70
+
71
+ Brain traced **1,694 files deep** into the standard library's dependency graph and landed on the **exact same function** the actual CPython maintainers identified. You can open the issue right now and check it yourself. We're not asking you to trust a claim — we're handing you the receipt.
72
+
73
+ This isn't a cherry-picked toy example. CPython is one of the most scrutinized codebases on Earth. If Brain's reasoning holds up there, it holds up on whatever you're building at 11 PM tonight.
74
+
75
+ ---
76
+
77
+ ### Here's what it looks like on your machine, in order
78
+
79
+ ```bash
80
+ pip install codebase-brain
81
+ brain init # pick an AI provider once — Groq, OpenAI, Anthropic, Google, or fully local Ollama
82
+ brain start # builds the dependency graph for whatever project you're standing in
83
+ brain install-hook # wires Brain into git — this is the step that actually matters
84
+ ```
85
+
86
+ After that last command, you don't do anything differently. You `git add`, you `git commit`, exactly like you always have. Brain just quietly checks the blast radius every single time, in the background, and only speaks up when it actually matters. You're not adding a habit — you're upgrading one you already have.
87
+
88
+ `brain init` runs once per machine. Every project after that just works, immediately, with the same setup.
89
+
90
+ ---
91
+
92
+ ### The specific moments each command is for
93
+
94
+ You're about to commit → nothing to type, Brain already fired, and if it's risky it's already asking you "are you sure?"
95
+
96
+ You want to check one file before you even touch it → `brain impact --file path/to/file.py`
97
+
98
+ Something in production just broke and you have a stacktrace → `brain rootcause`
99
+
100
+ You just joined a codebase and want the lay of the land → `brain ask "what's the riskiest file in this repo?"`
101
+
102
+ You want to actually see the shape of your project → run `brain start`, then open `brain_map.html` — red nodes are the ones to be careful with
103
+
104
+ ---
105
+
106
+ ### Why this matters more with every AI-generated commit, not less
107
+
108
+ Every month, more of what you ship was written faster than you can fully hold in your head. That trade — speed for situational awareness — isn't going away, and it isn't something willpower fixes. You can't force yourself to slow down and trace every diff by hand; that defeats the reason you're using these tools in the first place.
109
+
110
+ What actually works is something that holds the situational awareness *for* you, automatically, the moment it matters, without asking you to change how you work. That's the whole bet behind Codebase Brain: not making you more careful, but making the codebase itself tell you when to be.
111
+
112
+ ---
113
+
114
+ ### What this isn't
115
+
116
+ This isn't a sixty-command structural query engine with dead-code detection and architectural layer inference — if that's what you're after, there are tools built specifically for that, and they do it well.
117
+
118
+ Codebase Brain does one thing, on purpose: it catches you at the moment right before you commit, and it explains why, in a sentence you don't need documentation to understand.
119
+
120
+ ---
121
+
122
+ **Languages:** Python, JavaScript, TypeScript, Java — more on the way.
123
+ **AI providers, your choice:** Groq (Free)· OpenAI · Anthropic · Google Gemini · Ollama (fully local, nothing leaves your machine).
124
+
125
+ ```bash
126
+ brain uninstall # removes Brain from the current project cleanly
127
+ pip uninstall codebase-brain
128
+ ```
129
+
130
+ ---
131
+
132
+ <div align="center">
133
+
134
+ Built by a solo, non-technical founder, with AI as the only co-builder.
135
+ Found a false positive? [Open an issue](https://github.com/guruvarpatel-ai/codebase-brain/issues) — every report makes the risk engine sharper for everyone using it.
136
+
137
+ </div>
@@ -0,0 +1,114 @@
1
+ <div align="center">
2
+
3
+ # Codebase Brain
4
+
5
+ ### Know what you'll break — before you break it.
6
+
7
+ **pip install codebase-brain**
8
+
9
+ </div>
10
+
11
+ ---
12
+
13
+ It's 11 PM. You asked Claude Code to refactor a helper function — something small, something that should've taken five minutes. It did the job, the diff looked clean, you skimmed it, it made sense, you committed.
14
+
15
+ Two days later, your on-call phone goes off. Something's broken in production. Not in the file you changed — somewhere else, three files away, in a part of the app you haven't opened in months. You spend the next four hours doing what developers have always done: `grep`, follow the imports by hand, retrace every step, until you finally land on it. The refactor. The one that looked completely reasonable in isolation.
16
+
17
+ You didn't write careless code. You just don't have the mental model anymore — the AI wrote it, you reviewed it in thirty seconds, and thirty seconds isn't enough time to hold an entire dependency graph in your head. Nobody's is. That's not a skill problem. That's a structural one, and it's getting worse the faster these tools get, not better.
18
+
19
+ This happens to every developer using Cursor, Claude Code, or Copilot right now. Most people haven't said it out loud yet, because it sounds a little paranoid. It isn't. It's just what happens when code moves faster than the human reviewing it can build intuition for it.
20
+
21
+ **Codebase Brain is the fix for that specific moment.**
22
+
23
+ It's a git hook — the kind that fires automatically every time you type `git commit`, before the commit actually happens. It maps your entire codebase as a dependency graph, and the second you try to commit something risky, it stops you, shows you exactly which files are affected, and — using AI — explains in plain English *why* it matters and what to actually check. Not a list of filenames. An explanation, the way a senior developer glancing over your shoulder would give you one.
24
+
25
+ If something already broke, you don't need to `grep` for four hours. You paste the stacktrace into `brain rootcause`, and Brain walks backward through the real dependency graph — the same one it built when it scanned your project — and tells you the exact file, the exact function, and why, in seconds.
26
+
27
+ This is free. Not a trial, not a limited tier designed to expire — the hook itself, the thing that actually catches you at the moment that matters, doesn't cost anything and never will. It runs on your machine, on your code, and the only thing that ever leaves your computer is what you explicitly choose to send to whichever AI provider you pick — your key, your choice, your control.
28
+
29
+ ---
30
+
31
+ ### We didn't just build this and hope it works. We tested it against a real bug.
32
+
33
+ Python's own core team confirmed and fixed a real `UnicodeDecodeError` in the standard library — [GitHub issue #98744](https://github.com/python/cpython/issues/98744), public, verifiable, nothing hidden.
34
+
35
+ We gave Brain nothing but the stacktrace. No hints. No prior knowledge of the fix.
36
+
37
+ ```
38
+ $ brain rootcause
39
+ [pasted the real traceback from the issue]
40
+
41
+ BRAIN DIAGNOSIS
42
+ ==================================================
43
+ The root cause of the error is in `_byte_offset_to_character_offset`
44
+ in traceback.py — an invalid or truncated UTF-8 byte sequence being
45
+ passed to the decode method...
46
+ ```
47
+
48
+ Brain traced **1,694 files deep** into the standard library's dependency graph and landed on the **exact same function** the actual CPython maintainers identified. You can open the issue right now and check it yourself. We're not asking you to trust a claim — we're handing you the receipt.
49
+
50
+ This isn't a cherry-picked toy example. CPython is one of the most scrutinized codebases on Earth. If Brain's reasoning holds up there, it holds up on whatever you're building at 11 PM tonight.
51
+
52
+ ---
53
+
54
+ ### Here's what it looks like on your machine, in order
55
+
56
+ ```bash
57
+ pip install codebase-brain
58
+ brain init # pick an AI provider once — Groq, OpenAI, Anthropic, Google, or fully local Ollama
59
+ brain start # builds the dependency graph for whatever project you're standing in
60
+ brain install-hook # wires Brain into git — this is the step that actually matters
61
+ ```
62
+
63
+ After that last command, you don't do anything differently. You `git add`, you `git commit`, exactly like you always have. Brain just quietly checks the blast radius every single time, in the background, and only speaks up when it actually matters. You're not adding a habit — you're upgrading one you already have.
64
+
65
+ `brain init` runs once per machine. Every project after that just works, immediately, with the same setup.
66
+
67
+ ---
68
+
69
+ ### The specific moments each command is for
70
+
71
+ You're about to commit → nothing to type, Brain already fired, and if it's risky it's already asking you "are you sure?"
72
+
73
+ You want to check one file before you even touch it → `brain impact --file path/to/file.py`
74
+
75
+ Something in production just broke and you have a stacktrace → `brain rootcause`
76
+
77
+ You just joined a codebase and want the lay of the land → `brain ask "what's the riskiest file in this repo?"`
78
+
79
+ You want to actually see the shape of your project → run `brain start`, then open `brain_map.html` — red nodes are the ones to be careful with
80
+
81
+ ---
82
+
83
+ ### Why this matters more with every AI-generated commit, not less
84
+
85
+ Every month, more of what you ship was written faster than you can fully hold in your head. That trade — speed for situational awareness — isn't going away, and it isn't something willpower fixes. You can't force yourself to slow down and trace every diff by hand; that defeats the reason you're using these tools in the first place.
86
+
87
+ What actually works is something that holds the situational awareness *for* you, automatically, the moment it matters, without asking you to change how you work. That's the whole bet behind Codebase Brain: not making you more careful, but making the codebase itself tell you when to be.
88
+
89
+ ---
90
+
91
+ ### What this isn't
92
+
93
+ This isn't a sixty-command structural query engine with dead-code detection and architectural layer inference — if that's what you're after, there are tools built specifically for that, and they do it well.
94
+
95
+ Codebase Brain does one thing, on purpose: it catches you at the moment right before you commit, and it explains why, in a sentence you don't need documentation to understand.
96
+
97
+ ---
98
+
99
+ **Languages:** Python, JavaScript, TypeScript, Java — more on the way.
100
+ **AI providers, your choice:** Groq (Free)· OpenAI · Anthropic · Google Gemini · Ollama (fully local, nothing leaves your machine).
101
+
102
+ ```bash
103
+ brain uninstall # removes Brain from the current project cleanly
104
+ pip uninstall codebase-brain
105
+ ```
106
+
107
+ ---
108
+
109
+ <div align="center">
110
+
111
+ Built by a solo, non-technical founder, with AI as the only co-builder.
112
+ Found a false positive? [Open an issue](https://github.com/guruvarpatel-ai/codebase-brain/issues) — every report makes the risk engine sharper for everyone using it.
113
+
114
+ </div>
@@ -0,0 +1,137 @@
1
+ Metadata-Version: 2.4
2
+ Name: codebase-brain
3
+ Version: 0.3.6
4
+ Summary: Know what you will break before you break it — a git hook that blocks risky commits and explains why in plain English.
5
+ Requires-Python: >=3.8
6
+ Description-Content-Type: text/markdown
7
+ Requires-Dist: watchdog
8
+ Requires-Dist: networkx
9
+ Requires-Dist: matplotlib
10
+ Requires-Dist: pyvis
11
+ Requires-Dist: groq
12
+ Requires-Dist: tree-sitter
13
+ Requires-Dist: tree-sitter-python
14
+ Requires-Dist: tree-sitter-javascript
15
+ Requires-Dist: tree-sitter-java
16
+ Requires-Dist: tree-sitter-typescript
17
+ Requires-Dist: python-dotenv
18
+ Dynamic: description
19
+ Dynamic: description-content-type
20
+ Dynamic: requires-dist
21
+ Dynamic: requires-python
22
+ Dynamic: summary
23
+
24
+ <div align="center">
25
+
26
+ # Codebase Brain
27
+
28
+ ### Know what you'll break — before you break it.
29
+
30
+ **pip install codebase-brain**
31
+
32
+ </div>
33
+
34
+ ---
35
+
36
+ It's 11 PM. You asked Claude Code to refactor a helper function — something small, something that should've taken five minutes. It did the job, the diff looked clean, you skimmed it, it made sense, you committed.
37
+
38
+ Two days later, your on-call phone goes off. Something's broken in production. Not in the file you changed — somewhere else, three files away, in a part of the app you haven't opened in months. You spend the next four hours doing what developers have always done: `grep`, follow the imports by hand, retrace every step, until you finally land on it. The refactor. The one that looked completely reasonable in isolation.
39
+
40
+ You didn't write careless code. You just don't have the mental model anymore — the AI wrote it, you reviewed it in thirty seconds, and thirty seconds isn't enough time to hold an entire dependency graph in your head. Nobody's is. That's not a skill problem. That's a structural one, and it's getting worse the faster these tools get, not better.
41
+
42
+ This happens to every developer using Cursor, Claude Code, or Copilot right now. Most people haven't said it out loud yet, because it sounds a little paranoid. It isn't. It's just what happens when code moves faster than the human reviewing it can build intuition for it.
43
+
44
+ **Codebase Brain is the fix for that specific moment.**
45
+
46
+ It's a git hook — the kind that fires automatically every time you type `git commit`, before the commit actually happens. It maps your entire codebase as a dependency graph, and the second you try to commit something risky, it stops you, shows you exactly which files are affected, and — using AI — explains in plain English *why* it matters and what to actually check. Not a list of filenames. An explanation, the way a senior developer glancing over your shoulder would give you one.
47
+
48
+ If something already broke, you don't need to `grep` for four hours. You paste the stacktrace into `brain rootcause`, and Brain walks backward through the real dependency graph — the same one it built when it scanned your project — and tells you the exact file, the exact function, and why, in seconds.
49
+
50
+ This is free. Not a trial, not a limited tier designed to expire — the hook itself, the thing that actually catches you at the moment that matters, doesn't cost anything and never will. It runs on your machine, on your code, and the only thing that ever leaves your computer is what you explicitly choose to send to whichever AI provider you pick — your key, your choice, your control.
51
+
52
+ ---
53
+
54
+ ### We didn't just build this and hope it works. We tested it against a real bug.
55
+
56
+ Python's own core team confirmed and fixed a real `UnicodeDecodeError` in the standard library — [GitHub issue #98744](https://github.com/python/cpython/issues/98744), public, verifiable, nothing hidden.
57
+
58
+ We gave Brain nothing but the stacktrace. No hints. No prior knowledge of the fix.
59
+
60
+ ```
61
+ $ brain rootcause
62
+ [pasted the real traceback from the issue]
63
+
64
+ BRAIN DIAGNOSIS
65
+ ==================================================
66
+ The root cause of the error is in `_byte_offset_to_character_offset`
67
+ in traceback.py — an invalid or truncated UTF-8 byte sequence being
68
+ passed to the decode method...
69
+ ```
70
+
71
+ Brain traced **1,694 files deep** into the standard library's dependency graph and landed on the **exact same function** the actual CPython maintainers identified. You can open the issue right now and check it yourself. We're not asking you to trust a claim — we're handing you the receipt.
72
+
73
+ This isn't a cherry-picked toy example. CPython is one of the most scrutinized codebases on Earth. If Brain's reasoning holds up there, it holds up on whatever you're building at 11 PM tonight.
74
+
75
+ ---
76
+
77
+ ### Here's what it looks like on your machine, in order
78
+
79
+ ```bash
80
+ pip install codebase-brain
81
+ brain init # pick an AI provider once — Groq, OpenAI, Anthropic, Google, or fully local Ollama
82
+ brain start # builds the dependency graph for whatever project you're standing in
83
+ brain install-hook # wires Brain into git — this is the step that actually matters
84
+ ```
85
+
86
+ After that last command, you don't do anything differently. You `git add`, you `git commit`, exactly like you always have. Brain just quietly checks the blast radius every single time, in the background, and only speaks up when it actually matters. You're not adding a habit — you're upgrading one you already have.
87
+
88
+ `brain init` runs once per machine. Every project after that just works, immediately, with the same setup.
89
+
90
+ ---
91
+
92
+ ### The specific moments each command is for
93
+
94
+ You're about to commit → nothing to type, Brain already fired, and if it's risky it's already asking you "are you sure?"
95
+
96
+ You want to check one file before you even touch it → `brain impact --file path/to/file.py`
97
+
98
+ Something in production just broke and you have a stacktrace → `brain rootcause`
99
+
100
+ You just joined a codebase and want the lay of the land → `brain ask "what's the riskiest file in this repo?"`
101
+
102
+ You want to actually see the shape of your project → run `brain start`, then open `brain_map.html` — red nodes are the ones to be careful with
103
+
104
+ ---
105
+
106
+ ### Why this matters more with every AI-generated commit, not less
107
+
108
+ Every month, more of what you ship was written faster than you can fully hold in your head. That trade — speed for situational awareness — isn't going away, and it isn't something willpower fixes. You can't force yourself to slow down and trace every diff by hand; that defeats the reason you're using these tools in the first place.
109
+
110
+ What actually works is something that holds the situational awareness *for* you, automatically, the moment it matters, without asking you to change how you work. That's the whole bet behind Codebase Brain: not making you more careful, but making the codebase itself tell you when to be.
111
+
112
+ ---
113
+
114
+ ### What this isn't
115
+
116
+ This isn't a sixty-command structural query engine with dead-code detection and architectural layer inference — if that's what you're after, there are tools built specifically for that, and they do it well.
117
+
118
+ Codebase Brain does one thing, on purpose: it catches you at the moment right before you commit, and it explains why, in a sentence you don't need documentation to understand.
119
+
120
+ ---
121
+
122
+ **Languages:** Python, JavaScript, TypeScript, Java — more on the way.
123
+ **AI providers, your choice:** Groq (Free)· OpenAI · Anthropic · Google Gemini · Ollama (fully local, nothing leaves your machine).
124
+
125
+ ```bash
126
+ brain uninstall # removes Brain from the current project cleanly
127
+ pip uninstall codebase-brain
128
+ ```
129
+
130
+ ---
131
+
132
+ <div align="center">
133
+
134
+ Built by a solo, non-technical founder, with AI as the only co-builder.
135
+ Found a false positive? [Open an issue](https://github.com/guruvarpatel-ai/codebase-brain/issues) — every report makes the risk engine sharper for everyone using it.
136
+
137
+ </div>
@@ -1,9 +1,16 @@
1
1
  from setuptools import setup, find_packages
2
+ import os
3
+
4
+ this_directory = os.path.abspath(os.path.dirname(__file__))
5
+ with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
6
+ long_description = f.read()
2
7
 
3
8
  setup(
4
9
  name="codebase-brain",
5
- version="0.3.5",
6
- description="Codebase Brain:Know what you will break and why before you commit it.",
10
+ version="0.3.6",
11
+ description="Know what you will break before you break it — a git hook that blocks risky commits and explains why in plain English.",
12
+ long_description=long_description,
13
+ long_description_content_type="text/markdown",
7
14
  package_dir={"": "."},
8
15
  packages=find_packages(where="."),
9
16
  install_requires=[
@@ -1,19 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: codebase-brain
3
- Version: 0.3.5
4
- Summary: Codebase Brain:Know what you will break and why before you commit it.
5
- Requires-Python: >=3.8
6
- Requires-Dist: watchdog
7
- Requires-Dist: networkx
8
- Requires-Dist: matplotlib
9
- Requires-Dist: pyvis
10
- Requires-Dist: groq
11
- Requires-Dist: tree-sitter
12
- Requires-Dist: tree-sitter-python
13
- Requires-Dist: tree-sitter-javascript
14
- Requires-Dist: tree-sitter-java
15
- Requires-Dist: tree-sitter-typescript
16
- Requires-Dist: python-dotenv
17
- Dynamic: requires-dist
18
- Dynamic: requires-python
19
- Dynamic: summary
@@ -1,61 +0,0 @@
1
- # Codebase Brain
2
- > An AI brain that lives inside your codebase. Finds bugs before they happen. Explains everything in plain English.
3
-
4
- ## What is this?
5
-
6
- Codebase Brain is an AI-powered tool that reads your entire Python codebase, understands how every file connects to every other file, and answers your questions in real time.
7
-
8
- Point it at any Python project. Ask it anything.
9
-
10
- ## What can it do?
11
-
12
- - **Visualize your codebase** — interactive risk map showing which files are dangerous
13
- - **Risk scoring** — RED means danger, ORANGE means caution, GREEN means safe
14
- - **Ask questions** — "What breaks if I delete this file?" answered instantly
15
- - **Live watching** — brain updates automatically when you change code
16
- - **Bug prediction** — find cascade failures before they happen
17
-
18
- ## Install
19
- ```bash
20
- pip install -e .
21
- ```
22
-
23
- ## Setup (one time)
24
- ```bash
25
- brain init
26
- ```
27
- Enter your Groq API key when asked. Get a free key at groq.com.
28
-
29
- ## Use
30
- ```bash
31
- cd your_project
32
- brain start
33
- ```
34
-
35
- That's it. Brain reads your codebase, opens interactive graph in browser, and waits for your questions.
36
-
37
- ## Ask your brain anything
38
- ```
39
- What does analyze_file do?
40
- What breaks if I delete app.py?
41
- What is the most dangerous file?
42
- What does this codebase depend on?
43
- ```
44
-
45
- ## The Problem
46
-
47
- Your codebase grows. Your team grows. Nobody knows everything anymore.
48
-
49
- - A developer changes one file. Three things break somewhere else.
50
- - A bug exists for weeks because nobody knew which file to look at.
51
- - A new developer joins. Takes months to understand the codebase.
52
- - Code reviews miss hidden dependencies. Production breaks.
53
-
54
- Senior developers spend hours every week just *understanding* code instead of writing it.
55
-
56
- ## The Solution
57
-
58
- Codebase Brain installs in 30 seconds and gives your entire team a shared understanding of your codebase instantly.
59
-
60
- No more guessing. No more hours tracing dependencies manually.
61
- Just ask.
@@ -1,19 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: codebase-brain
3
- Version: 0.3.5
4
- Summary: Codebase Brain:Know what you will break and why before you commit it.
5
- Requires-Python: >=3.8
6
- Requires-Dist: watchdog
7
- Requires-Dist: networkx
8
- Requires-Dist: matplotlib
9
- Requires-Dist: pyvis
10
- Requires-Dist: groq
11
- Requires-Dist: tree-sitter
12
- Requires-Dist: tree-sitter-python
13
- Requires-Dist: tree-sitter-javascript
14
- Requires-Dist: tree-sitter-java
15
- Requires-Dist: tree-sitter-typescript
16
- Requires-Dist: python-dotenv
17
- Dynamic: requires-dist
18
- Dynamic: requires-python
19
- Dynamic: summary
File without changes