Priority Manager Kit

Dynamic priority assignment across goals, tasks, and agents with preemption support.

Configuration

Priority Manager Dashboard

Queued

5

Processing

0

Completed

0

Process critical alertU:95 V:88P:-900ms
Generate weekly reportU:45 V:72P:-1200ms
Sync user preferencesU:70 V:65P:-600ms
Archive old recordsU:20 V:30P:-800ms
Validate data pipelineU:85 V:92P:-1000ms
Score = urgency × 0.6 + value × 0.4

Integration Code

import { createPriorityManager } from 'agent-tools-kit/autonomy'

const pm = createPriorityManager({
  algorithm: 'weighted-urgency',
  preemption: true,
})

pm.enqueue({
  task: { id: 't1', label: 'Process alert' },
  priority: 'critical',
  deadline: '5m',
  value: 0.95,
})

pm.on('reorder', (queue) => {
  console.log('Queue reordered:', queue.map(t => t.task.id))
})