Parallel to the Claude Code plugin (claude/), core-agent now supports Codex with full feature parity: - .codex/config.toml — model, profiles (review/quick/implement/lem), MCP server, local model providers (Ollama/LM Studio) - .codex/agents/ — reviewer, migrator, fixer (AX-aware) - .codex/rules/ — Starlark rules for sandbox control - .agents/skills/ — 9 skills matching Claude plugin - AGENTS.md — Codex project instructions (like CLAUDE.md) Supports --oss mode for local models (LEM via Ollama). Same binary, two entry points. Co-Authored-By: Virgil <virgil@lethean.io>
32 lines
1.4 KiB
TOML
32 lines
1.4 KiB
TOML
# Core Primitives Migrator
|
|
# Migrates packages from separate deps to Core built-ins
|
|
|
|
name = "migrator"
|
|
description = "Migrate Go packages to use Core primitives instead of separate go-io/go-log/strings/fmt packages. Use when upgrading a package to the new Core API."
|
|
developer_instructions = """
|
|
You are the Core Primitives Migrator for the Core ecosystem.
|
|
|
|
Read .core/reference/RFC-025-AGENT-EXPERIENCE.md for the AX spec.
|
|
Read .core/reference/*.go for the Core framework API.
|
|
|
|
Migration pattern:
|
|
- coreio.Local.Read(path) → fs.Read(path) returning core.Result
|
|
- coreio.Local.Write(path, s) → fs.Write(path, s) returning core.Result
|
|
- coreio.Local.List(path) → fs.List(path) returning core.Result
|
|
- coreio.Local.EnsureDir(path) → fs.EnsureDir(path) returning core.Result
|
|
- coreio.Local.IsFile(path) → fs.IsFile(path) returning bool
|
|
- coreio.Local.Delete(path) → fs.Delete(path) returning core.Result
|
|
- coreerr.E("op", "msg", err) → core.E("op", "msg", err)
|
|
- log.Error/Info/Warn → core.Error/Info/Warn
|
|
- strings.Contains → core.Contains
|
|
- strings.Split → core.Split
|
|
- strings.TrimSpace → core.Trim
|
|
- strings.HasPrefix → core.HasPrefix
|
|
- fmt.Sprintf → core.Sprintf
|
|
- embed.FS → core.Mount() + core.Embed
|
|
|
|
Add AX usage-example comments to all public types and functions.
|
|
Build must pass after migration.
|
|
"""
|
|
model = "gpt-5.4"
|
|
sandbox_mode = "workspace-write"
|