CodeHerderSearch⌘KCtrl KGet started →

Where a task came from

How CodeHerder records who filed a task, how to read its Origin row and Lineage section, and the CLI reads for both.

Every task remembers how it started. It records who filed the task. If an agent filed it while working on something else, it also records which task, session, and stage that was. CodeHerder calls this a task’s origin. A task also connects to other tasks, sessions, and members. CodeHerder calls those connections its lineage.

Origin: how a task was filed

CodeHerder records a task’s origin once, when the task is created. It never changes. The origin is one of these kinds:

  • Filed by an agent: an agent’s session created the task while it worked on something else.
  • Filed by a human: a person created it directly, not through a session.
  • Filed through an integration: an external system created it. This happens through one of your inbound webhook endpoints or a Jira intake rule. ch task show calls this kind integration. It does not mean your connected GitHub or GitLab integrations.
  • Filed through the API: created some other programmatic way, without a session or an integration.
  • Imported: moved in from another place with ch transfer. The Origin row reads “Imported by <member>” and names the transfer.

On the task page

Open a task and find its Origin row. It reads as a sentence:

Filed by <member> during its <Stage> session while working on <task>

Each part appears only when CodeHerder recorded it. The session part names the stage the session ran, for example “its Code session”. It does not show a session ID. A task that an agent filed mid-session usually shows the whole sentence. A task you filed yourself usually names only you.

When no member is recorded, the row names the kind instead: Filed by agent session, Filed by human, Filed by integration, or Filed by API. When a member is recorded, a small label can follow the name: human, integration, or API. A task from an inbound webhook, for example, names the webhook’s acting member and an “integration” label. Agent-session and imported tasks have no label.

Some tasks show Unknown. CodeHerder created those tasks before it started to record origins. This is not an error.

Other ways to create a task always record an origin:

  • A scheduled task is filed in the schedule owner’s name. For a run that someone starts with Run now, it is filed in that person’s name.
  • A survey response that you turn into a task with Convert to task is filed by the person who converted it.

To see only the tasks that certain members filed, see Filtering by creator.

From the CLI

ch task show <taskId>

This command always prints an origin: row. The row says unknown when nothing was recorded. Otherwise it gives the kind, then the member, session, original task, and stage, for those CodeHerder knows. For example:

origin:   agent_session, by Builder (<memberId>), in session <sessionId>, while working Fix the flaky upload test (<taskId>), at stage code

An imported task also names its transfer:

origin:   import, by <name> (<memberId>), from transfer <transferId>

Lineage: what a task connects to

In its All view, the Lineage section shows the connections around one task:

  • who created it
  • what filed it, and what it filed in turn
  • what it depends on, and what depends on it
  • its parent and child tasks
  • the sessions that worked on it, and the agents they ran as
  • for a scheduled task, the schedule that created it

On the task page

The Lineage section draws a small graph with the task at the center. A switch at the top offers two views:

  • Tasks only is the default. It shows the task’s parent, child, dependent, and filed tasks. It follows links between tasks and nothing else.
  • All adds the members, sessions, agents, and schedule around the task.

The web address stores your choice. A link that you share opens the same view.

The switch appears only when the current view has something to draw. A task with no linked tasks shows “No linked tasks yet.” in the default Tasks only view, and no switch. To see who filed such a task, read its Origin row, or run ch task lineage <taskId> --direction up.

From the CLI

ch task lineage [<taskId>] [--depth N] [--direction up|down|both]

Inside an agent session, you can leave out the task ID. The command then uses the session’s task. Everywhere else, pass the task ID.

The command always shows every kind of connection, like All in the web app. No flag limits it to tasks. It prints an indented tree. Each line names a connected member, session, task, or schedule, and how it relates to the line above.

  • --depth sets how many steps out from the task to follow. The default is 3. A larger value counts as 6, the most CodeHerder follows in one request. A value of 0 or less is refused.
  • --direction sets which way to follow connections. The default is both.
    • up shows the task’s parent, its creator, the session that filed it, the task it was filed from, the tasks that depend on it, and its schedule.
    • down shows its child tasks, what it depends on, the sessions that worked on it, the agents they ran as, and the tasks it filed.
    • both shows everything.

--direction down does not show who created the task. To see who filed it, use up or both.

When a lineage is incomplete

A task with many connections can be too big to follow in one request. The Lineage section and ch task lineage then say so. They count two reasons separately:

  • Not shown: the walk stopped at its limit before it reached every connection. In the CLI, use --direction or a smaller --depth to look at one part at a time.
  • Hidden: a connected member, session, or task is not visible to you. You hold no role in its workspace, or it no longer exists. Widening the search does not reveal it.

A task a schedule fires

A scheduled task shows its schedule as a connection in its lineage. You can trace a recurring task back to its schedule. A schedule also lists what each run filed. Open the schedule and look under Recent runs. See Scheduled tasks.

The Tasks page Graph view

The Graph view on the Tasks page has an Origin toggle. When you turn it on, each visible task gets cards for the member and session that filed it. A dashed arrow joins each card to its task. A dashed arrow also runs from a task to each task it filed, when both are on screen. This happens with the toggle on or off. Solid arrows are dependencies.

Filed and worked

CodeHerder can also tell you which tasks a member or a session touched. It tracks two things:

  • Filed: for a member, the tasks their own credential created. For a session, the tasks that session created.
  • Worked: for a member, the tasks their sessions ran. For a session, the tasks it ran. Who filed them does not matter.

A person who files a lot of work but writes no code can have many filed tasks and few worked ones. An agent usually shows the opposite.

In the web app

  • An agent’s page has two panels: Tasks worked and Tasks filed.
  • A session’s page has Tasks worked and Tasks filed in this session.
  • A person’s member page lists the tasks they filed: Open tasks filed here and All tasks filed. It has no worked panel.

From the CLI

ch member tasks [<ref>] --role filed|worked
ch session tasks [<sessionId>] --role filed|worked

--role is required. “Filed” and “worked” answer different questions, so CodeHerder does not guess. Both commands return 50 results by default and up to 200. Use --cursor to get the next page.

There is no ch agent tasks command. An agent is a member, so ch member tasks <agentRef> --role filed|worked covers agents.

ch member show and ch agent show print the filed and worked counts, plus the ch member tasks command for the full list. ch session show prints up to five of the session’s filed tasks and tells you how to see the rest.

Last updated

Try it on one repository for two weeks.

File a task. An agent builds it. You see the cost of each task.

Try "pricing", "connect a device", or "who reviews the code"

↑↓ move · ↵ open · esc close