You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The examples/second-brain work exposed a product-story gap in Agentic.
Agentic has a coherent set of primitives: personas, skills, workflows, artifacts, memory, dispatch vocabulary, and workspace conventions. But when explaining the second-brain example, the natural user question is still:
How do I actually run this thing?
Historically we have been careful that @tnezdev/agentic does not ship a low-level agent harness. That boundary still feels right. But the project needs a better answer than "bring your own harness" if the public examples are going to feel real.
This umbrella tracks the path toward runtime packages: Agentic remains runtime-agnostic at core, while the CLI becomes the stable front door for installing and delegating to runtime packages.
North-star DX
The story we want to make true:
bun add @tnezdev/agentic
agentic init --example second-brain
agentic runtime add local
agentic runtime init local
agentic runtime run <target>
A user should be able to install Agentic, initialize a workspace, choose where it runs, and then run a meaningful target from that workspace.
Product direction
@tnezdev/agentic remains the core package and CLI entry point.
Runtime packages are separate packages in the same monorepo.
The first runtime package is @tnezdev/agentic-runtime-local.
The public runtime name is local, not pi.
The local runtime may use the Pi agent harness / Pi SDK under the hood.
A later Cloudflare runtime should be possible, but it is not the first implementation slice.
The second-brain example is the proving ground: it should become runnable, not just illustrative.
Intended monorepo shape
Target direction:
package.json # private workspace root
packages/
agentic/ # @tnezdev/agentic
agentic-runtime-local/ # @tnezdev/agentic-runtime-local
agentic-runtime-cloudflare/ # later, design-only for now
examples/
second-brain/
The core package should move into packages/agentic before runtime packages become real first-class packages.
Boundary decisions to preserve
These are the important decisions from the initial design conversation. Future work should preserve them unless a later design issue explicitly changes them.
Core Agentic is still not a low-level harness.
Core Agentic should not own model loops, tool execution, provider switching, terminal UI, compaction, or conversation trees.
Runtime packages own harness/platform integration.
local is a runtime target; Pi is an implementation detail of that target.
Do not introduce a full Agentic session primitive as part of the first runtime slice.
Pi already owns harness sessions/session trees. Agentic may record lightweight runtime invocation metadata with a harness reference.
Dispatch can remain the vocabulary seam without forcing core to own transport, scheduling, or hosting.
Cloudflare should be informed by the local runtime learnings, not designed first in the abstract.
Runtime vocabulary
Useful distinctions for future design work:
WorkflowRun: state/history for an Agentic workflow graph.
RuntimeInvocation: one call into a runtime package, such as agentic runtime run inbox-review.
HarnessSession: the external harness' session/conversation object, such as a Pi session tree.
Artifact: durable Agentic output produced by work.
The likely first persistent record is RuntimeInvocation, not Session.
Why this exists
The
examples/second-brainwork exposed a product-story gap in Agentic.Agentic has a coherent set of primitives: personas, skills, workflows, artifacts, memory, dispatch vocabulary, and workspace conventions. But when explaining the second-brain example, the natural user question is still:
Historically we have been careful that
@tnezdev/agenticdoes not ship a low-level agent harness. That boundary still feels right. But the project needs a better answer than "bring your own harness" if the public examples are going to feel real.This umbrella tracks the path toward runtime packages: Agentic remains runtime-agnostic at core, while the CLI becomes the stable front door for installing and delegating to runtime packages.
North-star DX
The story we want to make true:
A user should be able to install Agentic, initialize a workspace, choose where it runs, and then run a meaningful target from that workspace.
Product direction
@tnezdev/agenticremains the core package and CLI entry point.@tnezdev/agentic-runtime-local.local, notpi.Intended monorepo shape
Target direction:
The core package should move into
packages/agenticbefore runtime packages become real first-class packages.Boundary decisions to preserve
These are the important decisions from the initial design conversation. Future work should preserve them unless a later design issue explicitly changes them.
localis a runtime target; Pi is an implementation detail of that target.sessionprimitive as part of the first runtime slice.Runtime vocabulary
Useful distinctions for future design work:
WorkflowRun: state/history for an Agentic workflow graph.RuntimeInvocation: one call into a runtime package, such asagentic runtime run inbox-review.HarnessSession: the external harness' session/conversation object, such as a Pi session tree.Artifact: durable Agentic output produced by work.The likely first persistent record is
RuntimeInvocation, notSession.Relationship to existing issues
This issue is related to, but distinct from:
Starter issue map
The first pass of sub-issues is intentionally small and ordered around learning. Add more sub-issues here as the roadmap sharpens.
Suggested order:
Non-goals for the first slice
sessionprimitive.Future-self notes
If you are picking this up in a future session:
Close criteria
This umbrella can close when:
@tnezdev/agenticlives as a core package in a monorepo.@tnezdev/agentic-runtime-localexists as a first-class package.agentic runtime ...surface.examples/second-braindocuments and demonstrates a real local runtime path.