Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "aiplus",
"source": "./adapters/claude",
"description": "Keeps every Claude session efficient: lead model plans and reviews, cheap subagents execute, minimal reads, one retry, routing to your installed plugins.",
"version": "0.4.3"
"version": "0.5.0"
}
]
}
121 changes: 121 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
name: CI

# Checks on every push and pull request. On push to main, also builds the hook-free directory
# edition of the plugin from adapters/claude and fast-forwards it to the `release` branch,
# which the Anthropic plugin directory submission tracks. main keeps hooks and scripts.
on:
push:
branches: [main]
pull_request:

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

env:
PYTHONDONTWRITEBYTECODE: "1"
# Checker scripts (validator, secret scan, router check) live in the public aiaddon repo; pinned to a full commit SHA.
TOOLS_REF: 4364a0e0d80f08ae4b503c1a84818725e285122c

jobs:
checks:
name: Checks
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0 # full history for the secret scan
persist-credentials: false
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: syncwin/aiaddon
ref: ${{ env.TOOLS_REF }}
path: .checker-tools
persist-credentials: false
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.13"
- name: Generated files are current
run: python scripts/build_adapters.py --check
- name: Unit tests
run: |
for t in tests/test_*.py; do python "$t"; done
- name: Check the router against its evals
run: python .checker-tools/dev/aiaddon-review/scripts/route_check.py adapters/claude
- name: Scan the tree and the full git history for secrets and private data (blocking)
run: python .checker-tools/dev/aiaddon-review/scripts/scan_secrets.py . --history

release:
# Directory edition: adapters/claude without hooks, scripts, .mcp.json, contract.yaml, evals and prompt data.
name: Update the release branch
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [checks]
runs-on: ubuntu-24.04
timeout-minutes: 10
permissions:
contents: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: syncwin/aiaddon
ref: ${{ env.TOOLS_REF }}
path: .checker-tools
persist-credentials: false
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.13"
- name: Build the shipped tree without hooks
env:
SHIP: ${{ runner.temp }}/ship
run: |
python scripts/build_adapters.py
python - <<'PY'
import json, os, shutil
src, out = "adapters/claude", os.environ["SHIP"]
drop = {"hooks", "scripts", "evals", "prompts", ".mcp.json", "contract.yaml"} # top level only
def ignore(d, names):
top = os.path.normpath(d) == os.path.normpath(src)
return [n for n in names if (top and n in drop) or n == "__pycache__" or n.endswith(".pyc")]
shutil.copytree(src, out, ignore=ignore)
pj = os.path.join(out, ".claude-plugin", "plugin.json")
with open(pj, encoding="utf-8") as f:
m = json.load(f)
for k in ("hooks", "mcpServers"):
m.pop(k, None)
with open(pj, "w", encoding="utf-8", newline="\n") as f:
json.dump(m, f, indent=2, ensure_ascii=False)
f.write("\n")
for gone in ("hooks", "scripts", ".mcp.json"):
assert not os.path.exists(os.path.join(out, gone)), gone + " must not ship"
print("built", out, "version", m["version"])
PY
- name: Validate the shipped tree for the directory (blocking)
env:
SHIP: ${{ runner.temp }}/ship
run: |
python .checker-tools/dev/aiaddon-review/scripts/validate_extension.py "$SHIP" --strict --target directory --require-meta author,company
python .checker-tools/dev/aiaddon-review/scripts/scan_secrets.py "$SHIP"
- name: Push the release branch
env:
SHIP: ${{ runner.temp }}/ship
GIT_AUTHOR_NAME: github-actions[bot]
GIT_AUTHOR_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
GIT_COMMITTER_NAME: github-actions[bot]
GIT_COMMITTER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
run: |
# The shipped tree becomes the root of the release branch. Fast-forward only (no force-push):
# a new commit on top of the current release branch.
export GIT_INDEX_FILE="$RUNNER_TEMP/release.index"
git --work-tree="$SHIP" add -A -f
tree=$(git write-tree)
parent=$(git rev-parse -q --verify origin/release || true)
if [ -n "$parent" ] && [ "$(git rev-parse "$parent^{tree}")" = "$tree" ]; then echo "release branch already up to date"; exit 0; fi
commit=$(git commit-tree "$tree" ${parent:+-p "$parent"} -m "release: directory edition from ${GITHUB_SHA::7}")
git push origin "$commit:refs/heads/release"
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,30 @@
.env
__pycache__/
dist/

# --- public-safety preset: private data never reaches git ---
.env
.env.*
!.env.example
*.pem
*.key
*.p12
*.pfx
id_rsa*
id_ed25519*
credentials*.json
service-account*.json
secrets.*
*.log
logs/
memory/
.claude/memory/
.claude/progress/
progress*.md
*.local.md
.claude/settings.local.json
.npmrc
.pypirc
.netrc
private/
# --- end public-safety preset ---
5 changes: 5 additions & 0 deletions .public-safety-allow
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# False positives for scan_secrets.py. Only exact, intentional values, each tied to the file that holds it.
# Format: <rule>:<path-glob>[:<value-substring>]
# Git history only (commit cd90fa3, 0.1.0: removed from the tree in 0.5.0, no history rewrite; a folder path, no credential involved):
drive-path:docs/features/aiplus-handoff.md:D:\SyncWin
drive-path:adapters/claude/skills/aiplus-handoff/SKILL.md:D:\SyncWin
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

Newest first.

## 0.5.0: 2026-11-13

**Added**
- Two editions: `main` keeps hooks and scripts for local installs; CI (`.github/workflows/ci.yml`, job `release`) builds a hook-free tree from `adapters/claude` and fast-forward pushes it to the `release` branch for the Anthropic plugin directory. The directory edition has no `hooks/`, `scripts/`, `.mcp.json`, `contract.yaml`, evals or prompt JSON.
- Routing table in the `aiplus` router skill (`| Order | Trigger phrases | Skill | Then |`) for `aiplus-handoff` and `aiplus-setup`, with tie-break, default question and Skill-tool loading text; `evals/router/cases.json`.
- "Without hooks" section in the `aiplus` skill: the rule 15 prompt block, the `job | agent | model | effort` line, the end-of-turn evidence table and the connector injection flag are done by the model itself when hooks are absent.
- Public safety: `.gitignore` preset, `PUBLIC-SAFETY.md`, `.env.example`, `.public-safety-allow` (one old history hit, commit cd90fa3).

**Changed**
- Skill frontmatter is only `name`, `description`, `license`; version, author and company live in `.claude-plugin/plugin.json`. All versions are 0.5.0, which also fixes the 0.4.x drift (README said 0.3.0, skills 0.2.0, the plugin copy of this changelog stopped at 0.4.0).
- `aiplus-handoff` no longer names an absolute drive path: the default outputs folder is a placeholder the user names once, else `docs/handoff/`.
- Rule 16 and the routing step no longer name a home-folder path (R002).
- `aiplus-handoff` and `aiplus-setup` carry their own `references/scratchpad.md` (S023).
- `scripts/build_adapters.py` also copies `PUBLIC-SAFETY.md` and `.gitignore` into `adapters/claude`.

## 0.4.3: 2026-11-09

**Changed**
Expand Down
25 changes: 25 additions & 0 deletions PUBLIC-SAFETY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Public Safety

This repository is public. Only what is listed under "May be public" is published.

## May be public
- Source code, skills, hook and script sources, and Markdown docs
- Documentation, README, CHANGELOG, LICENSE
- Generic examples with placeholder values, `.env.example` (variable names only)
- Public connector addresses (for example the Composio MCP URL), which carry no key

## Never published
- Secrets: API keys, tokens, passwords, private keys, `.env` files, credentials
- Personal data: personal e-mails, phone numbers, addresses
- Client names and data; internal URLs and hosts
- Local absolute user paths; private notes, logs, memory or progress files

