Skip to content

Commit 5f5cafe

Browse files
author
codegen-bot
committed
fixed comments
1 parent 7381dae commit 5f5cafe

File tree

5 files changed

+32
-13
lines changed

5 files changed

+32
-13
lines changed

docs/blog/act-via-code.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ When an agent writes code, it gains several critical advantages over traditional
7070

7171
## For Software Engineering
7272

73-
This brings us to software engineering, where we see a massive gap between AI's theoretical capabilities and practical achievements. Many code modification tasks are fundamentally programmatic—dependency analysis, refactors, control flow analysis—yet we lack the tools to express them properly.
73+
Software engineering tasks are inherently programmatic and graph-based — dependency analysis, refactors, control flow analysis, etc. Yet today's AI agents interface with code primarily through string manipulation, missing the rich structure that developers and their tools rely on. By giving agents APIs that operate on the codebase's underlying graph structure rather than raw text, we can unlock a new tier of capabilities. Imagine agents that can rapidly traverse dependency trees, analyze control flow, and perform complex refactors while maintaining perfect awareness of the codebase's structure.
7474

7575
Consider how a developer thinks about refactoring: it's rarely about direct text manipulation. Instead, we think in terms of high-level operations: "move this function," "rename this variable everywhere," "split this module." These operations can be encoded into a powerful Python API:
7676

@@ -81,4 +81,4 @@ for component in codebase.jsx_components:
8181
if len(component.usages) == 0:
8282
# powerful edit APIs that handle edge cases
8383
component.rename(component.name + 'Page')
84-
```
84+
```

docs/blog/codemod-frameworks.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ icon: "code-compare"
55
iconType: "solid"
66
---
77

8+
# Others to add
9+
- [Abracadabra](https://github.com/nicoespeon/abracadabra)
10+
- [Rope](https://rope.readthedocs.io/en/latest/overview.html#rope-overview)
11+
- [Grit](https://github.com/getgrit/gritql)
12+
813
Code transformation tools have evolved significantly over the years, each offering unique approaches to programmatic code manipulation. Let's explore the strengths and limitations of major frameworks in this space.
914

1015
## Python's AST Module

docs/introduction/getting-started.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@ Follow our step-by-step tutorial to get up and running with Codegen.
99

1010
## Installation
1111

12-
We recommend using [`pipx`](https://pypa.github.io/pipx/) to install Codegen globally. `pipx` is a tool to help you install and run Python applications in isolated environments. This isolation ensures that Codegen's dependencies won't conflict with your other Python projects.
12+
We recommend using [uv](https://github.com/astral-sh/uv) to install Codegen's CLI globally.
1313

14-
First, install `pipx` if you haven't already:
14+
First, install `uv` if you haven't already:
1515

1616
```bash
17-
brew install pipx
18-
pipx ensurepath # Ensure pipx binaries are on your PATH
17+
curl -LsSf https://astral.sh/uv/install.sh | sh
1918
```
2019

21-
Then install Codegen globally:
20+
Then install Codegen:
2221

2322
```bash
24-
pipx install codegen
23+
uv tool install codegen
2524
```
2625

2726
<Note>
@@ -31,7 +30,8 @@ pipx install codegen
3130

3231
## Quick Start with Jupyter
3332

34-
The fastest way to explore a codebase is using Jupyter. Codegen provides a built-in command to set this up:
33+
The [codgen notebook](/cli/notebook) command creates a virtual environment and opens a jupyter notebook for quick prototyping. This is often the fastest way to get up and running.
34+
3535

3636
```bash
3737
# Navigate to your repository

docs/introduction/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function.set_docstring('new docstring') # set docstring
4343
## Installation
4444

4545
```bash
46-
pip install codegen
46+
uv tool install codegen
4747
```
4848

4949
## Get Started

docs/prism.css

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,26 @@ pre[class*="language-"] {
9999
.dark .prose p code {
100100
color: #ffca85 !important;
101101
}
102+
.dark .prose p code .comment {
103+
color: #6d6d6d !important;
104+
}
102105
.dark .prose ul code {
103106
color: #ffca85 !important;
104107
}
108+
.dark .prose ul code .comment {
109+
color: #6d6d6d !important;
110+
}
111+
112+
/* Comments in code blocks should be gray */
113+
.token.comment {
114+
color: #6d6d6d !important;
115+
}
116+
pre .token.comment {
117+
color: #6d6d6d !important;
118+
}
119+
code .token.comment {
120+
color: #6d6d6d !important;
121+
}
105122

106123
/* links are purple */
107124
.prose a {
@@ -150,9 +167,6 @@ pre[class*="language-"] {
150167
.token.property {
151168
color: #ffca85 !important;
152169
}
153-
.token.comment {
154-
color: #6d6d6d !important;
155-
}
156170
.token.class-name {
157171
color: #82e2ff !important;
158172
}

0 commit comments

Comments
 (0)