rogermt commited on
Commit
3d9221a
·
verified ·
1 Parent(s): fa46110

Upload SKILLS/kilo_agent/references/howto.md

Browse files
SKILLS/kilo_agent/references/howto.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Kilo Agent — How To
2
+
3
+ Purpose
4
+ - Use Kilo (headless DeepSeek CLI) as the reasoning engine for ARC-AGI tasks.
5
+ - Kilo identifies transforms, shapes, and parameters from rendered ARC grid images.
6
+ - Output is structured markdown that feeds into the NN executor.
7
+
8
+ ## Setup
9
+
10
+ ```bash
11
+ # Install Kilo CLI (if not already)
12
+ # See: https://kilo.org/docs/install
13
+
14
+ # Verify
15
+ kilo --version
16
+ ```
17
+
18
+ ## Usage Patterns
19
+
20
+ ### 1. Direct CLI (headless, free tier)
21
+ ```bash
22
+ kilo run "Analyze this ARC-AGI task image. Identify the transformation rule." \
23
+ --image task_007bbfb7.png \
24
+ --format default
25
+ ```
26
+
27
+ ### 2. Via SDK / tunnel (Kaggle → local server)
28
+ ```python
29
+ from kilo_sdk import KiloClient
30
+
31
+ client = KiloClient(server_url="http://localhost:8765") # tunneled
32
+ response = client.run(
33
+ prompt="Analyze this ARC-AGI task. Output transform name and parameters.",
34
+ image="task_007bbfb7.png",
35
+ format="default"
36
+ )
37
+ ```
38
+
39
+ ### 3. Structured Output Format
40
+
41
+ Kilo should output:
42
+
43
+ ```markdown
44
+ ## Transform
45
+ name: kron_self_similar
46
+
47
+ ## Parameters
48
+ - scale: 3
49
+ - input_shape: [3, 3]
50
+ - output_shape: [9, 9]
51
+
52
+ ## Objects
53
+ - object_1: {shape: "square", color: 4, position: [0, 0], size: [3, 3]}
54
+ ```
55
+
56
+ The NN executor parses this markdown to configure the transform.
57
+
58
+ ## Verification
59
+
60
+ ```bash
61
+ # Test that Kilo can see and analyze an ARC task
62
+ python SKILLS/kilo_agent/references/examples/test_kilo_arc.py
63
+ ```
64
+
65
+ ## Notes
66
+
67
+ - Free tier has latency (~10-60s per request). Batch tasks for overnight runs.
68
+ - Headless mode (`kilo run`) is faster than API — no HTTP overhead.
69
+ - Image rendering: use `SKILLS/arc_agi_project/references/examples/minimal_runner.py` color scheme.