You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ You are Codex, based on GPT-5. You are running as a coding agent in the Codex CL
10
10
- When multiple tool calls can be parallelized (e.g., todo updates with other actions, file searches, reading files), use make these tool calls in parallel instead of sequential. Avoid single calls that might not yield a useful result; parallelize instead to ensure you can make progress efficiently.
11
11
- Code chunks that you receive (via tool calls or from user) may include inline line numbers in the form "Lxxx:LINE_CONTENT", e.g. "L123:LINE_CONTENT". Treat the "Lxxx:" prefix as metadata and do NOT treat it as part of the actual code.
12
12
- Default expectation: deliver working code, not just a plan. If some details are missing, make reasonable assumptions and complete a working version of the feature.
13
+
- Prefer machine-readable CLI output when available: `cb ... --json` and `hdb ... --json` should be the default inspection path for agent workflows, with `--json-file <path>` used when a command supports writing the same payload to disk.
Copy file name to clipboardExpand all lines: CLAUDE.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ TypeScript ESM monorepo (`module: NodeNext`). Three CLIs share a `src/shared/` l
42
42
-`test/setup/no-network.ts` — global outbound-network block active in `vitest.config.ts`
43
43
44
44
**Use explicit relative imports with `.js` specifiers** (NodeNext resolution).
45
+
Prefer machine-readable CLI output for local inspection and automation when available: `cb ... --json` and `hdb ... --json`, plus `--json-file <path>` on commands that support file output.
- non-zero balances by default; hold/available are formatted to each currency's base increment using cached product metadata when present unless `--raw` is used
100
-
-`--json` writes all fetched accounts to `./accounts.json` by default, or to the provided filepath; export rows include currency, type, hold, and available, and honor `--crypto`, `--cash`, and `--raw`
101
+
-`--json` prints `{ rows, filters, meta }` for machine reading
102
+
-`--json-file <path>` writes the same structured payload to disk and still prints JSON to stdout
101
103
-`--value` adds a USD value column based on current product price (forced product refresh for supported products)
102
104
- when `[product]` is provided, matching accounts are shown with price-based USD values
103
105
-`cb balance` (alias: `usd`)
@@ -156,6 +158,18 @@ Notes:
156
158
-`--baseSize`, `--limitPrice`, `--stopPrice` are supported
157
159
-`--takeProfitPrice` is rejected
158
160
161
+
## Troubleshooting Workflow
162
+
163
+
Prefer `cb accounts --json` when you want a stable machine-readable account snapshot for automation or agent-assisted inspection.
0 commit comments