You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ready-to-run demo diffs live in [`examples/`](examples/README.md).
113
-
114
-
Each example includes the exact command to run from the repository root.
115
-
116
-
## Config
117
-
118
-
You can persist preferences to a config file:
119
-
120
-
-`~/.config/hunk/config.toml`
121
-
-`.hunk/config.toml`
122
-
123
-
Example:
124
-
125
-
```toml
126
-
theme = "graphite"# graphite, midnight, paper, ember
127
-
mode = "auto"# auto, split, stack
128
-
line_numbers = true
129
-
wrap_lines = false
130
-
agent_notes = false
131
-
```
132
-
133
-
## Working with Agents
129
+
### Agent workflows
134
130
135
131
Hunk supports two agent workflows:
136
132
137
133
- steer a live Hunk window from another terminal with `hunk session ...` (recommended)
138
134
- load agent comments from a file with `--agent-context`
139
135
140
-
### Steer a live Hunk window
136
+
####Steer a live Hunk window
141
137
142
138
Use the Hunk review skill: [`skills/hunk-review/SKILL.md`](skills/hunk-review/SKILL.md).
143
139
144
140
A good generic prompt is:
145
141
146
-
- "Load the Hunk skill and use it for this review."
142
+
```text
143
+
> Load the Hunk skill and use it for this review
144
+
```
147
145
148
146
That skill teaches the agent how to inspect a live Hunk session, navigate it, reload it, and leave inline comments.
149
147
150
-
### How remote control works
148
+
####How remote control works
151
149
152
150
When a Hunk TUI starts, it registers with a local loopback daemon. `hunk session ...` talks to that daemon to find the right live window and control it.
`hunk session reload ... -- <hunk command>` swaps what a live session is showing without opening a new TUI window.
176
174
177
-
### Load agent comments from a file
175
+
####Load agent comments from a file
178
176
179
177
Use `--agent-context` to attach agent-written comments or rationale from a JSON sidecar file. For a compact real example, see [`examples/3-agent-review-demo/agent-context.json`](examples/3-agent-review-demo/agent-context.json).
0 commit comments