Skip to content

Connecting your tool to coding agents

Every AXI has a setup command that connects it to Claude Code, Codex and OpenCode.

Session hooks run your home view when an agent session starts, so the agent sees current state without spending a turn on it:

$ todo-axi setup hooks
setup: hooks installed
scope: user
command: todo-axi
targets[4]{agent,status,path}:
  claude-code,installed,~/.claude/settings.json
  codex,installed,~/.codex/hooks.json
  codex-feature,installed,~/.codex/config.toml
  opencode,installed,~/.config/opencode/plugins/axi-todo-axi.js
help[2]: todo-axi setup status,todo-axi setup uninstall

Agent Skill. setup skill installs a SKILL.md generated from your help text to .claude/skills/ (Claude Code) and .agents/skills/ (Codex). OpenCode reads both.

$ todo-axi setup skill
setup: skill installed
scope: user
targets[2]{agent,status,path}:
  claude-code-skill,installed,~/.claude/skills/todo-axi/SKILL.md
  agents-skill,installed,~/.agents/skills/todo-axi/SKILL.md
help[2]: todo-axi setup status,todo-axi setup uninstall

All setup commands: - Accept --scope project to install into the current repository instead of your user config. - Are safe to re-run. - Touch only this tool's entries: other hooks are kept, and a SKILL.md that fastaxi did not write is never overwritten.

setup status shows what's installed, and setup uninstall removes it.

Hooks run the installed executable, so run setup hooks from the installed command, not from python -m.

Custom skill text

app = AXI(
    "todo-axi",
    description="Track todos",
    skill=Path(__file__).parent / "SKILL.md",  # or a string
    skill_description="Track todos. Use when the user mentions tasks or todos.",
)
# Working with todos

Always run `{bin}` first to see what is open.

{usage}

## Commands

{commands}
  • Text without frontmatter gets a generated name/description header. skill_description overrides the description.
  • Text that starts with --- frontmatter is used as-is. It must set name and description.
  • {bin} becomes the tool name, {usage} the standard notes on reading AXI output, and {commands} the generated command reference, so hand-written skills stay in sync with the CLI.

Keeping a SKILL.md in your repository

app.render_skill() returns the SKILL.md text. Write it to a file, and add a test that keeps it in sync with the CLI:

from pathlib import Path
from todo_axi.cli import app


def test_skill_is_up_to_date():
    assert Path("skills/todo-axi/SKILL.md").read_text() == app.render_skill()