You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Claude Code integrate(Auto config/standard workflow/some fixs & opts) (#147)
* feat: rename illegal files
* feat: support auto install cc integretion
* optimize: parser before list
* optimize: add a cache time for parse.sh
* optimize: sop
* fix: wrong return schema in hooks
* fix: parse cache
* optimize: add more details for slash commands
* chore: rename schd -> schedule
* refactor: cc intergrete
* docs: update READEME
* feat: re-parse if files changed by cc
* fix: wrong key in reminder hook
- You can add more repo ASTs into the AST directory without restarting abcoder MCP server.
84
-
85
-
- Try to use [the recommended prompt](llm/prompt/analyzer.md) and combine planning/memory tools like [sequential-thinking](https://github.com/modelcontextprotocol/servers/tree/main/src/sequentialthinking) in your AI agent.
86
-
87
28
88
29
## Claude Code Integration
89
30
90
-
ABCoder provides deep integration with [Claude Code](https://claude.ai/code) through the AST-Driven Coding workflow, enabling hallucination-free code analysis and precise execution.
31
+
ABCoder provides deep integration with [Claude Code](https://claude.ai/code) through the AST-Driven Coding workflow, enabling hallucination-free code analysis and precise execution. Check [Claude Code Specification](docs/claude-code-spec.md) for more details.
91
32
92
33
### Setup
93
34
94
-
1. **Install ABCoder Claude Configuration**
95
-
96
-
Copy [`docs/.claude/`](docs/.claude/) to your home directory or project root:
35
+
Use the `init-spec` command to automatically configure Claude Code integration for your project:
97
36
98
-
```bash
99
-
cp -r docs/.claude ~/
100
-
```
37
+
```bash
38
+
# Install ABCoder
39
+
go install github.com/cloudwego/abcoder@latest
101
40
102
-
2. **Configure ABCoder MCP Server**
41
+
# Run init-spec in your project directory (optional: specify target path)
42
+
cd /path/to/your/project
43
+
abcoder init-spec
44
+
```
103
45
104
-
Configure in Claude Code's `~/.claude.json` (the hook uses `abcoder parse go/ts . -o ~/.asts/repo.json`for the default AST folder):
46
+
The `init-spec` command will:
47
+
1. Copy `.claude` directory to your project root
48
+
2. Configure MCP servers in `~/.claude.json`:
49
+
-`abcoder`: for code analysis using AST
50
+
-`sequential-thinking`: for complex problem decomposition
51
+
3. Replace all `{{CLAUDE_HOME_PATH}}` placeholders with actual project paths
105
52
106
-
```json
107
-
{
108
-
"mcpServers": {
109
-
"abcoder": {
110
-
"command": "abcoder",
111
-
"args": ["mcp", "~/.asts"]
112
-
}
113
-
}
114
-
}
115
-
```
53
+
### Start Coding with Claude Code
116
54
117
-
3. **Configure Hooks**
55
+
Once setup, you can start coding with Claude Code:
118
56
119
-
Claude Code will automatically read hooks from [`~/.claude/settings.json`](docs/.claude/settings.json) to enable:
120
-
- Auto-detect language and generate AST before calling `mcp__abcoder` tools
121
-
- Display ABCoder workflow SOP to Claude after `list_repos`
122
-
- Remind to call `get_ast_node` recursively
57
+
1. Start Claude Code in your project directory
58
+
2. Use slash common `/abcoder:schedule <problem_desc>` to address your feature/requirement/issue, and ABCoder will help you analyze the codebase and design a technical solution.
59
+
3. Once all questions are set, use slash common `/abcoder:task <task_name>` to create a coding task(specification)
60
+
4. Recheck the task using `/abcoder:recheck <task_name>` before real implementation
61
+
5. Begin coding! Claude Code will process the task step by step according to the specification, leveraging the power of AST-driven analysis.
/abcoder:task ─────────→ CODE_TASK (with Technical Specs, including accurate `get_ast_node` call args)
@@ -156,7 +95,7 @@ User Request
156
95
/abcoder:recheck ────→ Verify Solution (ABCoder Validation. After `/abcoder:task` Claude Code will tell you what the external dependencies CODE_TASK contains, use `/abcoder:recheck` to analyze external ast_node and technical detail with ABCoder)
- You can add more repo ASTs into the AST directory without restarting abcoder MCP server.
177
+
178
+
- Try to use [the recommended prompt](llm/prompt/analyzer.md) and combine planning/memory tools like [sequential-thinking](https://github.com/modelcontextprotocol/servers/tree/main/src/sequentialthinking) in your AI agent.
0 commit comments