claude-coder 1.6.2 → 1.7.0

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.
package/docs/README.en.md DELETED
@@ -1,103 +0,0 @@
1
- # Claude Coder
2
-
3
- [中文](../README.md) | **English**
4
-
5
- Inspired by [Anthropic: Effective harnesses for long-running agents](https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents), Claude Coder is an **autonomous coding harness** built on the Claude Agent SDK's `query()` interface. It provides project scanning, task decomposition, multi-session orchestration, automatic validation, and git rollback — driven by a one-liner requirement or a `requirements.md` file, compatible with all Anthropic API-compatible model providers.
6
-
7
- **Core idea**: A single AI session has limited context. For large requirements, agents tend to lose progress or produce broken code. This tool wraps the agent in a **reliable, retryable function** — the harness manages task state, validates every output, and auto-rolls back on failure. The agent just focuses on coding.
8
-
9
- ---
10
-
11
- ## Quick Start
12
-
13
- ```bash
14
- # Prerequisites: Install Claude Agent SDK
15
- npm install -g @anthropic-ai/claude-agent-sdk
16
-
17
- # Install
18
- npm install -g claude-coder
19
-
20
- # Configure model
21
- claude-coder setup
22
-
23
- # Start auto-coding
24
- cd your-project
25
- claude-coder run "Implement user registration and login"
26
- ```
27
-
28
- ## How It Works
29
-
30
- ```
31
- Requirement ─→ Project scan ─→ Task decomposition ─→ Coding loop
32
-
33
- ┌─────┴─────┐
34
- │ Session N │
35
- │ Claude SDK │
36
- │ 6-step flow│
37
- └─────┬─────┘
38
-
39
- Harness validate
40
-
41
- Pass → next task
42
- Fail → git rollback + retry
43
- ```
44
-
45
- Each session, the agent autonomously follows 6 steps: restore context → env check → pick task → code → test → commit.
46
-
47
- ## Commands
48
-
49
- | Command | Description |
50
- |---------|-------------|
51
- | `claude-coder setup` | Interactive model configuration |
52
- | `claude-coder run [requirement]` | Auto-coding loop |
53
- | `claude-coder run --max 1` | Single session (replaces old view mode) |
54
- | `claude-coder run --dry-run` | Preview mode |
55
- | `claude-coder init` | Initialize project environment |
56
- | `claude-coder add "instruction"` | Append tasks |
57
- | `claude-coder add -r [file]` | Append tasks from requirements file |
58
- | `claude-coder add "..." --model M` | Append tasks with specific model |
59
- | `claude-coder auth [url]` | Export Playwright login state |
60
- | `claude-coder validate` | Manually validate last session |
61
- | `claude-coder status` | View progress and costs |
62
- | `claude-coder config sync` | Sync config to ~/.claude/ |
63
- | `claude-coder config mcp <mode>` | Switch Playwright mode (persistent/isolated/extension) |
64
-
65
- **Options**: `--max N` limit sessions (default 50), `--pause N` pause every N sessions (default: no pause).
66
-
67
- ## Model Support
68
-
69
- | Provider | Description |
70
- |----------|-------------|
71
- | Claude (Official) | Default, Anthropic native API |
72
- | GLM (Zhipu/Z.AI) | GLM 4.7 / GLM 5 |
73
- | Aliyun Bailian | qwen3-coder-plus / glm-5 |
74
- | DeepSeek | deepseek-chat / reasoner |
75
- | Custom | Any Anthropic-compatible API |
76
-
77
- ## Project Structure
78
-
79
- ```
80
- your-project/
81
- .claude-coder/ # Runtime data (gitignored)
82
- .env # Model config
83
- project_profile.json # Project scan results
84
- tasks.json # Task list + status
85
- session_result.json # Last session result (flat)
86
- progress.json # Session history + costs
87
- tests.json # Verification records
88
- test.env # Test credentials (API keys, optional)
89
- playwright-auth.json # Login state snapshot (isolated mode, via auth command)
90
- .runtime/ # Temp files
91
- logs/ # Per-session logs (with tool call traces)
92
- browser-profile/ # Persistent browser profile (persistent mode, via auth command)
93
- requirements.md # Requirements (optional)
94
- ```
95
-
96
- ## Documentation
97
-
98
- - [Architecture](ARCHITECTURE.md) — Module responsibilities, prompt injection architecture, attention mechanism, hook data flow, future roadmap
99
- - [Playwright Credentials](PLAYWRIGHT_CREDENTIALS.md) — Test cookies and API key management
100
-
101
- ## License
102
-
103
- MIT