Skip to main content
Integrate tk with OpenAI Codex to give your AI assistant full context about your project’s issues, priorities, and workflow.

Codex Options

OpenAI Codex is available in multiple forms:

Codex CLI

Terminal-based agent installed locally via npm. Runs commands and edits code autonomously.

Codex Desktop

Desktop application with GUI. Provides the same agent capabilities with a visual interface.
Both versions work with the same .tickets/ directory via git, so issues created in one are immediately available in the other.

Step 1: Install Codex CLI

Step 2: Install tk and Initialize

Step 3: Add AGENTS.md

Create or update your AGENTS.md file so Codex has context about tk:
Run tk onboard to get a copy-pasteable snippet for your AGENTS.md.

Codex CLI Setup

Using tk with Codex CLI

Codex CLI reads AGENTS.md automatically. Once tk is installed and AGENTS.md is configured, Codex can use tk commands directly. Start a session and ask Codex to use tk:

Injecting Context

For richer context at session start, pipe tk prime output to Codex:
Or create a wrapper script:

CLI Advantages

Terminal-First

Runs in your existing terminal workflow

Full Autonomy

Can run tk commands, edit code, and manage issues

Local Performance

Direct access to your local development environment

Git Access

Full access to git history and repository

Codex Desktop Setup

Using tk with Codex Desktop

  1. Open Codex Desktop and navigate to your project
  2. Codex reads AGENTS.md from the repository root
  3. Ask Codex to work with issues using tk commands

Desktop Advantages

Visual Interface

GUI for reviewing agent actions and approving changes

Session History

Browse past sessions and their outcomes

Working with Codex

Once configured, Codex can help you:

Find Work to Do

Ask Codex: “What should I work on next?” Codex will use tk ready and tk triage to recommend the highest-impact work.

Create Issues

Ask Codex: “Create an issue for adding dark mode support” Codex will run:

Manage Dependencies

Ask Codex: “The auth feature blocks the dashboard, add that dependency” Codex will run:

Close Issues

Ask Codex: “I finished the login bug, close it” Codex will run:

Troubleshooting

Make sure AGENTS.md exists in your repository root and mentions tk. Codex reads this file for project context.
Make sure you’re in a directory with a .tickets/ folder, or a subdirectory of one.
Ensure tk is installed and available in your PATH:
If not installed:

Next Steps

Stacks

Understanding linear dependency chains.

CLI Commands

Full command reference for working with issues.

Graph Analytics

PageRank, critical path, and bottleneck detection.

MCP Server

Give AI assistants direct access to tk documentation.