ai-summon
v0.0.4
Published
A small TypeScript CLI (binary name: `ai`) for:
Readme
ai-summon
A small TypeScript CLI (binary name: ai) for:
- Opening projects in Cursor or Claude via an interactive fuzzy search
- Managing personal URL bookmarks and URL groups (open in Chrome)
- Bootstrapping
~/.ai/config.json
Installation
npm install -g ai-summonAfter install, you should have the ai command available:
ai --helpInstall from source (dev)
yarn install
yarn build:installCommands
ai init
Initialize ~/.ai/config.json.
ai init
ai init --working-directory /Users/you/dev
ai init --forceOptions:
-w, --working-directory <path>: setworkingDirectorywithout prompting-f, --force: overwrite existing config without confirmation
ai cursor [search]
Open a project in Cursor.
ai cursor
ai cursor paymentsai claude [search]
Open a project in Claude Code.
ai claude
ai claude impactfulai cursor refresh / ai claude refresh
Refresh the cached auto-discovered repositories (only applies when workingDirectory mode is enabled).
ai cursor refresh
ai claude refreshai url ...
URL bookmark management (stored in ~/.ai/config.json).
ai url add <name> <url>
ai url add jira https://your-jira.example.comai url remove [name]
If name is omitted, you’ll enter interactive search mode.
ai url remove jira
ai url removeai url search [--suppress]
Interactively search bookmarks and open the selected URL in Google Chrome.
ai url search
ai url search --suppressOptions:
--suppress: auto-dismiss popups by simulating the Enter key after opening (macOS viaosascript)
ai url group
Select a configured URL group and open all URLs in a new Chrome window.
ai url groupConfiguration (~/.ai/config.json)
Run ai init to create the file. The CLI supports two modes for project selection:
Auto-discovery mode (recommended)
Set workingDirectory to a folder containing your git repositories. The CLI will recursively scan for repos (by .git) and cache results to speed up future runs (cache file: ~/.ai/ide-repos-cache.json).
Example:
{
"workingDirectory": "/Users/you/dev",
"urls": {},
"urlGroups": {}
}Development
yarn install
yarn build
yarn devRequirements / Notes
- Node.js: required to run the CLI
- Cursor:
ai cursorshells out tocursor <path> - Claude Code:
ai claudeshells out toclaude(and runs it in the selected repo directory) - Chrome + macOS:
ai url ...currently usesopen -a "Google Chrome" ...(andosascriptfor--suppress)
License
ISC
