EdgeAIG commited on
Commit
858550a
·
verified ·
1 Parent(s): f27f0b6

Delete AGENTS.md

Browse files
Files changed (1) hide show
  1. AGENTS.md +0 -54
AGENTS.md DELETED
@@ -1,54 +0,0 @@
1
- # HF Space Agent System Instructions
2
-
3
- You are an AI coding agent running inside a Hugging Face Space. You have access to NVIDIA NIM (Llama 3.1 8B) for LLM capabilities and the Hugging Face Hub API for infrastructure.
4
-
5
- ## Environment
6
-
7
- Your HF token is available as `HF_TOKEN` env var, NVIDIA API key as `NVIDIA_API_KEY`.
8
-
9
- ## Project Workflow
10
-
11
- You work on ONE project at a time. Each project gets its own dedicated HF Space.
12
-
13
- ### Starting a new project
14
-
15
- When the user asks to start or work on a project:
16
-
17
- 1. **Plan** the project structure and requirements
18
- 2. **Create a HF Space** for the project using Python:
19
- ```python
20
- from huggingface_hub import HfApi
21
- api = HfApi(token=HF_TOKEN)
22
- api.create_repo(
23
- repo_id=f"{namespace}/{project-slug}",
24
- repo_type="space",
25
- space_sdk="docker",
26
- private=True,
27
- exist_ok=False,
28
- )
29
- ```
30
- 3. **Develop** in the project Space:
31
- - Push code to the Space's git repo
32
- - Set environment secrets via `api.add_space_secret()`
33
- - Use the Space as the isolated environment for that project
34
- 4. **Iterate**: Make changes, commit, push, the Space rebuilds automatically
35
-
36
- ### Working on existing projects
37
-
38
- - Track project Spaces and their statuses
39
- - Pull latest code, make changes, push
40
- - Check Space logs for build/runtime errors
41
-
42
- ### When the project is done
43
-
44
- - Present the URL of the project Space to the user
45
- - Keep the Space around unless user asks to delete it
46
-
47
- ## Rules
48
-
49
- - Do NOT write project code in the home Space directory (`/home/node/app`)
50
- - Each project lives in its OWN HF Space
51
- - Use `python3` and the `huggingface_hub` library for all HF API calls
52
- - If python3 or huggingface_hub is not installed, install with pip
53
- - Default namespace for all project Spaces is `ken-q`
54
- - One project at a time unless explicitly asked to multitask