Try Taskora free. No credit card. A 14-day free trial.

Black Friday at Taskora: sign up free and we'll lock in up to 70% off at launch. There's also a 14-day free trial. Get the deal

How to Keep a Team Wiki Up to Date with a Coding Agent

11 min readwikicoding agentsdocumentation

Written by Georgii Garanin, Founder, Taskora

Team documentation has always had an unfair economy. Writing the process takes an hour. Keeping the page true after every change costs minutes, but those minutes are owed by whoever still remembers why it changed, after the change lands, with no prompt and no deadline. Teams do not fail at wiki upkeep because the writing is hard. They fail because the upkeep has no natural home in anyone's working day.

A coding agent gives that upkeep a home, because the same agent that carries the work also carries the context that tells you which page it broke. The pattern does not care which agent you run. Claude Code, Cursor, and Codex all fit the markdown-in-repo version, and the version where the wiki lives in the team's work tool goes through a connection. The division of labor is the same in both. The people keep the ownership, the review dates, and the archive decisions. The agent takes the walking, the searching, and the drafting of edits. That division comes from the team wiki upkeep guide, which sets out ownership, review cadence and the monthly sweep with no agent involved.

Start from the rot, then aim the agent at it

Wikis rot from two causes. The first is ownership: pages without a named person drift because nobody is on the record for their accuracy. The second is distance: the page lives in a different place than the work, so every update is a walk across tools that nobody's afternoon has room for.

The second cause is the one an agent attacks directly. The agent works where the work is, and if updating the wiki is part of the agent's job description, the walk vanishes. The change to the refund flow, made in Tuesday's session, gets its page edit in Tuesday's session, while the reasoning is still warm in the agent's context window and the page is one tool call away.

The first cause does not move. A page nobody owns stays a page nobody is accountable for, and handing the walking to a machine does not change whose name belongs at the top. So the pattern keeps the governance structure a working wiki already runs on and reassigns the labor underneath it.

Decide where the wiki lives, because it sets the route

Two homes for a team wiki behave differently with an agent, and each has a working route.

Markdown in the repository. When the wiki lives in the same repo as the code, the agent's normal workflow already covers it: rules go in the agent's memory file, docs ship in commits, and the review gate is the pull request. A change that alters a documented process and a change to the page describing it can ride the same diff, reviewed by the same reviewer. This route is simple and durable, and it keeps the wiki's history in the same ledger as the code's.

A product wiki beside the work. When the wiki lives in the team's work tool next to the boards, as it does in Taskora, the agent needs a way in. The clean version is an MCP connection: a documented endpoint gives the agent read tools that search and fetch the documents, and edit tools that write the corrections. Claude Code and Cursor are the clients documented for that connection today. The edits land in the page's version history, so the ledger survives the change of venue. The route costs one setup step and buys the one thing the repo cannot offer: the page update sits in the same surface as the cards and tasks it describes.

Teams run both. The repo carries the engineering-facing pages, the product wiki carries the process and operations pages, and the agent treats them as two workspaces under the same discipline. What matters for rot is not which home wins. It is that the home the team actually uses is the one the agent can reach.

The rules file is where the governance lives

The agent's memory file is the contract that makes the whole pattern safe. One paragraph there carries the policy:

Read, understand, and follow the current pages before you invent process language. When your work changes a documented process, update the page in the same sitting, in the wiki where it lives. Search before you create, and update rather than duplicate. Never write work status into the wiki, the board is where today's state lives. Everything you write lands as a proposal for human review.

That paragraph is doing five jobs at once. It makes the agent read the current pages before it writes anything. It attaches each update to the work that caused it, which is the same-sitting rule from wiki governance. It sends the agent searching before it creates, which prevents the duplicate pages that come from not knowing a page exists. It fences the wiki against live status, so the process pages do not turn into a second status report. And it names the gate: the agent proposes, the page owner decides.

The rules file also carries the tier system: policy pages are reviewed yearly, runbooks are checked on each run, and reference pages carry an as-of date. The agent can hold those labels and act on them, flagging a yearly review that came due and updating a runbook comment inline, without anyone re-explaining the scheme every time.

The agent proposes, a human merges

The gate is the whole safety model, and it is worth writing down plainly. The agent never ships a wiki change directly. It drafts the edit, the owner of the page or its reviewer reads the diff, and the merge applies it. On the repo route that is a pull request with a docs file in it. On the product-wiki route it is the client's edit confirmation plus the version history that records the landed edit, so a bad proposal that slips through is one revert away.

Three checks make the review step fast, because a review that takes an hour will not survive a busy month:

  • Is the page now true of the work as it just got done? The work happened minutes ago, so this check costs seconds.
  • Did the agent invent anything? The classic agent failure is a filler sentence that states a process nobody decided. If a sentence in the draft has no owner behind it, it needs one before it can land.
  • Is the page still the only copy? Search the wiki for the page's siblings before merging, since the agent may have created a near-duplicate in an adjacent folder.

