angelo_cli¶
angelo_cli ¶
Angelo CLI - scaffolds MCP config into target projects.
cmd_init ¶
Scaffold editor config into the current project.
Source code in angelo_cli/__init__.py
cmd_update ¶
Upgrade the angelo package (when newer) and refresh managed files.
The package upgrade reinstalls from git when a newer version exists (copied installs only; editable installs get guidance instead). The config refresh rewrites the managed rule/hook/skill files and reconciles mcp.json non-destructively: any angelo-managed MCP server added in a newer package version (e.g. memory-artifacts) is merged into the existing config without touching the user's other servers or env tweaks.
Source code in angelo_cli/__init__.py
1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 | |
cmd_doctor ¶
Verify the install: PATH commands, dependencies, config files, onboarding state.
Source code in angelo_cli/__init__.py
1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 | |
cmd_kill ¶
Kill all running angelo MCP processes and their descendant process trees.
The MCP servers lock the installed Scripts/angelo-*.exe wrappers and their
children (dashboards, runner daemon, node/uvicorn subprocesses) can hold
other locks, which makes a pip install -e reinstall fail. Run this first to
clear the way, then reinstall and restart the servers in your editor.
In addition to command-line matching, anything holding a known dashboard
port is reaped — this catches orphaned uvicorn --reload spawn workers whose
command line (python -c "from multiprocessing.spawn ...") matches no
pattern and whose reloader parent has already died.
Source code in angelo_cli/__init__.py
commit_dirty_memory ¶
Commit dirty .memory/ files in isolation. Returns the number committed.
Discovers modified/untracked files under .memory/ and commits them as
the memory-mcp author without touching the user's staged changes, then
safe-auto-pushes (only when every unpushed commit is memory-authored). This
lets a code commit/push also flush any memory entries a separate MCP-server
process hasn't committed yet. Shared by the angelo memory commit CLI and
the Claude Code Bash hook. Never raises — safe to call from any hook.
Source code in angelo_cli/__init__.py
commit_dirty_zettel ¶
Commit dirty .zettelkasten/ files in isolation. Returns the number committed.
Parallel to :func:commit_dirty_memory: discovers modified/untracked files
under .zettelkasten/ and commits them as the zettelkasten-mcp author
via :meth:ZettelCommitter.commit_now (no push — local history is enough for
the zettelkasten). This lets a user code commit/push (or the memory git hook)
also flush any review/note files a separate MCP-server process scheduled but
hasn't committed yet — the debounce timer + atexit alone are lost on a
hard kill (SIGKILL). Never raises — safe to call from any hook.
Source code in angelo_cli/__init__.py
cmd_memory_commit ¶
CLI wrapper around :func:commit_dirty_memory (the git-commit hook target).
Also flushes pending .zettelkasten/ files on the same hook so weeks of
review/note authoring ride up with a user git commit/push, not just on the
committer's atexit (which is skipped on a hard kill). Always exits 0 so
it can never break the triggering shell hook.
Source code in angelo_cli/__init__.py
cmd_memory_tether_hint ¶
Cursor postToolUse hook target: emit a non-blocking tether reminder.
Cursor's preToolUse has no advisory-on-allow channel (a message reaches
the agent only on deny), so the code-aware-editing reflex cannot be a
non-blocking pre-edit nudge there. Instead this fires on postToolUse for
Write and prints Cursor's {"additional_context": ...} shape — reminding
the agent to record(..., files=...) after a code edit so the symbol tether
advances. The decision (code file vs not) is deterministic, made in
:func:claude_hooks.decide_post_edit_context; it never blocks and always exits
0 so a malformed payload can never break the triggering tool call.
Source code in angelo_cli/__init__.py
cmd_memory_publish ¶
Build and commit a filtered, per-recipient-encrypted memory bundle.
Reads the owner-authored sharing policy (sharing/grants in
.memory/config.yaml) and the public-key identity registry, then calls
:func:memory.sharing.build_bundle to write the ciphertext bundle into a
producer-owned bundle repo. The bundle files are committed in that repo (as
the memory-mcp author, isolated from the user's working tree); push is
off unless --push is given.
Source code in angelo_cli/__init__.py
cmd_memory_identity_init ¶
Create this machine's local identity (and optionally register it).
Minimal bootstrap so publish/sync are usable end-to-end: generates a
keypair, writes the PRIVATE identity to ~/.angelo/identity.yaml (chmod
0600, never committed), and — with --register — adds the PUBLIC key to
the shared registry (.memory/identities.yaml, safe to commit).
Source code in angelo_cli/__init__.py
cmd_memory_revoke ¶
Revoke a recipient id from the memory sharing policy and republish.
Edits .memory/config.yaml to drop --id (optionally confined to a
--scope subtree) via :func:memory.sharing.grants_edit.revoke_in_store,
then — if anything changed — re-publishes the bundle so the new ciphertext
excludes them (forward revocation). With --purge-history it also rewrites
the bundle repo history (and force-pushes when a remote exists). The source
config edit is deliberately NOT auto-committed — the report reminds the owner
to review + commit it.
Source code in angelo_cli/__init__.py
2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 | |
cmd_zettelkasten_publish ¶
Build and commit a filtered, per-recipient-encrypted zettelkasten bundle.
Reads the owner-authored sharing policy (sharing/grants in
.zettelkasten/config.yaml) and the SHARED public-key identity registry
(.memory/identities.yaml — the same firm registry memory uses), then
calls :func:zettelkasten.sharing.build_bundle to write the ciphertext
bundle into a producer-owned bundle repo. The bundle files are committed in
that repo (as the memory-mcp author, isolated from the user's working
tree); push is off unless --push is given.
Source code in angelo_cli/__init__.py
3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 | |
cmd_zettelkasten_revoke ¶
Revoke a recipient id from the zettelkasten sharing policy and republish.
Edits .zettelkasten/config.yaml to drop --id (optionally confined to
a --project closure) via
:func:zettelkasten.sharing.grants_edit.revoke_in_store, then — if anything
changed — re-publishes the bundle so the new ciphertext excludes them. With
--purge-history it also rewrites the bundle repo history (and force-pushes
when a remote exists). The source config edit is deliberately NOT
auto-committed — the report reminds the owner to review + commit it.
Source code in angelo_cli/__init__.py
3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 | |
cmd_synapse_publish ¶
Build and commit a filtered, per-recipient-encrypted synapse-edge bundle.
Reads the synapse sharing plumbing (sharing.bundle_repo/producer_id in
.synapse/config.yaml) and the SHARED public-key identity registry
(.memory/identities.yaml — the same firm registry memory/zk use), then
calls :func:zettelkasten.synapse.sharing.build_bundle to write the ciphertext
bundle into a producer-owned bundle repo. Each cross-store edge ships only to
recipients who can open BOTH endpoints (the intersection of the memory + ZK
grants). The bundle files are committed in that repo (as the memory-mcp
author, isolated from the user's working tree); push is off unless --push.
Source code in angelo_cli/__init__.py
3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 | |
cmd_federation_sync ¶
Fetch and decrypt subscribed bundle repos into the federation cache.
For each bundle_subscriptions entry in .memory/config.yaml (a local
path or a git remote), fetch/clone the bundle repo if needed, then
decrypt with the local identity into
.angelo/federation-cache/<peer_id>/.memory so it renders like any other
federated peer. Zettelkasten bundle subscriptions (bundle_subscriptions
in .zettelkasten/config.yaml) are ALSO synced, decrypted into
.angelo/federation-cache/<peer_id>/.zettelkasten; synapse bundle
subscriptions (bundle_subscriptions in .synapse/config.yaml) are ALSO
synced, decrypted into .angelo/federation-cache/<peer_id>/.synapse. Absent
config = nothing to sync.
Source code in angelo_cli/__init__.py
3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 | |
cmd_iceberg_contributions ¶
List staged contribution branches + their manifests (purely read-only).
Source code in angelo_cli/__init__.py
cmd_iceberg_review ¶
Decrypt + verify a caller's staged contributions and present them.
Fail-closed presentation: a contribution whose signature cannot be verified
against the caller's registered signing key is shown under a LOUD
UNVERIFIED — DO NOT TRUST banner and marked not-mergeable. A verified
contribution prints VERIFIED (signed by <caller_id>) plus its decrypted
content and authorship metadata.
Source code in angelo_cli/__init__.py
cmd_iceberg_merge ¶
Re-verify, merge (fail-closed), then materialize a caller's contributions.
Order is strict: (1) RE-VERIFY every staged contribution's signature — if
ANY fails to verify against the caller's registered signing key, the WHOLE
merge is refused (no git mutation, no materialization); (2)
:func:iceberg.writeback.merge_contribution brings the branch into the
default branch, fail-closed on git conflict; (3) each accepted contribution
is MATERIALIZED into the owner's live store, provenance-stamped with the
contributor id. A materialization failure after the merge is surfaced as a
partial state (the git merge already happened).
Source code in angelo_cli/__init__.py
4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 | |
cmd_iceberg_serve ¶
Run the Iceberg broker under uvicorn (owner-hosted read + write-back server).
Resolves a :class:~iceberg.broker.config.BrokerConfig by layering the
provided flags over BrokerConfig.from_env() (flags win over env), then
serves build_app(config) on --host/--port with NO reload/debug.
Binds 127.0.0.1 by default (loopback only). Write-back and rate limiting
stay OFF unless explicitly enabled by flag or a truthy ICEBERG_BROKER_*
env var (fail-closed).