Skip to content

bug: Codex target does not declare an agents path #170

@Bongseop-Kim

Description

@Bongseop-Kim

Summary

The built-in codex target declares a skills path but no agents path, so Codex is omitted from agent sync/status even though skillshare v0.19 supports first-class agent management.

Current behavior

With a global config that includes both Claude and Codex targets, skillshare target list --json reports an agentPath for Claude but not for Codex:

{
  "name": "claude",
  "path": "/Users/duegosystem/.claude/skills",
  "agentPath": "/Users/duegosystem/.claude/agents"
}
{
  "name": "codex",
  "path": "/Users/duegosystem/.codex/skills"
}

As a result, skillshare status --json lists only Claude under agents.targets, and skillshare target codex --agent-mode merge fails with:

target 'codex' does not have an agents path

Expected behavior

Codex should appear as an agent-capable target when syncing agents, just like Claude and other supported agent targets.

For global mode, adding this explicit config makes it work locally:

targets:
  codex:
    skills:
      path: /Users/duegosystem/.codex/skills
    agents:
      path: /Users/duegosystem/.codex/agents

After that, skillshare target list --json includes:

{
  "name": "codex",
  "path": "/Users/duegosystem/.codex/skills",
  "agentPath": "/Users/duegosystem/.codex/agents",
  "agentMode": "merge",
  "agentSync": "no source agents yet"
}

and skillshare sync agents creates/syncs ~/.codex/agents as expected.

Likely root cause

The embedded built-in target registry appears to define Codex with skills only:

- name: codex
  skills:
    global: "~/.codex/skills"
    project: ".agents/skills"

while Claude declares both skills and agents:

- name: claude
  skills:
    global: "~/.claude/skills"
    project: ".claude/skills"
  agents:
    global: "~/.claude/agents"
    project: ".claude/agents"

Prior art checked

I found related agent/plugin discussions, but not this exact target-registry omission:

This issue is narrower: Codex is already a built-in skills target, but it is missing an agents: path, so agent sync skips it.

Environment

skillshare version: 0.19.23
OS: macOS arm64

Open question

agents.global: "~/.codex/agents" works locally. I am less sure what the canonical Codex project-mode agent path should be, so it may be worth confirming before adding agents.project.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions