Split config: VRAM/model settings to config.md, agent behavior to AGENT.md
This commit is contained in:
@@ -8,6 +8,7 @@ Your only job is to set up the minimal agent framework structure in the target p
|
||||
2. ~/.agent-framework/ONBOARDING.md — human reference for drop-in vs from-scratch scenarios
|
||||
3. {project}/.agent-framework/AGENT.md (if it exists)
|
||||
4. {project}/.agent-framework/RULES.md (if it exists)
|
||||
5. ~/.agent-framework/scripts/vram_detect.sh (if exists — for VRAM detection)
|
||||
|
||||
## Task
|
||||
|
||||
@@ -36,6 +37,32 @@ Before proceeding, check if the project is running an older version of the frame
|
||||
5. Explore the project root at a high level (ls, key directories, README if present).
|
||||
6. Produce a short onboarding report.
|
||||
|
||||
### Step 2: VRAM Configuration
|
||||
|
||||
Check if VRAM configuration is available in `~/.agent-framework/config.md`:
|
||||
1. Read `~/.agent-framework/config.md` to check for VRAM Configuration section.
|
||||
2. If VRAM Configuration section exists, note the values.
|
||||
3. If VRAM Configuration section does NOT exist, check if VRAM detection is available: `~/.agent-framework/scripts/vram_detect.sh`.
|
||||
4. If available, run it to get VRAM recommendations:
|
||||
```
|
||||
cd ~/.agent-framework && bash ~/.agent-framework/scripts/vram_detect.sh
|
||||
```
|
||||
5. Parse the JSON output for `recommended_k`, `max_peak_context_kb`, and `headroom`.
|
||||
6. Add a VRAM Configuration section to `~/.agent-framework/config.md`:
|
||||
```
|
||||
## VRAM Configuration
|
||||
- **Auto-detect**: Yes
|
||||
- **Target context**: {recommended_k}k tokens
|
||||
- **Headroom**: 25%
|
||||
- **Max peak context per sub-task**: {max_peak_kb/1000}k tokens
|
||||
```
|
||||
7. If VRAM detection failed or is not available, add a minimal section:
|
||||
```
|
||||
## VRAM Configuration
|
||||
- **Auto-detect**: Yes
|
||||
```
|
||||
8. Report the VRAM configuration status in the onboarding report.
|
||||
|
||||
## Output
|
||||
|
||||
Create or update the following inside {project}/.agent-framework/:
|
||||
@@ -50,6 +77,7 @@ Then produce a file called ONBOARDING_REPORT.md at {project}/tasks/onboarding/ON
|
||||
- Key observations from the project structure
|
||||
- Any missing pieces the human should provide next
|
||||
- **Upgrade status**: Whether the project's framework files are up to date with the global framework
|
||||
- **VRAM Configuration**: Whether VRAM config was auto-detected and applied (if available), or needs manual setup
|
||||
|
||||
When the ritual is complete, output "CONTRACT_MET" and stop.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user