Skip to content

Commit 855a29b

Browse files
committed
better
1 parent b4d1d31 commit 855a29b

2 files changed

Lines changed: 42 additions & 124 deletions

File tree

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: 41 additions & 123 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

@@ -37,27 +47,14 @@ pip install deepwork
3747
```
3848

3949
### Install in Your Project
40-
41-
#### Claude Code
42-
4350
```bash
4451
cd your-project/
4552
deepwork install --platform claude
46-
```
4753

48-
#### Gemini CLI
49-
50-
```bash
51-
cd your-project/
54+
# Or Gemini CLI, etc.
5255
deepwork install --platform gemini
5356
```
5457

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

6764
## Quick Start
6865

69-
70-
7166
### 1. Define a Job
7267
Jobs are multi-step workflows where each Step has clear input and output artifacts, making them easier to manage effectively.
7368

@@ -196,50 +191,10 @@ your-project/
196191

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

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

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

244199
## Project Structure
245200

@@ -265,74 +220,42 @@ deepwork/
265220

266221
## Features
267222

268-
### Job Definition
269-
270-
- **Declarative YAML**: Define workflows in simple, readable YAML
271-
- **JSON Schema Validation**: Automatic validation of job structure
272-
- **Dependency Management**: Explicit dependencies with cycle detection
273-
- **File & User Inputs**: Support for both user parameters and file outputs from previous steps
274-
275-
### Skill Generation
276-
277-
- **Template-Based**: Jinja2 templates for consistent skill generation
278-
- **Context-Aware**: Skills include all necessary context (instructions, inputs, dependencies)
279-
- **Multi-Platform**: Generate skills for different AI platforms
280-
281-
### Git Integration
282-
283-
- **Work Branches**: Automatic work branch creation and management
284-
- **Namespace Isolation**: Multiple concurrent job instances supported
285-
- **Version Control**: All outputs tracked in Git
286-
287-
### Policies
288-
289-
Policies automatically enforce team guidelines when files change:
290-
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**:
291243
```yaml
292-
# .deepwork.policy.yml
244+
# Enforce documentation updates when config changes
293245
- name: "Update docs on config changes"
294246
trigger: "app/config/**/*"
295-
safety: "docs/install_guide.md"
296-
instructions: |
297-
Configuration files changed. Please update docs/install_guide.md
298-
if installation instructions need to change.
299-
```
300-
301-
**How it works**:
302-
1. When you start a Claude Code session, the baseline git state is captured
303-
2. When the agent finishes, changed files are compared against policy triggers
304-
3. If policies fire (trigger matches, no safety match), Claude is prompted to address them
305-
4. Use `<promise>✓ Policy Name</promise>` to mark policies as handled
306-
307-
**Use cases**:
308-
- Keep documentation in sync with code changes
309-
- Require security review for auth code modifications
310-
- Enforce changelog updates for API changes
311-
312-
Define policies interactively:
313-
```
314-
/deepwork_policy.define
247+
instructions: "Configuration files changed. Please update docs/install_guide.md."
315248
```
316249
317-
## Roadmap
318-
319-
### Phase 2: Runtime Enhancements (Planned)
320-
321-
- Job execution tracking
322-
- Automatic skill invocation
323-
- Progress visualization
324-
- Error recovery
325-
326-
### Phase 3: Advanced Features (Planned)
327-
328-
- Job templates and marketplace
329-
- Parallel step execution
330-
- External tool integration
331-
- 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.
332255
333256
## Contributing
334257
335-
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.
336259
337260
## License
338261
@@ -350,8 +273,3 @@ For commercial use or questions about licensing, please contact legal@unsupervis
350273
## Credits
351274
352275
- Inspired by [GitHub's spec-kit](https://github.com/github/spec-kit)
353-
- Built for [Claude Code](https://claude.com/claude-code)
354-
355-
---
356-
357-
**Built with Claude Code** 🤖

0 commit comments

Comments
 (0)