alphacouncil-agent 0.5.3 → 0.5.4
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.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +11 -0
- package/CONTRIBUTING.md +65 -0
- package/SECURITY.md +28 -0
- package/docs/INSTALL.md +295 -0
- package/package.json +5 -2
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
8
|
"description": "AlphaCouncil plugins for public-equity research.",
|
|
9
|
-
"version": "0.5.
|
|
9
|
+
"version": "0.5.4"
|
|
10
10
|
},
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "alphacouncil-agent",
|
|
14
14
|
"source": "./",
|
|
15
15
|
"description": "Multi-agent equity research: evidence packets, bull/bear debate, portfolio-manager decision.",
|
|
16
|
-
"version": "0.5.
|
|
16
|
+
"version": "0.5.4",
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "Zhao73"
|
|
19
19
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alphacouncil-agent",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Multi-agent public-equity research workflow for Claude Code: spawns analyst workers, gathers sourced JSON evidence packets, runs bull/bear debate, and produces a portfolio-manager Buy/Overweight/Hold/Underweight/Sell decision with a full report.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Zhao73"
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes per release. Dates are UTC.
|
|
4
4
|
|
|
5
|
+
## [0.5.4] — 2026-07-26
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- `docs/INSTALL.md`, `SECURITY.md` and `CONTRIBUTING.md` were never in the package. The
|
|
10
|
+
install guide is the page an npm user reads specifically to learn how to invoke the thing,
|
|
11
|
+
and it was absent from every published version.
|
|
12
|
+
- A contract test now asserts the property rather than the entries: every tracked
|
|
13
|
+
consumer-facing file must be in the package. The gaps had been surfacing one release at a
|
|
14
|
+
time — the host agent directories in 0.5.1, the install guide in 0.5.3.
|
|
15
|
+
|
|
5
16
|
## [0.5.3] — 2026-07-26
|
|
6
17
|
|
|
7
18
|
### Fixed
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Contributing to AlphaCouncil Agent
|
|
2
|
+
|
|
3
|
+
Thanks for your interest in improving AlphaCouncil Agent!
|
|
4
|
+
|
|
5
|
+
## Development setup
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
git clone https://github.com/Zhao73/alphacouncil-agent.git
|
|
9
|
+
cd alphacouncil-agent
|
|
10
|
+
node --version # must be >= 18
|
|
11
|
+
npm run check # runs node --check + the self-check (no Codex auth needed)
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
There are **no runtime dependencies** — the MCP server is plain Node.js standard
|
|
15
|
+
library. Please keep it that way unless there is no simple standard-library path.
|
|
16
|
+
|
|
17
|
+
## Before opening a pull request
|
|
18
|
+
|
|
19
|
+
- Run `npm run check` and make sure it passes.
|
|
20
|
+
- Preserve the JSON packet contracts in `mcp/server.mjs` (evidence packets and
|
|
21
|
+
debate packets). If you change a contract, update `scripts/selfcheck.mjs` and
|
|
22
|
+
the README/skill docs to match.
|
|
23
|
+
- Keep source IDs globally scoped as `<task>:<local_source_id>`.
|
|
24
|
+
- Keep the implementation small and readable.
|
|
25
|
+
|
|
26
|
+
## Scope and boundaries
|
|
27
|
+
|
|
28
|
+
- This is an **independent** plugin. Do not copy source code from other
|
|
29
|
+
multi-agent investment projects into this repo.
|
|
30
|
+
- "Public Equity Investing" and "Investment Banking" are agent instructions /
|
|
31
|
+
skills, not importable libraries.
|
|
32
|
+
- Never commit API keys, brokerage credentials, private filings, or generated
|
|
33
|
+
run artifacts (everything under `~/.alphacouncil-agent/` and `runs/` is
|
|
34
|
+
ignored by `.gitignore`).
|
|
35
|
+
|
|
36
|
+
## Reporting bugs / requesting features
|
|
37
|
+
|
|
38
|
+
Use the issue templates. Please include your OS, Node version, and whether you
|
|
39
|
+
were using the Codex headless path or the visible workflow.
|
|
40
|
+
|
|
41
|
+
## License
|
|
42
|
+
|
|
43
|
+
By contributing, you agree that your contributions are licensed under the
|
|
44
|
+
[MIT License](LICENSE).
|
|
45
|
+
|
|
46
|
+
## Commit messages
|
|
47
|
+
|
|
48
|
+
Write them from a file or a quoted heredoc, never inline in a shell string:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
git commit -F /tmp/msg.txt
|
|
52
|
+
# or
|
|
53
|
+
git commit -F - <<'MSG'
|
|
54
|
+
...
|
|
55
|
+
MSG
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Backticks in a commit message are command substitution to the shell, which silently deletes
|
|
59
|
+
the text between them before git ever sees it. It happened once here, to a sentence naming
|
|
60
|
+
a CLI subcommand; the words were simply gone from the published history. Quoting the
|
|
61
|
+
heredoc delimiter (`<<'MSG'`, not `<<MSG`) disables expansion.
|
|
62
|
+
|
|
63
|
+
If a message does go out wrong, prefer `git notes add` over `git commit --amend` once the
|
|
64
|
+
commit is an ancestor of a published tag. Rewriting it leaves the release pointing at an
|
|
65
|
+
object that no longer exists, which is a worse outcome than an imperfect message.
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Reporting a vulnerability
|
|
4
|
+
|
|
5
|
+
Please **do not** open a public issue for security problems. Instead, report
|
|
6
|
+
privately via GitHub's **"Report a vulnerability"** button under the repository's
|
|
7
|
+
**Security** tab (Security advisories), or contact the maintainer directly.
|
|
8
|
+
|
|
9
|
+
We aim to acknowledge reports within a few days.
|
|
10
|
+
|
|
11
|
+
## Scope and notes
|
|
12
|
+
|
|
13
|
+
AlphaCouncil Agent runs an autonomous research workflow. Be aware that:
|
|
14
|
+
|
|
15
|
+
- The headless path spawns `codex exec` worker processes that perform **live web
|
|
16
|
+
search**. Treat fetched content as untrusted; the agents are instructed not to
|
|
17
|
+
act on embedded instructions, but you should review outputs before relying on
|
|
18
|
+
them.
|
|
19
|
+
- Run artifacts under `~/.alphacouncil-agent/runs/<run_id>/` may contain text
|
|
20
|
+
captured from third-party pages. These are **not** committed (ignored by
|
|
21
|
+
`.gitignore`) — mind what you share.
|
|
22
|
+
- Never commit API keys, tokens, brokerage credentials, or private filings.
|
|
23
|
+
- This software is for educational/research use only and is **not investment
|
|
24
|
+
advice** (see the README disclaimer).
|
|
25
|
+
|
|
26
|
+
## Supported versions
|
|
27
|
+
|
|
28
|
+
This project is pre-1.0. Only the latest `main` is supported.
|
package/docs/INSTALL.md
ADDED
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
# Install AlphaCouncil Agent
|
|
2
|
+
|
|
3
|
+
AlphaCouncil Agent runs in **OpenAI Codex** and **Claude Code**. It also loads as a
|
|
4
|
+
plain MCP server in the Claude desktop app.
|
|
5
|
+
|
|
6
|
+
> ⚠️ **Disclaimer.** Educational/research use only. **Not investment advice.**
|
|
7
|
+
> AI analysis can be incomplete, outdated, or wrong. Do your own research and
|
|
8
|
+
> consult a licensed professional before any investment decision.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## npm
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install -g alphacouncil-agent
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Then point any MCP host at the `alphacouncil-agent` binary. For Claude Code:
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{ "mcpServers": { "alphacouncil-agent": { "command": "alphacouncil-agent" } } }
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
For OpenCode, `command` takes an argv array:
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{ "mcp": { "alphacouncil-agent": { "type": "local", "command": ["alphacouncil-agent"] } } }
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Or run it without installing: `npx alphacouncil-agent`.
|
|
32
|
+
|
|
33
|
+
## Configuration: none required
|
|
34
|
+
|
|
35
|
+
There is nothing to configure. Every core data source is keyless — SEC EDGAR for US
|
|
36
|
+
filings, TWSE for Taiwan, Yahoo and Stooq for quotes and macro — and the package has no
|
|
37
|
+
dependencies, so the install is the download and nothing else.
|
|
38
|
+
|
|
39
|
+
Two optional free keys widen coverage. Without them the tools still answer; they report
|
|
40
|
+
which market is missing a feed and which variable would unlock it, and analysts are told
|
|
41
|
+
that figures for those names must come from a primary document and be cited as such.
|
|
42
|
+
|
|
43
|
+
| Variable | Unlocks | Register |
|
|
44
|
+
|---|---|---|
|
|
45
|
+
| `ALPHACOUNCIL_DART_KEY` | Korean filings (Samsung, SK hynix) | <https://opendart.fss.or.kr> |
|
|
46
|
+
| `ALPHACOUNCIL_EDINET_KEY` | Japanese filings (Kioxia, Tokyo Electron) | EDINET portal |
|
|
47
|
+
| `ALPHACOUNCIL_SEC_USER_AGENT` | Your own SEC contact, advisable at volume | n/a |
|
|
48
|
+
|
|
49
|
+
Run `node scripts/doctor.mjs` at any time to see which copy is running, whether the
|
|
50
|
+
persona set loads, and what the data directory holds.
|
|
51
|
+
|
|
52
|
+
## How to invoke it once installed
|
|
53
|
+
|
|
54
|
+
One command, `/alpha`. Modes are arguments.
|
|
55
|
+
|
|
56
|
+
```text
|
|
57
|
+
/alpha MU full council — asks which preset first
|
|
58
|
+
/alpha MU quick 4 analysts + debate, no bench, no verification
|
|
59
|
+
/alpha MU screen mechanical filings screen only (no model spend)
|
|
60
|
+
/alpha MU options IV term structure, skew, positioning (no model spend)
|
|
61
|
+
/alpha MU news dated filings and headlines (no model spend)
|
|
62
|
+
/alpha market AI what the market is talking about (no model spend)
|
|
63
|
+
/alpha lists the modes and stops (no model spend)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
The four marked *no model spend* call keyless data tools and spawn no subagents. **Start
|
|
67
|
+
there** — they show real data at no cost, so you can see the shape of the thing before
|
|
68
|
+
committing a fan-out. The council modes spawn one subagent per seat: 7 for `quick`, 32 for
|
|
69
|
+
the standard preset, 44 for deep.
|
|
70
|
+
|
|
71
|
+
Codex keeps prompts user-scoped rather than in the plugin, so copy it once:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
mkdir -p ~/.codex/prompts && cp commands/alpha.md ~/.codex/prompts/
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
`@alphacouncil-agent <question>` still works everywhere and does the same thing.
|
|
78
|
+
|
|
79
|
+
## Prerequisites
|
|
80
|
+
|
|
81
|
+
- **Node.js ≥ 18** (the MCP server is ESM and uses modern Node APIs).
|
|
82
|
+
- For the **headless research path** (`analyze_symbol` / `collect_evidence`):
|
|
83
|
+
an installed and authenticated **Codex CLI**, because each analyst worker is
|
|
84
|
+
launched as `codex exec`. Without it, headless workers fail; use the
|
|
85
|
+
**visible workflow** instead (the host agent does the research and records
|
|
86
|
+
packets — no `codex` binary required).
|
|
87
|
+
|
|
88
|
+
Verify:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
node --version # >= 18
|
|
92
|
+
codex --version # only needed for the headless path
|
|
93
|
+
npm run check # runs the self-check (no Codex auth required)
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Install in Codex
|
|
99
|
+
|
|
100
|
+
This repo already ships the manifests Codex expects, at the official paths:
|
|
101
|
+
`.agents/plugins/marketplace.json` (repo marketplace), `.codex-plugin/plugin.json`
|
|
102
|
+
(plugin manifest), and `.mcp.json` (MCP server) — so the one-command install below
|
|
103
|
+
works out of the box. (`.claude-plugin/marketplace.json` is kept for legacy compat.)
|
|
104
|
+
|
|
105
|
+
### A. One command — recommended ✅
|
|
106
|
+
|
|
107
|
+
```text
|
|
108
|
+
codex plugin marketplace add Zhao73/alphacouncil-agent
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Then **fully quit and restart the Codex desktop app** (plugins load at session
|
|
112
|
+
start — see [Troubleshooting](#troubleshooting-the-plugin-doesnt-show-up--alphacouncil-agent-isnt-found)),
|
|
113
|
+
open a new session, and:
|
|
114
|
+
|
|
115
|
+
```text
|
|
116
|
+
/plugins # switch to the "AlphaCouncil" marketplace → Install alphacouncil-agent
|
|
117
|
+
/reload-plugins
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### B. Local clone — advanced / offline only
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
git clone https://github.com/Zhao73/alphacouncil-agent.git \
|
|
124
|
+
~/.codex/plugins/alphacouncil-agent
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Then add an entry to `~/.agents/plugins/marketplace.json` whose `source.path` is the
|
|
128
|
+
**absolute** path to that clone (copy the shape from `.agents/plugins/marketplace.json`
|
|
129
|
+
in this repo; on Windows use `C:\\Users\\you\\.codex\\plugins\\alphacouncil-agent`, not
|
|
130
|
+
`./`), restart Codex, and install from `/plugins`. **Prefer A** unless you're doing
|
|
131
|
+
offline/local development — it avoids hand-editing paths.
|
|
132
|
+
|
|
133
|
+
**Use it:**
|
|
134
|
+
|
|
135
|
+
```text
|
|
136
|
+
@alphacouncil-agent analyze AAPL as a long/short pitch
|
|
137
|
+
@alphacouncil-agent 帮我看看 NOK
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Install in Claude Code
|
|
143
|
+
|
|
144
|
+
This repo ships a Claude Code plugin manifest (`.claude-plugin/plugin.json`) and
|
|
145
|
+
acts as its own marketplace (`.claude-plugin/marketplace.json`).
|
|
146
|
+
|
|
147
|
+
```text
|
|
148
|
+
/plugin marketplace add Zhao73/alphacouncil-agent
|
|
149
|
+
/plugin install alphacouncil-agent@alphacouncil
|
|
150
|
+
/reload-plugins
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Or wire just the MCP server, without the plugin system:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
claude mcp add alphacouncil-agent -- node /absolute/path/to/alphacouncil-agent/mcp/server.mjs
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
**Two ways to actually run the research in Claude Code:**
|
|
160
|
+
|
|
161
|
+
1. **With Codex CLI installed & authenticated** — the headless `analyze_symbol`
|
|
162
|
+
path works as-is (it shells out to `codex exec`).
|
|
163
|
+
2. **Without Codex** — use the visible path: let Claude Code's own subagents act
|
|
164
|
+
as the analysts, then record their JSON with `record_visible_packet` /
|
|
165
|
+
`record_visible_decision`. The MCP tools `plan_visible_run` /
|
|
166
|
+
`record_visible_*` never call `codex`, so this runs fully inside Claude.
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## Claude desktop app (MCP only)
|
|
171
|
+
|
|
172
|
+
Add the MCP server in the app's connector/MCP settings, pointing `command` to
|
|
173
|
+
`node` and `args` to the absolute path of `mcp/server.mjs`. Tools will load; the
|
|
174
|
+
headless path still needs Codex CLI as above.
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
## Troubleshooting: the plugin doesn't show up / `@alphacouncil-agent` isn't found
|
|
179
|
+
|
|
180
|
+
Codex loads its tool list **at session start**. Installing or enabling a plugin
|
|
181
|
+
mid-session does **not** hot-add it to the current conversation — even if the files
|
|
182
|
+
are installed, `config.toml` marks it enabled, and the self-check passes.
|
|
183
|
+
|
|
184
|
+
Do this in order:
|
|
185
|
+
|
|
186
|
+
1. **Fully quit and restart the Codex desktop app** (not just a new tab) and open a **new session**.
|
|
187
|
+
2. Type `/plugins` and confirm **AlphaCouncil** is listed; enable `alphacouncil-agent`.
|
|
188
|
+
3. Type `/reload-plugins`.
|
|
189
|
+
4. Trigger it with the **exact lowercase id**: `@alphacouncil-agent ...`. The display
|
|
190
|
+
name `@AlphaCouncil Agent` (spaces + capitals) may not trigger — prefer the id.
|
|
191
|
+
|
|
192
|
+
If `/plugins` **still** doesn't list it after a full restart, your Codex build didn't
|
|
193
|
+
pick up the local marketplace. Use the official GitHub marketplace command instead (run
|
|
194
|
+
in a normal terminal), then restart Codex:
|
|
195
|
+
|
|
196
|
+
```text
|
|
197
|
+
codex plugin marketplace add Zhao73/alphacouncil-agent
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
> Local-clone install (Option B): the `source.path` in your
|
|
201
|
+
> `~/.agents/plugins/marketplace.json` must be the **absolute** path to the clone
|
|
202
|
+
> (e.g. `C:\\Users\\you\\.codex\\plugins\\alphacouncil-agent`), **not** `./`. When in
|
|
203
|
+
> doubt, use the GitHub marketplace command above — it avoids hand-editing paths.
|
|
204
|
+
|
|
205
|
+
## Windows
|
|
206
|
+
|
|
207
|
+
### Prerequisites (Windows)
|
|
208
|
+
|
|
209
|
+
- **Node.js ≥ 18** — install from [nodejs.org](https://nodejs.org), or in PowerShell:
|
|
210
|
+
`winget install OpenJS.NodeJS.LTS`. Verify with `node --version`.
|
|
211
|
+
- (Headless path only) the Codex CLI installed and authenticated. v0.3.0+ supports
|
|
212
|
+
native Windows `codex.cmd` installs; WSL is only a fallback if your Codex CLI
|
|
213
|
+
itself does not work from PowerShell/CMD.
|
|
214
|
+
|
|
215
|
+
### Install in Codex desktop (Windows)
|
|
216
|
+
|
|
217
|
+
The in-app commands are identical to macOS/Linux — they run **inside Codex**, not in your
|
|
218
|
+
shell, so the OS does not matter:
|
|
219
|
+
|
|
220
|
+
```text
|
|
221
|
+
codex plugin marketplace add Zhao73/alphacouncil-agent
|
|
222
|
+
# then open Codex → /plugins → switch to the "AlphaCouncil" marketplace → Install → /reload-plugins
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
Local / personal marketplace (Windows paths). In PowerShell:
|
|
226
|
+
|
|
227
|
+
```powershell
|
|
228
|
+
git clone https://github.com/Zhao73/alphacouncil-agent.git "$env:USERPROFILE\.codex\plugins\alphacouncil-agent"
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Then add an entry to `%USERPROFILE%\.agents\plugins\marketplace.json` whose `source.path`
|
|
232
|
+
points at that folder (copy the shape from `.agents/plugins/marketplace.json` in this repo).
|
|
233
|
+
In JSON, escape Windows backslashes, e.g.:
|
|
234
|
+
|
|
235
|
+
```json
|
|
236
|
+
{ "source": { "path": "C:\\Users\\you\\.codex\\plugins\\alphacouncil-agent" } }
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
Restart Codex and install from `/plugins`.
|
|
240
|
+
|
|
241
|
+
### Install in Claude Code (Windows)
|
|
242
|
+
|
|
243
|
+
Identical to other platforms (the commands run inside Claude Code):
|
|
244
|
+
|
|
245
|
+
```text
|
|
246
|
+
/plugin marketplace add Zhao73/alphacouncil-agent
|
|
247
|
+
/plugin install alphacouncil-agent@alphacouncil
|
|
248
|
+
/reload-plugins
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
The Claude Code **visible path works natively on Windows** — it never spawns the `codex`
|
|
252
|
+
binary; your Claude Code subagents do the research and record packets via
|
|
253
|
+
`record_visible_*`. **This is the recommended Windows path.**
|
|
254
|
+
|
|
255
|
+
### Runtime notes (Windows)
|
|
256
|
+
|
|
257
|
+
The **headless Codex path** (`analyze_symbol` / `collect_evidence`, which launch `codex exec`
|
|
258
|
+
workers) is supported on native Windows in v0.3.0+: the server launches through
|
|
259
|
+
`cmd.exe /d /s /c` so `codex.cmd` resolves correctly, and it sends large analyst prompts
|
|
260
|
+
through stdin (`codex exec -`) instead of putting Chinese/multiline prompts on the command
|
|
261
|
+
line. Timeout cleanup uses the normal Node process plus Windows process-tree termination.
|
|
262
|
+
|
|
263
|
+
If headless still fails, check these first:
|
|
264
|
+
|
|
265
|
+
- `node --version` is >= 18.
|
|
266
|
+
- `codex --version` works in PowerShell or CMD.
|
|
267
|
+
- Codex CLI is logged in for the same Windows user running Codex Desktop.
|
|
268
|
+
- If `codex` is not on PATH, set `ALPHACOUNCIL_AGENT_CODEX_CMD` to the absolute path of
|
|
269
|
+
`codex.cmd`.
|
|
270
|
+
|
|
271
|
+
Fallbacks:
|
|
272
|
+
|
|
273
|
+
- Use **WSL** and run Codex + the plugin inside Linux if your native Codex CLI install is broken.
|
|
274
|
+
- Use the **visible path** above when you do not want the MCP server to spawn `codex` at all.
|
|
275
|
+
|
|
276
|
+
Everything else is cross-platform: data lives under `%USERPROFILE%\.alphacouncil-agent\`
|
|
277
|
+
(via `os.homedir()`), paths use `path.join`, and the MCP wiring is plain `node`.
|
|
278
|
+
|
|
279
|
+
---
|
|
280
|
+
|
|
281
|
+
## 中文速览
|
|
282
|
+
|
|
283
|
+
- 前置:Node ≥ 18;headless 真跑研究需要已登录的 Codex CLI(worker 是 `codex exec`)。Windows v0.3.0+ 原生支持 `codex.cmd`;WSL 只是 fallback。
|
|
284
|
+
- Codex 安装:`codex plugin marketplace add Zhao73/alphacouncil-agent` → `/plugins` 安装 → `/reload-plugins`;或 clone 到 `~/.codex/plugins/` 走本地 marketplace。
|
|
285
|
+
- Claude Code 安装:`/plugin marketplace add Zhao73/alphacouncil-agent` → `/plugin install alphacouncil-agent@alphacouncil` → `/reload-plugins`。
|
|
286
|
+
- 没有 Codex CLI 时:用 visible 工作流,让 Claude 子代理产出证据并用 `record_visible_*` 录入,无需 codex。
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
## 日本語クイックガイド
|
|
291
|
+
|
|
292
|
+
- 前提:Node ≥ 18。headless でリサーチを実走させるには、認証済みの Codex CLI が必要(worker は `codex exec`)。Windows は v0.3.0+ で `codex.cmd` をネイティブに起動可能。WSL は fallback。
|
|
293
|
+
- Codex でのインストール:`codex plugin marketplace add Zhao73/alphacouncil-agent` → `/plugins` でインストール → `/reload-plugins`。または `~/.codex/plugins/` に clone してローカル marketplace 経由でも可。
|
|
294
|
+
- Claude Code でのインストール:`/plugin marketplace add Zhao73/alphacouncil-agent` → `/plugin install alphacouncil-agent@alphacouncil` → `/reload-plugins`。
|
|
295
|
+
- Codex CLI が無い場合:visible ワークフローを使用。Claude のサブエージェントに根拠を生成させ、`record_visible_*` で記録する(codex 不要)。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alphacouncil-agent",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Multi-agent public-equity research workflow plugin for Codex & Claude Code: sourced evidence packets, bull/bear debate, and a portfolio-manager Buy/Overweight/Hold/Underweight/Sell decision.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,6 +60,9 @@
|
|
|
60
60
|
"commands/",
|
|
61
61
|
".claude/commands/",
|
|
62
62
|
".opencode/command/",
|
|
63
|
-
".grok/commands/"
|
|
63
|
+
".grok/commands/",
|
|
64
|
+
"docs/INSTALL.md",
|
|
65
|
+
"SECURITY.md",
|
|
66
|
+
"CONTRIBUTING.md"
|
|
64
67
|
]
|
|
65
68
|
}
|