prioritization
Prioritization
Prioritization allows an agent to work smarter, not just harder. Instead of processing tasks First-In-First-Out (FIFO), a "Manager Agent" analyzes each request's urgency and business value. It assigns a priority score (P0, P1, P2) and reorders the queue effectively. This is vital for resource-constrained environments.
When to Use
- Queue Management: When the system receives more requests than it can handle instantly.
- SLA Enforcement: Ensuring premium users or critical alerts get processed first.
- Resource Allocation: Assigning the smartest (and most expensive) models to P0 tasks, and cheaper models to P2 tasks.
- Triage: Filtering out spam or low-value requests entirely.
Use Cases
- Ticket Triage: Analyzing support tickets and tagging them as "Critical" (Server Down) or "Low" (Typo).
- Inbox Management: Sorting emails by "Needs Reply", "Read Later", and "Spam".
- Agent Dispatch: A Project Manager agent assigning urgent bugs to Senior Dev Agents and documentation tasks to Junior Agents.
Implementation Pattern
def prioritization_loop(task_queue):
while True:
# Step 1: Ingest
new_request = ingest_request()
# Step 2: Assess Priority
# Manager agent determines importance
priority_score = manager_agent.evaluate(
prompt="Rate urgency 1-10",
input=new_request
)
# Step 3: Insert into Priority Queue
task_queue.push(new_request, priority=priority_score)
# Step 4: Process Highest Priority
next_task = task_queue.pop()
worker_agent.run(next_task)
Examples
Input: "I have 12 tasks to do today. Help me prioritize."
RICE scoring output:
| Task | Reach | Impact | Confidence | Effort | RICE Score |
|---|---|---|---|---|---|
| Fix login bug | 5000 | 3 | 90% | 1 | 13,500 |
| Add dark mode | 800 | 2 | 70% | 5 | 224 |
| Write docs | 200 | 1 | 80% | 2 | 80 |
Recommendation: Fix the login bug first — 60× higher RICE score than the next item.
Input: "We have 30 backlog items for this sprint. What goes in?"
Output: MoSCoW matrix with Must/Should/Could/Won't labels, sprint capacity check, and a risk-adjusted ordered list.
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
| All items score similarly | Inputs too vague | Ask for specific numbers (user count, revenue impact) before scoring |
| Stakeholders reject prioritization | No buy-in on criteria | Surface the scoring rubric before running; get alignment on weights |
| High-priority item blocked | Dependency not captured | Add a dependency pre-check step before finalizing the ordered list |
| Scores feel arbitrary | Missing confidence calibration | Require a confidence percentage for each estimate |
More from lauraflorentin/skills-marketplace
multi-agent-collaboration
A structural pattern where multiple specialized agents communicate and coordinate to solve a problem that is too complex for a single agent. Use when user asks to "build a multi-agent system", "agents working together", "agent collaboration", or mentions team of agents, distributed agents, or swarm.
21reflection
A recursive pattern where an agent evaluates and critiques its own output to iteratively improve quality and catch errors. Use when user asks to "add self-reflection", "agent introspection", "self-critique", or mentions self-evaluation, meta-cognition, or quality self-assessment.
18human-in-the-loop
A hybrid pattern where the system pauses execution to request human approval, input, or disambiguation before proceeding with critical actions. Use when user asks to "add human approval", "require human review", "human-in-the-loop", or mentions approval workflows, human oversight, or escalation.
16planning
A high-level cognitive pattern where an agent formulates a structured sequence of actions (a plan) before executing any of them, ensuring goal-directed behavior. Use when user asks to "add planning to my agent", "task planning", "agent planning", or mentions plan generation, plan execution, or step-by-step planning.
14parallelization
A concurrency pattern where multiple agent tasks are executed at the same time to speed up processing or gather diverse perspectives. Use when user asks to "run agents in parallel", "parallelize tasks", "concurrent execution", or mentions parallel processing, fan-out, or batch execution.
13routing
A control flow pattern where a central component classifies an input request and directs it to the most appropriate specialized agent or tool. Use when user asks to "route between agents", "agent routing", "task dispatch", or mentions classifier routing, intent detection, or agent selection.
12