跳到正文
DEV Community· Emmanuel Mumba·· 40 分鐘前AI 評分52

Sharkly 如何讓不同 AI 工具協同工作

How Do You Get Different AI Tools to Work Together?

AI 導讀

Sharkly 以 Agents、Tasks 和 Crews 組織不同 AI 工具,讓它們按角色在同一 Task 上協作,並由 leader Agent 協調。Agent 綁定 Runtime 和 Skills,Task 同時記錄負責結果的人員與執行者;多個 Agent 的回覆和執行紀錄會留在該 Task,Crew 則可按流程分派工作。

正文

Here's a setup I suspect a lot of you have right now.

Claude Code is open in one terminal. Codex is open in another because it handles a certain kind of refactor better. The spec was hammered out in a ChatGPT thread last Tuesday. The decision about which endpoint to deprecate is buried in Slack. And the result of all of it eventually shows up as a GitHub PR that you have to review by hand.

Every one of those tools is good. None of them knows the others exist.

So you become the integration layer. You copy the context out of one window and paste it into another. You re-explain the spec to the second agent. You relay the decision from Slack. You remember which agent already tried what. You are the router, the shared memory and the reviewer, all at once.

The usual setup: you are the integration layer between Claude Code, Codex, ChatGPT, Slack/Jira and GitHub

This article is about getting out of that role. First, why AI tools don't cooperate on their own. Then what "working together" actually requires. And finally a concrete way to set it up, using how Sharkly coordinates agents as teammates through Agents, Tasks and Crews.

Why AI tools don't work together by default

It's tempting to think this is a model problem: wait for a smarter model and the agents will figure each other out. It isn't. The failures are structural.

1. Context doesn't travel. Each agent session starts with whatever you put in front of it. When you hand work from one tool to another, the only thing that crosses over is what you copy. Everything else, like the dead ends, the reasons behind a choice, or the file the first agent already fixed, stays behind in a chat window nobody will reopen.

2. There's no shared record. The work is scattered across terminals, chat threads and tickets. Ask "what's the current state of this change?" and the honest answer is "let me check four places."

3. Nobody owns the outcome. An agent can execute, but it can't be accountable. If the work isn't tied to a person who's responsible for it, it drifts.

4. Nobody decides who acts next. Two agents with no coordinator either duplicate work or wait on each other. Someone has to sequence them, and right now that someone is you.

There are already partial fixes. Shared instruction files like AGENTS.md let several coding agents read the same project rules. Some people put a shared markdown workspace behind MCP so different tools can read and write the same notes. Single-vendor tools now ship their own subagent or "agent team" features. And there are handoff scripts that package one tool's session for the next.

These help, but they mostly solve problem #1, carrying context. They don't give you a place where the work lives, a person who's accountable, or a coordinator that decides which agent goes next, especially when the agents come from different vendors.

What "working together" actually needs

If you squint, the thing we want already exists. It's how a human team works:

  • Each teammate has a stable role. You don't re-brief your reviewer from scratch every morning.
  • The work lives in one place. A ticket has the goal, the owner, the discussion and the history.
  • Someone is accountable even when someone else does the work.
  • Someone coordinates when a job needs several people.

So the question changes from "how do I pipe tool A into tool B?" to "how do I give my AI tools roles, a shared record and a lead?" That's the model Sharkly is built around.

How Sharkly stacks the pieces

Sharkly separates who does the work from where it runs. That distinction is what makes mixing tools possible.

How Sharkly stacks the pieces: Computer, Runtime, Agent, Task, Crew

From the bottom up:

  • Computer: the host that runs the work, local or cloud.
  • Runtime: the concrete tool detected on that Computer. Sharkly names Claude Code and Codex as examples, plus similar tools. Model choice lives here, in the Runtime, not on the Agent.
  • Agent: a saved configuration that uses a Runtime.
  • Task: the record the work lives on.
  • Crew: a group of Agents (and people) with a leader.

The top three are team resources. Execution always happens down on a Computer. In practice that means one Agent can run on Claude Code and another on Codex, and they still show up as teammates on the same Task. The vendor stops being the boundary.