## Where private values live instead
- None: the plugin needs no secrets. The handoff folder is a plugin option (`outputs_root`) the user sets locally; connector sign-ins happen in the user's own account.

## Checks
- `python dev/aiaddon-review/scripts/scan_secrets.py . --history` (working tree plus full git history, run with the aiaddon checker scripts) before every release
- Allowed false positives: `.public-safety-allow`, one entry for an old history hit that is not a credential

## If something leaks
Rotate the credential first, then remove it from history. Never force-push without the owner's explicit OK.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Keeps every Claude session efficient: lead model plans and reviews, cheap subage

**Download:** [aiplus.plugin](https://github.com/syncwin/aiplus/releases/latest/download/aiplus.plugin) (always the latest release)

**Version** 0.3.0 - **Author** SyncWin - **License** MIT
**Version** 0.5.0 - **Author** SyncWin - **License** MIT

## Layout

Expand All @@ -21,6 +21,11 @@ scripts/build_adapters.py regenerates adapter files from core

Edit rules in `core/`, then run `python scripts/build_adapters.py` (`--check` verifies nothing is stale).

## Editions

- **Local (main):** the full plugin with hooks, scripts and the Composio connector, installed from this repo.
- **Directory (`release` branch):** built by CI (`.github/workflows/ci.yml`, job `release`) from `adapters/claude` without `hooks/`, `scripts/`, `.mcp.json`, `contract.yaml`, evals and prompt data, for the Anthropic plugin directory. The `aiplus` skill's "Without hooks" section covers what the hooks would have done.

## Skills

| Skill | Role |
Expand Down
10 changes: 6 additions & 4 deletions adapters/claude/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
"name": "aiplus",
"displayName": "AI+",
"version": "0.4.3",
"version": "0.5.0",
"description": "Keeps every Claude session efficient: lead model plans and reviews, cheap subagents execute, minimal reads, one retry, routing to your installed plugins.",
"license": "MIT",
"author": {
"name": "SyncWin"
"name": "SyncWin",
"company": "SyncWin"
},
"metadata": {
"displayName": "AI+",
"version": "0.4.3",
"author": "SyncWin"
"version": "0.5.0",
"author": "SyncWin",
"company": "SyncWin"
},
"userConfig": {
"outputs_root": {
Expand Down
34 changes: 34 additions & 0 deletions adapters/claude/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
*.plugin
*.pyc
*.zip
.DS_Store
.env
__pycache__/
dist/

# --- public-safety preset: private data never reaches git ---
.env
.env.*
!.env.example
*.pem
*.key
*.p12
*.pfx
id_rsa*
id_ed25519*
credentials*.json
service-account*.json
secrets.*
*.log
logs/
memory/
.claude/memory/
.claude/progress/
progress*.md
*.local.md
.claude/settings.local.json
.npmrc
.pypirc
.netrc
private/
# --- end public-safety preset ---
34 changes: 34 additions & 0 deletions adapters/claude/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,40 @@

Newest first.

## 0.5.0: 2026-11-13

**Added**
- Two editions: `main` keeps hooks and scripts for local installs; CI (`.github/workflows/ci.yml`, job `release`) builds a hook-free tree from `adapters/claude` and fast-forward pushes it to the `release` branch for the Anthropic plugin directory. The directory edition has no `hooks/`, `scripts/`, `.mcp.json`, `contract.yaml`, evals or prompt JSON.
- Routing table in the `aiplus` router skill (`| Order | Trigger phrases | Skill | Then |`) for `aiplus-handoff` and `aiplus-setup`, with tie-break, default question and Skill-tool loading text; `evals/router/cases.json`.
- "Without hooks" section in the `aiplus` skill: the rule 15 prompt block, the `job | agent | model | effort` line, the end-of-turn evidence table and the connector injection flag are done by the model itself when hooks are absent.
- Public safety: `.gitignore` preset, `PUBLIC-SAFETY.md`, `.env.example`, `.public-safety-allow` (one old history hit, commit cd90fa3).

**Changed**
- Skill frontmatter is only `name`, `description`, `license`; version, author and company live in `.claude-plugin/plugin.json`. All versions are 0.5.0, which also fixes the 0.4.x drift (README said 0.3.0, skills 0.2.0, the plugin copy of this changelog stopped at 0.4.0).
- `aiplus-handoff` no longer names an absolute drive path: the default outputs folder is a placeholder the user names once, else `docs/handoff/`.
- Rule 16 and the routing step no longer name a home-folder path (R002).
- `aiplus-handoff` and `aiplus-setup` carry their own `references/scratchpad.md` (S023).
- `scripts/build_adapters.py` also copies `PUBLIC-SAFETY.md` and `.gitignore` into `adapters/claude`.

## 0.4.3: 2026-11-09

**Changed**
- Plugin README expanded (what it does, how to use it, Python requirement) so the Claude directory accepts it (README_TRIVIAL). Original sentence kept.

## 0.4.2: 2026-11-09

**Added**
- Python check: when no working Python 3 is found, the session-start hook tells Claude to explain why AI+ needs it and offer to install it (only after the user confirms). The skill covers chat surfaces with three-line steps or a ready prompt for Claude Code.
- README "Requirements": Python 3.9+, what needs it, install steps per OS.

## 0.4.1: 2026-11-09

**Changed**
- Restored nuance lost in the 0.4.0 merge (found by an independent clause-by-clause review):
- Rule 14 again says always end with the item | followed | evidence table (old 27); after file changes it is required (old 14). Title back to "Accountability and enforcement".
- Rule 1 keeps both "strongest model" (old 1) and "best power per cost" (old 30).
- Parts that were "should" before the merge are tagged "(should)" inline in rules 3, 5, 9 and 16, so no rule became stricter or weaker.

## 0.4.0: 2026-11-09

**Changed**
Expand Down
25 changes: 25 additions & 0 deletions adapters/claude/PUBLIC-SAFETY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Public Safety

This repository is public. Only what is listed under "May be public" is published.

## May be public
- Source code, skills, hook and script sources, and Markdown docs
- Documentation, README, CHANGELOG, LICENSE
- Generic examples with placeholder values, `.env.example` (variable names only)
- Public connector addresses (for example the Composio MCP URL), which carry no key

## Never published
- Secrets: API keys, tokens, passwords, private keys, `.env` files, credentials
- Personal data: personal e-mails, phone numbers, addresses
- Client names and data; internal URLs and hosts
- Local absolute user paths; private notes, logs, memory or progress files

## Where private values live instead
- None: the plugin needs no secrets. The handoff folder is a plugin option (`outputs_root`) the user sets locally; connector sign-ins happen in the user's own account.

## Checks
- `python dev/aiaddon-review/scripts/scan_secrets.py . --history` (working tree plus full git history, run with the aiaddon checker scripts) before every release
- Allowed false positives: `.public-safety-allow`, one entry for an old history hit that is not a credential

## If something leaks
Rotate the credential first, then remove it from history. Never force-push without the owner's explicit OK.
37 changes: 37 additions & 0 deletions adapters/claude/evals/router/cases.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"_note": "Router cases: expected = the skill the routing table in skills/aiplus/SKILL.md must pick, or 'ask' for the closed question. Checked by route_check.py.",
"cases": [
{
"prompt": "write a handoff so I can continue in a fresh session",
"expected": "aiplus-handoff"
},
{
"prompt": "summarize where we are so I can start a new chat",
"expected": "aiplus-handoff"
},
{
"prompt": "wrap up for a new chat",
"expected": "aiplus-handoff"
},
{
"prompt": "set up this project properly",
"expected": "aiplus-setup"
},
{
"prompt": "new repo please, add AGENTS.md and a README",
"expected": "aiplus-setup"
},
{
"prompt": "init this folder with best-practice project files",
"expected": "aiplus-setup"
},
{
"prompt": "get this project ready for the next person",
"expected": "ask"
},
{
"prompt": "finish everything off and tidy it",
"expected": "ask"
}
]
}
Loading