Packages
abt packages are reusable bundles of tools (and optionally skills, handlers, or context) that any abt project can install with a single abt deps call. They are the recommended way to share agent capabilities across projects without copy-pasting tool code.
abt-git-tools, abt-gh-tools, abt-atlassian-tools, abt-slack-tools, abt-databricks-tools, and abt-datadog-tools are first-party packages. abt-git-tools ships local git clone/search/history/write tools (
git__*). abt-gh-tools ships GitHub CLI tools (gh__*). abt-atlassian-tools ships Jira/Confluence search tools (SDK). abt-slack-tools shipsslack_search,slack_thread_view,slack_channel_historyandslack_post_message(write, gated). abt-databricks-tools shipsdatabricks_*tools for jobs and runs (with failure reasons), pipeline events, clusters, SQL warehouses, query history, workspace notebooks and permissions, backed bydatabricks-sdk, plusdatabricks_genie_askfor natural-language questions to Genie One through the Genie MCP server on Unity AI Gateway;databricks_query_executeruns any SQL the credential allows, so it is a gated write tool (components.statements.allow_writes). abt-datadog-tools ships six dedicated tools (datadog_logs_search,datadog_logs_aggregate,datadog_metrics_query,datadog_monitors_search,datadog_traces_search,datadog_incidents_list) plus genericdatadog_read/datadog_writeover thepup2.x CLI for 80+ other Datadog API domains, allowlisted frompup's own schema. See git-tools, gh-tools, atlassian-tools, slack-tools, databricks-tools, and datadog-tools.
Quick start
1. Declare packages in abt_packages.yml
Create (or edit) abt_packages.yml at the root of your abt project:
# abt_packages.yml
packages:
# Install from a full git repo
- git: https://github.com/my-org/my-abt.git
revision: main
# Install from a sub-path of a monorepo (e.g. abt itself)
- git: https://github.com/getyourguide/abt-core.git
revision: main
subdirectory: packages/abt-git-tools
# Link from a local path (ideal for development, creates a symlink)
- local: ../../packages/my-local-tools
2. Install
abt deps
# or, to force-reinstall from scratch:
abt deps --clean
Installed packages land in .abt_packages/ at your project root. abt init lists it in the generated .gitignore; in a project created without abt init, add .abt_packages/ yourself.
abt deps only places the package files. It does not install the Python libraries a package imports: the Atlassian, Slack and Databricks packages need abt-core[confluence,jira], abt-core[slack] and abt-core[databricks] respectively (or abt-core[all]). Install them the same way you installed abt, for example uv pip install "abt-core[slack]". A package tool (in a tools/ without __init__.py) can declare its libraries with @isolated instead, so they are not installed alongside abt.
Package tools also need a credentials block named after the package's namespace in profiles.yaml (git:, gh:, atlassian:, slack:, databricks:; see each tool page). A missing namespace fails abt run/abt dispatch with E_PROFILE_MISSING_NAMESPACE. The block only has to exist: a package that needs no secret, such as git on public repositories, is satisfied by an empty mapping (git: {}). A bare git: with no value counts as missing.
No config.packages block is required. After abt deps, installed packages are enabled with read-only defaults. Add config.packages in abt.yaml only when you need overrides (writes, disabled components, limits).
3. Use the tools
Tools from installed packages are discovered automatically. Reference them with provider__tool or provider__* specs (same __ grammar as MCP — see Tool spec syntax below):
# agents/my-agent.md (frontmatter)
tools:
- git__git_clone # shorthand — single tool (provider__tool)
- git__git_log # shorthand — single tool
- gh__gh_run_view # shorthand — abt-gh-tools
- databricks__databricks_run_get # shorthand — single tool
- my_custom_tool # local project tool (bare name — tools/ only)
Inspect the installed catalog:
abt docs package git --project-root .
abt docs package databricks --project-root .
Tool spec syntax
Installed packages publish an abt_package.yaml manifest with a shorthand (for example git, databricks). In agent frontmatter, list tools using the same two-segment grammar as MCP:
{shorthand}__{tool_name}
{shorthand}__*
| Spec | Resolves to | Write gating |
|---|---|---|
databricks__databricks_run_get |
databricks_run_get tool |
N/A (read tool) |
databricks__* |
All enabled tools in abt-databricks-tools | Write tools included only when effective allow_writes is true for their component |
databricks__databricks_run_cancel |
databricks_run_cancel tool |
Requires effective allow_writes for the tool's component |
databricks__databricks_permissions_get |
databricks_permissions_get tool |
N/A (read tool) |
atlassian__confluence_search |
Confluence search | N/A |
atlassian__jira_view |
Direct Jira issue lookup | N/A |
gh__gh_pr_merge |
gh_pr_merge tool |
Requires effective allow_writes for pull_requests (abt-gh-tools) |
git__git_push |
git_push tool |
Requires effective allow_writes for write (abt-git-tools) |
Invalid specs (rejected by abt compile):
- Bare package tool names —
clone,databricks_run_get,push, etc. (usegit__git_clone,databricks__databricks_run_get, …) - Unknown tools —
git__read,git__investigation,databricks__jobs,gh__pull_requests,gh__pr_list, etc. (no such manifest tool) - Three-part specs —
databricks__jobs__write,gh__gh_pr__merge, etc. - Explicit write tools without permission —
git__git_pushwhenallow_writesis false (wildcards silently omit blocked writes instead)
abt compile fails on each of them once the package is installed (run abt deps first). abt config show --agent NAME lists what actually resolves (package_tools.resolved, package_tools.blocked_writes). Run abt compile in CI.
List each tool explicitly, or use provider__* for all enabled tools in a package. Use abt docs package <shorthand> to see manifest tool names.
Resolution distinguishes MCP sources from package shorthands by looking up the segment before __ in installed package manifests. Unknown shorthands fall through to MCP resolution.
Package wildcards (git__*, databricks__*) follow the same write-gating rules as individual tools. MCP wildcards (github__*) are separate — see MCP tool spec syntax.
Package declaration reference
Each entry in packages: is one of three kinds:
git: — install from a remote repository
- git: https://github.com/org/repo.git
revision: main # branch, tag, or commit SHA
subdirectory: path/to/pkg # optional: sub-path within the repo
| Key | Required | Description |
|---|---|---|
git |
yes | https://, ssh:// or git:// URL, or an scp-style user@host:path. http://, file://, local paths and anything starting with - are rejected; use local: for a directory on disk |
revision / rev |
no | Branch, tag, or commit SHA (default: main). Must not start with - or contain whitespace |
subdirectory / subdir |
no | Sub-path within the repo — enables monorepo packages |
Revision behaviour with subdirectory: branch names and tags use a fast shallow clone. Commit SHAs trigger a full clone because most git servers refuse to serve arbitrary SHAs via shallow fetch — expect slower installs when pinning to a SHA. For speed, prefer pinning to a tag.
revision: main is resolved and locked, not re-resolved every run — see abt_packages.lock.yml below.
Subdirectory safety: absolute paths and .. components are rejected at parse time.
Private GitHub packages: the token from ABT_GIT_TOKEN / GITHUB_TOKEN / GH_TOKEN / gh auth token is sent only to github.com, and dropped if the download redirects to another host. A gitlab.com package never sees it; private GitLab repos install through your git credentials via the clone fallback.
local: — symlink a directory on disk
- local: ../../packages/my-tools
Creates a symlink from .abt_packages/<name> → the resolved path. Ideal for packages that live in the same monorepo as your abt project. Changes to the source directory are reflected immediately without re-running abt deps.
Package structure
A package is just a directory that abt can discover tools from. The minimal structure:
my-package/
tools/
__init__.py # re-export your @tool functions
my_tool.py # define tools here
abt_package.yaml # optional: metadata (name, description)
README.md # optional: documentation
abt_package.yaml
Optional metadata file at the package root. First-party packages use an extended schema so abt can resolve shorthand specs, gate writes, and print catalogs:
name: abt-databricks-tools # package id — key for config.packages.<id>
shorthand: databricks # agent tool specs: databricks__databricks_run_get, databricks__databricks_run_cancel
description: Short description of what this package provides.
requires-abt-core: ">=0.0.1,<1.0.0" # optional: fail fast on abt version skew
defaults:
allow_writes: false # safe default for incident / read-only projects
components:
jobs:
description: Job and run inspection
access: read # component default access (organizational + write gating)
tools:
- name: databricks_run_get # manifest tool name (used in databricks__databricks_run_get)
access: read
sdk: jobs.get_run # optional — shown in abt docs package
admin:
description: Permissions and IAM inspection
access: read
tools:
- name: databricks_permissions_get
access: read
| Field | Required | Description |
|---|---|---|
name |
recommended | Package id; directory name under .abt_packages/ and config.packages.<name> key |
shorthand |
recommended | Prefix for agent tool specs (databricks__databricks_run_get). Must be unique among installed packages |
description |
optional | Shown in abt docs package output |
requires-abt-core |
optional | PEP 440 specifier (for example >=0.0.1,<1.0.0) — abt deps and abt compile fail fast with a clear error when the installed abt doesn't satisfy it, instead of a confusing runtime failure |
defaults.allow_writes |
optional | Documented manifest default for package authors (project config always defaults to false) |
components |
optional | Organize tools and gate writes via config.packages.*.components.<name>.allow_writes |
components.*.tools |
optional | name (manifest tool name), access (read / write), optional sdk |
Packages without shorthand and components cannot be referenced from agent frontmatter until a manifest is added.
requires-abt-core: pinning package/core compatibility
A package built against abt 0.11 can silently break under abt 0.10 (or vice versa) — the package's tools may reference APIs that moved or changed shape. Declare a range in abt_package.yaml:
requires-abt-core: ">=0.0.1,<1.0.0"
This mirrors dbt's require-dbt-version: checked at abt deps install time, where a version mismatch is a loud IncompatibleAbtCoreVersion error, and reported per-agent by abt doctor as package_abt_core_incompatible. abt compile checks it too, so run abt deps after upgrading abt. Omitting the field skips the check entirely (opt-in, like dbt's).
The name field controls the directory name under .abt_packages/ when set. If omitted, the directory name is derived from the git URL or local path. The name must be a plain directory name: . and .. are rejected and abt deps fails naming the package, since they would point at .abt_packages/ itself or the project root.
tools/__init__.py (optional)
If tools/__init__.py exists, abt imports the package and registers only the BaseTool objects exported from it — so every tool must be imported there:
from .my_tool import my_tool, another_tool
__all__ = ["my_tool", "another_tool"]
How discovery works: with an
__init__.py, the package module is loaded and itsBaseToolattributes are registered (a tool defined inmy_tool.pybut not imported in__init__.pyis invisible). Without an__init__.py, abt scans everytools/*.pyfile whose name does not start with_and registers eachBaseToolinstance found.
Defining tools
Use the @tool decorator from abt:
# tools/my_tool.py
from abt import tool
@tool
def my_tool(arg: str) -> str:
"""Short description the model uses to decide when to call this tool."""
return f"result: {arg}"
Log with the standard logging module. abt writes Python log records to the workspace's logs/abt.log:
import logging
from abt import tool
logger = logging.getLogger(__name__)
@tool
def my_tool(arg: str) -> str:
"""..."""
logger.info("[my_tool] called with arg=%s", arg)
...
Creating a package inside this monorepo
abt uses uv workspaces to manage packages under packages/. Every directory matching packages/* is a workspace member.
pyproject.toml for a monorepo package
[project]
name = "abt-my-package"
version = "0.1.0"
license = "Apache-2.0"
license-files = ["LICENSE"]
readme = "README.md"
requires-python = ">=3.12"
dependencies = ["abt-core"]
[build-system]
requires = ["hatchling>=1.26.0"]
build-backend = "hatchling.build"
[tool.uv.sources]
abt-core = { workspace = true }
[tool.hatch.build.targets.wheel]
# Distributed through `abt deps`, which reads tools/ from the filesystem, so the wheel carries metadata only.
# A shipped top-level `tools` package would collide across the tool packages.
bypass-selection = true
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
pythonpath = ["."]
The abt-core = { workspace = true } source declaration means uv resolves abt-core from the local workspace instead of PyPI — no circular dependency issues. The key is the distribution name (abt-core), the same name as in dependencies; abt = { workspace = true } fails uv lock.
license-files needs a LICENSE inside the package directory, so copy the repository's LICENSE there.
A wheel (or pip install) of a tool package is metadata-only: the tools are only available through abt deps or the sdist.
Directory layout
abt-core/
pyproject.toml # [tool.uv.workspace] members = ["packages/*"]
packages/
abt-my-package/
pyproject.toml
abt_package.yaml
tools/
__init__.py
my_tool.py
tests/
test_my_tool.py
README.md
Installing from the monorepo in a project
# abt_packages.yml in your abt project
packages:
- git: https://github.com/getyourguide/abt-core.git
revision: main
subdirectory: packages/abt-my-package
Or, for local development:
packages:
- local: /absolute/path/to/abt/packages/abt-my-package
abt deps reference
abt deps [--project-root PATH] [--clean] [--upgrade]
| Flag | Description |
|---|---|
--project-root PATH |
Path to the project root (default: .) |
--clean |
Remove .abt_packages/ before installing |
--upgrade |
Ignore abt_packages.lock.yml and re-resolve every revision (for example, pick up the latest commit on revision: main) |
abt_packages.lock.yml — reproducible installs
Every abt deps run resolves each git: package's revision (branch, tag, or SHA) to an exact commit and pins it in abt_packages.lock.yml, keyed by a hash of abt_packages.yml. This is the same model as dbt's package-lock.yml or a uv.lock/package-lock.json:
- Unchanged
abt_packages.yml→ the lock's hash still matches →abt depsreinstalls the exact same commit every time, even forrevision: main. No more "sync with main" landing on a different commit than your teammate got yesterday. - Edited
abt_packages.yml(new package, changed revision, …) → the hash no longer matches →abt depsre-resolves fresh and rewrites the lock. - How the commit is resolved → read from the install itself, never from a separate
git ls-remote. A GitHub/GitLab tarball records its commit id in the archive header, so a private repo reachable only with a token (ABT_GIT_TOKEN,GITHUB_TOKEN,GH_TOKENorgh auth token) installs and locks without any git credentials. A tarball without a commit id falls back to agit clone, which reads backHEAD. When the lock already pins a commit, an archive for a different commit fails the install instead of being recorded as the pinned one. - Only a full commit id (40 or 64 hex characters) is a pin. A lock entry holding a branch name or an abbreviated SHA is re-resolved, never trusted. If the commit can't be determined (the clone fails, or
HEADis unreadable)abt depsfails and writes no lock entry, and nothing is left half-installed. abt deps --upgrade→ ignores the lock unconditionally and re-resolves everygit:package, e.g. to intentionally pick up new commits onrevision: main.- Repeat
abt depswith nothing changed → also skips the clone/download entirely if.abt_packages/<name>is already there from the last run — cheap no-op, safe to call on every startup (container boot, task runner, CI setup) without network cost each time. Deleted.abt_packages/or--clean? Reinstalls for real. Suspect the directory drifted from the lock?--upgradeor--cleanforces a fresh install.
Commit abt_packages.lock.yml to version control (unlike .abt_packages/ itself) — it's what makes installs reproducible across machines and CI runs.
Python SDK
from abt import AbtRunner
runner = AbtRunner(project_root=".")
# Install packages
result = runner.invoke(["deps"])
print(result.result) # list[Path] of installed directories
# Clean reinstall
result = runner.invoke(["deps", "--clean"])
# Force re-resolution of every revision, ignoring the lock
result = runner.invoke(["deps", "--upgrade"])
# Via keyword argument
result = runner.invoke(["deps"], clean=True)
# Async
result = await runner.ainvoke(["deps"])
AbtRunner.invoke(["deps"]) returns an AbtRunnerResult with:
- success: bool
- result: list[Path] — paths of installed package directories
- exception — the caught exception on failure (NotImplementedError, OSError, or ValueError)
Emitted callbacks: before:deps and after:deps.
Project configuration (config.packages)
Optional. Omit config.packages entirely when installed defaults are fine — you do not need an empty block or per-package stubs in abt.yaml.
Override-only settings in abt.yaml (dbt-style — same mental model as dbt configuring packages). Packages declared in abt_packages.yml are enabled by default once installed; add entries under config.packages only when changing defaults (writes, disabled components, limits):
config:
packages:
abt-databricks-tools:
disabled_components: [admin]
components:
jobs:
allow_writes: true # jobs write tools resolve; other components stay read-only
limits:
request_timeout_seconds: 30
abt-git-tools:
components:
write:
allow_writes: true
abt-gh-tools:
components:
pull_requests:
allow_writes: true
Precedence (narrowest restriction wins; explicit enablement wins for components):
- Agent frontmatter tool spec (explicit individual tool)
config.packages.<id>.components.<component>.*config.packages.<id>.*(package-level overrides)- Hardcoded safe defaults (
allow_writes: false; all components enabled)
Explicit write specs such as git__git_push are reported when disallowed: abt compile fails on them. Package wildcards (git__*, databricks__*) silently omit blocked write tools instead of failing. Runtime package blocklists (for example destructive gh subcommands) remain a last-resort layer.
Inspect merged config and resolved tools for an agent:
abt config show --agent my-agent --project-root .
When the agent lists individual package specs (databricks__databricks_run_get, git__git_log, gh__gh_run_view, …), the output includes package_tools.resolved, package_tools.blocked_writes, and per-package merged config.packages.* lines.
See Configuration — config.packages and Config precedence.
Human-in-the-loop for package tools
Package tools are standard @tool functions and receive the full abt confirmation treatment. Add confirmation_required: true to any tool in agent frontmatter:
tools:
- my_tool:
confirmation_required: true
approval_timeout: 120
on_approval_timeout: deny
on_missing_gate: deny
The approval gate is configured in abt.yaml under approvals.resources — the same resource used for all other tool confirmations. No extra wiring needed for package tools specifically. See Approvals for the full reference.
.abt_packages/ and version control
Add .abt_packages/ to .gitignore. It is a build artifact analogous to node_modules/ or a Python .venv/:
# .gitignore
.abt_packages/
Do not gitignore abt_packages.lock.yml — commit it alongside abt_packages.yml, the same way you'd commit uv.lock or package-lock.json. It's what makes abt deps reproducible instead of "whatever revision: main happens to point at today." Run abt deps as part of CI setup or agent bootstrap.
CLI reference
| Command | Description |
|---|---|
abt deps |
Install packages from abt_packages.yml into .abt_packages/ |
abt docs package <shorthand> |
Print component → tool → access catalog from an installed manifest |
abt config show --agent NAME |
Resolved guardrails plus package tool expansion when the agent uses shorthand specs |
abt docs package databricks --project-root .
abt config show --agent investigator
abt doctor warns when write specs are blocked by config.packages, when a package tool spec is invalid, when package and MCP specs overlap, when a package's credentials are missing, or when an installed package's requires-abt-core doesn't match the running abt. A credentials block that exists but reads an unset env_var(...) makes doctor abort with an env_var error instead of a finding. See Doctor.
See also
- git-tools — granular git/gh tools (
gitshorthand) - atlassian-tools — Jira/Confluence search (
atlassianshorthand) - slack-tools — Slack discovery (
slackshorthand) - databricks-tools — Databricks SDK tools (
databricksshorthand) - datadog-tools — Datadog tools over the
pup2.x CLI (datadogshorthand) - Tools — how tools are discovered and used in agents
- MCP integrations — MCP
source__toolspecs (same__grammar) - Configuration —
abt.yamlreference