ajentwork is a local-first work tracker for AI agents, with the aj CLI as its primary interface.
- Tracks compact work items in a git-friendly
.aj/directory - Records append-only events for item history
- Supports leases, dependencies, queueing, history, and ready-work views
- Can be used to dogfood the development of the tool itself
aj works best when tickets and updates are written as handoff-quality context for the next agent, not just as terse status markers.
- Titles should name the concrete problem or outcome.
- Goals should explain why the work matters, important constraints, and where acceptance evidence will come from.
- Use
aj new --accept ... --constraint ... --risk ... --file ... --verify ...when those details would help another agent execute accurately without rediscovering the same context. - Progress, block, handoff, and done summaries should say what changed, what was learned, and what risk or verification remains.
- Next actions should be specific enough that another agent can start work without rereading the whole repo.
Use aj workflows authoring and aj examples authoring for copyable examples.
Use artifacts when another agent will need proof of what was tried or what happened:
aj attach <id> --path <file> --summary "..."copies a supporting file like a log, patch, or note into.aj/artifacts/.aj receipt <id> --summary "..." --command "..." --exit-code <n> [--output <file>]records a compact execution receipt for a build, test, or verification step.aj artifacts <id>lists the attached evidence for one item, andaj show <id>includes the latest artifact summaries.
Use checkpoints when another agent may need to resume work later, even if you are not transferring the lease yet:
aj checkpoint <id> --summary "..." [--next "..."] [--risk "..."] [--verify "..."]records a compact resume point.aj show <id>surfaces the latest checkpoint summary, remaining risks, and verification guidance.aj handoff ...still transfers ownership; checkpoints make the handoff payload better before that transfer happens.
aj can now track both readiness constraints and simple work decomposition:
aj link <id> --depends-on <id>records that work cannot start until another item is done.aj link <id> --parent <id>groups a child item under a larger parent or epic.aj unlink <id> --depends-on <id>oraj unlink <id> --parentremoves stale graph edges when plans change.aj show <id>surfacesParent,Children,Depends On, andBlocksso another agent can immediately see where the item sits in the local work graph.
Use the local query/reporting layer before creating new work or when an agent needs fast orientation:
aj search cache invalidationsearches local items across titles, summaries, goals, next actions, structured context, relations, and Jira linkage.aj search regression --status blocked --kind bugnarrows the result set to a tighter operational slice.aj reportshows status counts plus compactOwned,Ready,Waiting, andRecentsections.aj report --agent coder-1 --limit 3gives an agent-specific orientation pass with a tighter section size.
go build ./cmd/ajCheck the installed binary version:
aj --versionGenerate the man page:
go run ./cmd/ajgenman --output docs/aj.1Initialize the current repository:
aj initIf Jira is part of the workflow, decide at init time whether the Jira space key already exists or whether aj should create it if missing.
Reuse an existing Jira space:
aj init \
--jira \
--jira-base-url https://example.atlassian.net \
--jira-space-key SDCreate the Jira space if the key does not exist yet:
aj init \
--jira \
--jira-base-url https://example.atlassian.net \
--jira-space-key SD \
--jira-space-name "Software Delivery" \
--ensure-jira-spaceInstall the latest release binary:
curl -fsSL https://raw.githubusercontent.com/bugatron78/ajentwork/main/scripts/install.sh | bashThe installer downloads the matching release artifact and verifies its SHA-256 checksum before installing.
Install a specific version:
curl -fsSL https://raw.githubusercontent.com/bugatron78/ajentwork/main/scripts/install.sh | bash -s -- --version v0.1.7Install to a custom directory:
curl -fsSL https://raw.githubusercontent.com/bugatron78/ajentwork/main/scripts/install.sh | bash -s -- --install-dir "$HOME/.local/bin"Install without the man page:
curl -fsSL https://raw.githubusercontent.com/bugatron78/ajentwork/main/scripts/install.sh | bash -s -- --no-manBy default, the installer also places aj.1 in $HOME/.local/share/man/man1.
One-shot install without pre-tapping:
brew install bugatron78/ajentwork/ajIf you want plain brew install aj, tap the repo first:
brew tap bugatron78/ajentwork
brew install ajThe published tap lives at bugatron78/homebrew-ajentwork, and the formula builds aj from source with Go.
It also installs the aj(1) man page, so man aj works after a Homebrew install.
The first Jira adapter slice supports:
aj jira space exists [--key <key>]aj jira space create --key <key> --name <name> [--type <type>] [--template <template>]aj jira space ensure --key <key> --name <name> [--type <type>] [--template <template>]aj jira space ls [--query <text>] [--limit <n>]aj jira search <terms...> [--limit <n>] [--project <key>]aj jira pull <key>aj jira push <id> [--project <key>] [--type <name>]aj jira link <id> <key> [--replace]aj jira unlink <id> [--force]aj jira status-mapaj jira transitions <id>aj jira sync <id> [--dry-run] [--resolve keep-local|keep-remote]aj jira comment <id> --summary "..."aj take jira <key> --agent <name>
Use aj jira search ... before creating or linking new work so agents can check whether a matching Jira issue already exists.
Use aj jira space exists ... or aj jira space ls ... to inspect available Jira spaces, and aj jira space ensure ... when the repo should be able to create the configured space key if it does not exist yet.
aj jira sync will also try to move the remote Jira issue to the mapped Jira status when the local aj item status has changed and Jira exposes a matching transition.
Use aj jira status-map and aj jira transitions <id> to inspect the configured mapping and the live remote workflow before syncing.
Use aj jira unlink <id> before moving an item to a different Jira issue, or aj jira link <id> <key> --replace when that relink is intentional.
Linked lifecycle commands can also emit milestone comments directly with --jira-comment on aj done, aj block, and aj handoff.
Repos can also default those comments with:
[jira.lifecycle]
comment_on_done = true
comment_on_block = true
comment_on_handoff = trueUse --no-jira-comment on a specific command to suppress the repo default.
Set credentials through environment variables:
export AJ_JIRA_EMAIL="you@example.com"
export AJ_JIRA_API_TOKEN="..."Then enable Jira in .aj/config.toml and set at least:
[jira]
enabled = true
base_url = "https://your-domain.atlassian.net"
project = "ABC"If you prefer, aj init can write that config and ensure the Jira space at the same time:
aj init \
--jira \
--jira-base-url https://your-domain.atlassian.net \
--jira-space-key ABC \
--jira-space-name "Agent Work" \
--ensure-jira-spaceBuild shareable binaries for macOS and Linux:
./scripts/build-release.shOr build for a specific version label:
./scripts/build-release.sh v0.1.7Artifacts are written to dist/:
aj_<version>_darwin_amd64.tar.gzaj_<version>_darwin_arm64.tar.gzaj_<version>_linux_amd64.tar.gzaj_<version>_linux_arm64.tar.gzaj_<version>_checksums.txt
- Extract the archive for your platform.
- Move
ajonto yourPATH. - Optionally copy
share/man/man1/aj.1into your preferred man directory. - Run
aj --version,aj --help, orman ./share/man/man1/aj.1.
Tagged pushes like v0.1.0 trigger the GitHub Actions release workflow, which builds artifacts and attaches them to a GitHub Release.
Apache License 2.0. See LICENSE.