November 13, 2026 · 5 min read

One rule set, three AI coding tools: Claude Code, Codex and Copilot

  • claude-code
  • openai-codex
  • github-copilot
  • ai-coding
  • agentic-coding
  • spec-driven-development

I use three AI coding tools on Balyria, my personal finance app on Google Play: Claude Code, OpenAI Codex and GitHub Copilot. Claude Code is my main tool for planning and implementation. I switch to Codex or Copilot when a task plays to their strengths.

Three tools could easily mean three sets of rules. Each one has its own place for project instructions, and if I wrote the same rules three times, they would drift apart within a month. One tool would learn that silent data loss blocks a release, and another wouldn't. So the rules live in one place, and every tool is pointed at it.

AGENTS.md is the single source

AGENTS.md sits at the root of the repo and calls itself the canonical guidance for the project. It holds the rules that apply everywhere, whatever the task and whichever tool is doing it:

  • what the app is and how it's put together
  • what lives in the database and what may live in fast key-value storage
  • the invariants a change must never break
  • the release blockers
  • the safe-change workflow

Here's the top of it, lightly trimmed:

# AGENTS.md

Canonical repo guidance for Balyria.

## Project identity

- Balyria is an Expo Router React Native offline-first personal finance app.
- Durable user-created finance data is stored in SQLite.
- MMKV is only for lightweight scalars, runtime cache, and local flags.
- Silent data loss is release-blocking.

That last line matters more than any style rule. In a money app, a change that quietly loses a record is worse than a crash, so it's written down as release-blocking where every tool will read it.

What stays out of AGENTS.md matters too. Task workflows, navigation notes and review behavior live in their own files, so the shared file stays short enough to read in full at the start of every task.

How each tool reaches it

Each tool keeps a thin file of its own that points back to the same source.

Claude Code reads CLAUDE.md, which imports AGENTS.md as its doctrine and adds only how to route the work:

# CLAUDE.md

Canonical doctrine: @AGENTS.md

- Classify the task before reading.
- Load only the relevant maps, rules, skills, or agents.
- Change the lowest correct layer.

Codex reads AGENTS.md directly. Its task workflows live as skills in .agents/skills/, and each one names AGENTS.md as the canonical source.

GitHub Copilot gets .github/copilot-instructions.md, which starts with a reading order:

Read in this order before making code changes:
1. AGENTS.md (canonical architecture + invariants + safe-change rules)
2. .github/instructions/architecture.instructions.md
3. .github/instructions/release-blockers.instructions.md
4. .github/instructions/safe-change.instructions.md

When a rule changes, I change it once, in AGENTS.md. The tool-specific files rarely change, because they mostly say "read that first".

Skills, maps and rules per feature

The shared file covers the whole repo. Feature work needs narrower context, so each area of the app gets its own skill (how to work on it), map (where its code and tests live) and rule file (what must never change). CLAUDE.md routes each kind of task to the right set: a screen change goes to the screen skill and a UI implementer agent, and a storage change goes to the persistence skill, map and rules.

I wrote about why this scoping saves time and tokens in How I run Claude Code. The difference now is that the per-feature files sit under one shared rule set instead of standing alone.

Review agents for the risky parts

Some changes are riskier than others, so the setup includes read-only review subagents, each focused on one risk area: persistence, backup and restore, notifications, and refactor continuity. There's also a test planner, and a release-risk reviewer that looks only at changed files and reports findings by severity:

---
name: release-risk-reviewer
description: Review changes for Balyria release blockers and financial durability risks.
tools: Read, Grep, Glob
model: sonnet
---

Review changed files only for release blockers. Do not edit.
For each finding: severity, file, release risk, required fix or test.

The models are routed too. Quick lookups, like finding files and tests, run on a small, cheap model. Implementation and reviews run on a stronger one. Moving up to the most capable model is a deliberate choice, not a default.

Prompts with structure

I write prompts as XML-structured templates, the same way in every tool. A bug fix, for example:

<task>
Fix [issue] at the real source of truth.
</task>

<constraints>
- fix at the correct layer (data → logic → derivation → UI)
- do not patch UI for logic issues
- if a saved data shape changes, update the full persistence chain, tests included
</constraints>

<output>
- root cause
- changed files
- verification
</output>

The template asks the same questions every time: where the bug really lives, what must not break, and how the fix was checked.

Where my judgment stays

None of this hands the decisions to the tools. The rules make that explicit:

  • Risky work starts with an audit and a plan, and implementation waits for my approval.
  • The agents don't stage or commit unless I ask.
  • They don't run tests, builds or the app by default. They give me a validation checklist, and I decide what runs, starting with the smallest targeted check.

AI speeds up the work. Decisions on architecture, data and security stay mine, and every change is reviewed and tested before it ships.

Picking a tool for a task

Because all three tools read the same rules, choosing one is about fit, not risk. Claude Code does most of my planning and implementation. I reach for Codex or Copilot depending on the task, since each has its own strengths. Switching mid-feature doesn't change the guardrails, because the guardrails don't belong to any one tool.

The takeaway

If you use more than one AI coding tool, don't configure them separately. Put the rules that matter in one file, make every tool read it first, and keep each tool's own file thin. The tools will keep changing. Your project's rules shouldn't have to.

FAQ

Can Claude Code, Codex and Copilot share one set of project rules?
Yes. On Balyria, AGENTS.md is the single source of project rules. Codex reads it directly, CLAUDE.md imports it for Claude Code, and the Copilot instructions tell Copilot to read it first. Each tool keeps only a thin file of its own.
Which tool do you use for what?
Claude Code is my main tool for planning and implementation. I switch to OpenAI Codex or GitHub Copilot depending on the task, since each has its own strengths. Because they all read the same rules, switching doesn't change the guardrails.
Do the AI agents run your tests?
Not by default. The rules tell them to give me a validation checklist instead of running tests or builds. I decide what runs, starting with the smallest targeted check, and every change is reviewed and tested before it ships.
Does Balyria itself use an LLM?
No. Ask Balyria, the assistant inside the app, is rule-based and works offline: no cloud and no LLM, so financial data stays on the phone. The AI tools in this post are how I build the app, not something the app sends your data to.

Written by

Arvin Kent Lazaga

Senior software engineer · Backend & full-stack · Cebu, Philippines. I build production web, mobile, and backend systems across different stacks using Claude Code, OpenAI Codex, GitHub Copilot, and disciplined planning, review, and testing.

06 / Keep the conversation going

Let’s Connect.

Interested in discussing software engineering, technology, or professional collaboration? Feel free to connect.

arvinkent121816@gmail.com

Also reachable at

arvinkentslazaga@gmail.comExplore GitHub