Skip to content

Credential-sync workflow missing for existing agents #627

Open

Description

@pandore

Problem

The plugin README claims credential-sync has been absorbed into /trinity:onboard and /trinity:sync:

| credential-sync | Absorbed into /trinity:onboard and /trinity:sync |

But neither command actually refreshes credentials for an already-deployed Trinity agent.

What each skill actually does

  • /trinity:sync (skills/sync/SKILL.md) is purely a git-based code sync — push/pull commits between local and remote. The skill makes zero mention of .env or credentials (grep -i credential skills/sync/SKILL.md returns nothing). .env is gitignored by design (per the file's own Directory Structure: What Syncs vs What's Discardable table), so it never travels through this path.
  • /trinity:onboard (skills/onboard/SKILL.md) handles credentials only during initial setup of a brand-new agent — steps 3b/3c create .env with detected credentials. There's no documented path for "I added a new env var to my live agent's .env.example, push it to the deployed instance."

Concrete repro

  1. Onboard an agent. Deploy it to Trinity. Daily run works.
  2. Add a new env var to local .env and .env.example (e.g., a webhook URL for a new integration). Commit + push the .env.example change.
  3. Run /trinity:sync push. Code syncs cleanly. The new env var is not on the remote because .env is gitignored.
  4. The remote agent's next run fails because the new var is missing.

There's no documented next step. The user has to drop to the MCP tool layer (chat_with_agent with a cat >> .env heredoc, or mcp__trinity__inject_credentials if it does what the name implies) to manually push the value — but neither skill surfaces this.

Suggested fixes (either is fine)

  1. Implement a credential-refresh path — e.g., /trinity:sync push --env that diffs .env.example keys against the remote agent's .env keys and prompts for values to upsert via mcp__trinity__inject_credentials. This matches the spirit of what the README claims.
  2. Update the README to remove the "absorbed into" claim and document the manual path (whichever MCP primitive is the supported one). Keep the gitignored-by-design behavior, but stop implying there's a one-command fix when there isn't.

My workaround (fwiw)

Used mcp__trinity__chat_with_agent to send a guarded cat >> .env heredoc that appends only if the keys aren't already present. Worked, but felt out-of-band given the README's claim that this should live inside the sync skill.


Plugin version: 2.0.0 (path: ~/.claude/plugins/cache/abilityai/trinity/2.0.0/).

Activity

  1. added
    complexity-medium
    theme-security
    on Jun 3, 2026
  2. added
    type-feature
    priority-p2
    on Jun 3, 2026
  3. added
    status-incubating
    on Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity-mediumpriority-p2status-incubatingtheme-securitytype-feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions