@reasontrail/cli 0.1.0
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/LICENSE +175 -0
- package/README.md +140 -0
- package/bin/reasontrail.mjs +3 -0
- package/package.json +41 -0
- package/runtime/reasontrail-runtime.mjs +15749 -0
- package/skills/reasontrail/SKILL.md +82 -0
- package/src/build-info.json +1 -0
- package/src/cli.mjs +1361 -0
- package/src/codex-sync.mjs +520 -0
- package/src/device-login.mjs +60 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: reasontrail
|
|
3
|
+
description: Use ReasonTrail as the authoritative shared project Brain for project context, decisions, tasks, discoveries, and reviewed memory updates.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# ReasonTrail Brain
|
|
7
|
+
|
|
8
|
+
ReasonTrail is the authoritative shared project memory. Repository files and
|
|
9
|
+
assistant-native memory may be indexed sources, but never substitute for the
|
|
10
|
+
Brain.
|
|
11
|
+
|
|
12
|
+
## Transport
|
|
13
|
+
|
|
14
|
+
Whenever ReasonTrail is needed:
|
|
15
|
+
|
|
16
|
+
1. Use live ReasonTrail MCP tools if they are actually exposed.
|
|
17
|
+
2. Otherwise execute the corresponding `reasontrail` CLI command if the
|
|
18
|
+
executable exists.
|
|
19
|
+
3. Fail closed only when neither transport is callable.
|
|
20
|
+
|
|
21
|
+
Never inspect environment variables or configuration files to guess MCP
|
|
22
|
+
availability. Never claim a transport ran unless its tool or executable really
|
|
23
|
+
ran. The CLI delegates to the same ReasonTrail backend; it is not a second
|
|
24
|
+
Brain or context compiler.
|
|
25
|
+
|
|
26
|
+
Every server-capable CLI command requires an explicit `--profile development`
|
|
27
|
+
or `--profile production`. Use only the environment authorized for the current
|
|
28
|
+
task. Do not infer a production target from old credentials or a missing profile.
|
|
29
|
+
If the task does not establish the target, clarify it before connecting. Production
|
|
30
|
+
connections also require the CLI's per-invocation confirmation. Do not silently
|
|
31
|
+
add `--confirm-production` without authorization for that production operation.
|
|
32
|
+
Context, search, status and doctor do not synchronize transcripts. Synchronization
|
|
33
|
+
is separate: `reasontrail sync codex --profile <selected-profile>` previews locally;
|
|
34
|
+
adding `--apply` is an explicit transcript write and requires task authorization.
|
|
35
|
+
|
|
36
|
+
## Context
|
|
37
|
+
|
|
38
|
+
For substantive work on an associated repository—implementation, debugging,
|
|
39
|
+
refactoring, security review, deployment changes, authentication, or
|
|
40
|
+
investigation—retrieve the smallest useful ReasonTrail context before broad
|
|
41
|
+
local exploration. Skip retrieval for trivial or unrelated requests.
|
|
42
|
+
|
|
43
|
+
Use the backend context tool over MCP, or execute:
|
|
44
|
+
|
|
45
|
+
`reasontrail context --profile <selected-profile> --request <the user's current request>`
|
|
46
|
+
|
|
47
|
+
Treat repository association as a strong relevance signal. Preserve tenant and
|
|
48
|
+
project scope and never retrieve another user's raw conversation.
|
|
49
|
+
|
|
50
|
+
## Writes
|
|
51
|
+
|
|
52
|
+
Requests to update the Brain, save to ReasonTrail, remember project knowledge,
|
|
53
|
+
or record a decision are explicit Brain write intents. Use the live ReasonTrail
|
|
54
|
+
MCP write tool, otherwise pass a structured reviewed outcome to `reasontrail
|
|
55
|
+
update --profile <selected-profile>` on standard input.
|
|
56
|
+
|
|
57
|
+
Classify outcomes conservatively as discoveries, implementation facts,
|
|
58
|
+
decisions, rejected approaches, task outcomes, constraints, ideas, or open
|
|
59
|
+
questions. Preserve provenance and review semantics. Never promote speculation
|
|
60
|
+
to an approved decision.
|
|
61
|
+
|
|
62
|
+
Never substitute README, architecture Markdown, AGENTS.md, CLAUDE.md, local
|
|
63
|
+
notes, or assistant-native memory for a Brain write. Only a successful backend
|
|
64
|
+
response may be reported as an update. If neither transport can write, report:
|
|
65
|
+
|
|
66
|
+
> ReasonTrail is unavailable, so the project Brain was not updated.
|
|
67
|
+
|
|
68
|
+
## Commands
|
|
69
|
+
|
|
70
|
+
Interpret `$reasontrail …` in Codex and `/reasontrail …` in Claude Code as
|
|
71
|
+
assistant commands and dispatch them to a real transport:
|
|
72
|
+
|
|
73
|
+
- `status` — MCP read/status, otherwise `reasontrail status --profile <selected-profile>`.
|
|
74
|
+
- `context` — MCP context retrieval, otherwise `reasontrail context --profile <selected-profile> --request
|
|
75
|
+
<current request>`.
|
|
76
|
+
- `update` — MCP reviewed write, otherwise structured JSON on standard input to
|
|
77
|
+
`reasontrail update --profile <selected-profile>`.
|
|
78
|
+
- `.` — MCP repository association when supported, otherwise `reasontrail . --profile <selected-profile>`.
|
|
79
|
+
|
|
80
|
+
Project binding is independent from connectivity and authentication. A missing
|
|
81
|
+
binding may set only `project_bound=false`; it must not make a successful
|
|
82
|
+
backend connection unauthenticated or unavailable.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"sourceRevision":"a740bfd0d01cdbeafaca5cc7bffc83ee5bcca0cb"}
|