Save durable preferences and project know-how when the owner asks Titan to inscribe, directly or through /inscribe-compact. Sweep from the last successful pass, curate the memory files, and report whether Titan can safely reset.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Inscribe?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/leonardourci-inscribe-othrys)
---
name: inscribe
description: Save durable preferences and project know-how when the owner asks Titan to inscribe, directly or through /inscribe-compact. Sweep from the last successful pass, curate the memory files, and report whether Titan can safely reset.
user-invocable: true
metadata:
internal: true
---
# Inscribe
Save durable preferences and project know-how directly to memory. Running inscribe authorizes the edits. Keep task state on the board and in task logs. Othrys never starts a pass on its own. When the owner sends `/inscribe-compact`, Othrys asks for a pass and compacts this session only after the finish command succeeds; a failed pass, or a turn that ends without finishing one, skips the compaction.
## The memory files
Edit the Markdown files under `memory/` in the Othrys home (`$OTHRYS_HOME`, default `~/.othrys`).
| File | Holds | Sections, in this order |
|---|---|---|
| `owner.md` | the owner's preferences and know-how for every Titan | Preferences, Know-how |
| `poleis/<polis>.md` | what applies only to Titans in that polis | Preferences, Know-how |
| `titans/<titan>.md` | what applies only to this Titan: its scope and its own way of working | Scope, Preferences, Know-how |
| `projects/<name>.md` | private notes for Titan and workers about one project: what it is, how its build, tests, CI, releases and deploys work, and standing worker notes | Profile, Preferences, Know-how, Workers |
| `archive.md` | stale entries excluded from Titan's ordinary context | one `## <source file>` section per source |
Use this layout for active memory files:
```markdown
# Project othrys
<!-- memory tiers: see the inscribe skill -->
## Know-how
- PR CI waits on the ci environment and Titan approves each run. <!--a:2026-12-01-->
- Deslop fix pushes start a new CI run that needs approval again (until deslop stops pushing during approved runs). <!--p:2026-12-01-->
- Never serve a copy of a real Titan: it resumes agents and follows PRs.
```
- The title line names the file; the comment line points here. Keep only the sections in the table, in that order, and leave out empty ones.
- One fact per bullet, one line each, in plain words a fresh agent can act on. No nested bullets, tables or prose paragraphs.
- Put a fact in the narrowest file it applies to: one project's fact goes to that project's file, a polis's to its polis file, a rule for every Titan to `owner.md`.
- When the fact already lives in a project's code, `AGENTS.md`, `README.md` or docs, write a one-line pointer to that source instead of a copy.
## Tiers
Each bullet carries at most one marker at its end:
- No marker: `pinned`. It never decays and changes only when the owner or reality changes it. Preferences, rules and profile facts are usually pinned.
- `<!--a:YYYY-MM-DD-->`: `aging`. The date is the last time a session used, confirmed or re-derived it. At 30 days or more it is stale.
- `<!--p:YYYY-MM-DD-->`: `perishable`. Same date rule, stale at 7 days or more, and its text names a checkable expiry: a version, a pull request, a dated expectation. A fact with no checkable expiry is `aging`, not `perishable`.
Refresh a date only on evidence from the swept conversation that you can name in the report. Reading the file, the fact's importance or how plausible it sounds is not evidence.
## Pass
1. Run `othrys titan inscribe start --titan <titan> --json`. Save the `milestone`, `after`, `through` and `memory` fields. `memory` is the startup memory every session loads: its estimated `tokens` (bytes / 3), the `budget`, `overBudget` and each file's tokens. Read positions greater than `after` and at most `through`. The range starts at the last successful pass's saved position, or at the start of the log.
2. Read `owner.md`, the assigned polis file, this Titan's file, each attached project's file and `archive.md` in full before writing. Use the paths in the digest for active files and read the archive separately. Start with an empty file for any path that does not exist.
3. Sweep only what happened since that milestone; never read whole transcripts.
- Owner messages: `othrys titan messages --after <after> --titan <titan> --json`. Use each page's `through` as the next cursor. Stop when you reach the pass's `through` or the cursor stops advancing. Include only messages within the pass's bounds.
- Your own replies in that range: follow the transcript path and position in the Titan's turn records from the milestone on. Read `activity.log` and include any older turn records in `titan.log`. To read around one message, use `othrys titan message --id <id> --before <n> --after <n>`.
- Worker reports: the `worker.log` and `task.log` lines of tasks with activity in that range.
Look for standing preferences, settled ways of working and project know-how, including build, CI, releases, deploys and the causes of recurring problems. When the owner names a project, give it priority within the sweep. Save a worker recommendation only if the owner or Titan adopted it.
4. Leave out task state: open work, task status, pull requests in flight, pending questions, who is doing what, and links to resume. Leave out secrets and credentials.
5. Check each finding before filing it: against the project's code, `AGENTS.md` and docs, and against what the memory files already say.
6. Classify each finding against the file it belongs in: new, a duplicate of an entry, superseding an entry, or showing an entry is stale. Rewrite rather than append: fold a duplicate into the entry that holds it, rewrite a superseded entry in place, and prefer a one-sentence rewrite to a second entry that says nearly the same.
7. Curate every file you read, not only the ones a finding lands in:
- Archive a perishable entry once its expiry passes. If it reaches seven days, keep it only when the expiry can be checked, is still ahead and this sweep reconfirmed the entry.
- Refresh dates from this sweep's evidence. Archive aging entries that still reach 30 days after any refresh.
- Archive superseded durable facts and merge duplicates. Remove task state and secrets from active files and the archive.
- Never drop a unique current fact: it stays, moves to a narrower file, or goes to `archive.md`.
- In `archive.md`, add each moved entry under its source file's section with its tier, its last date and a one-line reason.
- Restructure any file that does not match the layout above: move bullets under the right section, split multi-fact bullets, and give unmarked entries that are not pinned facts a dated marker when the sweep confirms them, or archive them when nothing current supports them.
- Recalculate the startup total from the current active files after curation. Use the UTF-8 byte length of the full files, including headings, markers and newlines. Add the byte lengths before dividing by three and rounding up.
- If still over `memory.budget`, move any project-only, polis-only or Titan-only entries in `owner.md` to their proper files and recalculate. If still over, estimate the total from the active files as they would look with every aging entry archived. If that would still exceed the budget, leave the aging entries in place and report why. Otherwise archive aging entries across the active files in order of oldest marker date first, stopping as soon as the recalculated total fits. Pinned and perishable entries are ineligible for budget-driven archiving.
8. After saving all durable findings and curating the files, run `othrys titan inscribe finish --titan <titan> --key <milestone> --through <through> --json` and keep its `memory` field, the total after this pass. If any part of the sweep or save could not complete, run `othrys titan inscribe fail --titan <titan> --key <milestone> --error "<why>"` to preserve the previous sweep cursor.
## Report
End with a short report the owner can read on a phone:
- One line per file you read: `unchanged`, `added`, `rewritten`, `archived` or `moved`, with what changed.
- Startup memory before and after the pass, from the start and finish `memory` fields, against the budget. If either measurement is unavailable, say which one and why. If the final total is over budget, say so and explain what kept it over.
- Each finding you left out on purpose and why, when it is not obvious.
- Say whether it is safe to reset. Say yes only after the sweep, file saves and finish command all succeed. If anything is missing, name it.