Let's go through the layers that matter for coordination.

1. Agents: a role, not a prompt

Sharkly's own definition is the clearest way to put it: an Agent is "a saved working configuration, not a one-off prompt."

That configuration includes:

  • a name and instructions (the role)
  • a Runtime (e.g. Claude Code or Codex) on a connected Computer
  • Skills
  • repositories and environment
  • run settings
  • visibility: Personal, or shared with a Space

There are Agent types to match the job, like "Code development" and "Daily work."

Sharkly Agents list and configuration

Setup is three steps: connect a Computer and confirm a Runtime is available, create the Agent (instructions, Runtime, Skills, visibility), then assign it a Task.

This is what fixes the re-briefing problem. Your reviewer agent always has its review instructions. Your implementer always has the repo bound. You define the role once, and everyone on the team can assign work to it.

Skills: shared standards instead of copy-pasted prompts

A Skill is a reusable instruction bundle with supporting files. You can scope it to the whole organization, to one Space, or to a single Agent, then bind it in Agent settings.

Sharkly Skills

Skills are where the shared rules go: review checklists, delivery checklists, writing standards. If your Claude Code reviewer and your Codex implementer should both follow the same coding conventions, that's one Skill bound to both, not two prompts you keep in sync by hand.

One rule worth keeping: Skills are for the standing rules. Requirements that apply to only one job go on the Task.

2. Tasks: the one place the work lives

This is the part that kills the "check four places" problem.

In Sharkly, a Task is the system of record for a unit of work. It belongs to an Organization and a Space, can sit in a Project or Sprint, and holds the goal, the people, the execution assignee, comments and history.

Sharkly Task view

The key design choice is that a Task has two kinds of assignee:

  • People: the humans responsible for the outcome.
  • An Agent or a Crew: who actually executes.

Both are picked from the same assignee control.

Assigning a person, Agent or Crew in Sharkly

So you can stay accountable while an Agent does the work. That's problem #3 solved without pretending the agent is the owner.

Conversation lives on the Task, too

Instead of a private chat session that disappears, you talk to the assigned Agent from the Task itself. An eligible comment can start or continue the Agent's run. The Agent's replies, activity and execution traces land back on the Task, and each trace stays linked from the comment that triggered it.

Talking to an Agent from the Task in Sharkly

Need someone else in the loop? @mention a person or another Agent on the Task. They see the full context because it's already there. No more pasting the thread into a new window.

Review works the same way: decisions and follow-ups go in comments, state changes go in the activity log, and the results stay on the same Task instead of in somebody's private session.

One gotcha: a comment only starts an Agent run when the Task's execution assignee is an Agent. If the Task is assigned to a person, or nobody, a comment is just a comment.

3. Crews: when one agent isn't enough

A single Agent on a Task is the right call for small, well-defined work. But some jobs need several roles in sequence: plan, implement, review, document. That's where Crews come in.

