Run a newcomer's first chunk in the gate, and keep the person's own Claude home out of the loop's #812
@@ -16,6 +16,7 @@ HOME = pathlib.Path.home()
|
||||
# The project's key is its path under ~/code: README.md → Install → "Set up a project".
|
||||
PROJECT = HOME / "code" / "first-project"
|
||||
ARCHIVE = HOME / ".local/state/build-release/transcripts/first-project"
|
||||
CONFIG = HOME / ".config/build-release/first-project/config.toml"
|
||||
# The line the person's own CLAUDE.md holds. No request may hold it: nothing in `~/.claude` loads in the loop's home.
|
||||
OWN_INSTRUCTION = "Sign every reply as the newcomer's own claude."
|
||||
# A heading of the setup's CLAUDE.md, which the worker's request holds where the loop's home loaded.
|
||||
@@ -35,6 +36,19 @@ README = """# first-project
|
||||
|
||||
Whoever runs the first chunk.
|
||||
"""
|
||||
# README.md → Install → "Set up a project" gives this config for a project of one's own.
|
||||
CONFIG_TEXT = """checkout = "~/code/first-project"
|
||||
plan = "checkout:todo.md"
|
||||
working-rules = "checkout:AGENTS.md"
|
||||
decisions = "checkout:docs/decisions.md"
|
||||
score-anchors = "checkout:docs/score-anchors.md"
|
||||
comprehension-history = "checkout:docs/comprehension-history.md"
|
||||
reading-cost = "checkout:docs/reading-cost.md"
|
||||
changelog = "checkout:CHANGELOG.md"
|
||||
goals-and-audience = "checkout:README.md"
|
||||
principles = "setup:principles"
|
||||
standards = "setup:skills/larv-review/standards"
|
||||
"""
|
||||
|
||||
|
||||
def snapshot(*roots: pathlib.Path) -> dict[str, str]:
|
||||
@@ -58,7 +72,9 @@ def git(*args: str) -> None:
|
||||
|
||||
|
||||
def project_made() -> None:
|
||||
"""Makes the project: a checkout with the premises in its README, and a remote it is pushed to."""
|
||||
"""Makes the project: a checkout with the premises in its README, a remote it is pushed to, and its config."""
|
||||
CONFIG.parent.mkdir(parents=True)
|
||||
CONFIG.write_text(CONFIG_TEXT, encoding="utf-8")
|
||||
PROJECT.mkdir(parents=True)
|
||||
(PROJECT / "README.md").write_text(README, encoding="utf-8")
|
||||
git("init", "--quiet")
|
||||
|
||||
Reference in New Issue
Block a user