Skip to content

Commit 2eebade

Browse files
SniderVirgil
andcommitted
feat(docs): /go/agent/ — first per-package landing replaces redirect
Demonstrates the migration pattern: drop a Starlight MDX page at src/content/docs/go/<pkg>.mdx with a per-page head: override carrying the package-specific go-import / go-source meta tags. The static redirect at public/go/<pkg>/index.html gets removed so the Starlight page wins. Result for /go/agent/: - Real docs page (sidebar entry under "Packages") - go-import meta = dappco.re/go/agent → github.com/dappcore/agent.git (page-level head replaces the global dappco.re/go default) - go-source likewise scoped to dappcore/agent Same pattern applies for mcp, miner, pool, proxy, stream, tenant when they're ready — each is a separate Starlight page + redirect removal. Note Snider's path migration: post-rename consumers import dappco.re/go/agent (not dappco.re/go/core/agent). The legacy core/ path keeps resolving via the unchanged public/go/core/agent/ redirect. Co-Authored-By: Virgil <virgil@lethean.io>
1 parent dd98906 commit 2eebade

3 files changed

Lines changed: 50 additions & 11 deletions

File tree

astro.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ export default defineConfig({
5050
{ label: 'Errors', slug: 'go/error' },
5151
],
5252
},
53+
{
54+
label: 'Packages',
55+
items: [
56+
{ label: 'agent', slug: 'go/agent' },
57+
],
58+
},
5359
],
5460
}),
5561
],

public/go/agent/index.html

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/content/docs/go/agent.mdx

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: agent
3+
description: Agent runtime for the dappcore ecosystem — dispatch, sessions, fleets, plans.
4+
head:
5+
- tag: meta
6+
attrs:
7+
name: go-import
8+
content: 'dappco.re/go/agent git https://github.com/dappcore/agent.git'
9+
- tag: meta
10+
attrs:
11+
name: go-source
12+
content: 'dappco.re/go/agent https://github.com/dappcore/agent https://github.com/dappcore/agent/tree/main{/dir} https://github.com/dappcore/agent/blob/main{/dir}/{file}#L{line}'
13+
---
14+
15+
The agent package is the runtime layer for autonomous coding agents — dispatch
16+
pipeline, session state, fleet coordination, and plan execution. Built on the
17+
[`core/go`](/go/) primitives.
18+
19+
## Install
20+
21+
```sh
22+
go get dappco.re/go/agent@latest
23+
```
24+
25+
## Import
26+
27+
```go
28+
import "dappco.re/go/agent"
29+
```
30+
31+
The path drops the legacy `core/` segment — `dappco.re/go/agent`, not
32+
`dappco.re/go/core/agent`. Existing consumers on the legacy path are still
33+
resolved by the redirect at [/go/core/agent/](/go/core/agent/) and continue
34+
to compile against the same source repo.
35+
36+
## Status
37+
38+
Page in flight — content fills in as the package converges. Source of truth
39+
today is the README and inline docstrings in the repo.
40+
41+
## Source
42+
43+
[`github.com/dappcore/agent`](https://github.com/dappcore/agent) — full source,
44+
issues, and releases.

0 commit comments

Comments
 (0)