Skip to content
Testing
Command

/pre-task

Execute pre-task preparations and context loading.

From plugin
agentic-qe
534149 skills169 agents149 commands1 MCP
> /plugin marketplace add proffesor-for-testing/agentic-qe
> /plugin install agentic-qe-fleet@agentic-qe

Command definition

pre-task.md

hook pre-task

Execute pre-task preparations and context loading.

Usage

npx ruflo@3.76.0 hook pre-task [options]

Options

  • `--description, -d <text>` - Task description for context
  • `--auto-spawn-agents` - Automatically spawn required agents (default: true)
  • `--load-memory` - Load relevant memory from previous sessions
  • `--optimize-topology` - Select optimal swarm topology
  • `--estimate-complexity` - Analyze task complexity

Examples

Basic pre-task hook

npx ruflo@3.76.0 hook pre-task --description "Implement user authentication"

With memory loading

npx ruflo@3.76.0 hook pre-task -d "Continue API development" --load-memory

Manual agent control

npx ruflo@3.76.0 hook pre-task -d "Debug issue #123" --auto-spawn-agents false

Full optimization

npx ruflo@3.76.0 hook pre-task -d "Refactor codebase" --optimize-topology --estimate-complexity

Features

Auto Agent Assignment

  • Analyzes task requirements
  • Determines needed agent types
  • Spawns agents automatically
  • Configures agent parameters

Memory Loading

  • Retrieves relevant past decisions
  • Loads previous task contexts
  • Restores agent configurations
  • Maintains continuity

Topology Optimization

  • Analyzes task structure
  • Selects best swarm topology
  • Configures communication patterns
  • Optimizes for performance

Complexity Estimation

  • Evaluates task difficulty
  • Estimates time requirements
  • Suggests agent count
  • Identifies dependencies

Integration

This hook is automatically called by Claude Code when:

  • Starting a new task
  • Resuming work after a break
  • Switching between projects
  • Beginning complex operations

Manual usage in agents:

# In agent coordination
npx ruflo@3.76.0 hook pre-task --description "Your task here"

Output

Returns JSON with:

{
  "continue": true,
  "topology": "hierarchical",
  "agentsSpawned": 5,
  "complexity": "medium",
  "estimatedMinutes": 30,
  "memoryLoaded": true
}

See Also

  • `hook post-task` - Post-task cleanup
  • `agent spawn` - Manual agent creation
  • `memory usage` - Memory management
  • `swarm init` - Swarm initialization
Read more
@proffesor-for-testing
Ships withagentic-qe

Quality engineering tools for your coding agent. Generate tests, investigate coverage gaps, analyze flaky behavior and coordinate quality checks across the software lifecycle. Keep the findings close to the code and use them to make a better quality decision.

534119 skills169 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
534
Star history of proffesor-for-testing/agentic-qe on GitHub, a chart by star-history.com

Other commands on agentic-qe.

More commands from other plugins.

bkit

bkit

Command

bkit plugin help - Show all available bkit functions. Workaround for skills autocomplete issue. Use "/bkit" or just type "bkit…

bkit4d605
@popup-studio-ai@popup-studio-aiInstall Command
review

review

Command

Open the Canary session viewer and triage a recorded session.

canary4w500
@0xnyn@0xnynInstall Command