axgram 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +26 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  The CLI for Axgram — a multi-tenant AI memory system. The `axgram` binary
4
4
  mines local codebases, imports conversation history from your AI tools,
5
- and runs the auto-save hook for Claude Code. The `axgram-hook` binary is
6
- a separate, slimmer entrypoint designed for Claude Code's `Stop` and
7
- `SessionStart` hooks.
5
+ sets up Axgram in your AI coding tools (`axgram init`), and runs the
6
+ auto-save hooks. The `axgram-hook` binary is a separate, slimmer
7
+ entrypoint that those hooks invoke.
8
8
 
9
9
  ## Install
10
10
 
@@ -51,22 +51,41 @@ If none of the above resolve, commands exit 1 with a clear hint. The
51
51
  `axgram-hook session-start` mode emits a system-prompt nudge instructing
52
52
  Claude to ask the user how to bind the current repo.
53
53
 
54
- ## Claude Code hook
54
+ ## Set up your AI tools
55
55
 
56
- Add to `~/.claude/settings.json`:
56
+ The fastest way to wire Axgram into your AI coding tools:
57
+
58
+ ```bash
59
+ axgram init
60
+ ```
61
+
62
+ `axgram init` offers to log you in, then writes the session-start and
63
+ session-end hooks (and, optionally, registers the MCP server) for
64
+ **Claude Code, Cursor CLI, Codex CLI, and Gemini CLI**. Pick **global**
65
+ (all projects) or **local** (current folder) scope per tool. Flags:
66
+ `--agent claude,cursor`, `--scope local|global`, `--no-mcp`, `--no-login`,
67
+ `-y/--yes`.
68
+
69
+ > Transcript mining is fully supported for Claude Code today. Cursor,
70
+ > Codex, and Gemini hooks are wired but mining is pending transcript-format
71
+ > support; the hook no-ops cleanly until then.
72
+
73
+ ### Manual hook setup (fallback)
74
+
75
+ To configure Claude Code by hand instead, add to `~/.claude/settings.json`:
57
76
 
58
77
  ```json
59
78
  {
60
79
  "hooks": {
61
80
  "SessionStart": [{
62
81
  "matcher": "",
63
- "hooks": [{ "type": "command", "command": "axgram-hook session-start" }]
82
+ "hooks": [{ "type": "command", "command": "axgram-hook session-start --source claude" }]
64
83
  }],
65
84
  "Stop": [{
66
85
  "matcher": "",
67
86
  "hooks": [{
68
87
  "type": "command",
69
- "command": "axgram-hook stop --transcript ${CLAUDE_TRANSCRIPT_PATH}"
88
+ "command": "axgram-hook stop --source claude --transcript ${CLAUDE_TRANSCRIPT_PATH}"
70
89
  }]
71
90
  }]
72
91
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axgram",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Axgram CLI — mine codebases, import conversation history, and run the auto-save hook for Claude Code.",
5
5
  "license": "MIT",
6
6
  "repository": {