Skip to content
Merged
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
9 changes: 0 additions & 9 deletions src/deepwork/cli/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ def sync_skills(project_path: Path) -> None:
# Sync each platform
generator = SkillGenerator()
stats = {"platforms": 0, "skills": 0, "hooks": 0}
synced_adapters: list[AgentAdapter] = []

for platform_name in platforms:
try:
Expand Down Expand Up @@ -184,7 +183,6 @@ def sync_skills(project_path: Path) -> None:
console.print(f" [red]✗[/red] Failed to sync skill permissions: {e}")

stats["platforms"] += 1
synced_adapters.append(adapter)

# Summary
console.print()
Expand All @@ -202,10 +200,3 @@ def sync_skills(project_path: Path) -> None:

console.print(table)
console.print()

# Show reload instructions for each synced platform
if synced_adapters and stats["skills"] > 0:
console.print("[bold]To use the new skills:[/bold]")
for adapter in synced_adapters:
console.print(f" [cyan]{adapter.display_name}:[/cyan] {adapter.reload_instructions}")
console.print()
15 changes: 0 additions & 15 deletions src/deepwork/core/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ class AgentAdapter(ABC):
skill_template: ClassVar[str] = "skill-job-step.md.jinja"
meta_skill_template: ClassVar[str] = "skill-job-meta.md.jinja"

# Instructions for reloading skills after sync (shown to users)
# Subclasses should override with platform-specific instructions.
reload_instructions: ClassVar[str] = "Restart your AI assistant session to use the new skills."

# Mapping from generic SkillLifecycleHook to platform-specific event names.
# Subclasses should override this to provide platform-specific mappings.
hook_name_mapping: ClassVar[dict[SkillLifecycleHook, str]] = {}
Expand Down Expand Up @@ -296,12 +292,6 @@ class ClaudeAdapter(AgentAdapter):
display_name = "Claude Code"
config_dir = ".claude"

# Claude Code doesn't have a reload command - must restart session
reload_instructions: ClassVar[str] = (
"Type 'exit' to leave your current session, then run "
"'claude --resume' (your history will be maintained)."
)

# Claude Code uses PascalCase event names
hook_name_mapping: ClassVar[dict[SkillLifecycleHook, str]] = {
SkillLifecycleHook.AFTER_AGENT: "Stop",
Expand Down Expand Up @@ -576,11 +566,6 @@ class GeminiAdapter(AgentAdapter):
skill_template = "skill-job-step.toml.jinja"
meta_skill_template = "skill-job-meta.toml.jinja"

# Gemini CLI can reload with /memory refresh
reload_instructions: ClassVar[str] = (
"Run '/memory refresh' to reload skills, or restart your Gemini CLI session."
)

# Gemini CLI does NOT support skill-level hooks
# Hooks are global/project-level in settings.json, not per-skill
hook_name_mapping: ClassVar[dict[SkillLifecycleHook, str]] = {}
Expand Down
9 changes: 2 additions & 7 deletions src/deepwork/standard_jobs/deepwork_jobs/steps/implement.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,7 @@ This will:
- Generate skills for each step
- Make the skills available in `.claude/skills/` (or appropriate platform directory)

### Step 6: Relay Reload Instructions

After running `deepwork sync`, look at the "To use the new skills" section in the output. **Relay these exact reload instructions to the user** so they know how to pick up the new skills. Don't just reference the sync output - tell them directly what they need to do (e.g., "Type 'exit' then run 'claude --resume'" for Claude Code, or "Run '/memory refresh'" for Gemini CLI).

### Step 7: Consider Rules for the New Job
### Step 6: Consider Rules for the New Job

After implementing the job, consider whether there are **rules** that would help enforce quality or consistency when working with this job's domain.

Expand Down Expand Up @@ -221,8 +217,7 @@ Before marking this step complete, ensure:
- [ ] Each instruction file is complete and actionable
- [ ] `deepwork sync` executed successfully
- [ ] Skills generated in platform directory
- [ ] User informed to follow reload instructions from `deepwork sync`
- [ ] Considered whether rules would benefit this job (Step 7)
- [ ] Considered whether rules would benefit this job (Step 6)
- [ ] If rules suggested, offered to run `/deepwork_rules.define`

## Quality Criteria
Expand Down
14 changes: 6 additions & 8 deletions src/deepwork/standard_jobs/deepwork_jobs/steps/learn.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,12 @@ If instruction files were modified:
changes: "Improved [step] instructions based on execution learnings: [brief description]"
```

### Step 7: Sync and Relay Instructions
### Step 7: Sync Skills

1. **Run deepwork sync** (if instructions were modified)
```bash
deepwork sync
```

2. **If skills were regenerated**, look at the "To use the new skills" section in the `deepwork sync` output and **relay these exact reload instructions to the user** (e.g., "Type 'exit' then run 'claude --resume'" for Claude Code)
**Run deepwork sync** (if instructions were modified)
```bash
deepwork sync
```

## File Reference Patterns

Expand Down Expand Up @@ -330,7 +328,7 @@ I found the following job executions:

**Summary**

Updated job instructions and created AGENTS.md with bespoke learnings. To get the updated skills, type 'exit' then run 'claude --resume'.
Updated job instructions and created AGENTS.md with bespoke learnings.
```

## Handling Edge Cases
Expand Down