https://github.com/cephalization/document-agent
A simple example of a CLI Agent that can edit a document. Traced for https://github.com/Arize-ai/phoenix
https://github.com/cephalization/document-agent
agent ai clack-prompt llm nodejs opentelemetry typescript
Last synced: about 2 months ago
JSON representation
A simple example of a CLI Agent that can edit a document. Traced for https://github.com/Arize-ai/phoenix
- Host: GitHub
- URL: https://github.com/cephalization/document-agent
- Owner: cephalization
- Created: 2025-11-04T01:51:01.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-11-04T02:06:54.000Z (8 months ago)
- Last Synced: 2025-11-04T04:12:50.089Z (8 months ago)
- Topics: agent, ai, clack-prompt, llm, nodejs, opentelemetry, typescript
- Language: TypeScript
- Homepage:
- Size: 954 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Document Agent
A simple example of a CLI Agent that can edit a document. Traced for [Arize Phoenix](https://github.com/Arize-ai/phoenix).

## Running
The document agent leverages Node.js 24 in order to execute without transpilation.
To run, just simply run the following command:
```bash
pnpm i
export OPENAI_API_KEY=your-openai-api-key
# running nodejs v23 or higher
pnpm start
```
## Tracing
Every interaction with the agent will be traced and sent to Phoenix in one giant agent trace when the user exits the agent.
To start a temporary in-memory Phoenix tracing server, run the following command:
```bash
pnpm d:up
```
To delete the phoenix server, run the following command:
```bash
pnpm d:down
```
### Viewing Traces
Traces can be viewed at http://localhost:6006/ in the project "document-agent".
Many interstitial spans will be produced while talking to the agent. A final root span will be produced when the user exits the agent.