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
Copy file name to clipboardExpand all lines: AGENTS.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,14 @@ This repository uses Changesets to generate package changelogs.
15
15
- Keep `skills/agentpond/SKILL.md` and `skills/agentpond/references/cli.md` in sync with CLI behavior changes.
16
16
- When a PR changes commands, flags, prompts, environment variables, or storage setup, update the skill in the same PR.
17
17
18
+
## Provider, Project, and Environment Context
19
+
20
+
- A provider is the static platform adapter registered by the CLI. It supplies platform metadata and opens a detected provider project from the current directory. Opening a project may succeed before the project is fully linked or configured.
21
+
- A provider project is the project-bound handle returned by `provider.openProject()`. It owns the detected root and setup label, persistent environment selection, and environment resolution, so commands do not repeatedly pass `cwd` through unrelated provider methods.
22
+
- An environment context is the resolved, per-command data-access state for one selected environment. It contains the project root, AgentPond configuration, local cache path, and lazy object-storage resolution. Resolving one may require provider-specific linking or configuration.
23
+
- Keep the CLI provider registry, supported-platform parsing, and provider setup selection in `apps/cli/src/providers.ts`. Do not add provider-specific branches to `apps/cli/src/environment-context.ts`.
24
+
- Use the provider registry to open a provider project for setup and for rejecting provider-managed projects before full resolution. Use the project handle for environment selection and use an environment context for commands that need resolved cache or storage state.
25
+
18
26
## Duplicate Code
19
27
20
28
- Use the `$dry-refactoring` skill when analyzing or fixing duplicate-code findings.
@@ -30,7 +38,7 @@ This repository uses Changesets to generate package changelogs.
30
38
<!-- gitnexus:start -->
31
39
# GitNexus — Code Intelligence
32
40
33
-
This project is indexed by GitNexus as **agentpond** (1244 symbols, 2914 relationships, 98 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
41
+
This project is indexed by GitNexus as **agentpond** (1323 symbols, 3121 relationships, 105 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
34
42
35
43
> Index stale? Run `node .gitnexus/run.cjs analyze` from the project root — it auto-selects an available runner. No `.gitnexus/run.cjs` yet? `npx gitnexus analyze` (npm 11 crash → `npm i -g gitnexus`; #1939).
Copy file name to clipboardExpand all lines: CLAUDE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
<!-- gitnexus:start -->
2
2
# GitNexus — Code Intelligence
3
3
4
-
This project is indexed by GitNexus as **agentpond** (1244 symbols, 2914 relationships, 98 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
4
+
This project is indexed by GitNexus as **agentpond** (1323 symbols, 3121 relationships, 105 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
5
5
6
6
> Index stale? Run `node .gitnexus/run.cjs analyze` from the project root — it auto-selects an available runner. No `.gitnexus/run.cjs` yet? `npx gitnexus analyze` (npm 11 crash → `npm i -g gitnexus`; #1939).
AgentPond is a lightweight trace backend and CLI for AI applications. It keeps raw traces in object storage you control and syncs them into a local DuckDB cache for fast analysis by developers and coding agents. Use it with Firebase Storage, Amazon S3, Google Cloud Storage, Vercel Blob, or custom infrastructure. Firebase includes an automated one-command setup; other deployments use the manual setup path.
17
+
AgentPond is a lightweight trace backend and CLI for AI applications. It keeps raw traces in object storage you control and syncs them into a local DuckDB cache for fast analysis by developers and coding agents. Use it with Firebase Storage, Amazon S3, Google Cloud Storage, Vercel Blob, or custom infrastructure. Firebase and Vercel include automated setup; other deployments use the manual setup path.
18
18
19
19
## How it works
20
20
21
21

22
22
23
23
Object storage is the durable source of truth. The local DuckDB database is a rebuildable analytical cache, so production traces stay in your infrastructure without requiring an always-on analytics database.
24
24
25
-
## Quick start: Firebase in one command
25
+
## Getting started
26
26
27
-
You need Node.js 22 or newer and an initialized Firebase project with an active project selected through `firebase use`.
27
+
Start with the [Manual deployment setup](./docs/getting-started/manual-setup.md) to choose a write path, configure object storage, instrument the application, and sync its traces into AgentPond.
28
28
29
-
From the Firebase project or any nested package, run:
29
+
For Firebase and Vercel, AgentPond also provides automated quick starts:
Both require Node.js 22 or newer. From the Firebase or Vercel project, run:
30
35
31
36
```sh
32
37
npx agentpond init
33
38
```
34
39
35
-
The command detects the Firebase project and installs two project skills:
36
-
37
-
-`agentpond-instrumentation` teaches a coding agent to add OpenInference tracing and export spans directly with `createFirebaseSpanExporter()`.
38
-
-`agentpond` teaches it to sync and analyze the resulting traces.
39
-
40
-
After installation, copy the prompt printed by `npx agentpond init` into your coding agent. The agent will inspect the server-side application, propose the matching instrumentation, review Firebase Storage access, implement the change, and verify a real trace.
40
+
The command detects the platform, installs AgentPond's instrumentation and analytics skills, and prints a prompt for your coding agent. The agent inspects the trusted Node.js application, proposes the provider-specific setup, implements it after confirmation, and verifies a real trace.
41
41
42
42
Once the application has emitted a trace:
43
43
@@ -46,10 +46,6 @@ npx agentpond sync
46
46
npx agentpond traces list --limit 10
47
47
```
48
48
49
-
See [Firebase setup](./docs/getting-started/firebase.md) for prerequisites and troubleshooting.
50
-
51
-
> For Amazon S3, Google Cloud Storage, Vercel Blob, or custom infrastructure, see [Manual deployment setup](./docs/getting-started/manual-setup.md).
52
-
53
49
## Analyze traces
54
50
55
51
Use focused commands for individual traces and sessions:
@@ -84,6 +80,7 @@ AgentPond does not provide a web UI, hosted trace storage, prompt management, da
0 commit comments