firstmate-codexapp
Skill2 starsChanged 32 days agoMITView on GitHub
Agent-only playbook for coordinating visible Codex Desktop threads alongside Firstmate without pretending they are a selectable shell backend. Use 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.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- kunchenguid/firstmateedited, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- kunchenguid/firstmate★ 8.7k99% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- afkSkill
- agent-skill-trigger-indexSkill
- ahoySkill
- ask-user-authoritySkill
- away-quiet-supervisionSkill
- bearingsSkill
- bootstrap-diagnosticsSkill
- captain-hold-lifecycleSkill
- control-firstmateSkill
- decision-hold-lifecycleSkill
- diagnostic-reasoningSkill
- firstmate-coding-guidelinesSkill
- firstmate-orcaSkill
- fmx-respondSkill
- harness-adaptersSkill
- operational-home-layoutSkill
- process-event-sourcesSkill
- project-managementSkill
- quietSkill
- quota-array-dispatchSkill
- scout-completionSkill
- secondmate-provisioningSkill
- session-start-recoverySkill
- ship-landingSkill
- stowSkill
- stuck-crewmate-recoverySkill
- updatefirstmateSkill
- validation-supervisionSkill
- verify-firstmateSkill
- stowSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 11 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Use this playbook when Firstmate work needs a visible Codex Desktop thread.
- Very specific: line 21
Read docs/codex-app-backend.md when it exists in this checkout.
- Very specific: line 23
If local helper scripts exist for Codex App work, use only helpers explicitly provided by the operator or maintained by Firstmate.
- Very specific: line 29
Search exact names when needed: create_thread, list_threads, read_thread, send_message_to_thread, archive, and set_thread_archived.
- Distinctive: line 31
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 …
- Distinctive: line 32
Do not create projectless threads for repo work.
- Distinctive: line 33
If the project is absent, stop and ask for the project to be added or use a normal Firstmate backend instead.
- Distinctive: line 39
When creating a visible thread, use the Desktop host tool, not shell imitation.
- Very specific: line 50
Do not tell it to cd into the saved project checkout for edits, commits, no-mistakes, pushes, or PR work.
- Very specific: line 52
When sending follow-up instructions, use send_message_to_thread.
- Very specific: line 53
If the user types directly into the visible thread, treat that as authoritative and reconcile from read_thread instead of undoing it.
- Distinctive: line 69
Verify the return channel before treating the thread as supervised:
- Distinctive: line 73
If available, the transcript includes a file-change entry for that status file.
- Distinctive: line 75
If the thread cannot write the status file, keep it as a visible companion thread only.
- Distinctive: line 76
Do not claim it is a complete Firstmate backend.
- Very specific: line 80
Use read_thread for thread truth.
- Very specific: line 81
Use list_threads only to find or recover a visible thread id, not as a replacement for reading the transcript.
- Distinctive: line 92
Avoid repeating long transcripts into Firstmate docs or PR bodies.
- Distinctive: line 94
When reporting a Desktop-thread result to the captain, translate status prefixes and return-channel evidence through AGENTS.md section 9.
- Distinctive: line 102
If there is a real Firstmate task record, leave teardown decisions to the normal Firstmate task flow instead of this skill.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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=3For 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 threads, archive the thread and report where the durable work landed. If there is a real Firstmate task record, leave teardown decisions to the normal Firstmate task flow instead of this skill.
Failure Signals
- Missing Desktop project: ask the human to add the target project in Codex Desktop, or use a normal backend.
- Missing host tools: do not simulate them with shell files; use a terminal backend instead.
- Status file not updated: treat the thread as unsupervised until the return channel is proven.
- Worker editing the saved project checkout instead of its Desktop cwd: stop and decide whether to salvage the branch before continuing.
- Production
codex-appbackend request: readdocs/codex-app-backend.mdand do not invent a local adapter.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

