Install

/plugin install pagent-ts@plugins

Run it inside Claude Code after adding the marketplace with /plugin marketplace add tuannvm/plugins.

Contents

Discovered from source

Commands 3

Pagent-TS Cancel

Cancel the active pipeline:

if [ -f .claude/pagent-pipeline.json ]; then
  echo "FOUND=true"
  STAGE=$(jq -r '.stage' .claude/pagent-pipeline.json)
  echo "STAGE=$STAGE"
else
  echo "FOUND=false"
fi

Handle the Result

If FOUND=false:

No active pagent-ts pipeline to cancel.

If FOUND=true:

  1. Remove the pipeline state:

    rm .claude/pagent-pipeline.json
    rm -rf .claude/prompts
    
  2. Report cancellation:

    ⚠️  Cancelling pagent-ts pipeline at stage: {STAGE}
    
    The pipeline will stop. Outputs created so far are preserved.
    
  3. Show what was created:

    Preserved outputs:
    - architecture.md (or not created yet)
    - test-plan.md (or not created yet)
    ...
    
  4. Offer restart:

    To resume, run: /pagent-run <prd-file>
    

Pagent-TS Run

Execute the setup script to initialize the pagent-ts pipeline:

npx tsx "${CLAUDE_PLUGIN_ROOT}/scripts/setup-pipeline.ts" $ARGUMENTS

The script will:

  1. Validate the PRD file
  2. Create .claude/pagent-pipeline.json with pipeline state
  3. Output the initial architect prompt

The stop hook automatically handles all subsequent stage transitions.

Pipeline Stages

The pipeline progresses through 5 stages sequentially:

  1. architect → Creates architecture.md (technical specs)
  2. qa → Creates test-plan.md (test strategy)
  3. security → Creates security-assessment.md (security review)
  4. implementer → Creates src/ (complete codebase)
  5. verifier → Creates verification-report.md and outputs <promise>DONE</promise>

Notes

  • Files are created in the same directory as the PRD
  • Use /pagent-status to check progress
  • Use /pagent-cancel to stop the pipeline

Pagent-TS Status

Check pipeline status:

npx tsx "${CLAUDE_PLUGIN_ROOT}/scripts/status.ts"

Display the Status

If ACTIVE=false:

No active pagent-ts pipeline.

Start one with: /pagent-run <prd-file>

If ACTIVE=true:

🤖 Pagent-TS Pipeline Status

Stage: {STAGE} ({COMPLETED}/{TOTAL} complete)
Started: {STARTED}
PRD: {PRD}

Outputs:
- architecture.md ({OUTPUT_architecture} lines)
- test-plan.md ({OUTPUT_test_plan} lines)
...

If STAGE=complete:

✅ Pipeline complete!

All {TOTAL} stages finished successfully.

Hooks 1

Sponsors

Details

Marketplace
tuannvm/plugins
Source
plugins/pagent-ts
Category
Community

More from tuannvm/plugins

All 4