Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 4.1 KB

AGENTS.md

File metadata and controls

30 lines (18 loc) · 4.1 KB

Codex project notes

Start here

This repository is the C port of Blitz Basic 2 for AmigaOS (68000): compiler blitz2, editor ted, and the acidlibs/deflibs libraries. The repository sources are authoritative; original sources are in archive/, and translation notes are in docs/.

Before project work, read CLAUDE.md in full: neither Codex nor Vibe loads it automatically, but it remains the detailed project guide and source of truth; its "Rules, in order of weight" are binding in Codex and Vibe sessions too. Then read only the relevant project documentation (README.md, docs/development.md, docs/structure.md, tests/README.md, relevant OpenSpec files) for the task.

The current coordinator handoff is ~/.local/share/bb2-c-work/decisions/handoff.md. It is session state, not a permanent rule: verify its claims against git log, git worktree list, and the relevant GitHub state before acting. The scratchpad ~/.local/share/bb2-c-work/ contains reports, logs, experiments, and drafts; it is large, so locate and read only material relevant to the task. Do not put working data in its decisions/ directory.

Decisions

User decisions and their scope are recorded in ~/.local/share/bb2-c-work/decisions/. Read decisions/README.md for the layout and decisions/decisions.md first. For a question that is not settled by an applicable active decision, read process.md and catalog.md completely, then find relevant entries in areas/, tasks/, rounds/, or archive/ as the README describes. Preserve the user's wording and scope; distinguish active decisions from proposals, and report contradictions instead of silently resolving them. Do not edit these files unless the user specifically asks.

Agent definitions

.claude/agents/ holds the authoritative role prompts of this repository: analyst, planning, implementer, tester, docs, and site-writer. Each CLI loads them from its own place, converted where the format differs:

  • Claude Code reads .claude/agents/*.md directly.
  • Codex reads .codex/agents/*.toml (keys model, model_reasoning_effort, developer_instructions); see the official Codex subagents guide before converting a role.
  • Vibe reads .vibe/agents/*.toml with agent_type = "subagent"; a role is spawned by its file name (config_name) through the agents tool. Vibe's key names differ (instructions, description). The Claude model names (opus, sonnet, fable) have no Vibe equivalent, so each role sets active_model to an alias defined in this repository's .vibe/config.toml (project layer, loaded because the folder is trusted; overrides ~/.vibe/config.toml here) whose [[models]] entry also pins the thinking level: large-4-thinking-high for analyst, planning and implementer, medium-3-5-thinking-high for tester (bug-orig semantics are subtle), and a lower thinking level for the mostly mechanical writing roles (large-4-thinking-medium for site-writer, medium-3-5-thinking-off for docs; the models take only certain levels - large-4: low/medium/high, medium-3.5: high/off) - try it and measure before keeping it. Claude-specific commands were translated: background processes plus the wait tool instead of run_in_background/Monitor, and no Anthropic Co-Authored-By trailer (Vibe adds the commit signature itself via include_commit_signature).

When a role changes in .claude/agents/, port the change to .codex/agents/ and .vibe/agents/ in the same commit. Use subagents only when the user or applicable instructions explicitly request delegation.

Reminders

  • Check git status before editing; stage only files for the requested topic. Keep commits focused and do not push unless explicitly asked.
  • Repository and GitHub text is English. Keep original files under archive/ unchanged.
  • Follow the original-bug workflow and result-comparison rules in CLAUDE.md and docs/development.md for compiler/library behavior changes.
  • Build and test commands, emulator constraints, licensing, and detailed code conventions are in CLAUDE.md, README.md, and tests/README.md; consult them when applicable.