Skip to content

Commit 5788210

Browse files
committed
add agents.md
1 parent c9edfb3 commit 5788210

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

runtime/AGENTS.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,35 @@
11
# Agents Overview
2+
3+
The `generative-computer` project is a fork of Gemini-CLI that explores an entirely new way for a person to interact with their machine. It retains the Gemini AI agent backend and layers on a React desktop frontend so the user’s requests travel through a richer, bi-directional loop.
4+
5+
In practice, you type into the browser-based UI, the request is forwarded to the Gemini agent, and the agent can do anything it normally could in a command-line environment. On top of that, it can stream UI back by writing to `/frontend`, which the React app watches and renders. This coupling unlocks a more flexible conversation space for both the AI agent and the user.
6+
7+
```
8+
generative-computer/
9+
├── runtime/
10+
│ ├── AGENTS.md # Overview of the agent stack and workflows
11+
│ ├── frontend/
12+
│ │ ├── src/components/
13+
│ │ │ ├── CommandInput.tsx # Always-on prompt box (protected from edits)
14+
│ │ │ ├── Desktop.tsx # Desktop layout and window manager
15+
│ │ │ ├── Window.tsx # Draggable window wrapper
16+
│ │ │ └── GeneratedContent.tsx # File Gemini rewrites on every command
17+
│ │ └── package.json
18+
│ └── backend/
19+
│ ├── server.js # Express API (POST /api/command)
20+
│ ├── gemini-agent.js # Spawns the Gemini CLI bundle with guardrails
21+
│ └── smart-simulator.js # Deterministic fallback content generator
22+
├── bundle/ # Output of `npm run build` (gemini.js lives here)
23+
├── computer # Thin wrapper that forwards to start.sh
24+
├── start.sh # Launch script for auth + both services
25+
└── logs/agent/ # Populated when DEBUG_AGENT=true
26+
```
27+
28+
## How It Works
29+
30+
A generative computer runs an AI agent on the backend that generates code to render what the user requests in real time.
31+
32+
1. You type a request in the computer (rendered in the browser).
33+
2. The backend forwards the request to the Gemini agent.
34+
3. Gemini edits `GeneratedContent.tsx` (and only that file right now).
35+
4. Vite hot-reloads, so the desktop windows morph in real time.

0 commit comments

Comments
 (0)