Skip to content

Add AGENTS instructions - #10

Merged
samxu01 merged 1 commit into
mainfrom
codex/create-agents.md-for-backend-and-frontend
May 28, 2025
Merged

samxu01 merged 1 commit into
mainfrom
codex/create-agents.md-for-backend-and-frontend

Conversation

@samxu01

@samxu01 samxu01 commented May 28, 2025

Copy link
Copy Markdown
Contributor

Summary

  • document how Codex should lint and test the project
  • expand AGENTS with project structure and architecture overview

Testing

  • npm run lint

@samxu01
samxu01 merged commit c77ae23 into main May 28, 2025
samxu01 added a commit that referenced this pull request Feb 2, 2026
@samxu01
samxu01 deleted the codex/create-agents.md-for-backend-and-frontend branch February 2, 2026 04:34
samxu01 pushed a commit that referenced this pull request Apr 3, 2026
MubaiHua pushed a commit that referenced this pull request Apr 20, 2026
samxu01 added a commit that referenced this pull request May 24, 2026
…); 2 Phase-4 findings

Phase 2 restart on new branch:

- Claude (sam-local) shipped a complete docs/local-dev/credentials.md
  runbook + .env.example restructure as text-to-commit at 6:34 PM
  (before the prior close-out cron exited). Path/recipe needs minor
  adjustments before commit. Routed to Theo/Cody/Nova for paste +
  push, with 30-min claim-the-orphan timer.
- Phase-4 #10 added: monitor cron should not stop the instant a
  stop condition hits — run one more tick after delay to catch
  long-tail in-flight responses. Claude's 2.E delivery would have
  been picked up on tick T+102min if I hadn't cancelled at T+97.
- Phase-4 #11 added: Claude (CLI-wrapper) writes principles to its
  OWN claude-code memory store (~/.claude/projects/...), NOT
  Commonly's agentmemories collection. Direct mongo query confirms
  theo/nova/cody have 0 rows in agentmemories. Cross-agent memory
  continuity doesn't work for CLI wrappers — compounds with #6
  (MCP tools not loaded).

No branch commits on phase-2 yet. 12-min monitor cron 88af22d0
armed.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
lilyshen0722 added a commit that referenced this pull request Aug 20, 2026
Sam's ruling after eyeballing the full roster in six deterministic styles:
humans render bigSmile, agents render bottts. Face = person, robot = agent —
readable with zero badges, which most agent-team products need a label for.

Deterministic local SVG from a seed: no image API, no art pipeline, so
install #10,000 costs what install #1 did. Seeds are STABLE IDENTITY
(agentName:instanceId / userId), not display names, so a rename never changes
someone's face. The seeded palette tint becomes the character's background so
the tier stays inside the existing palette.

Returns null on empty seed or generation failure; callers fall back to the
gradient+initials tier, which cannot fail.
lilyshen0722 added a commit that referenced this pull request Aug 20, 2026
* chore(v2): add @dicebear core+collection, pinned to the compared version

* feat(v2): character avatar tier — faces for humans, robots for agents

Sam's ruling after eyeballing the full roster in six deterministic styles:
humans render bigSmile, agents render bottts. Face = person, robot = agent —
readable with zero badges, which most agent-team products need a label for.

Deterministic local SVG from a seed: no image API, no art pipeline, so
install #10,000 costs what install #1 did. Seeds are STABLE IDENTITY
(agentName:instanceId / userId), not display names, so a rename never changes
someone's face. The seeded palette tint becomes the character's background so
the tier stays inside the existing palette.

Returns null on empty seed or generation failure; callers fall back to the
gradient+initials tier, which cannot fail.

* feat(v2): kind/seed props render the character tier

Omitted kind keeps today's gradient+initials — a caller that cannot tell who
it is drawing must not guess, because mislabelling the tier mislabels the
PERSON. Photo always wins. Memoized: chat re-renders per message and the SVG
build is not free.

* feat(v2): thread isBot through message normalization

The PG SELECT always fetched u.is_bot; the backend mapper now forwards it.
undefined stays undefined — unknown renders the neutral tier rather than
guessing a species.

* fix(pg): stop dropping is_bot in the message mapper

Selected since the beginning, discarded at the mapper — the frontend could
never tell an agent's message from a human's without a second lookup. Also
adds is_bot to the second SELECT variant, which never fetched it.

* feat(v2): chat avatars split by species, seeded on user_id

* feat(v2): team cards render robots, seeded on agentName:instanceId

* feat(v2): agent profile hero renders its robot

* feat(v2): DiceBear attribution on login — CC BY 4.0 requirement, not decoration

* docs(design): the spec moves with the species-split decision

Supersedes this morning's 'never the chat-stream default' sentence — Sam's
ruling puts robots in the stream for agents, and the spec follows the
decision rather than outliving it.

* test(v2): determinism, species distinctness, roster distinctness, fallback

Includes scout's per-user instances — a name-only seed would collapse 115
identities into one robot.

* fix(pg): the declared userId type moves with the mapper

Both CI failures were this one line: the mapper now emits isBot but the
FormattedMessage type did not admit it, so Test & Coverage failed the backend
tsc check and E2E died at 'Start backend' before the frontend ever built.
Verified with the backend's own tsc locally this time.

* fix(v2): branch the createAvatar call, not the style argument

Each dicebear style module carries its own Options generic; the ternary made
a union the Style<Options> parameter cannot accept. Same behaviour, per-call
generic instantiation.

* fix(v2): let jest transform dicebear ESM

CRA excludes node_modules from babel; @dicebear ships ESM, so every suite that
transitively imports V2Avatar died with Cannot-use-import-outside-a-module.
Same allowlist mechanism the config already uses for axios.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant