hai init Set up once per provider
Installs whatever your editor is missing (subagents, slash-commands, the MCP server) and skips what’s already there. It pulls your tickets and specs on the spot.
Your team is split across Claude Code, Copilot, Cursor and Codex. HAI sets all of them up the same way, with the same subagents and slash-commands. Then it pulls your Jira tickets and Confluence specs into plain Markdown the AI can actually read.
npm install -g @2amtech/hai $ npm install -g @2amtech/hai
$ hai init
Hai has initialized your AI environment!
* AI Provider: Claude Code
* Ticket Provider: Atlassian (Jira Projects: PROJ)
* Specification Provider: Atlassian (Confluence Spaces: TEAM)
Recommended workflow:
1. In your AI prompt run /pull — Sync your tickets and specs to .ai/
2. /implement TICKET-KEY — Implement a ticket assigned to you
3. Commit, push, and open a PR
Added prompt commands:
/pull — Sync tickets and specs to .ai/
/implement — Implement a ticket
…
Added subagents:
architect — Design implementation plans
researcher — Explore specs, tasks, and codebase
…
Happy coding!
Setup is a one-time thing. After that, you hand your AI a Jira key and it takes the ticket from plan to code.
hai init Installs whatever your editor is missing (subagents, slash-commands, the MCP server) and skips what’s already there. It pulls your tickets and specs on the spot.
hai pull init already pulled everything. Reach for hai pull mainly when specs change and you want the latest copy locally.
/implement JIRA-123 the main loop Hand your AI a ticket key and it runs the whole job:
The connective work between your project tools and your editor that you'd otherwise do by hand.
Run hai mcp and any MCP-aware assistant can call its three tools over stdio: pull, ticket_pull and image_download.
Jira issues and Confluence pages land in .ai/ as Markdown, with comments, links, custom fields and the page tree kept intact.
They show up as slash-commands in your editor: implement, pull, pull-tickets, pull-specs, optimize-ai and review-changes.
Seven subagents come installed, from researcher and architect to backend-dev, frontend-dev, refactorer, security-reviewer and verifier.
The implement command fetches a ticket, researches it, plans the work, then runs the domain agents at the same time and checks each one.
hai grabs a ticket and every issue it links to in a single pass so AI has full ticket context.
Attachments sit behind auth, so your AI can't just fetch them. image_download pulls them with the right credentials and caches them locally.
It's all Markdown you can read, diff and commit. No database, nothing proprietary, and switching providers later doesn't change how you work.
Everyone picks their own editor. Each one gets the same setup, installed where it expects to find it, so the whole team matches.
Jira for tickets, Confluence for specs. It follows linked issues, keeps custom fields and comments, and turns Atlassian rich text into Markdown.
Reads tickets and specs from folders on disk. Good for offline work, tests, or docs that live in the repo.
Switches a source off. Use it when you only want the subagents and commands, with no Jira or Confluence attached.
HAI is one npm package. Each teammate installs it and runs hai init once.
That wires up their editor and does the first sync, so there's no separate pull to run.
$ npm install -g @2amtech/hai $ hai init hai init runs the initial sync for you, so your .ai/ folder is
ready right away.