Skip to content
المشاريع

حول

A steel thread process for helping LLMs help you work with your code

الذكاء الاصطناعي وتعلّم الآلة

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
جارٍ جمع السجل
خلال 15 يومًا
جارٍ جمع السجل
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Intent

Intent captures why your code exists, in the repository, in a form your team and your coding agents can both read.

Your code says what it does and version control says when it changed. Neither says what you were trying to achieve, what you ruled out, or what breaks if someone changes it. Intent gives that reasoning a place to live that ages with the code instead of away from it.

  $ brew install matthewsinclair/intent/intent

The Homebrew build is for macOS on Apple silicon and for Linux; anywhere else, build from source. Full documentation is in docs/. If you are new, start at the documentation index. This build does not support an Intent v2 project: Intent 3.5.1 is the last release that converts one.

What it is

A CLI, written in Rust, that manages a small set of durable objects inside your repository. A machine-level daemon, intentd, and a macOS menubar app ship beside it; the CLI does its work in-process and needs neither, except intent graphql, which only a running intentd answers, and intent browse, which opens a page a running intentd serves.

A steel thread is one intention followed end to end. It breaks into work packages, and it states acceptance criteria — the conditions that decide whether the intention was met. Each criterion is either backed by acceptance tests, whose status decides it, or satisfied by named evidence, so whether a thread is satisfied is computed from those records rather than asserted.

Around that sits the machinery that makes it survive contact with a real project: a store that is the single source of truth, generated views so nothing is maintained twice, a rule library your coding agents can be held to, per-language critics that check work against those rules, and commit-time gates that refuse changes breaking the rules the project declared.

Why it exists

Comments rot because nothing checks them. They sit beside the code, they are not tested, and the first person to change the code under a stale comment usually leaves it there.

Design documents rot because nothing links them. They are correct on the day they are written, and nothing notices when they stop being true.

And a coding agent cannot reconstruct any of it. It reads what the code does and builds confidently on assumptions you would have rejected in one sentence — because the sentence was never written anywhere it could read. Handing an agent more context each session does not fix that; the context has to come from something that cannot silently drift.

A first steel thread

  $ intent init
  $ intent st new "Add user authentication"
  created: STc5b1a6f14f17acb6

Intent made that id from the act that created the thread, so two people creating threads at once never get the same one. Copy it from the created: line. The short form the tables print, STc5b1a6f, names it too, as does any unique prefix of at least four hex, or five if they are all digits. A thread from before a project took these ids keeps its ordinal, such as ST0001.

Then record why it exists and what would make it done:

  $ intent set STc5b1a6f14f17acb6 objective "Users stay signed in across a server restart"
  $ intent ac new STc5b1a6f14f17acb6 AC-00.1 --text "Sessions survive a server restart"
  $ intent st show STc5b1a6f14f17acb6

The reasoning is now a tracked object rather than a paragraph in a chat log, and intent ac gate STc5b1a6f14f17acb6 will tell you whether the thread is satisfied instead of asking you to remember.

Getting started follows this through to a satisfied thread on a real project.

Commands

The command reference is generated from the dispatch register at a named revision — see docs/reference/.

For the surface of a build you actually have in front of you, ask that build: intent --help, and intent <command> --help.

intent help prints the same top-level usage as intent --help. It takes no command name: for one command, use intent <command> --help.

Repository layout

.
├── AGENTS.md          # Tool-agnostic LLM config (generated by `intent agents sync`)
├── CLAUDE.md          # Claude Code-specific overlay
├── usage-rules.md     # Prescriptive DO / NEVER contract
├── native/rust/       # The CLI, the daemon and the services: the tool itself
├── native/macos/      # The Intent menubar app
├── bin/               # devbin, the development launcher (bin/int is its alias)
├── docs/              # Public documentation
├── surface/           # The dispatch register the command reference is generated from
├── lib/templates/     # Templates: root files, init's starter content, hooks and guards
└── intent/            # This project's own Intent artefacts
    ├── .canon/        # The committed extract of the store: threads, issues and events
    ├── .cache/        # This machine's store (intent.db); not committed
    ├── .config/       # Per-project config and metadata
    ├── st/            # Steel threads (info.md and acceptance.md are generated views)
    ├── docs/          # Internal authoring canon
    ├── llm/           # Module registry, code-placement flowchart, project rules and architecture
    └── plugins/       # Rules, skills and subagents

Intent is built with Intent, so intent/ here is both the tool's own working record and a worked example of what the tool produces.

Note on intent/st/: info.md and acceptance.md are rendered from the store and each says so in the file. Write a thread's objective and context with intent set <ID> objective and intent set <ID> context. You can also type those two sections into info.md and then run intent sync --to-store <ID>, which carries them into the store: until you do, an Intent command that would render the file over your edit refuses and names that step, and a running intentd carries the edit on its own. A hand edit anywhere else in the file is reported by intent doctor as view-skew, and the next render overwrites it. design.md, impl.md and tasks.md are prose you write; intent st attach <ID> design.md --from <file> records one in the store, and intent st edit <ID> design opens it once it is attached.

Working with coding agents

Intent's LLM-facing surface — the root config files (AGENTS.md, CLAUDE.md, usage-rules.md), the session hooks, the skills, the subagents, the rule library and the per-language critics — is explained end to end in intent/docs/working-with-llms.md. That is the canonical narrative, and it is where the reasoning behind the layout lives.

Contributing

Create a steel thread for the change, record what you are trying to achieve and what would make it done, and reference it in the pull request. The acceptance gate applies to contributions the same way it applies to everything else.

Getting help

  • Documentation — install, getting started, concepts, command reference
  • intent doctor — findings about the project you are standing in. It does not check the support tree (the only parts of the install it reads are the templates it compares the project's root files and pre-commit gate against); intent claude rules list is the check that the support tree arrived
  • GitHub Issues — bug reports

License

MIT. See LICENSE.md.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…