Skip to content

Agent Repos

An agent repo is a GitHub repository that defines a specific agent class. It contains:

  1. A Dockerfile — the agent’s environment definition (tools, languages, SDKs)
  2. A manifest file (jackin.agent.toml) — metadata about the agent

When you run jackin load agent-smith, jackin’ looks for a GitHub repo named jackin-agent-smith and builds a container from it.

An agent repo is where you decide what kind of worker you are creating. In most teams, that means creating role-specific environments rather than one universal image. A frontend-oriented agent repo can install browser tooling and UI-focused plugins, while a backend-oriented repo can install server toolchains and database clients.

An agent class is best thought of as a reusable tool profile. It is where you decide things like:

  • which language toolchains are installed
  • which helper scripts and shell defaults are present
  • which Claude plugins are installed
  • whether this is a frontend, backend, infra, or review-focused environment

Agent repos follow the jackin-{class-name} naming pattern:

Class nameGitHub repoLoad command
agent-smithjackin-agent-smithjackin load agent-smith
neojackin-neojackin load neo
the-architectjackin-the-architectjackin load the-architect

Organizations can create agents under their namespace:

Class nameGitHub repoLoad command
chainargos/frontend-engineerchainargos/jackin-frontend-engineerjackin load chainargos/frontend-engineer
chainargos/backend-engineerchainargos/jackin-backend-engineerjackin load chainargos/backend-engineer
chainargos/security-reviewerchainargos/jackin-security-reviewerjackin load chainargos/security-reviewer

The namespace prefix maps directly to the GitHub organization or user.

When should you create another agent class?

Section titled “When should you create another agent class?”

Create another agent class when the work needs a meaningfully different environment.

Common reasons include:

  • frontend work needs Node, browser tooling, and UI-focused plugins
  • backend work needs Rust or Go toolchains, API clients, and database tools
  • infra work needs Terraform, cloud CLIs, and deployment helpers
  • security review work should have a smaller, audit-focused tool and plugin set
  • docs work may need writing or publishing tools without bringing in unrelated build systems

The goal is not to create lots of arbitrary images. The goal is to avoid one kitchen-sink image that exposes every tool and plugin to every task.

Agents can declare a display name in their manifest:

jackin.agent.toml
[identity]
name = "Agent Smith"

This name appears in jackin’s TUI and output. When omitted, the class selector name is used instead (e.g., agent-smith).

Agent repos are cloned to ~/.jackin/agents/ on first load. Subsequent loads use the cached checkout. jackin’ updates the repo on each load to keep the cache current.

jackin’ is intentionally strict about that cache:

  • if the cached repo’s origin no longer matches the configured source, load fails
  • if the cached repo contains local changes or extra files, load fails

This avoids silently building from a tampered or stale cache. If you intentionally edited the cached repo, remove it and let jackin’ clone again.

Every agent repo must satisfy a contract:

  1. Must contain jackin.agent.toml at the repository root
  2. Must contain a Dockerfile at the path declared in the manifest
  3. The Dockerfile path must be relative and must stay inside the repo checkout (no ../ escapes)
  4. The final Dockerfile stage must use the construct base:
    FROM projectjackin/construct:trixie
    An optional alias is allowed:
    FROM projectjackin/construct:trixie AS runtime
  5. Earlier stages may use any base image — multi-stage builds are fully supported
  6. No symlinks — the derived build-context generator currently rejects symlinks

A minimal agent repo for a Node.js development agent:

jackin.agent.toml
dockerfile = "Dockerfile"
[claude]
plugins = []
[identity]
name = "Frontend Engineer"
Dockerfile
FROM projectjackin/construct:trixie
# Install Node.js via mise
RUN mise install node@22 && mise use --global node@22
# Install common global packages
RUN npm install -g typescript tsx prettier eslint

That’s it. jackin’ handles the rest — Claude installation, entrypoint, user mapping, state persistence, and DinD setup.