exloop 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- exloop-0.1.0/.gitignore +20 -0
- exloop-0.1.0/LICENSE +202 -0
- exloop-0.1.0/PKG-INFO +72 -0
- exloop-0.1.0/README.pypi.md +57 -0
- exloop-0.1.0/pyproject.toml +44 -0
- exloop-0.1.0/skills/exloop/SKILL.md +175 -0
- exloop-0.1.0/skills/exloop/agents/openai.yaml +4 -0
- exloop-0.1.0/skills/exloop/references/protocol.md +140 -0
- exloop-0.1.0/skills/exloop/references/state-model.md +157 -0
- exloop-0.1.0/skills/exloop/scripts/exploration_state.py +763 -0
- exloop-0.1.0/src/exloop/__init__.py +32 -0
exloop-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
node_modules/
|
|
2
|
+
dist/
|
|
3
|
+
build/
|
|
4
|
+
*.egg-info/
|
|
5
|
+
*.log
|
|
6
|
+
.DS_Store
|
|
7
|
+
__pycache__/
|
|
8
|
+
.ruff_cache/
|
|
9
|
+
*.pyc
|
|
10
|
+
.gstack/
|
|
11
|
+
|
|
12
|
+
# Local scratch and tool caches, never versioned
|
|
13
|
+
tmp/
|
|
14
|
+
output/
|
|
15
|
+
.workbuddy/
|
|
16
|
+
AGENTS.md
|
|
17
|
+
|
|
18
|
+
# hatchling copies this file into the sdist as it is, so no path under the sealed
|
|
19
|
+
# exploration archive is named here; per-exploration derived caches (npz, wiki caches)
|
|
20
|
+
# are listed in the local .git/info/exclude instead.
|
exloop-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
exloop-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: exloop
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Human-led exploration with a persistent map: the exloop skill for any AI tool that reads SKILL.md, plus the zero-dependency state helper it uses.
|
|
5
|
+
Author: hzshen88
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Keywords: claude-code,codex,exploration,human-in-the-loop,research-questions,skill
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Intended Audience :: Science/Research
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Requires-Python: >=3.11
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
# exloop
|
|
17
|
+
|
|
18
|
+
**Human-led exploration with a persistent map.** An AI companion that does not answer
|
|
19
|
+
your question for you: it asks one or two honing questions, walks one edge at a time,
|
|
20
|
+
keeps a map of where you have been, and offers the next step that is within reach. It
|
|
21
|
+
ships as a skill for any AI tool that reads `SKILL.md` files — Claude Code, Codex, and
|
|
22
|
+
the like.
|
|
23
|
+
|
|
24
|
+
## Installing
|
|
25
|
+
|
|
26
|
+
Most people get exloop by installing [newlife](https://pypi.org/project/newlife/), which
|
|
27
|
+
depends on it:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
python -m pip install newlife
|
|
31
|
+
newlife start my-research
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
`start` installs the exloop skill, together with newlife's own, into every AI tool found
|
|
35
|
+
on the machine.
|
|
36
|
+
|
|
37
|
+
On its own:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
python -m pip install exloop
|
|
41
|
+
python -c "import exloop; print(exloop.skills_dir() / 'exloop')"
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
and copy the directory that prints into your AI tool's skills folder
|
|
45
|
+
(`~/.claude/skills/`, `~/.codex/skills/`, ...).
|
|
46
|
+
|
|
47
|
+
## Using it
|
|
48
|
+
|
|
49
|
+
Open a folder in your AI tool and say:
|
|
50
|
+
|
|
51
|
+
> Explore this with me: *your curiosity*
|
|
52
|
+
|
|
53
|
+
The AI asks; you answer and decide. The map is kept silently in
|
|
54
|
+
`~/.exloop/explorations/<slug>/`, one folder per exploration — the same folder whichever
|
|
55
|
+
AI tool you switch to, because the identity is the slug, not the chat session. When you
|
|
56
|
+
close an exploration the AI archives the record into your research repository
|
|
57
|
+
(`explorations/<slug>/`). When a boundary has become a decidable question — you can say
|
|
58
|
+
what measurement would make the answer different — the AI says so once, and on your yes
|
|
59
|
+
hands the record to newlife (`questions/<slug>/origin/`), where the preregistration
|
|
60
|
+
discipline takes over.
|
|
61
|
+
|
|
62
|
+
## What is in the package
|
|
63
|
+
|
|
64
|
+
- `skills/exloop/SKILL.md` with its references: the protocol (four events — started,
|
|
65
|
+
marked, pivoted, closed — and the map as their projection) and the state model.
|
|
66
|
+
- `skills/exloop/scripts/exploration_state.py`: the zero-dependency helper the skill
|
|
67
|
+
runs — `init`, `mark`, `pivot`, `show`, `close`, `list`, `archive`, `handoff`, and a
|
|
68
|
+
`self-test`.
|
|
69
|
+
- `exloop.skills_dir()`: the one Python function, so that newlife can locate the skill
|
|
70
|
+
files. exloop has no other API and no dependencies.
|
|
71
|
+
|
|
72
|
+
Requires Python 3.11 or newer.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# exloop
|
|
2
|
+
|
|
3
|
+
**Human-led exploration with a persistent map.** An AI companion that does not answer
|
|
4
|
+
your question for you: it asks one or two honing questions, walks one edge at a time,
|
|
5
|
+
keeps a map of where you have been, and offers the next step that is within reach. It
|
|
6
|
+
ships as a skill for any AI tool that reads `SKILL.md` files — Claude Code, Codex, and
|
|
7
|
+
the like.
|
|
8
|
+
|
|
9
|
+
## Installing
|
|
10
|
+
|
|
11
|
+
Most people get exloop by installing [newlife](https://pypi.org/project/newlife/), which
|
|
12
|
+
depends on it:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
python -m pip install newlife
|
|
16
|
+
newlife start my-research
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
`start` installs the exloop skill, together with newlife's own, into every AI tool found
|
|
20
|
+
on the machine.
|
|
21
|
+
|
|
22
|
+
On its own:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
python -m pip install exloop
|
|
26
|
+
python -c "import exloop; print(exloop.skills_dir() / 'exloop')"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
and copy the directory that prints into your AI tool's skills folder
|
|
30
|
+
(`~/.claude/skills/`, `~/.codex/skills/`, ...).
|
|
31
|
+
|
|
32
|
+
## Using it
|
|
33
|
+
|
|
34
|
+
Open a folder in your AI tool and say:
|
|
35
|
+
|
|
36
|
+
> Explore this with me: *your curiosity*
|
|
37
|
+
|
|
38
|
+
The AI asks; you answer and decide. The map is kept silently in
|
|
39
|
+
`~/.exloop/explorations/<slug>/`, one folder per exploration — the same folder whichever
|
|
40
|
+
AI tool you switch to, because the identity is the slug, not the chat session. When you
|
|
41
|
+
close an exploration the AI archives the record into your research repository
|
|
42
|
+
(`explorations/<slug>/`). When a boundary has become a decidable question — you can say
|
|
43
|
+
what measurement would make the answer different — the AI says so once, and on your yes
|
|
44
|
+
hands the record to newlife (`questions/<slug>/origin/`), where the preregistration
|
|
45
|
+
discipline takes over.
|
|
46
|
+
|
|
47
|
+
## What is in the package
|
|
48
|
+
|
|
49
|
+
- `skills/exloop/SKILL.md` with its references: the protocol (four events — started,
|
|
50
|
+
marked, pivoted, closed — and the map as their projection) and the state model.
|
|
51
|
+
- `skills/exloop/scripts/exploration_state.py`: the zero-dependency helper the skill
|
|
52
|
+
runs — `init`, `mark`, `pivot`, `show`, `close`, `list`, `archive`, `handoff`, and a
|
|
53
|
+
`self-test`.
|
|
54
|
+
- `exloop.skills_dir()`: the one Python function, so that newlife can locate the skill
|
|
55
|
+
files. exloop has no other API and no dependencies.
|
|
56
|
+
|
|
57
|
+
Requires Python 3.11 or newer.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "exloop"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Human-led exploration with a persistent map: the exloop skill for any AI tool that reads SKILL.md, plus the zero-dependency state helper it uses."
|
|
5
|
+
# The repository README.md is the author's own (Chinese, linking into private directories); PyPI gets its own page.
|
|
6
|
+
readme = "README.pypi.md"
|
|
7
|
+
license = "Apache-2.0"
|
|
8
|
+
license-files = ["LICENSE"]
|
|
9
|
+
requires-python = ">=3.11"
|
|
10
|
+
authors = [{ name = "hzshen88" }]
|
|
11
|
+
keywords = ["exploration", "research-questions", "skill", "claude-code", "codex", "human-in-the-loop"]
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Development Status :: 3 - Alpha",
|
|
14
|
+
"Intended Audience :: Science/Research",
|
|
15
|
+
"Programming Language :: Python :: 3.11",
|
|
16
|
+
"Programming Language :: Python :: 3.12",
|
|
17
|
+
]
|
|
18
|
+
dependencies = []
|
|
19
|
+
|
|
20
|
+
[build-system]
|
|
21
|
+
requires = ["hatchling"]
|
|
22
|
+
build-backend = "hatchling.build"
|
|
23
|
+
|
|
24
|
+
# The master is skills/exloop/ at the repository top, the copy people read and edit; the wheel
|
|
25
|
+
# carries a byte copy under exloop/skills/, located via `import exloop; exloop.skills_dir()`.
|
|
26
|
+
# newlife's `skills install` uses that to install the exploration skill alongside its own,
|
|
27
|
+
# without importing any exloop code.
|
|
28
|
+
[tool.hatch.build.targets.wheel]
|
|
29
|
+
packages = ["src/exloop"]
|
|
30
|
+
|
|
31
|
+
[tool.hatch.build.targets.wheel.force-include]
|
|
32
|
+
"skills/exloop" = "exloop/skills/exloop"
|
|
33
|
+
|
|
34
|
+
# The sdist uses only-include, not include: include patterns are gitignore-style and unanchored,
|
|
35
|
+
# so "README.md" matches every README.md in the tree — on 2026-09-06 that pulled the READMEs of
|
|
36
|
+
# 13 sealed explorations, docs/science-superpowers and vendor into the sdist. only-include takes
|
|
37
|
+
# exactly these paths. scripts/check_release_artifacts.py compares the built artifacts file by
|
|
38
|
+
# file and must pass before anything is published.
|
|
39
|
+
[tool.hatch.build.targets.sdist]
|
|
40
|
+
only-include = ["src/exloop", "skills/exloop", "README.pypi.md", "LICENSE", "pyproject.toml"]
|
|
41
|
+
exclude = [".gitignore"]
|
|
42
|
+
|
|
43
|
+
# No [project.urls]: the source repository is private and a public reader cannot open it. Point
|
|
44
|
+
# here at the clean public repository once it exists (README.md, the paragraph on going public).
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: exloop
|
|
3
|
+
description: Use when a person wants to explore an open-ended curiosity, sharpen a vague question through sustained dialogue, or preserve a map of changing hypotheses and unresolved boundaries; do not use for direct factual answers, implementation, debugging, or confirmatory analysis.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Exploration Loop
|
|
7
|
+
|
|
8
|
+
> **Commands in this file are for you, the assistant, to run; the person decides.**
|
|
9
|
+
> Asked how this works or where they are, describe what *they* do — see the `newlife` skill.
|
|
10
|
+
|
|
11
|
+
Help the person turn a curiosity into a better question, a map of what changed,
|
|
12
|
+
and reusable ways of thinking. The person owns the target and every consequential
|
|
13
|
+
choice. The assistant supplies names, mechanisms, counterexamples, evidence, and
|
|
14
|
+
reachable next directions without taking over the exploration.
|
|
15
|
+
|
|
16
|
+
> **This file is the master, kept in the exloop repository under
|
|
17
|
+
> `skills/exloop/`.** The copies under `~/.claude/skills/`,
|
|
18
|
+
> `~/.codex/skills/` and `~/.workbuddy/skills/` are installed verbatim by
|
|
19
|
+
> `scripts/install-skill.py`; nothing in this skill depends on which tool is
|
|
20
|
+
> running it. Two host-specific copies once drifted apart (they differed only in
|
|
21
|
+
> the host's name and the state directory), which is why the master exists.
|
|
22
|
+
|
|
23
|
+
## Select the mode
|
|
24
|
+
|
|
25
|
+
- Use **sustained mode** when the person explicitly invokes this skill, asks to
|
|
26
|
+
keep a map, or wants an exploration that may span several turns. Read
|
|
27
|
+
[references/state-model.md](references/state-model.md) and keep file-backed
|
|
28
|
+
state outside the working repository.
|
|
29
|
+
- Use **conversation-only mode** for a short exploratory exchange. Apply the
|
|
30
|
+
protocol without creating files.
|
|
31
|
+
- Do not convert a request for a direct answer, code change, diagnosis, review,
|
|
32
|
+
or confirmatory analysis into an exploration. Answer or use the appropriate
|
|
33
|
+
workflow instead.
|
|
34
|
+
|
|
35
|
+
Before the first substantive reply, read
|
|
36
|
+
[references/protocol.md](references/protocol.md). It contains the interaction
|
|
37
|
+
rules and the observed failure modes this skill must resist.
|
|
38
|
+
|
|
39
|
+
## Before the first exploration in a research repository: set things up yourself
|
|
40
|
+
|
|
41
|
+
The person should never have to type a shell command. If the conversation is happening
|
|
42
|
+
inside a research repository (or the person wants their explorations and questions kept
|
|
43
|
+
somewhere), do the setup for them, telling them in one line what you are doing:
|
|
44
|
+
|
|
45
|
+
1. `newlife` missing from PATH? Install it: `uv tool install newlife` (fallback:
|
|
46
|
+
`pipx install newlife`, then `python3 -m pip install --user newlife`). It brings the
|
|
47
|
+
`exloop` package along, so this skill's helper and the two newlife skills arrive too.
|
|
48
|
+
2. Not yet a research repository (no `NEXT.md`)? Run `newlife start .` in it — git init,
|
|
49
|
+
`.gitignore`, `NEXT.md`, and the skills installed into every AI tool found. If it
|
|
50
|
+
reports a missing git identity, ask the person for a name and email once and set them.
|
|
51
|
+
3. Then continue as below. Every later command — `newlife init`, `pilot`, `freeze`, `run`,
|
|
52
|
+
`check`, `audit`, this skill's `archive` and `handoff` — is yours to run at the moment
|
|
53
|
+
the skills say so; the person only decides.
|
|
54
|
+
|
|
55
|
+
Say what you installed and where; never install anything else on the strength of this.
|
|
56
|
+
|
|
57
|
+
## What you make while exploring goes into the research repository, not a temp directory
|
|
58
|
+
|
|
59
|
+
Explorations run code: a paper gets converted to text, a repository gets cloned, a synthetic
|
|
60
|
+
experiment gets written and run, a table gets downloaded. Measured on the first real
|
|
61
|
+
exploration after this skill shipped: 542 MB of exactly that sat in the session's scratch
|
|
62
|
+
directory, and the numbers it produced were on the map and in `goal.md` — traceable to
|
|
63
|
+
nothing once the session ended.
|
|
64
|
+
|
|
65
|
+
So, as soon as a research repository is known, keep everything you produce under
|
|
66
|
+
`<repo>/explorations/<slug>/artifacts/`: scripts (with how to run them in the docstring),
|
|
67
|
+
small results (JSON, tables, figures), the extracted text of a paper you are quoting. Big
|
|
68
|
+
things you can fetch again (a cloned repository, a virtualenv, raw data over a few MB) may
|
|
69
|
+
stay outside, but the fetch command and the commit or version go into a `README.md` or a
|
|
70
|
+
manifest there. `archive` later adds `process/` and the entry README beside it; `handoff`
|
|
71
|
+
does not copy artifacts — the question's `origin/README.md` points at them. The rule the
|
|
72
|
+
archive convention states is the one you are serving: **every number on the map must be
|
|
73
|
+
traceable to a file.**
|
|
74
|
+
|
|
75
|
+
## One exploration, one slug, any tool
|
|
76
|
+
|
|
77
|
+
In sustained mode the exploration is identified by a **slug**, not by the
|
|
78
|
+
session. Pick it at `init`, silently, the way an archive folder is named:
|
|
79
|
+
`YYYY-MM-DD-<two-to-four-english-words>`, date = the day the exploration
|
|
80
|
+
started, words = the question, never the expected conclusion. State lives in
|
|
81
|
+
`~/.exloop/explorations/<slug>/` whatever tool is in use, so the person can
|
|
82
|
+
continue the same exploration in Claude Code, Codex or WorkBuddy without the
|
|
83
|
+
record splitting. To resume, run `list` to find the slug, then `show --id <slug>`
|
|
84
|
+
before replying. **Never derive the id from a thread or session id**: that is
|
|
85
|
+
exactly how one exploration in 2026-08 ended up in three directories.
|
|
86
|
+
|
|
87
|
+
## Core loop
|
|
88
|
+
|
|
89
|
+
1. **Hone the question.** If the curiosity is vague, ask one high-leverage
|
|
90
|
+
question and offer a sharper restatement. Ask at most two rounds. If the
|
|
91
|
+
person says to start, stop honing immediately.
|
|
92
|
+
2. **Advance one edge.** Add one mechanism, distinction, counterexample, or
|
|
93
|
+
piece of evidence—not a complete lecture. Match complexity to the person's
|
|
94
|
+
language and corrections.
|
|
95
|
+
3. **Name what is forming.** When the person offers an inchoate judgment from
|
|
96
|
+
experience, give it a short reusable name and connect it to a mechanism.
|
|
97
|
+
4. **Challenge the claim, not the person.** Restate the claim before testing it.
|
|
98
|
+
Prefer: “What would change your mind?” The answer creates a shared criterion;
|
|
99
|
+
the assistant does not become the judge.
|
|
100
|
+
5. **Update the map silently.** Record zero to three meaningful changes per
|
|
101
|
+
turn. Do not ask the person to keep notes or use special commands.
|
|
102
|
+
6. **Offer reachable directions.** Draw one to three next directions from open
|
|
103
|
+
boundaries. They are proposals, not a menu the person must select. A new
|
|
104
|
+
judgment or fact from the person may legitimately redirect the exploration.
|
|
105
|
+
|
|
106
|
+
## Human control and pivots
|
|
107
|
+
|
|
108
|
+
- Never change the exploration target merely because another direction looks
|
|
109
|
+
easier or more productive.
|
|
110
|
+
- When the person explicitly changes the target, record the pivot and why while
|
|
111
|
+
preserving the root question.
|
|
112
|
+
- When a pivot is inferred only during retrospective review, mark it as detected;
|
|
113
|
+
never present it as something the person explicitly said.
|
|
114
|
+
- Low uptake of the assistant's proposed directions is healthy. It often means
|
|
115
|
+
the person is supplying the exploration's new facts rather than following the
|
|
116
|
+
assistant's track.
|
|
117
|
+
|
|
118
|
+
## Convergence and closure
|
|
119
|
+
|
|
120
|
+
A boundary has become a candidate for newlife the moment the person can say
|
|
121
|
+
**what measurement would make the answer different**. When that happens, say so
|
|
122
|
+
once — "this one could be settled; want to hand it to newlife?" — and let the
|
|
123
|
+
person decide. Do not push; an exploration is not a funnel.
|
|
124
|
+
|
|
125
|
+
If four or five directions are open, or no direction has been chosen or retired
|
|
126
|
+
for two or three turns, stop adding branches. Inventory what is understood, the
|
|
127
|
+
reusable frameworks, and the live boundaries; then ask what container or output
|
|
128
|
+
the person wants.
|
|
129
|
+
|
|
130
|
+
When the person asks to stop, summarize, or turn the exploration into an
|
|
131
|
+
artifact:
|
|
132
|
+
|
|
133
|
+
- render the current map;
|
|
134
|
+
- separate conclusions, reusable frameworks, unresolved boundaries, abandoned
|
|
135
|
+
paths, surprises, and pivots;
|
|
136
|
+
- state what evidence was observed versus inferred;
|
|
137
|
+
- record closure in sustained mode (`close`), then copy the record into the
|
|
138
|
+
person's **research repository** — the one `newlife start` created, the one
|
|
139
|
+
that holds `questions/` — with `archive --repo <research repo>`: it lands in
|
|
140
|
+
`explorations/<slug>/process/` there, and the first time it also writes the
|
|
141
|
+
four-section `README.md` skeleton and an empty `artifacts/`. The archive folder
|
|
142
|
+
carries the same slug as the workbench, so the two never disagree about which
|
|
143
|
+
exploration this was. The record does **not** go into the exloop repository;
|
|
144
|
+
- if the exploration produced a question the person wants to freeze and judge in
|
|
145
|
+
newlife, three commands in this order: `newlife init <slug>` inside the research
|
|
146
|
+
repository (same slug; it scaffolds `questions/<slug>/` with an `origin/`), then
|
|
147
|
+
`handoff --repo <research repo>` (it refuses if `init` has not run — writing
|
|
148
|
+
first would make `init` refuse instead), then invoke the `newlife-goal` skill.
|
|
149
|
+
If the exploration continues after the handoff, the copy in `origin/` is a snapshot;
|
|
150
|
+
re-run `handoff --repo … --force` when the record has grown, or rely on `archive` at
|
|
151
|
+
closure. `handoff` copies the same record into `questions/<slug>/origin/` and writes
|
|
152
|
+
`goal-draft.md`, a `goal.md`-shaped draft with
|
|
153
|
+
§1 (where the question came from: root question, pivots and why, surprises,
|
|
154
|
+
frameworks), §3 (abandoned paths) and §4 (open boundaries) pre-filled from the
|
|
155
|
+
map. The six anchors stay TODO: they are `newlife-goal`'s job, and nothing
|
|
156
|
+
in a map can supply a counterparty;
|
|
157
|
+
- do not rate the person, rank the exploration, or declare the chosen direction
|
|
158
|
+
objectively correct.
|
|
159
|
+
|
|
160
|
+
## Research boundary
|
|
161
|
+
|
|
162
|
+
Exploration can generate hypotheses, but it cannot retroactively make an
|
|
163
|
+
analysis confirmatory. Before inspecting outcomes for a confirmatory claim,
|
|
164
|
+
switch to a workflow that locks the hypothesis, analysis, prediction, and
|
|
165
|
+
decision rule first. Label anything already inspected as exploratory. Anything
|
|
166
|
+
run during the exploration counts as *seen* for a later preregistration.
|
|
167
|
+
|
|
168
|
+
## Authorization boundary
|
|
169
|
+
|
|
170
|
+
This skill changes conversational behavior and, in sustained mode, writes only
|
|
171
|
+
to its state directory under `~/.exloop/explorations/` (and, on an explicit
|
|
172
|
+
`archive` or `handoff`, into the research repository named by `--repo` or the
|
|
173
|
+
directory named by `--to`). It does not by itself authorize
|
|
174
|
+
web research, repository edits, external messages, purchases, or other side
|
|
175
|
+
effects.
|