Repository navigation
Add stop.sh script and improve dev lifecycle management - #1
Merged
Merged
Conversation
- working/memory/ as gitignored agent-memory location with promotion rules, so agents stop inventing memory.md/notes.md at the repo root - CLAUDE.md as a thin pointer that imports AGENTS.md (keeps AGENTS.md the single source of truth across tools) - scripts/stop.sh paired with dev.sh; dev.repo.sh now documents DEV_PIDS and the optional repo_dev_stop() hook - dev.sh persists DEV_PIDS; status.sh surfaces them - CI runs bash -n + shellcheck on scripts and exercises check-env.sh - Dedupe branch-filename rule in AGENTS.md; link to working/status/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a new
./scripts/stop.shscript to cleanly shut down development servers started by./scripts/dev.sh, along with supporting documentation and CI improvements.Key Changes
New
scripts/stop.sh: Provides a clean shutdown mechanism for dev serversrepo_dev_stop()fromscripts/dev.repo.shif definedDEV_PIDSfrom the branch state fileEnhanced dev lifecycle:
scripts/dev.shto trackDEV_PIDSinstead ofPID_FILEscripts/dev.repo.shwith examples and documentation for exportingDEV_PIDSrepo_dev_stop()hook pattern for custom shutdown logicscripts/status.shto displayDEV_PIDSwhen availableNew
working/memory/directory: Designated location for agent-managed memoryREADME.mdskills/,STATUS.md, ordocs/New
CLAUDE.md: Thin entrypoint that importsAGENTS.mdfor Claude CodeCI improvements:
cijob into focusedlint-scriptsandcheck-envjobscheck-env.shbehaviorDocumentation updates:
AGENTS.mdto clarifyDEV_PIDSpersistence andstop.shintegrationREADME.mdto document./scripts/stop.shas a standard entrypointImplementation Details
stop.shuses the same branch-safe naming convention asdev.shfor state filesrepo_dev_start()to exportDEV_PIDSfor later consumptionset -euo pipefail) and include ShellCheck directives