firstmate-codexapp
What it does
This skill explains how to use Codex Desktop threads for Firstmate tasks. It is for people who run Firstmate inside Codex Desktop and want the work to appear in a visible thread.
When to use it
- ✓When you want a Firstmate task to show up as a visible thread in Codex Desktop.
- ✓When you need to send a message to an existing Codex thread for Firstmate work.
- ✓When you want to archive a finished Codex thread used for Firstmate.
Skill link
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/firstmate-codexapp/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Start a visible Codex Desktop thread for this Firstmate task in my project.”
5 new skills a week. 1 minute to read.
How it works
The agent checks that it is running inside Codex Desktop and that the project exists there. It then uses the Desktop thread tools to create, read, or message the thread, and it stops if the project is missing.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
firstmate-codexapp
Overview
Use this playbook when Firstmate work needs a visible Codex Desktop thread.
The current supported shape is Desktop host-tool choreography plus an explicit status-file return-channel check, not a codex-app value in FM_BACKEND.
Boundary
Codex Desktop visible threads are companion host-tool workflows, not a selectable Firstmate backend.
Read docs/codex-app-backend.md when it exists in this checkout; that document owns the acceptance contract, bridge requirement, status-return requirement, and staged rollout.
If local helper scripts exist for Codex App work, use only helpers explicitly provided by the operator or maintained by Firstmate.
For helpers outside bin/, inspect the source or header before running --help.
Preflight
- Confirm this session is running inside Codex Desktop and that the host tools are exposed.
Search exact names when needed:
create_thread,list_threads,read_thread,send_message_to_thread,archive, andset_thread_archived. - Confirm the target repository is already saved as a Codex Desktop project. No host tool currently creates Codex App projects for an agent, so the human must add the project in Desktop before a created thread can reliably land there.
- Do not create projectless threads for repo work. If the project is absent, stop and ask for the project to be added or use a normal Firstmate backend instead.
- Decide whether this is a real Firstmate-managed task or a visible companion thread.
A real task needs a task id, an isolated worktree or Desktop-owned cwd, a branch plan, and a writable
state/<id>.statuspath.
Create And Send
When creating a visible thread, use the Desktop host tool, not shell imitation. Target the saved project and ask the worker to start by reporting:
pwd
git rev-parse --show-toplevel
git branch --show-current
git log --oneline --max-count=3
For writable repo work, instruct the worker to use the Codex-created current directory.
Do not tell it to cd into the saved project checkout for edits, commits, no-mistakes, pushes, or PR work.
When sending follow-up instructions, use send_message_to_thread.
If the user types directly into the visible thread, treat that as authoritative and reconcile from read_thread instead of undoing it.
Status Return Channel
A Desktop-owned Codex thread can append to Firstmate status files only when the prompt gives an absolute path and the Desktop permission context can write that checkout. That makes status writes a verified return-channel requirement, not a fact to assume.
For a Firstmate-managed task, include an explicit status instruction:
Append supervisor-visible status lines to <absolute-firstmate-home>/state/<task-id>.status.
Use only these prefixes for status changes: working:, needs-decision:, blocked:, paused:, done:, failed:.
Follow the task brief's status-reporting rule for declaring and resolving waits; bin/fm-brief.sh owns that rule.
Before doing substantive work, append "working: Codex Desktop thread started".
Verify the return channel before treating the thread as supervised:
read_threadshows the worker attempted the status write.- The local
state/<task-id>.statusfile contains the expected line. - If available, the transcript includes a file-change entry for that status file.
If the thread cannot write the status file, keep it as a visible companion thread only. Do not claim it is a complete Firstmate backend.
Observe And Reconcile
Use read_thread for thread truth.
Use list_threads only to find or recover a visible thread id, not as a replacement for reading the transcript.
For Firstmate reconciliation, prefer concrete evidence:
- thread id and project
- current Desktop-owned cwd
- branch name
- last meaningful thread state
- latest status file line
- PR URL when one exists
Avoid repeating long transcripts into Firstmate docs or PR bodies.
Summarize only the host-tool calls, the status-file result, and the archive result.
When reporting a Desktop-thread result to the captain, translate status prefixes and return-channel evidence through AGENTS.md section 9.
Archive
Archive through the Desktop host tool: archive when that is the exposed primitive, or set_thread_archived(threadId=<id>, archived=true) when that is the exposed tool name.
Archiving can remove the thread from normal sidebar/project views, but it should not erase the transcript or landed work.
For companion
FAQ
Does it work outside Codex Desktop?
No. It only works when the session runs inside Codex Desktop with the required tools.
Can the agent create a new project?
No. The project must be added in Codex Desktop first, or the agent will stop and ask.
Is this a backend setting?
No. It is a set of steps for the Desktop host tools, not a backend you choose in settings.
Details
Original description by the author
Load before creating, reading, steering, archiving, debugging, or reviewing a Codex App visible thread for Firstmate work, and before responding to requests to make Codex App native to Firstmate.
repo: kunchenguid/firstmate
Popularity
- GitHub stars
- 8.5k
- Ranking position
- #12434
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
afk
8.5kLets your agent keep working while you are away, holding decisions for your return and sending you a clear brief when you come back.
ahoy
8.5kLets your agent give you a short recap of what happened in the session and walk you through any decisions still waiting on you.
ask-user-authority
8.5kHelps your agent decide review questions on its own when they clearly fit the agreed plan, and ask you only when a question is unclear or risky.
away-quiet-supervision
8.5kSets safety rules for supervising work in away or quiet mode, so the agent keeps messages clear and holds decisions that need you.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.