mirror of
https://github.com/lukaszraczylo/claude-adam.git
synced 2026-07-12 04:10:37 +00:00
Initial commit: ADAM self-improvement layer for Claude Code
- 8 friction signals via lightweight hook (correction, retry_loop, weak_agent, tool_error_loop, dead_end, edit_churn, build_loop, subagent_dispatch_pattern) - Deterministic confidence rubric with cross-session evidence gate - /reflect skill to dispatch the analyst subagent and walk the queue - Skill overlap detection (prefer skill_edit over skill_new on collision) - Solution synthesis from transcript context for new skill drafts - Soft-delete trash, never hard rm - 18 tests covering all signals
This commit is contained in:
Executable
+48
@@ -0,0 +1,48 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
DEST="${HOME}/.claude"
|
||||
SRC="$(cd "$(dirname "$0")" && pwd)"
|
||||
|
||||
echo "ADAM installer"
|
||||
echo " source: $SRC"
|
||||
echo " dest: $DEST"
|
||||
echo
|
||||
|
||||
if [ ! -d "$DEST" ]; then
|
||||
echo " ! $DEST does not exist. Is Claude Code installed?"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p \
|
||||
"$DEST/hooks" \
|
||||
"$DEST/agents" \
|
||||
"$DEST/skills/adam-self-improvement" \
|
||||
"$DEST/commands" \
|
||||
"$DEST/adam/proposals" \
|
||||
"$DEST/adam/applied" \
|
||||
"$DEST/adam/rejected" \
|
||||
"$DEST/adam/trash" \
|
||||
"$DEST/adam/journal" \
|
||||
"$DEST/adam/tests/fixtures"
|
||||
|
||||
cp "$SRC/hooks/adam-observe.mjs" "$DEST/hooks/"
|
||||
cp "$SRC/hooks/adam-nudge.mjs" "$DEST/hooks/"
|
||||
cp "$SRC/agents/adam.md" "$DEST/agents/"
|
||||
cp "$SRC/skills/adam-self-improvement/SKILL.md" "$DEST/skills/adam-self-improvement/"
|
||||
cp "$SRC/commands/reflect.md" "$DEST/commands/"
|
||||
cp "$SRC/adam/tests/run-tests.sh" "$DEST/adam/tests/"
|
||||
cp "$SRC/adam/tests/fixtures/seed-corrections.jsonl" "$DEST/adam/tests/fixtures/"
|
||||
|
||||
[ -f "$DEST/adam/journal.jsonl" ] || : > "$DEST/adam/journal.jsonl"
|
||||
[ -f "$DEST/adam/state.json" ] || echo '{"cursor":0,"tool_window":[]}' > "$DEST/adam/state.json"
|
||||
[ -f "$DEST/adam/usage.json" ] || echo '{}' > "$DEST/adam/usage.json"
|
||||
|
||||
echo " files installed."
|
||||
echo
|
||||
echo " next steps:"
|
||||
echo " 1. bash $DEST/adam/tests/run-tests.sh # must show: 18 passed, 0 failed"
|
||||
echo " 2. merge settings.json.example into $DEST/settings.json"
|
||||
echo " 3. start a fresh Claude Code session, then run /reflect"
|
||||
echo
|
||||
echo " ADAM is dormant until you invoke /reflect."
|
||||
Reference in New Issue
Block a user