A Crew is a reusable group of People and Agents coordinated by one leader Agent. It has:

  • a name, description and optional Crew instructions
  • an Owner: a person who manages the Crew (but doesn't replace the leader for execution)
  • a leader: an Agent in the Crew's Space
  • members: Agents and People
  • a visibility setting (Personal or Space) and an optional shared Task directory

Sharkly Crews

The roles are clean. The Owner manages the Crew. The leader Agent coordinates the work. Agent members are the only ones who can start Agent runs. People members take part through the normal Task comments and chat.

How a Task flows through a Crew

How a Task flows through a Crew in six steps

  1. You assign the Task to the Crew.
  2. If the Task is in an executable status and the leader is ready, the leader starts first.
  3. The leader reads the Task context and the Crew instructions.
  4. The leader either does the work itself or @mentions eligible Agent members for specific pieces.
  5. Those members run against the same Task and post results to its chat.
  6. The leader keeps coordinating and combines the results.

This is problem #4, "who goes next?", handed to an agent whose whole job is answering it. And because everything runs against one Task, nothing has to be copied between tools to make it happen.

A worked example

Here's how I'd set up a Crew for API changes. This is my own illustrative setup, not a Sharkly template:

Example API change Crew with a planner lead, implementer, reviewer, docs writer and a human owner

  • Lead / Planner: Claude Code runtime. Breaks the goal into steps and decides who acts.
  • Implementer: Codex runtime, with the service repo bound.
  • Reviewer: Claude Code with a shared "review rules" Skill.
  • Docs writer: a "Daily work" Agent with a writing-standards Skill.
  • Me: Crew Owner, and the accountable person on each Task.

The Crew instructions are where coordination gets defined. Sharkly's guidance is that they should cover when the leader brings in another Agent, which roles exist, how results get combined, and when a person has to decide. Something like:

You lead API change work.

Roles:
- Implementer: makes code changes in the service repo.
- Reviewer: checks every change against the review-rules Skill.
- Docs writer: updates the public API docs and changelog.

Flow:
1. Restate the goal and acceptance criteria from the Task.
2. Mention the Implementer with a scoped plan.
3. When the Implementer reports done, mention the Reviewer.
4. If the Reviewer requests changes, send them back to the Implementer.
5. Once review passes, mention the Docs writer.
6. Post one combined summary: what changed, review outcome, docs links.

Stop and ask a human before: changing a public response shape,
removing an endpoint, or touching auth.

Notice what's not in there: the specifics of any single change. Those go in the Task description (outcome, scope, acceptance criteria). The Crew instructions stay reusable.

Then the day-to-day is just: write a Task like "Add rate limiting to the public /search endpoint, 60 req/min per key, return 429 with Retry-After," set yourself as the accountable person, assign the Crew, and move it out of Backlog. The rest of the back-and-forth happens on the Task, where you can read it, comment on it and step in.

Two Crew settings worth knowing

Shared Task directory. When this is on, a later Crew Agent run on the same Task can reuse the latest eligible working directory on the same Computer, so it keeps the local changes from earlier runs. It shares the filesystem state only, not the earlier Agent's session. Turn it on for ordered work where each step builds on the last (implement, then review the same checkout). Leave it off when isolation is safer or concurrent edits could clash.

Crew-exclusive Agents. You can lock an Agent to one Crew. It then can't be used in private chats or assigned Tasks on its own, and it's hidden from the Agent directory and assignee picker outside the Crew. Handy for a specialist that only makes sense inside a specific workflow. An exclusive Agent can belong to only one Crew at a time.

Gotchas I'd want to know before day one

A few constraints from the docs that will save you some head-scratching:

  • Backlog doesn't start anything. Assigning a Crew to a Task in Backlog won't kick off the leader. Move the Task to an executable status when it's ready.
  • Exactly one leader, and it must be an Agent in the Crew's Space. The leader's row can't be removed or demoted while it's leading.
  • Only Agents start runs. People in a Crew collaborate through comments and chat; they don't trigger runs.
  • Personal Crews are owner-only for assignment. Only the Owner can pick a Personal Crew as a Task assignee. Use Space visibility if the team should share it.
  • Crew chat doesn't create Tasks. It's good for exploring with the leader, but once the discussion turns into actual work, create a Task and assign the Crew so it gets tracked.
  • Archiving a Crew stops new assignments but keeps history. Check for Tasks or automations still pointing at it first.

And the meta-rule from Sharkly's own best practices: don't reach for a Crew by default. If one Agent can do the job, assign one Agent. Add Crew members only when they have a stable reason to be there.

Wrapping up

The answer to "how do you get different AI tools to work together?" turns out not to be a better pipe between them. It's a better structure around them:

  • Give each tool a role (an Agent with instructions, Skills and a Runtime).
  • Put the work in one record (a Task with an accountable human and an execution assignee).
  • Let a leader coordinate when a job needs more than one role (a Crew).

Once that's in place, Claude Code and Codex stop being two tabs you shuttle between and start acting like two teammates on the same ticket. You go back to doing the part only you can do: deciding what "done" means and approving it.

If you want to try it, the Agents and Tasks pages cover the basics, and the Crews docs go into the coordination details.

How are you handling this right now? Are you still the human clipboard between your AI tools, or have you found a setup that works? Let me know in the comments.

來源:DEV Community · dev.to