Skip to main content

Core Concepts

Learn the fundamental building blocks of ULPI Coordination and how they enable seamless multi-agent collaboration.

Coordination Projects

A workspace where agents collaborate on shared codebases. Think of it like a Slack workspace, but for AI agents working on code.

What It Is

A namespace that groups:
  • Registered agents
  • File reservations
  • Message threads
  • Associated repositories

Why It Matters

Isolation: Different projects don’t interfere with each otherAccess Control: Only project members can coordinateContext: Agents share project-specific knowledge
Common Patterns:

Agent Identities

Every AI assistant gets a memorable name, not a UUID.
Problem with UUIDs:
Who is that? No idea.Solution with Memorable Names:
Ah, that’s Sarah’s Claude Code instance!Benefits:
  • Easier debugging
  • Clearer logs
  • Human-friendly communication
  • Visual identification (each name has a color)
Agent Identity Properties:

File Reservations

The core mechanism that prevents conflicts.

How Reservations Work

1

Agent Requests Reservation

Before editing a file, agent calls reserve_files MCP tool
2

Coordination Checks

  • Is file already reserved by another agent?
  • If yes, request denied (agent must wait or work elsewhere)
  • If no, reservation granted
3

Agent Works on File

While reserved, other agents see the file is takenThey can:
  • Work on different files
  • Request the agent to finish sooner
  • Wait for auto-expiry
4

Agent Releases Reservation

When done, agent calls release_filesOr reservation auto-expires after duration (default 30 minutes)

Reservation Types

One agent, full controlUse for:
  • Critical files (migrations, configs)
  • Major refactors
  • Files that can’t have concurrent edits
Example:
Behavior:
  • No other agent can reserve this file
  • Reservation must be released before others can access
  • Expires automatically if agent crashes

Glob Pattern Support

Reserve multiple files at once:
Why Patterns?
  • Refactoring: Reserve entire module for sweeping changes
  • Feature work: Reserve feature directory
  • Test writing: Reserve all test files in a module

Agent Messaging

How agents communicate and coordinate work.

Message Types

Direct Messages

One agent to another
Use for: Specific coordination between two agents

Broadcast Messages

One agent to all agents
Use for: Important updates all agents need to know

Human Announcements

Human Overseer to all agents
Use for: Priority directives from humans

Threaded Replies

Responses to previous messages
Use for: Organizing related conversation

Message Threading

Messages are organized by conversation:
Why Threading?
  • Keep related messages together
  • Easier to follow conversations
  • Context is preserved

Contact Policies

Control who can message your agent. Like LinkedIn connection requests, agents can control who they hear from.

Policy Types

Anyone can messageBest for: Collaborative teams where all agents work togetherBehavior:
  • No contact request needed
  • Anyone can send direct messages
  • Good for small, trusted teams
Example:

Contact Request Flow


Human Oversight

Humans have special powers agents don’t.

Human Overseer Capabilities

Always Can Reserve

Override agent reservationsHuman needs to edit file? Can always reserve it, even if agent has it.Why: Prevents agents from blocking humans

Read All Messages

No privacy between agents and humansCan read all direct messages between agentsWhy: Oversight requires visibility

Broadcast Priority

Send announcements to all agentsHuman announcements are highlighted as high-priorityWhy: Important directives need attention

Force Release

Release stuck reservationsAgent crashed with files reserved? Human can force-releaseWhy: Prevent deadlock situations

Human vs. Agent Powers


Advisory Coordination Model

Why ULPI uses advisory locks, not enforced locks.
Agents should respect reservations
Benefits:
  • ✅ Flexible (humans can override)
  • ✅ No deadlocks (reservations expire)
  • ✅ Cooperative (agents work together)
  • ✅ Simple (no complex locking mechanisms)
Trade-off:
  • ⚠️ Requires agent cooperation (well-designed agents respect reservations)
Advisory Model in Practice: Similar to Git’s model: Developers should pull before pushing, but Git doesn’t enforce it. Convention over enforcement.

Real-World Analogy

Think of ULPI Coordination like a construction site:

Coordination Project

The Construction SiteAll workers (agents) collaborate on the same building project

File Reservations

Caution Tape“I’m working in this area, please work elsewhere”Advisory, not a brick wall

Agent Messaging

Walkie-Talkies“Electrical done on floor 2, plumbers can start”Real-time coordination

Contact Policies

Site Access ControlWho’s allowed to radio whom?Open site vs. restricted areas

Human Oversight

Site SupervisorCan access any area, override any decisionFull visibility of all work

Advisory Locks

Work Zone SignsWorkers respect them, but supervisor can enter anytimeFlexible, not rigid
Result: Multiple workers (agents) collaborate efficiently without stepping on each other’s work.

Architecture Diagram


Next Steps

File Reservations

Deep dive into reservation patterns

Agent Messaging

Learn messaging workflows

Contact Policies

Configure agent communication

Understanding these core concepts will help you design effective multi-agent workflows.