Let installed packages register agents and environments under short names

Open
#4,502 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@yuyz-cyber is already working on this.

Since Nov 29, 2026.

  • #4517 by @yuyz-cyber — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start by reading the agent and environment import path resolution and the existing harbor.plugins entry-point registry, then inspect the list commands named in the issue. The request is to add harbor.agents and harbor.environments entry-point discovery, with built-in names taking precedence. Done when installed packages can register and list agents and environments by short name, and the existing built-in behavior remains intact.

Written by the indexing model from the issue text.

Description

Custom agents and environments can only be selected by import path today (--agent-import-path my_pkg.agents:MyAgent, or import_path in a job config). Job plugins already have a short-name registry through the harbor.plugins entry-point group (--plugin name, harbor plugins list), but agents and environments have nothing equivalent.

For a package that ships several agents and environments, every command and job config has to spell out module paths, and those break whenever the package moves a class. It also pushes packages to wrap the harbor CLI to offer friendlier names, and a wrapper that installs its own harbor entry point then competes with Harbor's, depending on install order.

Request: two entry-point groups, for example harbor.agents and harbor.environments, consulted when a name is not built in and shown by harbor agents list and harbor environments list. Built-in names would win on a clash.

#2873 added this for environments and was closed without merging. I couldn't tell from the thread whether the approach was rejected or just not finished.

Dominant language
Python
Stars
5.6k
Forks
1.9k
Avg merge
1d 17h
Merged PRs (30d)
156

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from harbor-framework/harbor

All issues in harbor-framework/harbor

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.