getflightplan 0.9.0__tar.gz
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.
- getflightplan-0.9.0/.gitignore +8 -0
- getflightplan-0.9.0/CHANGELOG.md +43 -0
- getflightplan-0.9.0/LICENSE +202 -0
- getflightplan-0.9.0/NOTICE +2 -0
- getflightplan-0.9.0/PKG-INFO +179 -0
- getflightplan-0.9.0/README.md +155 -0
- getflightplan-0.9.0/pyproject.toml +70 -0
- getflightplan-0.9.0/src/flightplan/__init__.py +1 -0
- getflightplan-0.9.0/src/flightplan/cli.py +83 -0
- getflightplan-0.9.0/src/flightplan/install.py +844 -0
- getflightplan-0.9.0/src/flightplan/install_assets/registry-digest.md +42 -0
- getflightplan-0.9.0/src/flightplan/install_assets/snippet.md +60 -0
- getflightplan-0.9.0/src/flightplan/install_assets/stop_hook.py +157 -0
- getflightplan-0.9.0/src/flightplan/mcp_server.py +335 -0
- getflightplan-0.9.0/src/flightplan/uninstall.py +325 -0
- getflightplan-0.9.0/tests/test_cli.py +56 -0
- getflightplan-0.9.0/tests/test_install.py +799 -0
- getflightplan-0.9.0/tests/test_packaging.py +102 -0
- getflightplan-0.9.0/tests/test_stop_hook.py +126 -0
- getflightplan-0.9.0/tests/test_uninstall.py +154 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to the FlightPlan client are documented here.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
|
+
|
|
7
|
+
## [unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.9.0] — 2026-08-03
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- First PyPI release. Install with `uvx getflightplan install`; the GitHub
|
|
13
|
+
source install still works when you need to pin a commit.
|
|
14
|
+
- `getflightplan uninstall`: removes everything install wrote in a repo —
|
|
15
|
+
managed snippet blocks, `.flightplan.toml`, the `/registry-digest` command,
|
|
16
|
+
the stop hook and its settings wiring. `--dry-run` previews; `--purge-key`
|
|
17
|
+
also deletes the machine-level saved key; MCP deregistration is offered
|
|
18
|
+
interactively (default no — registrations are machine-wide).
|
|
19
|
+
- Trust docs: `SECURITY.md` (private reporting via security@getflightplan.com
|
|
20
|
+
or GitHub advisories) and `docs/data-flow.md` (what leaves your machine,
|
|
21
|
+
what never does, and what is stored where).
|
|
22
|
+
- `getflightplan install` now inspects existing MCP registrations instead of
|
|
23
|
+
only checking the name. A registration that points at the old GitHub source,
|
|
24
|
+
a local checkout, or the legacy `intent-registry` name is reported as stale
|
|
25
|
+
and the installer offers to re-register it.
|
|
26
|
+
### Changed
|
|
27
|
+
- The install command is now `uvx getflightplan install`, straight from PyPI.
|
|
28
|
+
Generated registrations run `uvx getflightplan mcp` (no `--from`).
|
|
29
|
+
- Snippet warn rule softened: when an overlap is the very work the agent was
|
|
30
|
+
asked to act on, or the task is read-only, the agent mentions it and keeps
|
|
31
|
+
going instead of pausing for confirmation.
|
|
32
|
+
|
|
33
|
+
## [0.1] — 2026-07-30
|
|
34
|
+
|
|
35
|
+
### Added
|
|
36
|
+
- Initial public release (package 0.9.0). `getflightplan install|mcp`: the MCP
|
|
37
|
+
stdio client and a one-command install kit — writes the agent snippet into
|
|
38
|
+
`CLAUDE.md`/`AGENTS.md` between managed markers, pins the repo name in
|
|
39
|
+
`.flightplan.toml`, installs the `/registry-digest` command and the
|
|
40
|
+
session-end stop hook, then verifies and offers to fix MCP registration for
|
|
41
|
+
Claude Code and Codex (one key prompt, saved-key reuse, re-verify).
|
|
42
|
+
Pre-PyPI install: `uvx --from git+https://github.com/sledmonkey/getflightplan
|
|
43
|
+
getflightplan install`. Apache-2.0.
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: getflightplan
|
|
3
|
+
Version: 0.9.0
|
|
4
|
+
Summary: Shared situational awareness for coding agents: declare work before it starts, see what's in flight, coordinate around conflicts, and debrief what happened.
|
|
5
|
+
Project-URL: Homepage, https://getflightplan.com
|
|
6
|
+
Project-URL: Repository, https://github.com/sledmonkey/getflightplan
|
|
7
|
+
Project-URL: Changelog, https://github.com/sledmonkey/getflightplan/blob/main/CHANGELOG.md
|
|
8
|
+
Project-URL: Issues, https://github.com/sledmonkey/getflightplan/issues
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: claude-code,codex,coding-agents,coordination,mcp
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
+
Classifier: Topic :: Software Development
|
|
20
|
+
Requires-Python: >=3.11
|
|
21
|
+
Requires-Dist: httpx<0.28,>=0.27
|
|
22
|
+
Requires-Dist: mcp<2,>=1.2
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
# FlightPlan
|
|
26
|
+
|
|
27
|
+
> **Your agents collide. File a FlightPlan.**
|
|
28
|
+
>
|
|
29
|
+
> Before work begins, each of your agents declares where it's headed and sees
|
|
30
|
+
> what's already in flight. They coordinate around conflicts, then leave behind
|
|
31
|
+
> what changed and why.
|
|
32
|
+
>
|
|
33
|
+
> **Advisory, never locking.**
|
|
34
|
+
>
|
|
35
|
+
> **A byproduct of agent work, not another process to maintain.**
|
|
36
|
+
|
|
37
|
+
FlightPlan coordinates coding agents before their work collides. This repo
|
|
38
|
+
contains the CLI, MCP server, and installer for the hosted service at
|
|
39
|
+
[getflightplan.com](https://getflightplan.com).
|
|
40
|
+
|
|
41
|
+
## Quick start
|
|
42
|
+
|
|
43
|
+
From your repo's root:
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
uvx getflightplan install
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
That installs FlightPlan for Claude Code. For Codex, append
|
|
50
|
+
`--agent codex`. The command is safe to re-run.
|
|
51
|
+
|
|
52
|
+
The hosted service is in private beta; request access at
|
|
53
|
+
[getflightplan.com](https://getflightplan.com). The package is on PyPI, so the
|
|
54
|
+
command above is all you need. To pin a branch or commit instead, install from
|
|
55
|
+
the source:
|
|
56
|
+
`uvx --from git+https://github.com/sledmonkey/getflightplan getflightplan install`.
|
|
57
|
+
|
|
58
|
+
Version and compatibility policy: [docs/versioning.md](docs/versioning.md).
|
|
59
|
+
|
|
60
|
+
## How it works
|
|
61
|
+
|
|
62
|
+
1. **File the work.** Before editing, an agent declares its task and the files
|
|
63
|
+
it expects to touch.
|
|
64
|
+
2. **See what's in flight.** FlightPlan returns overlapping active work,
|
|
65
|
+
including uncommitted changes Git cannot see, decisions made during coding,
|
|
66
|
+
plus relevant recent outcomes.
|
|
67
|
+
3. **Coordinate.** Overlaps are advisory: narrow the work, sequence it, or
|
|
68
|
+
proceed with context.
|
|
69
|
+
4. **Debrief.** The agent records what changed, what surprised it, and what it
|
|
70
|
+
tried so the next session does not start cold.
|
|
71
|
+
|
|
72
|
+
## What the installer adds
|
|
73
|
+
|
|
74
|
+
- `.flightplan.toml` — pins the repo name every agent posts under, plus the
|
|
75
|
+
registry URL. Committed on purpose; no secrets.
|
|
76
|
+
- A managed agent snippet in `CLAUDE.md` and/or `AGENTS.md`.
|
|
77
|
+
- `/registry-digest` — an on-demand "what happened lately" command.
|
|
78
|
+
- A session-end stop hook (`.claude/hooks/flightplan_stop_hook.py` plus its
|
|
79
|
+
settings wiring) that reminds the agent to close out open intents.
|
|
80
|
+
|
|
81
|
+
It also checks MCP registration and service reachability, then offers to
|
|
82
|
+
configure anything missing. Verification is advisory and never fails the run.
|
|
83
|
+
|
|
84
|
+
To remove everything the installer wrote, run `getflightplan uninstall` from
|
|
85
|
+
the repo root (`--dry-run` to preview, `--purge-key` to also delete the saved
|
|
86
|
+
API key).
|
|
87
|
+
|
|
88
|
+
## Configuration
|
|
89
|
+
|
|
90
|
+
- `FLIGHTPLAN_URL` — `https://api.getflightplan.com`
|
|
91
|
+
- `FLIGHTPLAN_API_KEY` — your key (the MCP server's env; the stop hook also
|
|
92
|
+
reads `~/.config/flightplan/env`).
|
|
93
|
+
- `.flightplan.toml` — the per-repo pin: `repo` name and `url`.
|
|
94
|
+
|
|
95
|
+
## What your agent is told
|
|
96
|
+
|
|
97
|
+
The installer adds the following managed contract with your repo name pinned.
|
|
98
|
+
|
|
99
|
+
<details>
|
|
100
|
+
<summary>View the agent instructions</summary>
|
|
101
|
+
|
|
102
|
+
## Intent registry
|
|
103
|
+
|
|
104
|
+
This repo participates in the team intent registry (MCP server: `flightplan`).
|
|
105
|
+
|
|
106
|
+
- **Before starting non-trivial work**, call `post_intent`. The test: will the
|
|
107
|
+
work change behavior, defaults, or contracts another agent would encounter —
|
|
108
|
+
or, for pure investigation, would the findings save the next agent an hour?
|
|
109
|
+
Yes to either → post; Q&A and typo-level fixes, no. Send
|
|
110
|
+
a one-paragraph summary (what + why), `kind` (`build`, or
|
|
111
|
+
`explore`/`spike` for throwaway investigation), and `touches` globs for the
|
|
112
|
+
areas you expect to change. Keep the returned id for later. For `repo`,
|
|
113
|
+
use the basename of the git origin remote (or the repo root directory name if there is no remote) — every agent on this repo must use the same name or
|
|
114
|
+
collision checks silently miss each other. The response may include
|
|
115
|
+
`context`: recent completed work relevant to your task — read those outcomes
|
|
116
|
+
before starting; the surprises and dead ends in them are load-bearing.
|
|
117
|
+
- If the response includes overlaps at level `warn`, check what the overlap is
|
|
118
|
+
before pausing. Two cases need no confirmation — mention the overlap and keep
|
|
119
|
+
going: the overlapping intent is the very work you were asked to act on
|
|
120
|
+
(reviewing it, verifying it, following up on it), or your task is read-only.
|
|
121
|
+
Otherwise, tell your user who is doing what and which globs collide, and ask
|
|
122
|
+
how to proceed before continuing. `fyi`/`nudge` levels: mention briefly and
|
|
123
|
+
keep going.
|
|
124
|
+
- **If the work changes shape or runs long**, call `update_intent`: revise the
|
|
125
|
+
summary/touches when scope grows (collision checks run against them — stale
|
|
126
|
+
globs miss real collisions), or call with just the id to renew the TTL on
|
|
127
|
+
work spanning more than a day. The response includes fresh `overlaps` — the
|
|
128
|
+
same collision check as posting, glob-based — and a `warn` there gets the
|
|
129
|
+
same treatment as a `warn` at post time.
|
|
130
|
+
- **When the work finishes or is abandoned** — including when the session is
|
|
131
|
+
wrapping up — call `complete_intent` with a one-paragraph outcome: what
|
|
132
|
+
actually changed, anything surprising, approaches tried and rejected, anything
|
|
133
|
+
deliberately left in place. If a `warn` overlap changed how the work went
|
|
134
|
+
(coordinated, narrowed scope, proceeded anyway), say which. Attach the git
|
|
135
|
+
facts you already know: `files` actually changed (`git diff --name-only`),
|
|
136
|
+
`commits` created, and `uncommitted: true` if any of the work is not yet
|
|
137
|
+
committed — that flag is what lets other agents' collision checks warn loudly
|
|
138
|
+
instead of quietly. Completing an intent ends the slice, not the session:
|
|
139
|
+
follow-up work after a complete that changes behavior, defaults, or contracts
|
|
140
|
+
gets a fresh post — "same session" doesn't exempt it.
|
|
141
|
+
- **Re-check for collisions whenever your picture of in-flight work may be
|
|
142
|
+
stale** — posting checks once, and it goes stale over a long session.
|
|
143
|
+
Re-check moments: a file changed between your read and your edit, or an Edit
|
|
144
|
+
fails on text you just read — someone's work landed under you; before editing
|
|
145
|
+
a shared doc or artifact you didn't create this session; when resuming after
|
|
146
|
+
a handoff from another agent; and before touching files named in an earlier
|
|
147
|
+
`warn`. The cheapest re-check is
|
|
148
|
+
`update_intent` with just your intent id (renews the TTL, returns fresh
|
|
149
|
+
`overlaps`); use `list_intents` (pass `overlaps` globs, plus `summary` for a
|
|
150
|
+
semantic check, or `q`/`since` for history) when you have no open intent or
|
|
151
|
+
are scoping new work.
|
|
152
|
+
- **When a decision gets resolved** in conversation (an approach chosen, an
|
|
153
|
+
alternative rejected, a direction set), record it the moment it settles:
|
|
154
|
+
`post_intent` with `kind: "decision"`, the question as the summary, and the
|
|
155
|
+
resolution in `outcome` — what was decided, what was rejected, and why. One
|
|
156
|
+
call; no touches, no completion later. Decisions never collide and become
|
|
157
|
+
searchable team memory. Decisions are also the correction mechanism:
|
|
158
|
+
completed outcomes are immutable, so if one later proves wrong, post a
|
|
159
|
+
decision citing what actually held.
|
|
160
|
+
- The registry is advisory and must never block work: if its tools error,
|
|
161
|
+
proceed, and mention the failure to your user once.
|
|
162
|
+
|
|
163
|
+
</details>
|
|
164
|
+
|
|
165
|
+
## Data
|
|
166
|
+
|
|
167
|
+
What leaves your machine is the coordination record: intent summaries and
|
|
168
|
+
outcome paragraphs, glob patterns, changed-file paths, branch names, and
|
|
169
|
+
commit ids — sent only to the FlightPlan service. Source code
|
|
170
|
+
contents are never uploaded. Everything the registry knows, it learns as a
|
|
171
|
+
byproduct of your agents' work.
|
|
172
|
+
|
|
173
|
+
The details — what never leaves, and what is stored where — are in
|
|
174
|
+
[docs/data-flow.md](docs/data-flow.md). Vulnerability reporting:
|
|
175
|
+
[SECURITY.md](SECURITY.md).
|
|
176
|
+
|
|
177
|
+
## License
|
|
178
|
+
|
|
179
|
+
Apache-2.0
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# FlightPlan
|
|
2
|
+
|
|
3
|
+
> **Your agents collide. File a FlightPlan.**
|
|
4
|
+
>
|
|
5
|
+
> Before work begins, each of your agents declares where it's headed and sees
|
|
6
|
+
> what's already in flight. They coordinate around conflicts, then leave behind
|
|
7
|
+
> what changed and why.
|
|
8
|
+
>
|
|
9
|
+
> **Advisory, never locking.**
|
|
10
|
+
>
|
|
11
|
+
> **A byproduct of agent work, not another process to maintain.**
|
|
12
|
+
|
|
13
|
+
FlightPlan coordinates coding agents before their work collides. This repo
|
|
14
|
+
contains the CLI, MCP server, and installer for the hosted service at
|
|
15
|
+
[getflightplan.com](https://getflightplan.com).
|
|
16
|
+
|
|
17
|
+
## Quick start
|
|
18
|
+
|
|
19
|
+
From your repo's root:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
uvx getflightplan install
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
That installs FlightPlan for Claude Code. For Codex, append
|
|
26
|
+
`--agent codex`. The command is safe to re-run.
|
|
27
|
+
|
|
28
|
+
The hosted service is in private beta; request access at
|
|
29
|
+
[getflightplan.com](https://getflightplan.com). The package is on PyPI, so the
|
|
30
|
+
command above is all you need. To pin a branch or commit instead, install from
|
|
31
|
+
the source:
|
|
32
|
+
`uvx --from git+https://github.com/sledmonkey/getflightplan getflightplan install`.
|
|
33
|
+
|
|
34
|
+
Version and compatibility policy: [docs/versioning.md](docs/versioning.md).
|
|
35
|
+
|
|
36
|
+
## How it works
|
|
37
|
+
|
|
38
|
+
1. **File the work.** Before editing, an agent declares its task and the files
|
|
39
|
+
it expects to touch.
|
|
40
|
+
2. **See what's in flight.** FlightPlan returns overlapping active work,
|
|
41
|
+
including uncommitted changes Git cannot see, decisions made during coding,
|
|
42
|
+
plus relevant recent outcomes.
|
|
43
|
+
3. **Coordinate.** Overlaps are advisory: narrow the work, sequence it, or
|
|
44
|
+
proceed with context.
|
|
45
|
+
4. **Debrief.** The agent records what changed, what surprised it, and what it
|
|
46
|
+
tried so the next session does not start cold.
|
|
47
|
+
|
|
48
|
+
## What the installer adds
|
|
49
|
+
|
|
50
|
+
- `.flightplan.toml` — pins the repo name every agent posts under, plus the
|
|
51
|
+
registry URL. Committed on purpose; no secrets.
|
|
52
|
+
- A managed agent snippet in `CLAUDE.md` and/or `AGENTS.md`.
|
|
53
|
+
- `/registry-digest` — an on-demand "what happened lately" command.
|
|
54
|
+
- A session-end stop hook (`.claude/hooks/flightplan_stop_hook.py` plus its
|
|
55
|
+
settings wiring) that reminds the agent to close out open intents.
|
|
56
|
+
|
|
57
|
+
It also checks MCP registration and service reachability, then offers to
|
|
58
|
+
configure anything missing. Verification is advisory and never fails the run.
|
|
59
|
+
|
|
60
|
+
To remove everything the installer wrote, run `getflightplan uninstall` from
|
|
61
|
+
the repo root (`--dry-run` to preview, `--purge-key` to also delete the saved
|
|
62
|
+
API key).
|
|
63
|
+
|
|
64
|
+
## Configuration
|
|
65
|
+
|
|
66
|
+
- `FLIGHTPLAN_URL` — `https://api.getflightplan.com`
|
|
67
|
+
- `FLIGHTPLAN_API_KEY` — your key (the MCP server's env; the stop hook also
|
|
68
|
+
reads `~/.config/flightplan/env`).
|
|
69
|
+
- `.flightplan.toml` — the per-repo pin: `repo` name and `url`.
|
|
70
|
+
|
|
71
|
+
## What your agent is told
|
|
72
|
+
|
|
73
|
+
The installer adds the following managed contract with your repo name pinned.
|
|
74
|
+
|
|
75
|
+
<details>
|
|
76
|
+
<summary>View the agent instructions</summary>
|
|
77
|
+
|
|
78
|
+
## Intent registry
|
|
79
|
+
|
|
80
|
+
This repo participates in the team intent registry (MCP server: `flightplan`).
|
|
81
|
+
|
|
82
|
+
- **Before starting non-trivial work**, call `post_intent`. The test: will the
|
|
83
|
+
work change behavior, defaults, or contracts another agent would encounter —
|
|
84
|
+
or, for pure investigation, would the findings save the next agent an hour?
|
|
85
|
+
Yes to either → post; Q&A and typo-level fixes, no. Send
|
|
86
|
+
a one-paragraph summary (what + why), `kind` (`build`, or
|
|
87
|
+
`explore`/`spike` for throwaway investigation), and `touches` globs for the
|
|
88
|
+
areas you expect to change. Keep the returned id for later. For `repo`,
|
|
89
|
+
use the basename of the git origin remote (or the repo root directory name if there is no remote) — every agent on this repo must use the same name or
|
|
90
|
+
collision checks silently miss each other. The response may include
|
|
91
|
+
`context`: recent completed work relevant to your task — read those outcomes
|
|
92
|
+
before starting; the surprises and dead ends in them are load-bearing.
|
|
93
|
+
- If the response includes overlaps at level `warn`, check what the overlap is
|
|
94
|
+
before pausing. Two cases need no confirmation — mention the overlap and keep
|
|
95
|
+
going: the overlapping intent is the very work you were asked to act on
|
|
96
|
+
(reviewing it, verifying it, following up on it), or your task is read-only.
|
|
97
|
+
Otherwise, tell your user who is doing what and which globs collide, and ask
|
|
98
|
+
how to proceed before continuing. `fyi`/`nudge` levels: mention briefly and
|
|
99
|
+
keep going.
|
|
100
|
+
- **If the work changes shape or runs long**, call `update_intent`: revise the
|
|
101
|
+
summary/touches when scope grows (collision checks run against them — stale
|
|
102
|
+
globs miss real collisions), or call with just the id to renew the TTL on
|
|
103
|
+
work spanning more than a day. The response includes fresh `overlaps` — the
|
|
104
|
+
same collision check as posting, glob-based — and a `warn` there gets the
|
|
105
|
+
same treatment as a `warn` at post time.
|
|
106
|
+
- **When the work finishes or is abandoned** — including when the session is
|
|
107
|
+
wrapping up — call `complete_intent` with a one-paragraph outcome: what
|
|
108
|
+
actually changed, anything surprising, approaches tried and rejected, anything
|
|
109
|
+
deliberately left in place. If a `warn` overlap changed how the work went
|
|
110
|
+
(coordinated, narrowed scope, proceeded anyway), say which. Attach the git
|
|
111
|
+
facts you already know: `files` actually changed (`git diff --name-only`),
|
|
112
|
+
`commits` created, and `uncommitted: true` if any of the work is not yet
|
|
113
|
+
committed — that flag is what lets other agents' collision checks warn loudly
|
|
114
|
+
instead of quietly. Completing an intent ends the slice, not the session:
|
|
115
|
+
follow-up work after a complete that changes behavior, defaults, or contracts
|
|
116
|
+
gets a fresh post — "same session" doesn't exempt it.
|
|
117
|
+
- **Re-check for collisions whenever your picture of in-flight work may be
|
|
118
|
+
stale** — posting checks once, and it goes stale over a long session.
|
|
119
|
+
Re-check moments: a file changed between your read and your edit, or an Edit
|
|
120
|
+
fails on text you just read — someone's work landed under you; before editing
|
|
121
|
+
a shared doc or artifact you didn't create this session; when resuming after
|
|
122
|
+
a handoff from another agent; and before touching files named in an earlier
|
|
123
|
+
`warn`. The cheapest re-check is
|
|
124
|
+
`update_intent` with just your intent id (renews the TTL, returns fresh
|
|
125
|
+
`overlaps`); use `list_intents` (pass `overlaps` globs, plus `summary` for a
|
|
126
|
+
semantic check, or `q`/`since` for history) when you have no open intent or
|
|
127
|
+
are scoping new work.
|
|
128
|
+
- **When a decision gets resolved** in conversation (an approach chosen, an
|
|
129
|
+
alternative rejected, a direction set), record it the moment it settles:
|
|
130
|
+
`post_intent` with `kind: "decision"`, the question as the summary, and the
|
|
131
|
+
resolution in `outcome` — what was decided, what was rejected, and why. One
|
|
132
|
+
call; no touches, no completion later. Decisions never collide and become
|
|
133
|
+
searchable team memory. Decisions are also the correction mechanism:
|
|
134
|
+
completed outcomes are immutable, so if one later proves wrong, post a
|
|
135
|
+
decision citing what actually held.
|
|
136
|
+
- The registry is advisory and must never block work: if its tools error,
|
|
137
|
+
proceed, and mention the failure to your user once.
|
|
138
|
+
|
|
139
|
+
</details>
|
|
140
|
+
|
|
141
|
+
## Data
|
|
142
|
+
|
|
143
|
+
What leaves your machine is the coordination record: intent summaries and
|
|
144
|
+
outcome paragraphs, glob patterns, changed-file paths, branch names, and
|
|
145
|
+
commit ids — sent only to the FlightPlan service. Source code
|
|
146
|
+
contents are never uploaded. Everything the registry knows, it learns as a
|
|
147
|
+
byproduct of your agents' work.
|
|
148
|
+
|
|
149
|
+
The details — what never leaves, and what is stored where — are in
|
|
150
|
+
[docs/data-flow.md](docs/data-flow.md). Vulnerability reporting:
|
|
151
|
+
[SECURITY.md](SECURITY.md).
|
|
152
|
+
|
|
153
|
+
## License
|
|
154
|
+
|
|
155
|
+
Apache-2.0
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "getflightplan"
|
|
3
|
+
version = "0.9.0"
|
|
4
|
+
description = "Shared situational awareness for coding agents: declare work before it starts, see what's in flight, coordinate around conflicts, and debrief what happened."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.11"
|
|
7
|
+
license = "Apache-2.0"
|
|
8
|
+
license-files = ["LICENSE"]
|
|
9
|
+
keywords = ["mcp", "coding-agents", "coordination", "claude-code", "codex"]
|
|
10
|
+
classifiers = [
|
|
11
|
+
"Development Status :: 4 - Beta",
|
|
12
|
+
"Intended Audience :: Developers",
|
|
13
|
+
"Operating System :: OS Independent",
|
|
14
|
+
"Programming Language :: Python :: 3.11",
|
|
15
|
+
"Programming Language :: Python :: 3.12",
|
|
16
|
+
"Programming Language :: Python :: 3.13",
|
|
17
|
+
"Programming Language :: Python :: 3.14",
|
|
18
|
+
"Topic :: Software Development",
|
|
19
|
+
]
|
|
20
|
+
# The MCP stdio client's runtime deps — the whole dependency surface of this
|
|
21
|
+
# package. mcp<2: SDK 2.0 removes mcp.server.fastmcp.
|
|
22
|
+
dependencies = [
|
|
23
|
+
"httpx>=0.27,<0.28",
|
|
24
|
+
"mcp>=1.2,<2",
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
[project.urls]
|
|
28
|
+
Homepage = "https://getflightplan.com"
|
|
29
|
+
Repository = "https://github.com/sledmonkey/getflightplan"
|
|
30
|
+
Changelog = "https://github.com/sledmonkey/getflightplan/blob/main/CHANGELOG.md"
|
|
31
|
+
Issues = "https://github.com/sledmonkey/getflightplan/issues"
|
|
32
|
+
|
|
33
|
+
[project.scripts]
|
|
34
|
+
getflightplan = "flightplan.cli:main"
|
|
35
|
+
|
|
36
|
+
[dependency-groups]
|
|
37
|
+
dev = ["pytest>=8"]
|
|
38
|
+
|
|
39
|
+
[build-system]
|
|
40
|
+
requires = ["hatchling"]
|
|
41
|
+
build-backend = "hatchling.build"
|
|
42
|
+
|
|
43
|
+
[tool.hatch.build.targets.wheel]
|
|
44
|
+
packages = ["src/flightplan"]
|
|
45
|
+
|
|
46
|
+
# The sdist ships the code, the tests, and the docs a user needs. Nothing else.
|
|
47
|
+
[tool.hatch.build.targets.sdist]
|
|
48
|
+
include = [
|
|
49
|
+
"src/",
|
|
50
|
+
"tests/",
|
|
51
|
+
"README.md",
|
|
52
|
+
"LICENSE",
|
|
53
|
+
"NOTICE",
|
|
54
|
+
"CHANGELOG.md",
|
|
55
|
+
"pyproject.toml",
|
|
56
|
+
]
|
|
57
|
+
exclude = [
|
|
58
|
+
"CLAUDE.md",
|
|
59
|
+
".claude/",
|
|
60
|
+
".flightplan.toml",
|
|
61
|
+
"scripts/",
|
|
62
|
+
"docs/",
|
|
63
|
+
"examples/",
|
|
64
|
+
"dist/",
|
|
65
|
+
"uv.lock",
|
|
66
|
+
]
|
|
67
|
+
|
|
68
|
+
[tool.pytest.ini_options]
|
|
69
|
+
testpaths = ["tests"]
|
|
70
|
+
markers = ["packaging: builds the wheel and sdist (a second or two)"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Intent registry: agents post what they're about to do, check overlap, log outcomes."""
|