Skip to content

Define agent communication protocol in AGENTS.md #1

@code2hack

Description

@code2hack

Context

Before Video Pal product implementation starts, we should define the collaboration rules between the human owner, ChatGPT, and Codex. The current harness has useful execution rules, but it does not yet fully define communication, durable memory, truth management, and Git-based handoff.

The core principle: the repository should be the shared memory bus, and Git should be the main communication protocol.

Goal

Update AGENTS.md and any supporting docs so future ChatGPT/Codex sessions can cooperate without relying on copy/paste between chat sessions.

Proposed Agent Communication Protocol

1. Repository is the Source of Truth

Do not rely on chat history as persistent memory.

Priority order for truth:

  1. Repository files
  2. Git history
  3. Issues / PRs
  4. Current session chat
  5. Agent assumptions

If something exists in chat but not in the repo, treat it as provisional.

2. Git Is the Communication Layer

Agents should communicate primarily through tracked artifacts:

  • AGENTS.md
  • feature_list.json
  • progress.md
  • session-handoff.md
  • future docs/state/current.md
  • future docs/state/decisions.md
  • commit messages
  • issues / PRs

Expected flow:

Human
  ↓
tracked project artifacts
  ↓
Codex implementation
  ↓
commit / PR / issue updates
  ↓
ChatGPT review and planning
  ↓
tracked project artifacts

3. Commit Messages Are Status Messages

Commits should communicate intent, verification, and remaining risks.

Preferred style:

feat(transcript): add whisper ingestion pipeline

Verified:
- sample1.mp4
- sample2.mp4
- npm test

Remaining:
- speaker diarization

Avoid vague messages such as:

update code
fix stuff
wip

4. Cross-Session Memory Rule

Every agent session should be restartable from:

git clone <repo>
cat AGENTS.md
cat feature_list.json
cat progress.md
git log --oneline -20
./init.sh

If this is not enough to understand current state, then knowledge is leaking into chat and the harness is failing.

5. Evidence Over Claims

Agents should not claim done, works, or fixed without evidence.

Evidence should include:

  • commands run
  • test/lint/type-check results
  • manual verification steps
  • known failures
  • environmental assumptions

Evidence must be written to progress.md, feature_list.json, or another tracked state file, not only chat.

6. Common-Sense Acknowledgement Rule

Avoid noisy acknowledgements.

Bad:

Understood.
Got it.
Sure.
Absolutely.

Good:

Decision recorded:
Architecture = local-first.

Next action:
Implement ingestion pipeline.

The acknowledgement should create or reference a durable state change.

7. Durable Architecture Decisions

Any decision that affects future development should be recorded in tracked docs.

Examples:

  • Use Python
  • Use FastAPI
  • Use local Whisper
  • Use SQLite
  • No cloud dependencies
  • DGX Spark local runtime assumptions

Suggested locations:

  • docs/decisions/
  • docs/architecture.md
  • docs/state/decisions.md

8. Role Boundaries

Human owner:

  • product direction
  • final authority
  • approval of scope
  • secrets / deployment decisions

ChatGPT:

  • planner
  • reviewer
  • architect
  • requirements clarifier
  • consistency checker
  • GitHub-facing project steward

Codex:

  • local implementation agent on DGX Spark
  • file edits
  • commands/tests
  • refactors
  • commits/pushes

Neither AI agent owns product direction.

9. Conflict Resolution

If ChatGPT and Codex disagree:

  1. Check AGENTS.md
  2. Check feature definition
  3. Check architecture / decision docs
  4. Check existing code
  5. Present tradeoffs
  6. Human owner decides

Do not silently fork architecture.

10. Suggested State Files

Consider adding:

docs/state/current.md
docs/state/decisions.md

Use docs/state/current.md for the current snapshot of project status.
Use docs/state/decisions.md for durable architectural/product decisions.
Keep progress.md as a rolling activity log.

Acceptance Criteria

  • AGENTS.md includes an Agent Communication Protocol section.
  • The protocol clearly states that Git/repo artifacts are the main communication channel.
  • The protocol defines role boundaries for human owner, ChatGPT, and Codex.
  • The protocol defines source-of-truth order.
  • The protocol requires evidence for all completion claims.
  • The protocol defines cross-session memory expectations.
  • progress.md records this rule-definition work and any unresolved decisions.
  • feature_list.json is updated if this becomes the active feature.

Important Scope Note

Do not start Video Pal app implementation until this cooperation protocol is agreed and recorded in the harness.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions