News for hackers. Stuff that matters.
Re:Show HN: File‑based sub‑agents for Codex CLI (tiny MCP se... by mutant on Sunday August 31, 2025 @04:01PM (#45086553)
this is already done with Agents, i dont understand the point?
Re:Show HN: File‑based sub‑agents for Codex CLI (tiny MCP se... by monsieurleon on Monday September 01, 2025 @01:05PM (#45094498)
Good question. Codex already supports the AGENTS.md file. I’m not trying to replace that.

This project does one narrow thing: it turns those agents into callable, auditable sub‑agents you can invoke at runtime as an MCP tool.

What it adds on top of Agents/AGENTS.md:

- Runtime delegation: a single MCP tool delegate(task, agent|persona, profile, …) that the outer session (or you) can call mid‑flow. Not just “pick one agent at start,” but spin up a specialist for a subtask and return the result.

- Introspection & CI gates: list_agents and validate_agents are exposed as tools so the model (and CI) can see what’s allowed and fail misconfig before anything runs.

- Isolation defaults: each call runs in a temp workdir; you can point Codex at a git worktree/mirror so sub‑agents don’t write into your main repo. Profiles keep state separate.

- Ops hygiene: server is tiny, no stdout (MCP handshake‑safe), debug → stderr only, and the server itself makes no runtime network calls. Small surface area to audit.

Under the hood it still writes AGENTS.md for the selected persona and executes codex exec --profile <agent-profile> "<task>". So if you’re happy manually choosing agents and running codex exec, you don’t need this. If you want in‑session delegation + CI validation + safer defaults with minimal moving parts, that’s the point.

If I’m missing a built‑in way to get all of the above from Agents alone, I’d love a pointer.

Re:Show HN: File‑based sub‑agents for Codex CLI (tiny MCP se... by NewMonarch on Tuesday September 02, 2025 @12:39AM (#45099195)
You’re a few steps ahead of the person who asked that question.

Just landed on this page from googling for this very thing.

Context Engineering > Prompt Engineering

Re:Show HN: File‑based sub‑agents for Codex CLI (tiny MCP se... by monsieurleon on Tuesday September 02, 2025 @02:10AM (#45099647)
Appreciate that. Exactly the idea: less prompt-tweaking, more structured context. Glad it was what you were looking for