ast · AI setup tool · v0.3.0

Keep your agent tools in step with where they came from

ast installs a project's agent tools (skills, agents, commands, scripts and cards) from git repos and keeps track of them. The project commits a small config, a lock file and the installed files. Every clone then has the same setup, and ast status and ast update show and apply what changed upstream. An organisation can publish named sets of tools from one repo.

Install

You need Python 3.11.4+ and git. Install a release tag:

$ uv tool install git+https://github.com/epatel/ai-setup-tool@v0.3.0
# or
$ pipx install git+https://github.com/epatel/ai-setup-tool@v0.3.0
$ ast --version
ast 0.3.0

Concepts

Source

A git repo that holds tools. Give it as owner/repo, a git URL, or a local path. It stays pinned to a ref: a tag, a branch, a commit, or latest-tag.

Tool

A skill, agent, command, script or card. ast finds tools by where they are in the source repo. The repo needs no manifest.

ast.toml

The project's config. You can edit it by hand, and comments are kept. It says which sources, sets and tools the project wants.

ast.lock

The exact commit, git tree id and content hash of each installed tool. With it, ast can tell a local edit from an upstream change.

Org repo

One repo with ast-org.toml. It names the organisation's sources and its sets.

Set

A named list of tools. A set can extend other sets, add tools, and exclude tools. A project selects one set and can adjust it.

What counts as a tool

KindIn the source repoInstalled to
skill<name>/SKILL.md, skills/<name>/SKILL.md, .claude/skills/<name>/SKILL.md.claude/skills/<name>/
agentagents/<name>.md, .claude/agents/<name>.md.claude/agents/<name>.md
commandcommands/<name>.md, .claude/commands/<name>.md.claude/commands/<name>.md
scriptscripts/<file>.claude/scripts/<file>
cardcards/<name>.mdcards/<name>.md

Name a tool as name, kind/name, source:name or source:kind/name. The short forms work while only one tool matches them.

A project on its own

You don't need an org repo. Reference a tool repo directly and pick tools from it:

$ ast init
created /work/myapp/ast.toml

$ ast source add epatel/agent-skills --ref latest-tag
$ ast list --available          # what the source offers

$ ast add double-check makefile-actions
installed  agent-skills:skill/double-check
installed  agent-skills:skill/makefile-actions

$ ast status
sources:
  agent-skills   epatel/agent-skills   v2026.12.05 (a9c4ae7)
tools:
  ok  agent-skills:skill/double-check      .claude/skills/double-check
  ok  agent-skills:skill/makefile-actions  .claude/skills/makefile-actions
no updates available

$ git add ast.toml ast.lock .claude && git commit -m "Add agent tools with ast"

The resulting ast.toml is short and readable:

# ast (AI setup tool) config. Commit this file and ast.lock with the project.
version = 1

[sources.agent-skills]
repo = "epatel/agent-skills"
ref = "latest-tag"

[tools]
add = [
    "agent-skills:skill/double-check",
    "agent-skills:skill/makefile-actions",
]

Turning tools off and on

$ ast disable makefile-actions   # removes the files, keeps it in ast.toml
$ ast enable makefile-actions    # installs it again
$ ast rm double-check            # removes a tool you added

Tools that are already in the project

Maybe someone copied a skill in by hand. If the copy is identical to the source, ast add takes it over and copies nothing:

$ ast add double-check
adopted    agent-skills:skill/double-check

Updates & local edits

Sources move only when you run ast update. Adding a tool never moves the others. ast status tells you what's waiting:

$ ast update
agent-skills: v2026.11.14 -> v2026.12.05 (a9c4ae7)
updated    agent-skills:skill/double-check

If you edited an installed tool, ast won't overwrite it. The same goes for a file that ast did not install. The tool is reported as blocked, together with a way out, and the command exits 1:

$ ast add review-agentic-setup
blocked    agent-skills:skill/review-agentic-setup: exists and ast does not manage it (use --force to overwrite)

$ git diff --no-index .claude/skills/review-agentic-setup /path/to/release   # look first
$ ast add review-agentic-setup --force                                     # then decide
Rule of thumb: look at the diff before you use --force. A blocked tool is either an older release that nobody edited, which is safe to replace, or it has local edits that someone wanted.

To make the files on disk match ast.toml and ast.lock again, for example after someone deleted a skill folder, run ast sync.

With an org repo

An org repo publishes the sources and sets once. A project selects a set and adjusts it locally. epatel/ast-repo is a public example that you can try:

$ ast use epatel/ast-repo
$ ast select                       # list the sets
$ ast list --tree                  # how the sets build on each other
default  (4 tools)  Baseline for every project
├── python-service  (10 tools)  Python services and command-line tools
│       + agent-skills:skill/makefile-actions
│       + agent-skills:skill/state-machines
│       …
└── docs  (6 tools)  Documentation and writing projects

$ ast select python-service        # install that set
$ ast disable minimal-repro        # drop one of its tools, for this project only
$ ast add ste-writing              # add a tool the set does not have

The project's ast.toml records only the choice and the local changes:

[org]
repo = "epatel/ast-repo"
set = "python-service"

[tools]
add = [
    "agent-skills:skill/ste-writing",
]
disable = [
    "agent-skills:skill/minimal-repro",
]

When the org repo changes, projects pick up the change with ast update.

Managing an org repo

You manage the org repo with the same commands. A set is everything its extends parents give, plus its own tools, minus its own exclude.

$ ast init --org                                   # ast-org.toml with a 'default' set
$ ast source add epatel/agent-skills --ref latest-tag
$ ast source add . --name org                      # tools kept in the org repo itself
$ ast add review-agentic-setup                     # into 'default'
$ ast set new web --extends default --description "Web front ends"
$ ast add design-system --set web
$ ast disable review-agentic-setup --set web       # exclude an inherited tool
$ ast status                                       # checks that every tool still exists
# ast-org.toml
version = 1

[sources.agent-skills]
repo = "epatel/agent-skills"
ref = "latest-tag"

[sets.default]
description = "Baseline for every project"
tools = ["agent-skills:skill/review-agentic-setup"]

[sets.web]
description = "Web front ends"
extends = ["default"]
tools = ["agent-skills:skill/design-system"]
exclude = ["agent-skills:skill/review-agentic-setup"]

Org sources must be remote URLs or . (the org repo itself), so that a set resolves the same on every machine. Commit and push, and the projects follow.

Let an agent do it

ast does the mechanical work. ast prompt prints instructions for the part that needs judgment, and a coding agent follows them:

$ ast prompt setup epatel/ast-repo   # pick the set that fits this project, install, report
$ ast prompt adopt epatel/ast-repo   # bring tools copied in by hand under ast
$ ast prompt update                  # update, then review what changed in the instructions
$ ast prompt org ../app ../docs      # start an org repo with sets that fit those projects
$ ast prompt                         # list prompts, including your org repo's

In Claude Code, run ! ast prompt setup epatel/ast-repo and then say "follow that". With another agent, paste the output.

Prompts from the org repo

Cards

A card is a short reference file. An agent reads it only when the work calls for it, and decides from a one-line index entry. ast keeps that index for you:

<!-- CARDS.md -->
<!-- ast:cards:begin - written by ast from ast.lock; edits between the markers are lost -->
- [agent-setup](cards/agent-setup.md) — adding, changing or updating a skill, command, script or card
<!-- ast:cards:end -->

Safety rules

Nothing moves by surprise

Sources stay at their locked commit until ast update.

Your edits are kept

An edited tool, or a file that ast did not install, is never overwritten or deleted without --force.

All or nothing

A command that fails leaves ast.toml and ast.lock as they were. State files are written atomically.

Stays in the project

It writes nothing outside the project directory, except the repo cache in ~/.cache/ast. Lock paths outside the project are refused.

Copies files only

It doesn't touch hooks in settings.json, MCP servers or plugins.

Status you can script

ast status exits 1 when the local files differ from the lock, so CI can check the setup.

Commands

CommandDoes
ast init [--org]Create ast.toml, or ast-org.toml for an org repo.
ast source add <repo> [--name N] [--ref R] · rm · listManage the repos that tools come from.
ast use <org repo> [--ref R] [--set S] · --removeImport an org repo's sets, or stop using it.
ast select [set]Select a set. With no name, list the sets.
ast list [-a] · --treeActive tools and their state. -a also lists the available tools, and --tree shows the sets as a tree.
ast add · rm <tool>…Add or remove tools in the project, or in a set with --set S.
ast disable · enable <tool>…Turn a tool off or on, and keep it in the config.
ast statusInstalled tools, local changes, pending changes and upstream updates.
ast syncMake the installed files match ast.toml and ast.lock.
ast update [source]…Resolve the refs again and reinstall.
ast set new <name> [--extends A,B] · rm · listManage the sets in an org repo.
ast prompt [name] [arg]… (ast ai)Print a prompt for a coding agent to follow.
ast help [command]Show help.

Global flags: -C DIR (run as if started in DIR), --offline (use only the cache), and --org (act on ast-org.toml when a directory has both files).