Repository navigation
Replies: 1 comment
|
This is actually closely related to something I raised in the original agent workflow discussion: Back then, one of my concerns was how to provide the agent with the project context. As a first MVP, I suggested passing the Project Description to the agent, and @croffasia implemented exactly that in: However, after working with It's a Plan for a while, I've actually ended up going further in the opposite direction: instead of relying on the built-in Docs as the main source of context for my agents, I'm maintaining an internal Git repo with Markdown documentation intended for both agents and humans. And precisely because of the problem @hodyhq mentions here: API / MCP access is unlikely to be as fast and convenient for an agent as simply having the context available as local Markdown files. So I really like this idea. In fact, I wonder if we could take it one step further. I've already built a small script to keep the SOUL of my agents in MD files, with one-way synchronization to It's a Plan. Same with the Project Description. One thing I've realized during these first few weeks experimenting with It's a Plan is that an artifact that looks relatively "simple" at first -like an agent's SOUL / Description- can actually become surprisingly challenging to iterate on and maintain. I've only really been able to take control of that process, and more importantly spot regressions, by keeping those artifacts in a local Git repo. Having them versioned locally has also allowed me to run my own harness against real agent sessions and continuously audit and refine the executions: what instructions were available, how the agent behaved, what changed between iterations, and where a regression might have been introduced. At the end of the day, the goal is getting things done as quickly as possible while using as few tokens as possible. And this auditing/iteration loop has only been practical because the instructions and procedures are documented as local Markdown files that I can inspect, diff, edit, and version just like I would with any other software project. So my question/proposal would be: 💥 What if we mirror the entire project? 💥Not just Docs. Docs, Project Description, teams, skills, agent SOULs, issue types, custom fields, initiatives, maybe open issues?... everything that could be useful as project context. And have https://www.npmjs.com/package/@itsaplan/runner manage that mirror, so that any local/external agent gets a directory containing a local representation of the It's a Plan project, initially READ-ONLY, as @hodyhq proposes here. Something conceptually like: From the agent's point of view, all the project context would simply be available as local files, using the filesystem tools it already has. The runner would be responsible for keeping that representation synchronized with It's a Plan. I'd need to think more about potential permissions / granularity issues. For example, whether a given agent should be able to see all teams, all skills, all agent SOULs, all issues, etc. But at least at this stage of It's a Plan, I can't immediately think of many practical cases where an agent should see significantly more or less of the project context than another agent. So perhaps the local-first Docs idea could eventually become something more general: a read-only local mirror of the It's a Plan project, managed by |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have been running It's a Plan on a personal instance and I am evaluating it as a replacement
for Plane at work, where we self-host.
Firstly, I am really loving this and want to migrate completely to Its A Plan.
The thing I keep running into is Docs, so before I spend
real time on it I wanted to check whether this direction is something you want.
The problem, and why it is an agent problem
The whole pitch of this project is that people and agents work side by side. The runner already
executes Claude Code, Codex, Copilot and others in a working directory with filesystem access.
But Docs live behind the API, so an agent that wants to consult project documentation has to
make MCP calls a document at a time, paying latency and tokens for each one.
That is fine for "open the spec for PLAN-42". It falls apart for the things agents are actually
good at: "find every doc that mentions the old auth flow", "which runbooks reference this
service", "summarize everything we have written about this subsystem". Those are corpus
questions, and answering them through an API one document at a time is slow and expensive.
If Docs were mirrored as markdown files into the working directory, ripgrep answers all of
those in milliseconds at zero token cost, and the agent gets the project's documentation as
ambient context on every run rather than having to go fetch it.
There is a second benefit that matters to me as a self-hoster: documentation that only exists
inside the application database is documentation I cannot grep, cannot diff, cannot back up
separately, and cannot read when the instance is down.
What I am proposing, in stages
Stage 1: one-way mirror. IAP writes Docs out as markdown to a directory, preserving the
nesting hierarchy as folders. Server is the only source of truth, files are a read-only replica,
nothing writes back. This alone solves corpus search for agents and gives self-hosters a
readable copy of their own documentation. It is small, and it cannot break anything, because
nothing consumes the files but the reader.
Stage 2: git as the durability layer. Point the mirror at a git repo and commit on each
revision. Docs get real history, diffs, and a backup that survives the instance. This composes
with the provider connections from #259, which already handle tokens and webhooks for GitHub,
GitLab, Gitea, Forgejo and Bitbucket, so the credential plumbing largely exists.
Stage 3: local editing, and this is the part I want your opinion on. The version I actually
want is the one where editing the local file participates in collaboration, so a doc can be
edited from a local editor or by an agent and show up live in someone else's browser.
I have read #386, and I want to be clear I am not hand-waving the hard part. Concurrent edits
rebasing through ProseMirror against a server revision is a protocol a local agent could
genuinely join: hold the document, turn file changes into steps, submit against the current
version, rebase when rejected. What is not realistic is merging paragraph-level edits made while
disconnected. Word and Google Docs do not do that either. Offline conflicts fork the file, and
I think that is the honest contract to offer.
What I am asking before writing any code
external tool built against the REST API?
@itsaplan/runner, which already holds an API key and hasworking-directory scope, or be its own package?
still in flight? If the answer is "not yet, let that land first", that is a genuinely useful
answer and I would rather hear it now.
I am willing to build this, and I would rather build the version you want than the version I
guessed at. If the shape is wrong, tell me what the right shape is. If it is something you would
rather keep out of the open-source project, that is also a fine answer and I would just as soon
know before starting.
All reactions