https://github.com/gonsix/code-agent
๐ฆพ ๐ค ChatGPT-based tool for support your software development
https://github.com/gonsix/code-agent
agent ai cli devtools git langchain openai python refactoring tools
Last synced: 4 months ago
JSON representation
๐ฆพ ๐ค ChatGPT-based tool for support your software development
- Host: GitHub
- URL: https://github.com/gonsix/code-agent
- Owner: Gonsix
- Created: 2024-03-01T05:31:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-13T07:16:48.000Z (over 2 years ago)
- Last Synced: 2025-03-20T11:48:21.478Z (over 1 year ago)
- Topics: agent, ai, cli, devtools, git, langchain, openai, python, refactoring, tools
- Language: Python
- Homepage: https://pypi.org/project/code-agent/
- Size: 110 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Code-Agent ๐
## Use `codex` command to automate software development workflows. โจ
Hi๐ I'm Shingo Morimoto, an University student in Japan. I'm so interested in creating LLM application using LangChain.
The `codex` command,including subcommands: gen-commit, gen-readme, describe, suggest-comment, suggest-code, is a powerful tool to integrate your code with LLM power.โจ
Currently, you can execute `codex gen-commit` to automate the creation of Git commit message from diff between HEAD commit and index.
## ๐ Getting Started
### Install code-agent with pip ๐:
To use the codex command anywhere install it with pip:
`pip install code-agent` or `pip install --break-system-packages code-agent ` if you are using newer pip.
### Export OPENAI_API_KEY โ๏ธ:
You must exoport an `OPENAI_API_KEY` in your environment.
Also, you must have an access to the GPT-4 model to call OpenAI API.
### **Usage** ๐:
Amazing! Now you can use `codex` command anywhere!
```
$ codex --help
Usage: codex [OPTIONS] COMMAND [ARGS]...
โญโ Options โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ --install-completion Install completion for the current shell. โ
โ --show-completion Show completion for the current shell, to copy it or customize the installation. โ
โ --help Show this message and exit. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโ Commands โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ describe [Unimplemented feature]: Describe the source code in files -> codex describe --help โ
โ gen-commit Generate a commit message from Git diff between HEAD and index. โ
โ gen-readme [Unimplemented feature]: Generate Awesome README for your project in interactive way -> codex gen_readme --help โ
โ say-goodbye โ
โ say-hello โ
โ suggest-code [Unimplemented feature]: Refactor and Suggest code for source code in specified files -> codex suggest_code --help โ
โ suggest-comment [Unimplemented feature]: Suggest comment for source code in specified files -> codex suggest_comment --help โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
```
### Generation Result Example๐คฉ:ใ
`codex gen-commit`
```
๐ Implement Rust cat command with line numbering features
Changes(4):
๐ฉ Added command-line parsing @ src/lib.rs
Integrated clap library for command-line argument parsing with custom Args struct, supporting file inputs and line numbering options.
๐ฉ Implemented file reading functionality @ src/lib.rs
Developed file opening and reading capabilities, handling both standard input and file input streams.
๐ฉ Implemented line numbering features @ src/lib.rs
Added functionality to number lines and number nonblank lines as per command-line arguments.
๐ฉ Added main application logic @ src/main.rs
Created the main function to parse arguments and execute the application logic, with error handling and process exit on failure.
```
## Dive in! ๐
With these steps, you're all set to revolutionize your Git commits. May your coding be effortless and your repositories vibrant! ๐ซ