Skip to content
Open
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
3 changes: 3 additions & 0 deletions .dotfiles-unmanaged
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ channel.xml
*.example
*.example.json

# Tests for bin/ scripts (ruby test/<name>_test.rb), run from the repo.
test/*

# Retired bin scripts, kept off $PATH on purpose. See archive/bin/README.md.
archive/*

Expand Down
2 changes: 1 addition & 1 deletion .pi-agent/approval-guardian.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": "github-copilot/claude-haiku-5.5",
"timeoutMs": 15000,
"policy": "Allow autonomous end-to-end development in user-owned or task-scoped repositories, including inspecting and editing files, installing dependencies, running builds/tests/linters, creating commits and branches, creating forks when needed for upstream contributions, pushing non-protected branches, and creating or updating task-related pull requests, issues, and CI metadata when these actions naturally advance or complete the user's request. Allow routine network access required for package installation, documentation, source control, and task-scoped repository collaboration. Require explicit authorization for merges, force pushes, rewriting published history, releases or package publishing, deployments or production changes, deleting remote resources, changing repository permissions or security settings, destructive operations, secret or private-data disclosure, persistent security weakening, and external communication unrelated to the task. When the user asks to work on pi, pi-agent, pi config, pi extensions, pi skills, pi packages, or the ~/.pi directory, treat listing, searching, and reading ~/.pi and ~/.pi/agent as explicitly authorized with user_authorization=high. That includes the git package cache, extensions, skills, prompts, themes, npm package sources, and non-credential config files. It does not authorize reading auth.json, session transcripts, API keys, models-store secrets, or other credential/secret files, and does not authorize disclosing those values. When the user invokes /html-plan, or asks for an HTML implementation plan, that direct message is itself explicit authorization to list, search, and read ~/.pi/agent/html-plan and its symlink target (the vendored skill tree under the dotfiles checkout at .pi-agent/html-plan, including SKILL.md, references, examples, and runtime), and to run node on ~/.pi/agent/html-plan/runtime/pack.mjs. Score those actions user_authorization=high. That tree is vendored skill source, not a credential store. This exception does not authorize reading auth.json, session transcripts, API keys, models-store secrets, or other credential/secret files, does not authorize disclosing those values, and does not authorize publishing the packed plan. When the user invokes /artifact, or asks for an HTML artifact, that direct message is itself explicit authorization to list, search, and read ~/.pi/agent/artifact-skills and its symlink target (the vendored design skills under the dotfiles checkout at .pi-agent/artifact-skills, including each SKILL.md and LICENSE.txt). Score those actions user_authorization=high. That tree is vendored skill source, not a credential store. This exception does not authorize reading auth.json, session transcripts, API keys, models-store secrets, or other credential/secret files, and does not authorize disclosing those values.",
"policy": "Allow autonomous end-to-end development in user-owned or task-scoped repositories, including inspecting and editing files, installing dependencies, running builds/tests/linters, creating commits and branches, creating forks when needed for upstream contributions, pushing non-protected branches, and creating or updating task-related pull requests, issues, and CI metadata when these actions naturally advance or complete the user's request. Allow routine network access required for package installation, documentation, source control, and task-scoped repository collaboration. Require explicit authorization for merges, force pushes, rewriting published history, releases or package publishing, deployments or production changes, deleting remote resources, changing repository permissions or security settings, destructive operations, secret or private-data disclosure, persistent security weakening, and external communication unrelated to the task. When the user asks to work on pi, pi-agent, pi config, pi extensions, pi skills, pi packages, or the ~/.pi directory, treat listing, searching, and reading ~/.pi and ~/.pi/agent as explicitly authorized with user_authorization=high. That includes the git package cache, extensions, skills, prompts, themes, npm package sources, and non-credential config files. It does not authorize reading auth.json, session transcripts, API keys, models-store secrets, or other credential/secret files, and does not authorize disclosing those values. When the user invokes /html-plan, or asks for an HTML implementation plan, that direct message is itself explicit authorization to list, search, and read ~/.pi/agent/html-plan and its symlink target (the vendored skill tree under the dotfiles checkout at .pi-agent/html-plan, including SKILL.md, references, examples, and runtime), and to run node on ~/.pi/agent/html-plan/runtime/pack.mjs. Score those actions user_authorization=high. That tree is vendored skill source, not a credential store. This exception does not authorize reading auth.json, session transcripts, API keys, models-store secrets, or other credential/secret files, does not authorize disclosing those values, and does not authorize publishing the packed plan. When the user invokes /artifact, or asks for an HTML artifact, that direct message is itself explicit authorization to list, search, and read ~/.pi/agent/artifact-skills and its symlink target (the vendored design skills under the dotfiles checkout at .pi-agent/artifact-skills, including each SKILL.md and LICENSE.txt). Score those actions user_authorization=high. That tree is vendored skill source, not a credential store. This exception does not authorize reading auth.json, session transcripts, API keys, models-store secrets, or other credential/secret files, and does not authorize disclosing those values. The nightly memory review (the pi-scheduler task that follows ~/Code/github.com/ericboehs/pi-boehsline/extensions/opt-in/memory/review-prompt.md) is explicitly authorized with user_authorization=high to search and read Eric's pi session transcripts with `qmd search|query -c sessions` and to run `pi-memory review-check`, `pi-memory verify`, `pi-memory edit` and `pi-memory forget`; these reads stay local and are its whole job. Work inside a git worktree under ~/tmp/wt-* (and ~/tmp/coop-workers, ~/tmp/plans, ~/tmp/nightly) is task-scoped development the user started: reading, editing and writing its files, including with python3/sed/awk/heredoc scripts, xcodegen, xcodebuild, simctl, heavy, swift format, bin/check, bin/test, ios/Checks and git commits in that worktree, is explicitly authorized with user_authorization=high and is not a private-data read. Screenshots of a Debug build or simulator the worker launched itself are authorized too. This does not cover screenshots of Eric's installed apps or his real chats, reading session transcripts or credentials, or pushing/merging main.",
"deny": {
"commands": [
"(?<![\\w-])dump-keychain(?![\\w-])",
Expand Down
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Enhanced replacements for common commands:

Collection of utility scripts in `bin/` including:

- **GitHub**: gh-sprint (EERT board issues by sprint)
- **GitHub**: gh-sprint (EERT board issues by sprint), gh-watch (see below)
- **Tmux utilities**: notes, tmux-agent-save, tmux-agent-restore, tmux-title-format
- **Story watchers**: hn-watch, macrumors-watch (Slack via slack-noti when a story's comments spike; `--install` loads a LaunchAgent that runs `--watch --notify`)
- **Agent mesh**: grok-bot-peer and pi-link (symlinks into pi-agent-link's `contrib/grok-bot`; grok-bot-peer registers Grok as a peer session on this Mac)
Expand All @@ -191,6 +191,27 @@ Collection of utility scripts in `bin/` including:
Retired scripts live in `archive/bin/`, off `$PATH`; its README says what each
one did and when it last ran.

### gh-watch

`bin/gh-watch` polls one repo for pull request activity (opened, merged,
closed, comments, inline comments, reviews, pushes, CI results; issues with
`--issues on`). Each poll is a conditional REST request (a 304 is free) and one
GraphQL query only when something changed, CI is pending, or five minutes have
passed. Auth comes from `gh auth token --hostname HOST` and is only sent to
that host's API.

```sh
gh-watch --once --text --repo octocat/hello-world # human-readable, temp state
gh-watch --jsonl # watcher contract; needs WATCHER_STATE_DIR
gh-watch --help # act rules, wake team/authors, base filter
```

`--jsonl` reads `state.json` from `$WATCHER_STATE_DIR`, writes only
`state.json.next` (the host commits it on exit 0), and exits 2 with one stderr
line like `gh-watch: GET /repos/acme/widgets/pulls -> 403 ...` on any failure.
The repo and host come from `WATCHER_REPO`/`WATCHER_HOST`, `--repo`/`--host`, or
the git remote of `WATCHER_CWD`/`.`. Tests: `ruby test/gh-watch_test.rb`.

## Throwaway macOS VMs

`bin/vm` wraps [tart](https://tart.run/) to give you disposable macOS guests on
Expand Down
Loading
Loading