Skip to content

[Upstream #210] Add ingestion bridge for local agent telemetry warehouse #155

@quangdang46

Description

@quangdang46

Mirrored from upstream 1jehuang/jcodeIssue #210 by @Zephyr709
Original state: open
Created: 2026-05-14T00:15:26Z · Updated: 2026-05-14T10:04:44Z
This issue is an auto-mirrored copy. Comments and edits here are local to quangdang46/jcode — do not expect them to propagate upstream.


Background

A local-first agent telemetry warehouse MVP now exists outside this repo at /Users/jagercooper/code/agent-telemetry. It provides:

  • PostgreSQL/Neon-compatible schema for agent runs, events, spans, prompts, skills, rule sets, experiments, and task outcomes
  • Python CLI for manual/scripted logging
  • SQL views and analysis queries for subagent effectiveness, rule impact, and prompt comparison

Follow-up

Add a Jcode ingestion bridge so tool events, model metadata, swarm/subagent lifecycle events, and task outcomes can be written to the telemetry warehouse automatically or semi-automatically.

Initial design questions

  • Should ingestion be direct DB writes, CLI subprocess calls, or an event-export file that a daemon imports?
  • Which events should be captured by default without leaking sensitive content?
  • How should sessions map to agent_runs, agent_events, agent_spans, and task_outcomes?
  • How should user opt-in/config be represented?

Acceptance criteria

  • Config-gated telemetry export path.
  • Captures at least run start/end, tool call/result metadata, swarm spawn/report lifecycle, and outcome annotations.
  • Does not include prompts, code, file paths, or personal content by default.
  • Documented local Postgres setup and validation path.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions