Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Install or disable them dynamically with the `/plugin` command — enabling you
- [security-guidance](./plugins/security-guidance)

### Workflow Orchestration
- [weft](./plugins/weft)
- [angelos-symbo](./plugins/angelos-symbo)
- [ceo-quality-controller-agent](./plugins/ceo-quality-controller-agent)
- [claude-desktop-extension](./plugins/claude-desktop-extension)
Expand Down
13 changes: 13 additions & 0 deletions plugins/weft/.claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "dioptx-weft",
"owner": {
"name": "dioptx"
},
"plugins": [
{
"name": "weft",
"source": "./",
"description": "Deterministic workflow tracking with event-sourced logs for Claude Code"
}
]
}
5 changes: 5 additions & 0 deletions plugins/weft/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "weft",
"version": "0.3.0",
"description": "Deterministic workflow tracking with event-sourced logs for Claude Code"
}
21 changes: 21 additions & 0 deletions plugins/weft/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 dioptx

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
23 changes: 23 additions & 0 deletions plugins/weft/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# weft

**Deterministic workflow tracking for Claude Code — event-sourced state machine, smart skills, template management.**

→ [dioptx/weft](https://github.com/dioptx/weft) (MIT, Python stdlib only, 191 tests)

## Install

```
/plugin marketplace add dioptx/weft
/plugin install weft@dioptx-weft
```

## What it gives you

- 11 slash commands (`/wf-start`, `/wf-step`, `/wf-status`, `/wf-rebuild`, `/wf-compose`, `/wf-dashboard`, etc.)
- 4 hooks (`SessionStart`, `PreToolUse`, `PreCompact`, `Stop`)
- 2 bundled templates (`generic`, `feature-workflow`) + custom-template authoring via heredoc
- Event-sourced state under `.claude/weft/events.jsonl` — fully reconstructible after compaction or restart

## Demos

See [the upstream README](https://github.com/dioptx/weft#readme) for 5 reproducible asciinema GIFs covering pitch, walkthrough, compose, extend, and audit.
24 changes: 24 additions & 0 deletions plugins/weft/core/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"""Weft — deterministic workflow tracking for Claude Code."""

import os
from datetime import datetime, timezone
from pathlib import Path


def weft_dir(project_dir: str | None = None) -> Path:
"""Return the weft data directory for the given project."""
base = project_dir or os.environ.get("CLAUDE_PROJECT_DIR", ".")
return Path(base) / ".claude" / "weft"


def now_iso() -> str:
"""ISO 8601 UTC timestamp with millisecond precision."""
now = datetime.now(timezone.utc)
return now.strftime("%Y-%m-%dT%H:%M:%S.") + f"{now.microsecond // 1000:03d}Z"


def now_dt_and_iso() -> tuple[datetime, str]:
"""Return both the datetime and ISO string from a single now() call."""
now = datetime.now(timezone.utc)
iso = now.strftime("%Y-%m-%dT%H:%M:%S.") + f"{now.microsecond // 1000:03d}Z"
return now, iso
Loading