aai-coding 0.1.4__tar.gz → 0.1.5__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.
- {aai_coding-0.1.4 → aai_coding-0.1.5}/PKG-INFO +1 -1
- aai_coding-0.1.5/aai_coding/__init__.py +1 -0
- {aai_coding-0.1.4 → aai_coding-0.1.5}/aai_coding/harness.py +7 -5
- {aai_coding-0.1.4 → aai_coding-0.1.5}/aai_coding.egg-info/PKG-INFO +1 -1
- aai_coding-0.1.4/aai_coding/__init__.py +0 -1
- {aai_coding-0.1.4 → aai_coding-0.1.5}/LICENSE +0 -0
- {aai_coding-0.1.4 → aai_coding-0.1.5}/README.md +0 -0
- {aai_coding-0.1.4 → aai_coding-0.1.5}/aai_coding/claudesub.py +0 -0
- {aai_coding-0.1.4 → aai_coding-0.1.5}/aai_coding/harness_docs.py +0 -0
- {aai_coding-0.1.4 → aai_coding-0.1.5}/aai_coding.egg-info/SOURCES.txt +0 -0
- {aai_coding-0.1.4 → aai_coding-0.1.5}/aai_coding.egg-info/dependency_links.txt +0 -0
- {aai_coding-0.1.4 → aai_coding-0.1.5}/aai_coding.egg-info/entry_points.txt +0 -0
- {aai_coding-0.1.4 → aai_coding-0.1.5}/aai_coding.egg-info/requires.txt +0 -0
- {aai_coding-0.1.4 → aai_coding-0.1.5}/aai_coding.egg-info/top_level.txt +0 -0
- {aai_coding-0.1.4 → aai_coding-0.1.5}/pyproject.toml +0 -0
- {aai_coding-0.1.4 → aai_coding-0.1.5}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.5"
|
|
@@ -217,8 +217,10 @@ def synthetic_resume(path):
|
|
|
217
217
|
return datetime.fromisoformat(bt.replace('Z', '+00:00')).timestamp() if bt else datetime.now().timestamp()
|
|
218
218
|
|
|
219
219
|
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
_COMPACT_RELOAD = 're-read all task skills and pyskills (`doc()`) referenced before compaction, plus all referenced `README`/`DEV` files'
|
|
221
|
+
_CC_COMPACT_TAIL = f'Re-invoke `persistent-python` now (live `SKILL.md` wins over snapshots), run `list_pyskills()`, {_COMPACT_RELOAD}, and read `doc(f)` before using any tooling function not in full in context. The summary\'s "resume directly / pick up the last task" applies only when work is actually in flight: if the last user message was already answered and no task is open, do not re-answer or resume anything from before compaction — reply with one short line and wait.'
|
|
222
|
+
COMPACT_MSG = f'**Post-compaction: context was rewritten (`doc()` output gone, skill texts are stale snapshots), but the kernel process survived untouched — namespace, imports, and current-notebook defaults are live, so do not re-run startup or re-import.** {_CC_COMPACT_TAIL}'
|
|
223
|
+
SYNTH_MSG = f'**Post-compaction resume: context was rewritten (`doc()` and skill text in reconstructed history may be truncated or stale) and the kernel restarted with a clean namespace — rebuild variables, current-notebook defaults, and monkeypatches on demand.** {_CC_COMPACT_TAIL}'
|
|
222
224
|
RESUME_MSG = '**Post-resume: your context is exactly as it was when the app closed — everything you can still see (doc() output) remains valid — but the kernel restarted with a clean namespace (kernel startup re-ran, so its imports are back).** Rebuild other session state on demand (variables, set_dlg, monkeypatches).'
|
|
223
225
|
BOOTSTRAP_MSG = '**NEVER touch local files or run code before completing the bootstrap. "Touch" means any file read, edit, search, or listing (Read/Edit/Grep/Glob, Bash, `fd`/`rg`), any clikernel `py`, and any subagent that would do these on your behalf — however small it looks: one quick read counts, one search counts, "just checking one thing" counts. Bootstrap = invoke the `persistent-python` skill and follow its startup steps. Work that never reaches for the filesystem — pure discussion, web research, browser automation — never hits the trigger and needs no bootstrap. Why: this project runs on a persistent Python workbench with curated pyskills, and unbootstrapped sessions reliably regress to ad-hoc Bash and one-off scripts that cost more to review than the bootstrap costs to run.** After bootstrapping, map each task to a pyskill from the `list_pyskills()` catalog before writing ad hoc code, in Bash or the kernel, and read the project `README.md` and `DEV.md` before starting work.'
|
|
224
226
|
NB_MSG = '**Notebook project ({loc}):** `# AUTOGENERATED!` `.py` files come from notebooks; never edit them. Before any read, review, or edit, MUST read `doc(fastship.notebooks)` if not in full in context (house style differs from priors; skipping it equals editing generated `.py`). Search by cell id (`nbrg()`), read and diff notebooks, edit via `exhash`.'
|
|
@@ -296,7 +298,7 @@ def claude_subagent_start(o):
|
|
|
296
298
|
|
|
297
299
|
AIR_ROUNDS, AIR_RENUDGE, AIR_SUBSTANCE = 8, 5, 100
|
|
298
300
|
AIR_QUOTE, AIR_SHORT = 400, 20
|
|
299
|
-
AIR_MSG = '
|
|
301
|
+
AIR_MSG = '{0} tool rounds without surfacing (long runs collapse attention onto recent results). Surface with real text: what surprised you recently? Which part of the request does the next step serve{1}? Name your most questionable recent tool call (notebooks => nb tooling, pyskills over Bash, exhash for edits, unneeded str()/Path().expanduser(), unneeded final print()) and fix if wrong (omit from final reply). Upcoming user-facing text and any docstrings/docs/comments written since last surfacing: match write_docs. Reads like last surfacing => not reconnected.'
|
|
300
302
|
_NOT_PROMPT = ('<task-notification>', '<system-reminder>', '<command-', '<local-command', 'Caveat:', '[Request interrupted')
|
|
301
303
|
|
|
302
304
|
|
|
@@ -437,7 +439,7 @@ def _boot_str():
|
|
|
437
439
|
from clikernel.core import boot_calls
|
|
438
440
|
return ', '.join(f'`{c}`' for c in boot_calls())
|
|
439
441
|
|
|
440
|
-
CODEX_COMPACT_MSG = '
|
|
442
|
+
CODEX_COMPACT_MSG = f'Post-compaction (a summary does not count as in full). Before any local read, search, edit, notebook work, or Python execution: run any of {{boot}} not in full in context in one parallel batch and follow them; {_COMPACT_RELOAD}; read `doc()` for any matching task pyskill or `…`-truncated function before first use.'
|
|
441
443
|
|
|
442
444
|
|
|
443
445
|
def codex_orientation(o):
|
|
@@ -449,7 +451,7 @@ def codex_orientation(o):
|
|
|
449
451
|
def _agy_inject(*msgs): print(json.dumps(dict(injectSteps=[dict(systemMessage=dict(systemMessage=m)) for m in msgs]) if msgs else {}))
|
|
450
452
|
|
|
451
453
|
|
|
452
|
-
AGY_COMPACT_MSG = 'Post-compaction (a summary does not count as in full). Before replying, judging, or spawning any fork: read
|
|
454
|
+
AGY_COMPACT_MSG = f'Post-compaction (a summary does not count as in full). Before replying, judging, or spawning any fork: read active/required skills (`better_swarm`, user-required skills); run any of {{boot}} not in full in context (create `py` kernel first if none active); {_COMPACT_RELOAD} — batching calls in parallel.'
|
|
453
455
|
|
|
454
456
|
|
|
455
457
|
def _agy_last_steps(path):
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.4"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|