Docs Your first agent

Import or build an agent from elsewhere

Bring an agent in from a Git repository, or build one from your coding agent over MCP.

You do not have to write an agent from scratch in the portal. If your team already keeps an agent as a plugin in a Git repository, you can import it: its main skill, its other skills with their files, the repositories it lists and their references. If you work in Claude Code or Cursor, you can build an agent's know-how from there instead, in conversation with your coding agent. Either way, you see every change before it lands.

In the portal Agents › Import from Git, or /entropix:build-agent in your coding agent Admin

Before you start

  • Both ways need an organisation admin. Members and viewers can open an import page and read it, but not start, apply or discard anything.
  • To import from Git, the portal needs an SSH key on Settings whose known hosts cover the repository's host. See Repositories.
  • To build from your coding agent, connect it and install the Entropix plugin first. See Connect Claude Code or Cursor.

Import an agent from Git

The repository must hold the agent the way a plugin does: one skills directory with one directory per skill, each holding a SKILL.md. One of those directories is the agent's main skill.

  1. Open Agents and choose Import from Git.
  2. Fill in Name and Description, under the same rules as a new agent (see Naming rules).
  3. Type the repository's SSH URL, for example git@git.example.com:team/agents.git (at most 512 characters).
  4. Type the Skills directory, such as plugins/my-agent/skills, and the Main skill directory: the name of one directory inside it.
  5. Optionally, type a Repository manifest path and a References directory path (below).
  6. Choose Read the repository.

The portal creates the agent at once and opens its import page. It reads the repository's default branch in the background; the page says Reading and the address at its default branch…, and refreshes itself until the read is done. Nothing is added to the agent yet.

What the portal reads

FromBecomesLimits
The main skill directory's SKILL.mdThe hand-written part of the agent's main skill: its text outside any AUTO-GENERATED blocks.At most 64 KiB.
Every other directory in the skills directory with a SKILL.mdA skill, with the directory's other files as its reference files.At most 64 skills. A skill's name is a lowercase slug of at most 64 characters, its text at most 256 KiB, and its files at most 64, each up to 256 KiB and 2 MiB together.
The repository manifest (optional)Repositories added to the agent. One per line: ssh-url | description | …; # starts a comment.The file is at most 256 KiB. At most 500 repositories; a description is cut to 500 bytes.
The references directory (optional)A <repository>.md file there becomes that repository's approved reference, approved by you; its skill is then drafted for your review.Each file at most 256 KiB; at most 1,024 entries.

Every path is at most 200 bytes, and one read holds at most 32 MiB of text. Anything the portal could not take, such as a skill over a limit or a name that is not a slug, is listed under Skipped with the reason.

Review and apply the import

When the read is done, the page shows Ready to import, with a summary such as 12 skills · 4 repositories · 1 skipped and the items in groups: Hand-written part, Skills, Repositories and References. Each item has a tick box, a badge (New, Changed or Gone from Git) and its text as written.

  1. Read the items. Untick any you do not want.
  2. Check any item marked This item contains hidden text or HTML — check it before applying. These come unticked, because a rendered view would hide part of them. Tick one only once you have read it as written.
  3. Choose Import all. Only ticked items are applied.

Under Last apply, the page then lists each item as applied, unchanged (it already matched) or not applied with the reason. If repositories were added, it links to Next: review each repository's drafted skill on the agent page. A repository added without a reference is scanned as usual. One with a reference from Git has that reference approved on import, by you, and only its skill is drafted. Drafts reach the agent only after you approve them. See Repositories.

To drop a read without applying it, choose Discard. The agent stays as it is.

Re-import after Git changes

Nothing syncs on its own. When the repository changes, choose Re-import on the import page or on the agent's Settings tab. The portal reads the default branch again and shows Changes in Git: only what differs from the agent, with a line-by-line diff for each changed item. Choose Apply selected to apply the ticked items.

  • Gone from Git: applying it removes the item from the agent.
  • A reference that changed in Git is not approved on re-import: it is offered as an update to the repository's approved reference, for you to approve on the agent's Connections tab.
  • Changed here too: an item someone also edited in the portal since the last import comes unticked. To replace that edit with Git's version, tick it and tick apply anyway.
  • A new read replaces a proposal that was not applied. While a read runs, the old proposal stays on the page but cannot be applied.

Fix a wrong source

Until something has been imported, the import page offers Correct the source: change the SSH URL or any path and choose Save and read again. Once anything is applied, the source is fixed; to start over from another source, delete the agent and import again.

Build an agent from your coding agent

The plugin's build-agent skill builds an agent's know-how with you, in your coding agent, from your repositories and what you tell it. It works on a new agent or an existing one.

  1. In Claude Code or Cursor, run /entropix:build-agent, or /entropix:build-agent and an agent's name to work on that agent. The New agent page and the setup's Know-how step show this command under From your editor.
  2. Answer its questions: what the agent covers and what it does not, which repositories belong to it, what newcomers get wrong, and what working agreements every change must follow.
  3. Before each write, it shows you exactly what it will write, or a before-and-after diff, and asks. Say yes to that one write, or ask for changes.
  4. At the end it gives you the agent's setup page at the Model step. Choose the model, tools and channel there. See Set up a new agent.

It uses these tools on the portal (all described in MCP tools reference):

ToolWhat it doesWho
create_agentCreates an empty agent from a name and a one-line description.Admin
put_main_skill_textReplaces the whole hand-written part of the main skill. At most 64 KiB; a text holding the markers of the sections Entropix keeps is refused.Admin
put_agent_skillCreates a skill, or replaces the one of that name, with its files, all at once. The name is at most 64 characters and cannot be one of the agent's repositories. At most 64 files, each up to 256 KiB and 2 MiB together.Admin
add_repository, submit_repository_draftAdds a repository, and submits a reference and skill drafted in your session for review on the portal.Admin
suggest_ruleSuggests a rule for the agent's maintainers to approve.Member Admin
Careful

The hand-written part and skills are live the moment they are written: every session that reads the agent gets them on its next refresh. A write with hidden text or HTML is not refused, only warned about, so read each warning. Repository drafts are different: they wait for a person to approve them on the portal.

With a member's or viewer's token, every write is refused with changing agents needs an organisation admin; reading and suggest_rule still work. The skill never sets the model, tools, channels or memory, and never approves anything. More on the plugin's skills is in The plugin's skills.

What you can and can't do

You can
  • Import an agent's main skill, skills with files, repositories and references from one Git repository.
  • Pick item by item what to apply, the first time and on every re-import.
  • Build or improve any agent's know-how from your coding agent, one approved write at a time.
You can't
  • Import or build unless you are an admin.
  • Keep an imported agent in sync with Git automatically; you re-import.
  • Change an import's source after something was applied.
  • Import or build tools, models, channels or memory; set those on the portal.

Troubleshooting

no SSH key covers … — add one on Settings › SSH keys, then import
Add an SSH key whose known hosts include the repository's host, then try again.
The last read failed.
The page shows Git's error. Fix the cause, such as access for the key or a wrong path, and choose Try again, or correct the source if nothing was imported yet.
already imported — delete the agent to start again
The source cannot change once something was applied. Delete the agent and import again.
this proposal was already replaced or applied
A newer read or another admin got there first. Reload the page and review what it shows now.
Nothing left to apply — the agent already matches this read.
Git and the agent agree. There is nothing to do.