PaperTool/.opencode/commands/replicate.md
hc 400caf2c00 feat(commands): add /replicate command
Entry point for paper replication workflow.
2026-03-31 17:45:07 +08:00

911 B

description agent
Start paper replication workflow paper-director

Start the paper replication workflow for the specified paper.

Input

Paper file: $ARGUMENTS

If no file specified, ask the user to provide the path to a paper (Markdown file or paste text directly).

Workflow

  1. Validate paper file exists (if path provided)
  2. Extract paper name from filename or ask user
  3. Create workspace directory: workspace/{paper_name}/
  4. Begin Phase 1: Paper Analysis
    • Dispatch @paper-image-extractor
    • Dispatch @paper-analyzer
  5. Present Human Checkpoint with analysis summary
  6. After approval, begin Phase 2: Code Generation (TDD)
  7. Begin Phase 3: Verification
  8. Present final replication report

Example Usage

/replicate workspace/attention_is_all_you_need.md

Or without arguments:

/replicate
> Please provide the path to your paper or paste the content directly.