commit-agent-cli 0.1.0 → 0.1.1

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 (2) hide show
  1. package/README.md +33 -85
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -1,101 +1,49 @@
1
1
  # commit-agent-cli
2
2
 
3
- AI-powered git commit CLI that analyzes your changes and generates conventional commit messages using Claude 4.5.
3
+ > AI-powered git commit message generator using Claude 4.5 and LangGraph
4
4
 
5
- ## Features
5
+ Generate intelligent, context-aware commit messages by simply typing `commit`.
6
6
 
7
- - **🤖 AI-Powered**: Uses Claude 4.5 (via Anthropic) with LangGraph for intelligent commit message generation.
8
- - **🕵️ Agentic Exploration**: The AI agent can autonomously explore your codebase and git history:
9
- - Read files to understand context
10
- - List directories to understand project structure
11
- - Check commit history to learn your project's conventions
12
- - View staged, unstaged, and untracked files
13
- - Examine detailed diffs for specific files
14
- - **👁️ Transparent**: See exactly what the agent is doing with detailed console logs showing every file read, directory listed, and git command executed.
15
- - **⚙️ Customizable**: First-time setup asks for your preferences:
16
- - Use conventional commit prefixes (feat:, fix:, chore:, etc.) or natural language
17
- - Choose between concise or descriptive commit messages
18
- - **✨ Interactive**: Beautiful CLI interface built with `@clack/prompts`.
19
- - **🔒 Secure**: API keys and preferences are stored locally in `~/.commit-cli.json`.
20
-
21
- ## Installation
7
+ ## Quick Start
22
8
 
23
9
  ```bash
10
+ # Install globally
24
11
  npm install -g commit-agent-cli
25
- ```
26
12
 
27
- ## Usage
28
-
29
- 1. Stage your changes:
30
- ```bash
31
- git add .
32
- ```
33
-
34
- 2. Run the tool:
35
- ```bash
36
- commit
37
- ```
38
-
39
- 3. **First Time Setup**:
40
- - You'll be prompted to enter your Anthropic API Key (`sk-...`)
41
- - Choose whether to use conventional commit prefixes
42
- - Select your preferred commit message style (concise vs descriptive)
43
- - These preferences are saved and can be changed by editing `~/.commit-cli.json`
44
-
45
- 4. **Watch the Agent Work**:
46
- The CLI will show you exactly what the agent is doing:
47
- ```
48
- 📜 Agent is checking last 10 commits
49
- 📋 Agent is listing staged files
50
- 🔍 Agent is reading: src/index.ts
51
- 📂 Agent is listing directory: src
52
- ```
53
-
54
- 5. **Review and Commit**:
55
- - Review the generated commit message
56
- - Choose to commit, regenerate, or cancel
57
- - Optionally push changes immediately
58
-
59
- ## Agent Capabilities
60
-
61
- The AI agent has access to these tools to understand your codebase:
62
-
63
- - **read_file**: Read any file to understand code context
64
- - **list_dir**: Explore directory structure
65
- - **git_commit_history**: Learn from your previous commits
66
- - **git_staged_files**: See what's being committed
67
- - **git_unstaged_files**: View unstaged changes
68
- - **git_untracked_files**: List untracked files
69
- - **git_show_file_diff**: Examine detailed diffs
70
-
71
- The agent will intelligently use these tools to generate contextually appropriate commit messages.
72
-
73
- ## Configuration
74
-
75
- Your configuration is stored in `~/.commit-cli.json`:
76
-
77
- ```json
78
- {
79
- "ANTHROPIC_API_KEY": "sk-ant-...",
80
- "preferences": {
81
- "useConventionalCommits": true,
82
- "commitMessageStyle": "concise"
83
- }
84
- }
13
+ # Stage your changes
14
+ git add .
15
+
16
+ # Generate commit message
17
+ commit
85
18
  ```
86
19
 
87
- You can manually edit this file to change your preferences.
20
+ ## First-Time Setup
88
21
 
89
- ## Development
22
+ You'll be prompted to:
23
+ 1. Enter your [Anthropic API Key](https://console.anthropic.com)
24
+ 2. Choose commit message preferences (conventional commits, verbosity)
90
25
 
91
- ```bash
92
- git clone https://github.com/sunggyeol/commit-agent-cli.git
93
- cd commit-agent-cli
94
- npm install
95
- npm run build
96
- npm start
97
- ```
26
+ ## Features
27
+
28
+ - 🤖 AI-powered with Claude 4.5
29
+ - 🕵️ Autonomous codebase exploration
30
+ - 👁️ Transparent agent actions
31
+ - ⚙️ Customizable commit styles
32
+ - 🔒 Secure local storage
33
+
34
+ ## Documentation
35
+
36
+ 📚 **[View Full Documentation](./docs/README.md)** - Detailed guides, configuration, and examples
37
+
38
+ ## Requirements
39
+
40
+ - Node.js 18+
41
+ - Anthropic API key
98
42
 
99
43
  ## License
100
44
 
101
45
  MIT
46
+
47
+ ---
48
+
49
+ **Links:** [GitHub](https://github.com/sunggyeol/commit-agent-cli) • [Issues](https://github.com/sunggyeol/commit-agent-cli/issues) • [Docs](./docs/README.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commit-agent-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "AI-powered git commit CLI using LangGraph and Claude 4.5",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "dist"
10
10
  ],
11
11
  "bin": {
12
- "commit": "./dist/index.js"
12
+ "commit": "dist/index.js"
13
13
  },
14
14
  "scripts": {
15
15
  "build": "tsup src/index.ts --format esm --dts --clean",
@@ -40,6 +40,7 @@
40
40
  "@langchain/core": "^0.3.0",
41
41
  "@langchain/langgraph": "^0.2.0",
42
42
  "ai": "^3.3.33",
43
+ "commit-agent-cli": "^0.1.0",
43
44
  "dotenv": "^16.4.5",
44
45
  "execa": "^9.3.1",
45
46
  "zod": "^3.23.8"