页面简介
Here's a setup I suspect a lot of you have right now. Claude Code is open in one terminal. Codex is... Tagged with ai, webdev, productivity.
正文摘录
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. 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. 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." 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. 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. 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. 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. 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 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 You assign the Task to the Crew. If the Task is in an executable status and the leader is ready, the leader starts first. The leader reads the Task context and the Crew instructions. The leader either does the work itself or @mentions eligible Agent members for specific pieces. Those members run against the same Task and post results to its chat. 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: 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