Skip to content

Commit 5ffbf90

Browse files
nhortonclaude
andauthored
Update README with PyPI install instructions (#22)
* Update README with PyPI install instructions Replace editable install instructions with proper PyPI package installation using pipx (recommended), uv tool install, and pip install. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * better --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2fbbcf6 commit 5ffbf90

File tree

2 files changed

+48
-127
lines changed

2 files changed

+48
-127
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ uv run pytest tests/unit/core/test_parser.py::test_parse_valid_job -v
227227

228228
```bash
229229
# Generate coverage report
230-
uv run pytest --cov=deepwork --cov-report=html
230+
uv run pytest tests/ --cov=deepwork --cov-report=html
231231

232232
# View coverage in browser
233233
open htmlcov/index.html # macOS

README.md

Lines changed: 47 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,17 @@ DeepWork is a tool for defining and executing multi-step workflows with AI codin
1515
| OpenCode | Planned | Markdown | No |
1616
| GitHub Copilot CLI | Planned | Markdown | No (tool permissions only) |
1717

18-
## Installation
18+
## Easy Installation
19+
In your Agent CLI (ex. `claude`), ask:
20+
21+
```
22+
Please fully install https://pypi.org/project/deepwork/ and make sure you see the new commands.
23+
```
24+
25+
## Installation Details
26+
27+
28+
**Agents**: - be sure to perform all the steps, not just the package install.
1929

2030
### Prerequisites
2131

@@ -26,35 +36,25 @@ DeepWork is a tool for defining and executing multi-step workflows with AI codin
2636
### Install DeepWork
2737

2838
```bash
29-
# Using uv (recommended)
30-
uv pip install -e .
39+
# Using pipx (recommended - isolated environment)
40+
pipx install deepwork
41+
42+
# Or using uv
43+
uv tool install deepwork
3144

3245
# Or using pip
33-
pip install -e .
46+
pip install deepwork
3447
```
3548

3649
### Install in Your Project
37-
38-
#### Claude Code
39-
4050
```bash
4151
cd your-project/
4252
deepwork install --platform claude
43-
```
44-
45-
#### Gemini CLI
4653

47-
```bash
48-
cd your-project/
54+
# Or Gemini CLI, etc.
4955
deepwork install --platform gemini
5056
```
5157

52-
**Gemini CLI Notes**:
53-
- Commands are generated as TOML files in `.gemini/commands/`
54-
- Commands use colon (`:`) namespacing: `/job_name:step_id`
55-
- Gemini CLI does not support command-level hooks; quality validation is embedded in prompts
56-
- See [Gemini CLI documentation](https://geminicli.com/docs/) for more details
57-
5858
This will:
5959
- Create `.deepwork/` directory structure
6060
- Generate core DeepWork jobs
@@ -63,8 +63,6 @@ This will:
6363

6464
## Quick Start
6565

66-
67-
6866
### 1. Define a Job
6967
Jobs are multi-step workflows where each Step has clear input and output artifacts, making them easier to manage effectively.
7068

@@ -193,50 +191,10 @@ your-project/
193191

194192
**Note**: Work outputs are created on dedicated Git branches (e.g., `deepwork/job_name-instance-date`), not in a separate directory.
195193

196-
## Development
197-
198-
### Setup Development Environment
199-
200-
```bash
201-
# Using Nix (recommended)
202-
nix-shell
203-
204-
# Or manually
205-
uv sync
206-
```
207-
208-
### Run Tests
209-
210-
```bash
211-
# All tests
212-
uv run pytest tests/ -v
213-
214-
# Unit tests only
215-
uv run pytest tests/unit/ -v
216-
217-
# Integration tests only
218-
uv run pytest tests/integration/ -v
219-
220-
# With coverage
221-
uv run pytest tests/ --cov=deepwork --cov-report=html
222-
```
223-
224-
### Code Quality
225-
226-
```bash
227-
# Linting
228-
ruff check src/
229-
230-
# Type checking
231-
mypy src/
232-
233-
# Format code
234-
ruff format src/
235-
```
236-
237194
## Documentation
238195

239196
- **[Architecture](doc/architecture.md)**: Complete design specification
197+
- **[Contributing](CONTRIBUTING.md)**: Setup development environment and contribute
240198

241199
## Project Structure
242200

@@ -262,74 +220,42 @@ deepwork/
262220

263221
## Features
264222

265-
### Job Definition
266-
267-
- **Declarative YAML**: Define workflows in simple, readable YAML
268-
- **JSON Schema Validation**: Automatic validation of job structure
269-
- **Dependency Management**: Explicit dependencies with cycle detection
270-
- **File & User Inputs**: Support for both user parameters and file outputs from previous steps
271-
272-
### Skill Generation
273-
274-
- **Template-Based**: Jinja2 templates for consistent skill generation
275-
- **Context-Aware**: Skills include all necessary context (instructions, inputs, dependencies)
276-
- **Multi-Platform**: Generate skills for different AI platforms
277-
278-
### Git Integration
279-
280-
- **Work Branches**: Automatic work branch creation and management
281-
- **Namespace Isolation**: Multiple concurrent job instances supported
282-
- **Version Control**: All outputs tracked in Git
283-
284-
### Policies
285-
286-
Policies automatically enforce team guidelines when files change:
287-
223+
### 📋 Job Definition
224+
Define structured, multi-step workflows where each step has clear requirements and produces specific results.
225+
- **Dependency Management**: Explicitly link steps with automatic sequence handling and cycle detection.
226+
- **Artifact Passing**: Seamlessly use file outputs from one step as inputs for future steps.
227+
- **Dynamic Inputs**: Support for both fixed file references and interactive user parameters.
228+
- **Human-Readable YAML**: Simple, declarative job definitions that are easy to version and maintain.
229+
230+
### 🌿 Git-Native Workflow
231+
Maintain a clean repository with automatic branch management and isolation.
232+
- **Automatic Branching**: Every job execution happens on a dedicated work branch (e.g., `deepwork/my-job-2024`).
233+
- **Namespace Isolation**: Run multiple concurrent jobs or instances without versioning conflicts.
234+
- **Full Traceability**: All AI-generated changes, logs, and artifacts are tracked natively in your Git history.
235+
236+
### 🛡️ Automated Policies
237+
Enforce project standards and best practices without manual oversight. Policies monitor file changes and automatically prompt your AI assistant to follow specific guidelines when relevant code is modified.
238+
- **Automatic Triggers**: Detect when specific files or directories are changed to fire relevant policies.
239+
- **Contextual Guidance**: Instructions are injected directly into the AI's workflow at the right moment.
240+
- **Common Use Cases**: Keep documentation in sync, enforce security reviews, or automate changelog updates.
241+
242+
**Example Policy**:
288243
```yaml
289-
# .deepwork.policy.yml
244+
# Enforce documentation updates when config changes
290245
- name: "Update docs on config changes"
291246
trigger: "app/config/**/*"
292-
safety: "docs/install_guide.md"
293-
instructions: |
294-
Configuration files changed. Please update docs/install_guide.md
295-
if installation instructions need to change.
296-
```
297-
298-
**How it works**:
299-
1. When you start a Claude Code session, the baseline git state is captured
300-
2. When the agent finishes, changed files are compared against policy triggers
301-
3. If policies fire (trigger matches, no safety match), Claude is prompted to address them
302-
4. Use `<promise>✓ Policy Name</promise>` to mark policies as handled
303-
304-
**Use cases**:
305-
- Keep documentation in sync with code changes
306-
- Require security review for auth code modifications
307-
- Enforce changelog updates for API changes
308-
309-
Define policies interactively:
310-
```
311-
/deepwork_policy.define
247+
instructions: "Configuration files changed. Please update docs/install_guide.md."
312248
```
313249
314-
## Roadmap
315-
316-
### Phase 2: Runtime Enhancements (Planned)
317-
318-
- Job execution tracking
319-
- Automatic skill invocation
320-
- Progress visualization
321-
- Error recovery
322-
323-
### Phase 3: Advanced Features (Planned)
324-
325-
- Job templates and marketplace
326-
- Parallel step execution
327-
- External tool integration
328-
- Web UI for job management
250+
### 🚀 Multi-Platform Support
251+
Generate native commands and skills tailored for your AI coding assistant.
252+
- **Native Integration**: Works directly with the skill/command formats of supported agents.
253+
- **Context-Aware**: Skills include all necessary context (instructions, inputs, and dependencies) for the AI.
254+
- **Expanding Ecosystem**: Currently supports **Claude Code** and **Gemini CLI**, with more platforms planned.
329255
330256
## Contributing
331257
332-
DeepWork is currently in MVP phase. Contributions welcome!
258+
DeepWork is currently in MVP phase. Contributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for the full development guide.
333259
334260
## License
335261
@@ -347,8 +273,3 @@ For commercial use or questions about licensing, please contact legal@unsupervis
347273
## Credits
348274
349275
- Inspired by [GitHub's spec-kit](https://github.com/github/spec-kit)
350-
- Built for [Claude Code](https://claude.com/claude-code)
351-
352-
---
353-
354-
**Built with Claude Code** 🤖

0 commit comments

Comments
 (0)