After the merge, the agent's edit shows in the page's history like any other contributor's, which is what makes the ledger auditable rather than aspirational.

The recurring sweep, run by the agent and decided by the team

The monthly cleanup keeps its one-decision-per-page rule, and the agent changes only the cost of finding the candidates.

The sweep begins with a request: list every page whose review date has passed, every page that names a tool retired this quarter, every page with an internal link that no longer resolves, and every page that contradicts another page. The agent reads and returns the list, ordered by how wrong the page is. The team walks it once, in one sitting, and every entry receives exactly one decision: confirm, let the agent draft the update, mark it with an as-of note, or archive it.

Drift and broken links deserve their own line in the sweep, because they are the failure modes that grow silently. A page that references a renamed column rots at the speed of the next quarterly read, and a page whose links dead-end teaches readers to stop trusting the wiki one broken link at a time. Asking the agent to lint the wiki's links and named tools as part of the monthly request turns both failure modes into findings before the next person hits them.

The failure modes, named plainly

Three agent failure modes account for most of the damage, and each has a rule that predates it.

Append-rot. The agent that never overwrites, only adds, turns a process page into an archive of its own revisions. The counter is in the rules file: update the section that changed, do not append a new section describing the same thing. Version history already remembers the old wording.

Invented process claims. An agent filling a gap will state policy nobody made. The counter is the review question above: every sentence in a proposed edit has an owner behind it, or it gets deleted. Where an agent genuinely cannot know, its draft should mark the gap for the human, not paper over it.

Overwrite races. Two agents, or an agent and a human, editing the same page in one afternoon can clobber each other. The counter is scope in the rules file: one agent owns the wiki's edits for a given page family, everything else proposes and waits. On a product wiki, the version history that records every edit keeps a race from being a loss, and a page's owner resolves the rest.

Where the practice guide fits

The governance underneath this pattern, the owners, the tiered review dates, the one-decision sweep, the status fence, is not new. It is the standard practice that keeps a wiki alive beside the work, the setup the team wiki surface describes. The agent does not replace it. It removes the reason the practice kept failing, which was always the cost of running it.

If your team keeps the wiki in the same surface as its work, the mechanical route is an MCP connection, the upkeep runs from the board, and the protocol-level guide covers that route end to end. If you run the markdown-in-repo version, the rules file carries all of the policy and the pull request is the gate. The walkthrough for Codex shows the same loop in one concrete client. Either way, the pattern above is the whole system. The agent walks and drafts, the humans decide and own, and the wiki stays current because updating it finally lives where the work happens.

FAQ

Which coding agent does this work with?

Any agent that reads a rules file and can either edit repo files or write through a tool connection. Claude Code, Cursor, and Codex all cover the repo route, and the product-wiki route depends on which clients are documented for the connection. The choice matters less than the contract: the rules file carries the policy, the edit arrives as a proposal, and a human merges it. If your agent cannot read a policy file and propose its edits, upgrade the agent or keep the walking human.

What goes in the agent's rules file for wiki upkeep?

One paragraph covers it. The agent follows the current pages before inventing process language, updates the page in the same sitting as the work that changed it, searches before creating so it updates rather than duplicates, never writes work status into the wiki, and lands everything as a proposal for review. Teams that run tiered review dates add the tiers so the agent can flag overdue policy pages and check runbooks inline.

Can the agent run the wiki sweep by itself?

Not the deciding. The agent can produce the sweep's candidate list, pages past their review date, pages naming retired tools, broken links, contradictions, faster and more completely than the human walk ever managed. The decision on each page stays with the team, one decision per page, because archive and rewrite judgments are about the team's process, not its files.

How do we stop the agent from making duplicates?

Two habits. The standing instruction to search before creating is the preventive one, because most duplicates happen when the agent does not know a page exists. And the review check that searches the page's siblings before merging is the enforcement one, since a near-duplicate caught at review takes one small fix, and one that ships sends the next reader down a stale path.

What if two people, or two agents, want the same page?

Give one writer the pen and let everything else propose. In practice this means the rules file scopes which agent handles which page family, human editors route their changes through the same review, and the version history on each page settles any overlap that slips through. The race is rare, and a ledger that records every edit turns it from a data loss into a merge.

Does this work for a wiki in a separate documentation tool?

It works only if the agent can reach that tool. Where an MCP endpoint exists for it, the connection carries read and edit tools and the upkeep runs the same way as the product-wiki route. Where no connection exists, the agent's updates become copy-paste proposals, the same-sitting rule decays back into a chore, and the honest answer is that the tool boundary is the problem, and fixing it comes before buying your way around it.

Build a wiki your agents can reach in Taskora

All posts